1 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
3 * config/h8300/crti.asm: Remove trailing spaces.
4 * config/h8300/h8300.c: Likewise.
5 * config/h8300/lib1funcs.asm: Likewise.
7 2002-05-02 Jason Merrill <jason@redhat.com>
9 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
10 * c-decl.c (c_init_decl_processing): Use it.
11 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
12 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
13 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
15 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
17 * regrename.c: Fix formatting.
20 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
22 * i386.md (attribute memory): Handle compares properly.
24 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
26 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
29 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
31 * function.c: Fix formatting.
33 2002-05-02 Jan Hubicka <jh@suse.cz>
35 * haifa-sched.c (schedule_insn): Print table of instructions and
37 (sched_block): Do not print ready list at verbosity level 1.
38 * sched-vis.c (print_insn): Make global.
39 * sched-ebb.c (ebb_print_insn): Rename from...
40 (print_insn): ... this one.
41 * sched-int.h (print_insn): Declare
43 2002-05-02 Richard Henderson <rth@redhat.com>
45 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
46 emitted by cycle_display.
48 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
50 * doc/install.texi (*-*-freebsd*): Update to latest status.
52 2002-05-02 Jakub Jelinek <jakub@redhat.com>
55 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
56 * config/float-sparc.h: Assume 128-bit long double if
57 __LONG_DOUBLE_128__ is defined.
59 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
61 * genattrtab.c (write_function_unit_info): Add a dummy element
64 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
66 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
67 TYPE_MODE (double_type_node) instead of DFmode.
69 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
71 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
73 * toplev.c (rest_of_compilation): Revert Richard's patch.
75 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
77 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
79 2002-05-02 Catherine Moore <clm@redhat.com>
81 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
83 2002-05-02 Kazu Hirata <kazu@hxi.com>
85 * combine.c: Fix comment typos.
87 * genautomata.c: Likewise.
91 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
93 * doc/install.texi: State GNAT version requirements.
95 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
97 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
98 of the frame pointer or arg pointer register which strict register
99 checking is not enabled.
101 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
103 * gcc.dg/altivec-8.c: New.
105 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
106 PRE_INC and PRE_DEC for altivec modes.
108 2002-05-01 Bruce Korb <bkorb@gnu.org>
110 * fixinc/check.tpl(set-writable): make sure the function exists first
111 * fixinc/inclhack.def(alpha_assert): fix test_text
112 * fixinc/tests/base/assert.h: add in missing result
114 2002-05-01 Jeff Law <law@redhat.com>
116 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
119 2002-05-01 Joel Brobecker <brobecker@gnat.com>
121 * dbxout.c (dbxout_type): Emit size information for range types,
122 as well, but only when using GDB extensions.
124 2002-05-01 Richard Henderson <rth@redhat.com>
126 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
127 target-independent gnu binutils date test.
129 2002-05-01 Richard Henderson <rth@redhat.com>
131 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
132 info before expunging the block.
134 2002-05-01 Jakub Jelinek <jakub@redhat.com>
136 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
137 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
138 -M -or -MM is in effect.
140 2002-05-01 Zack Weinberg <zack@codesourcery.com>
142 * config.gcc: Correct test of --enable-obsolete. Obsolete all
144 * doc/install.texi: Update to match.
146 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
149 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
150 for duplicates. Always loop over whole list.
152 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
154 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
156 2002-05-01 Joel Sherrill <joel@OARcorp.com>
158 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
161 2002-05-01 Joel Sherrill <joel@OARcorp.com>
163 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
165 2002-05-01 David Edelsohn <edelsohn@gnu.org>
167 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
168 (nabs_nopower): Same.
169 (floatdisf2): New pattern.
170 (absdi2): Convert to define_insn_and_split.
175 (fix_trunctfdi2): Same.
176 (fix_trunctfsi2): Same.
178 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
180 * doc/install.texi: Update Texinfo version requirement
183 2002-05-01 Jakub Jelinek <jakub@redhat.com>
185 PR target/6512, PR target/5628
186 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
187 when memory is not aligned.
188 (movdf_insn_v9only_vis): Likewise.
189 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
190 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
191 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
193 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
195 * gcc.dg/altivec-7.c: New.
197 * config/rs6000/altivec.h: Cleanup.
199 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
201 * doc/invoke.texi (Option Summary): Add -mvrsave=.
202 (RS/6000 and PowerPC Options): Document -mvrsave=.
204 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
205 (rs6000_altivec_vrsave_string): Same.
206 (rs6000_override_options): Call rs6000_parse_vrsave_option.
207 (rs6000_parse_vrsave_option): New.
208 (rs6000_stack_info): Only generate vrsave instructions when
209 TARGET_ALTIVEC_VRSAVE.
211 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
212 (rs6000_altivec_vrsave_string): Define extern.
213 (rs6000_altivec_vrsave): Same.
214 (TARGET_ALTIVEC_VRSAVE): New.
216 2002-04-30 Richard Henderson <rth@redhat.com>
219 * toplev.c (rest_of_compilation): Don't run cross-jump before
222 2002-04-30 Tom Rix <trix@redhat.com>
224 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
225 check which_alternative.
227 2002-04-30 Kazu Hirata <kazu@hxi.com>
229 * cpplex.c: Fix comment formatting.
230 * function.c: Likewise.
231 * integrate.c: Likewise.
232 * regrename.c: Likewise.
233 * sibcall.c: Likewise.
234 * simplify-rtx.c: Likewise.
235 * tree-inline.c: Likewise.
237 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
239 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
240 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
241 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
242 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
243 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
244 * pa/x-ada: New file. Define ADA_CFLAGS.
246 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
248 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
249 from MMIX_LAST_REGISTER_FILE_REGNUM.
250 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
251 (struct machine_function): New member highest_saved_stack_register
252 previously static variable in mmix.c.
253 (MACHINE_DEPENDENT_REORG): Define.
254 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
255 (MMIX_OUTPUT_REGNO): New.
256 (mmix_target_asm_function_prologue): Move calculation of last used
257 saved-stack-register into...
258 (mmix_machine_dependent_reorg): New function. Update to also handle
260 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
261 register names, simplify somewhat by new variable regno.
262 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
264 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
265 emitting register names.
266 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
267 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
269 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
272 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
274 2002-04-30 Richard Henderson <rth@redhat.com>
276 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
277 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
278 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
279 emit_tfmode_cvt): New.
280 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
281 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
282 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
283 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
284 * config/sparc/sparc-protos.h: Update.
286 2002-04-30 Janis Johnson <janis187@us.ibm.com>
288 * install.texi (Final install): Add to the list of info to include
289 in a report of a successful bootstrap, and add link to 3.1 list.
291 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
293 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
294 (mode): Add vector modes
295 (i387): Kill attribute.
296 (unit): New attribute.
297 (length_immediate): Grok new types.
298 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
300 (memory): Handle MMX/SSE properly.
301 (scheduling descriptions): Kill uses of fop1.
302 (sse, mmx, fp patterns): Set type and mode properly.
304 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
306 * pa.c (override_options): Default to PA8000 scheduling.
307 * doc/invoke.texi (HP-PA options): Mention newly added 7300
308 scheduling parameter.
310 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
311 handling of double precision multiplies.
313 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
314 fpdiv and fpsqrt instructions.
315 (7200 & 7300 scheduling): Fix typo in handling of
316 store-load and store-store penalties.
318 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
320 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
321 mips. Add two missing commas.
323 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
325 * doc/contrib.texi (Contributors): Update Paolo Carlini's
326 and Benjamin Kosnik's entries.
328 2002-04-29 David S. Miller <davem@redhat.com>
330 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
331 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
332 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
333 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
335 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
337 * combine.c (find_split_point): Use gen_int_mode.
339 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
341 Merging code from dfa-branch:
343 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
345 * genautomata.c (output_reserv_sets): Fix typo.
347 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
349 * genautomata.c (output_reserv_sets): Remove
350 next_cycle_output_flag.
352 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
354 * sched-rgn.c (init_ready_list): Make the DFA code handle
355 USE/CLOBBER insns in the same way as the traditional
357 (new_ready): Similarly..
359 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
361 * haifa-sched.c (schedule_block): Change the DFA state only after
364 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
366 * pa.c (hppa_use_dfa_pipeline_interface): New function.
367 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
368 (override_options): Add PA7300 scheduling support.
369 (pa_adjust_cost): Update various comments. Properly
370 handle anti and output dependencies when using the
372 (pa_issue_rate): Add PA7300 scheduling support.
373 (pa_can_combine_p): Call extract_insn before calling
374 constrain_operands (taken from mainline tree).
375 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
376 * pa.md (cpu attr): Add 7300. Rewrite pipeline
377 descriptions using DFA descriptions. Add PA7300
380 2002-03-30 David S. Miller <davem@redhat.com>
382 Add UltraSPARC-III DFA scheduling support.
383 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
384 Update FP conditional move on register insn patterns to use it, as
386 (define_attr cpu): Add ultrasparc3.
387 (define_attr us3load_type): New, update integer load patterns to
388 set it, as appropriate.
389 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
390 (rest): Add UltraSPARC3 scheduling description.
391 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
392 (PROCESSOR_ULTRASPARC3): New.
393 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
394 ({ASM,CPP}_CPU_SPEC): Likewise.
395 (REGISTER_MOVE_COST): Likewise.
396 (RTX_COSTS): Likewise.
397 * config/sparc/sparc.c (sparc_override_options,
398 sparc_initialize_trampoline, sparc64_initialize_trampoline,
399 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
400 sparc_issue_rate): Likewise.
401 * config/sparc/sol2.h: Likewise.
402 * config/sparc/sol2-sld-64.h: Likewise.
403 * config/sparc/linux64.h: Likewise.
405 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
407 * doc/md.texi: Add comments about usage the latency time for the
408 different dependencies and about case when two or more conditions
409 in different define_insn_reservations returns TRUE for an insn.
411 * doc/md.texi: Add reference for automaton based pipeline
414 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
416 * doc/passes.texi: Add missed information about genattrtab.
418 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
420 * genautomata.c (output_automata_list_transition_code): Check
421 automata_list on NULL.
423 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
425 * genautomata.c (output_insn_code_cases,
426 output_automata_list_min_issue_delay_code,
427 output_automata_list_transition_code,
428 output_automata_list_state_alts_code): Comment the functions.
430 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
432 * genautomata.c (automata_list_el_t): New typedef.
433 (get_free_automata_list_el,free_automata_list_el,
434 free_automata_list, automata_list_hash, automata_list_eq_p,
435 initiate_automata_lists, automata_list_start, automata_list_add,
436 automata_list_finish, finish_automata_lists,
437 output_insn_code_cases, output_automata_list_min_issue_delay_code,
438 output_automata_list_transition_code,
439 output_automata_list_state_alts_code, add_automaton_state,
440 form_important_insn_automata_lists): New functions and prototypes.
441 (insn_reserv_decl): Add members important_automata_list and
443 (ainsn): Add members important_p.
444 (automata_list_el): New structure.
445 (first_free_automata_list_el, current_automata_list,
446 automata_list_table): New global variables.
447 (create_ainsns): Initiate member important_p.
448 (output_internal_min_issue_delay_func): Generate the switch and
449 call output_insn_code_cases.
450 (output_internal_trans_func, output_internal_state_alts_func):
452 (generate): Call initiate_automata_lists.
453 (automaton_states): New global variable.
454 (expand_automata): Call form_important_insn_automata_lists.
455 (write_automata): Call finish_automata_lists.
457 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
459 * genautomata.c (add_excls, add_presence_absence): Check that
460 cpu units in the sets belong the same automaton.
462 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
463 about that cpu units in the sets belong the same automaton.
465 * doc/md.texi: Ditto.
467 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
468 Nitin Gupta <niting@noida.hcltech.com>
470 * config/sh/sh.c (sh_use_dfa_interface): New function.
472 (sh_issue_rate): New Function.
473 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
474 TARGET_SCHED_ISSUE_RATE: define.
476 * config/sh/sh.md: Add DFA based pipeline description for SH4.
478 (define_attr insn_class): New attribute used for DFA
480 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
481 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
482 cmpeqdi_t): Likewise.
484 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
485 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
487 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
489 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
491 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
494 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
496 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
497 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
499 (output_dfa_start_func): Initiate new variable insn_codes_length,
500 (write_automata): Output definition of the new variable.
502 2001-10-02 David S. Miller <davem@redhat.com>
504 * haifa-sched.c (advance_one_cycle): New function.
505 (schedule_block): Use it.
506 (queue_to_ready): Use it, and also make sure to advance the DFA
507 state on all stall cycles, not just those where insn_queue links
510 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
512 * haifa-sched.c (max_issue): Remove last_p argument. Only return
513 non-zero if the highest-priority instruction could be scheduled.
514 (choose_ready): Remove last argument from max_issue call.
516 2001-09-28 David S. Miller <davem@redhat.com>
518 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
519 ultrasparc and 3 for other multi-issue sparcs.
521 2001-09-27 David S. Miller <davem@redhat.com>
523 * config/sparc/sparc.md (cycle_display): New pattern.
524 * config/sparc/sparc.c (sparc_cycle_display): New.
525 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
527 2001-09-25 David S. Miller <davem@redhat.com>
529 Convert all of Sparc scheduling to DFA
530 * config/sparc/sparc.md: Kill all define_function_unit
531 directives and replace with DFA equivalent.
532 * config/sparc/sparc.c (ultrasparc_adjust_cost,
533 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
534 ultra_fpmode_conflict_exists, ultra_find_type,
535 ultra_build_types_avail, ultra_flush_pipeline,
536 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
537 ultrasparc_variable_issue, ultrasparc_sched_init,
538 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
539 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
540 ultra_cur_hist, ultra_cycles_elapsed): Kill.
541 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
542 ultrasparc_store_bypass_p): New.
543 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
546 2001-09-24 David S. Miller <davem@redhat.com>
548 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
549 ready->vec[foo] not ready[foo].
551 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
553 * doc/md.texi: Correct examples for define_insn_reservations
556 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
558 * genautomata.c (create_automata): Print message about creation of
560 (generate): Remove printing meease about creation of
563 2001-09-05 David S. Miller <davem@redhat.com>
565 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
566 * config/sparc/linux64.h: Likewise.
568 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
570 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
571 schedule_block, sched_init, sched_finish): Add missed calls of
572 use_dfa_pipeline_interface.
574 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
577 * sched-vis.c (get_visual_tbl_length): Ditto.
579 2001-08-27 Richard Henderson <rth@redhat.com>
581 * genattr.c (main): Emit state_t even when not doing scheduling.
583 2001-08-27 Richard Henderson <rth@redhat.com>
585 * genautomata.c (expand_automata): Always create a description.
587 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
589 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
590 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
591 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
594 * genattr.c (main): New variable num_insn_reservations. Increase
595 it if there is DEFINE_INSN_RESERVATION. Output automaton based
596 pipeline hazard recognizer interface.
598 * genattrtab.h: New file.
600 * genattrtab.c: Include genattrtab.h.
601 (attr_printf, check_attr_test, make_internal_attr,
602 make_numeric_value): Move protypes into genattrtab.h. Define them
604 (num_dfa_decls): New global variable.
605 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
606 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
607 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
608 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
610 * genautomata.c: New file.
612 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
614 * sched-int.h: (curr_state): Add the external definition for
615 automaton pipeline interface.
616 (haifa_insn_data): Add comments for members blockage and units.
618 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
619 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
620 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
621 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
622 TARGET_SCHED_DFA_POST_CYCLE_INSN,
623 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
624 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
626 (TARGET_SCHED): Use the new macros.
628 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
629 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
630 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
631 dfa_bubble): New members in gcc_target.sched.
633 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
634 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
635 (insn_queue): Redefine it as pointer to array.
636 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
638 (max_insn_queue_index_macro_value): New variable.
639 (curr_state, dfa_state_size, ready_try): New varaibles for
641 (ready_element, ready_remove, max_issue): New function prototypes
642 for automaton interface.
643 (choose_ready): New function prototype.
644 (insn_unit, blockage_range): Add comments.
645 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
646 FUNCTION_UNITS_SIZE == 0.
647 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
648 actual_hazard, potential_hazard): Add comments.
649 (insn_cost): Use cost -1 as undefined value. Remove
650 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
652 (ready_element, ready_remove): New functions for automaton
654 (schedule_insn): Add new code for automaton pipeline interface.
655 (queue_to_ready): Add new code for automaton pipeline interface.
656 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
657 (debug_ready_list): Print newline when the queue is empty.
658 (max_issue): New function for automaton pipeline interface.
659 (choose_ready): New function.
660 (schedule_block): Add new code for automaton pipeline interface.
661 Print ready list before scheduling each insn.
662 (sched_init): Add new code for automaton pipeline interface.
663 Initiate insn cost by -1.
664 (sched_finish): Free the current automaton state and finalize
665 automaton pipeline interface.
667 * sched-rgn.c: Include target.h.
668 (init_ready_list, new_ready, debug_dependencies): Add new code for
669 automaton pipeline interface.
671 * sched-vis.c: Include target.h.
672 (get_visual_tbl_length): Add code for automaton interface.
673 (target_units, print_block_visualization): Add comments.
675 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
676 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
677 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
678 (getruntime.o, genautomata.o): New entries.
679 (genattrtab.o): Add new dependency file genattrtab.h.
680 (genattrtab): Add new dependencies. Link it with `libm.a'.
681 (getruntime.o, hashtab.o): New entries for canadian cross.
683 * doc/md.texi: Description of automaton based model.
685 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
687 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
688 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
689 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
690 TARGET_SCHED_DFA_POST_CYCLE_INSN,
691 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
692 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
693 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
695 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
696 MAX_DFA_ISSUE_RATE): New macro descriptions.
698 * doc/contrib.texi: Add dfa based scheduler contribution.
700 * doc/gcc.texi: Add more information about genattrtab.
702 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
704 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
705 adjust_address_nv call.
707 2002-04-29 Janis Johnson <janis187@us.ibm.com>
709 * doc/install.texi (Testing): Provide additional information, and
710 a stronger encouragement, for running the testsuites.
712 2002-04-29 DJ Delorie <dj@redhat.com>
714 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
717 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
719 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
720 Solaris 2 <widec.h> if missing.
721 * fixinc/fixincl.x: Regenerate.
722 * fixinc/tests/base/widec.h: New file.
724 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
726 * toplev.c (f_options): Add "profile" switch so that
727 -fno-profile can be used to disable -p.
729 2002-04-29 Bernd Schmidt <bernds@redhat.com>
731 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
733 * tree.c (build_common_tree_nodes_2): Likewise.
734 * tree.h (enum tree_index): Likewise.
735 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
737 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
739 (init_mmx_sse_builtins): Initialize SSE2 builtins.
740 (ix86_expand_builtin): Add support for SSE2 builtins.
741 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
742 (VALID_SSE_REG_MODE): Use it.
743 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
744 (enum ix86_builtins): Add SSE2 builtins.
745 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
746 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
747 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
748 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
749 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
750 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
751 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
752 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
753 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
754 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
755 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
756 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
757 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
758 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
759 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
760 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
761 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
762 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
763 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
764 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
765 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
766 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
767 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
768 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
769 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
770 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
771 lfence_insn): New patterns.
772 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
773 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
775 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
777 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
779 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
781 * doc/contrib.texi (Contributors): Add Paolo Carlini and
783 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
784 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
785 and CPU instead of cpu.
787 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
789 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
791 (lang_independent_options): Add -fif-conversion, -fif-conversion2
792 (rest_of_compilation): Do if conversion only when asked for.
793 (parse_options_and_default_flags): Set new variables to 1 for -O1
794 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
796 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
798 * i386.c (dbx64_register_map): Fix typo.
800 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
802 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
803 real_one_half, real_bb_freq_max): New static variables.
804 (debug_profile_bbauxs): Kill.
805 (process_note_predictions): Kill unused variable.
806 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
808 (propagate_freq): Use REAL_ARITHMETICS.
809 (estimate_bb_frequencies): Likevise; init new static variables.
810 * Makefile.in (predict.o): Add dependency on real.h
812 2002-04-28 David S. Miller <davem@redhat.com>
815 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
816 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
817 several {reads,writes} instead.
818 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
821 2002-04-27 David S. Miller <davem@redhat.com>
824 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
827 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
828 including signal.h and sys/ucontext.h, not needed.
830 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
832 * varasm.c (output_constant_def): Correct test for not calling
833 ENCODE_SECTION_INFO for INTEGER_CST.
835 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
837 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
838 keep most cases as function eval_token.
839 (eval_token): New function.
840 (_cpp_parse_expr): Read token here for improved diagnostics.
841 Don't use op_as_text. Detect bad ':' here.
842 (reduce): Don't detect bad ':' here.
843 (op_as_text): Remove.
844 * cpphash.h (_cpp_test_assertion): Change prototype.
845 * cpplib.c (_cpp_test_assertion): Change prototype.
847 2002-04-28 Richard Henderson <rth@redhat.com>
850 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
851 (ggc_mark_rtx_children): New.
853 2002-04-28 Jakub Jelinek <jakub@redhat.com>
856 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
857 after call peepholes for UltraSPARC.
858 (call + jump 64-bit peepholes): Remove.
860 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
863 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
864 result as temporary value.
866 2002-04-28 Jakub Jelinek <jakub@redhat.com>
869 * toplev.c (rest_of_compilation): Only run regrename and copy
870 propagation if optimizing.
872 2002-04-28 Jakub Jelinek <jakub@redhat.com>
875 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
876 register of REGNO_DECL (i).
877 * Makefile.in (reload1.o): Add $(TREE_H).
879 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
881 * cppexp.c (lex): Update to use state.skip_eval.
882 (struct op): Remove prio and flags members.
883 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
884 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
885 (LEFT_ASSOC): New macro.
886 (optab): New table of operator priorities and flags.
888 (_cpp_parse_expr): Clean up logic. Return bool. Use a
889 malloc-ed parser stack.
890 (reduce): New; reduce the operator stack.
891 (_cpp_expand_op_stack): Expand the operator stack as necessary.
892 * cpphash.h (struct op): Predeclare.
893 (struct cpp_reader): New members op_stack, op_limit.
894 (struct lexer_state): New member skip_eval.
895 (_cpp_parse_expr): Update.
896 (_cpp_expand_op_stack): New.
897 * cpplib.c (do_if): Update.
898 * cppinit.c (cpp_create_reader): Create op stack.
899 (cpp_destroy): And destroy it.
900 * cpplib.h (CPP_LAST_CPP_OP): Correct.
901 (TTYPE_TABLE): Correct.
903 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
906 * c-decl.c (duplicate_decls): Call merge_weak.
907 * c-pragma.c (apply_pragma_weak): Warn about misuse.
908 * output.h (merge_weak): Prototype merge_weak.
909 * varasm.c (merge_weak): New function.
910 (declare_weak): Make sure we don't give an error on VAR_DECLs.
911 Mark RTL with SYMBOL_REF_WEAK.
913 2002-04-27 Kurt Garloff <garloff@suse.de>
915 * tree-inline.c (inlinable_function_p): Improve heuristics
916 by using a smoother function to cut down allowable inlinable size.
917 * param.def: Add parameters max-inline-insns-single,
918 max-inline-slope, min-inline-insns that determine the exact
919 shape of the above function.
922 2002-04-26 Richard Henderson <rth@redhat.com>
924 * c-parse.in (malloced_yyss, malloced_yyvs): New.
925 (yyoverflow): Re-add. Set them.
926 (free_parser_stacks): New.
927 * c-common.h: Declare it.
928 * c-lex.c (c_common_parse_file): Call it.
930 2002-04-26 Richard Henderson <rth@redhat.com>
932 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
935 2002-04-26 Eric Christopher <echristo@redhat.com>
938 * config/mips/mips.c (mips_issue_rate): Define. New function.
939 (TARGET_SCHED_ISSUE_RATE): Use.
941 2002-04-25 David S. Miller <davem@redhat.com>
944 * reorg.c (optimize_skip): Do not allow exception causing
945 instructions to be considered for delay slots.
946 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
947 (relax_delay_slots): Do not try to consider exception causing
948 instructions as redundant.
950 2002-04-26 Richard Henderson <rth@redhat.com>
953 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
955 2002-04-26 Mark Mitchell <mark@codesourcery.com>
958 * config/i386/i386.md (untyped_call): Return the value in a float
959 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
962 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
964 * tree.c (tree_int_cst_lt): Compare constants whose types differ
965 in unsigned-ness correctly.
967 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
969 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
970 portable runtime model.
972 2002-04-26 Richard Henderson <rth@redhat.com>
974 * c-parse.in (yyoverflow): Revert.
976 2002-04-26 David Edelsohn <edelsohn@gnu.org>
977 Richard Henderson <rth@redhat.com>
979 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
980 result as temporary value.
982 2002-04-26 Richard Henderson <rth@redhat.com>
985 * c-common.c (fix_string_type): Split out of ...
986 (combine_strings): ... here. Take a varray, not a tree list.
987 (c_expand_builtin_printf): Use fix_string_type.
988 * c-common.h: Update decls.
989 * c-parse.in (string): Remove. Update all uses to use STRING
990 instead, and not call combine_strings.
993 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
994 (build_asm_stmt): Likewise.
995 * objc/objc-act.c (my_build_string): Use fix_string_type.
996 (build_objc_string_object): Build varray for combine_strings.
998 2002-04-26 Bo Thorsen <bo@suse.co.uk>
1000 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
1003 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
1005 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
1006 (HAVE_NO_R_OPERAND): Remove.
1007 (HAVE_VALUE): Remove.
1008 (op_to_prio): Update.
1009 (UNARY): Don't alter flags.
1010 (_cpp_parse_expr): want_value used to indicate whether
1011 a number or unary operator is expected next. Distinguish
1012 unary and binary +/-.
1013 (op_as_text): Update for unary operators.
1015 2002-04-25 Richard Henderson <rth@redhat.com>
1018 * c-parse.in (yyoverflow): New.
1020 2002-04-25 Richard Henderson <rth@redhat.com>
1023 * c-common.c (shorten_compare): Simplfy conditions leading to
1024 the generation of a warning.
1026 2002-04-25 Richard Henderson <rth@redhat.com>
1029 * expmed.c (extract_bit_field): Fall through to generic code rather
1030 than aborting on subreg special case.
1032 2002-04-25 David S. Miller <davem@redhat.com>
1034 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
1035 for DECL being NULL.
1037 2002-04-25 Steve Christiansen <smc@us.ibm.com>
1039 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
1041 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
1043 * c-decl.c (grokdeclarator): Remove outdated ??? note
1044 on invalid declaration of flexible array members.
1046 2002-04-25 Richard Henderson <rth@redhat.com>
1048 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
1050 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
1052 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
1053 needed by the compiler, even if they are used as global regs.
1055 2002-04-25 Matt Hiller <hiller@redhat.com>
1057 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
1059 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
1060 of the corresponding functions.
1061 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
1064 2002-04-25 Matt Hiller <hiller@redhat.com>
1066 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
1068 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
1069 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
1070 registers, adjust comment accordingly.
1071 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
1072 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
1073 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
1074 for coprocessor registers.
1075 (ADDITIONAL_REGISTER_NAMES): Include
1076 ALL_COP_ADDITIONAL_REGISTER_NAMES.
1078 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
1079 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
1080 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
1081 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
1082 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
1084 (mips_char_to_class): Adjust comment to include coprocessor
1087 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
1089 (mips_reg_names, mips_regno_to_class): Include coprocessor
1091 (mips_sw_reg_names): Ditto, make non-static.
1092 (mips_move_1word): Handle moves to and from coprocessor registers.
1093 (mips_move_2words): Handle moves to and from coprocessor
1095 (mips_class_max_nregs, mips_register_move_cost): Handle
1096 coprocessor register classes.
1097 (override_options): Initialize mips_char_to_class and
1098 mips_hard_regno_mode_ok properly for coprocessor registers.
1100 * config/mips/mips.md (movdi_internal, movdi_internal2,
1101 movsi_internal1, movsi_internal2): Add constraint-sets for
1102 coprocessor registers.
1103 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
1104 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
1106 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
1107 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
1109 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
1110 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
1112 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
1113 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
1116 * doc/tm.texi: Document feature.
1118 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
1120 * integrate.c (function_attribute_inlinable_p): Simplify.
1121 Check the table pointer is not NULL.
1123 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
1125 * doc/c-tree.texi: Fix typo in introduction.
1127 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
1129 * c-common.h (c_common_parse_file): Update.
1130 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1131 * c-lex.c (YYDEBUG): Get from c-lex.h.
1132 (c_common_parse_file): Update.
1133 * c-lex.h (YYDEBUG, yydebug): New.
1134 * c-parse.in (YYDEBUG): Get from c-lex.h.
1135 (c_set_yydebug): Remove.
1136 * c-tree.h (c_set_yydebug): Remove.
1137 * langhooks-def.h (lhd_do_nothing_i): New.
1138 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
1139 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
1140 * langhooks.c (lhd_do_nothing_i): New.
1141 (lhd_set_yydebug): Remove.
1142 * langhooks.h (struct lang_hooks): Update.
1143 * toplev.c (set_yydebug): New.
1144 (compile_file): Update call to parse_file hook.
1145 (decode_d_option): Update.
1147 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1149 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
1151 * loop.c (load_mems): Don't change the interface of called functions.
1153 * calls.c (expand_call): Take current_function_pretend_args_size
1154 into account when setting argblock for sibcalls.
1156 2002-04-24 Matt Hiller <hiller@redhat.com>
1158 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
1161 * cpplex.c (skip_line_comment): Process comment one multibyte
1162 character at a time rather than one char at a time, if
1164 (parse_string): Process string one multibyte character at a time
1165 rather than one char at a time, if appropriate.
1166 * c-lex.c (lex_string): Lex and copy multibyte strings
1168 * cpplib.h (cppchar_t): Change to unsigned.
1170 2002-04-24 Richard Henderson <rth@redhat.com>
1173 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
1176 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
1178 * sh.c (sh_va_arg): If argument was passed by reference,
1179 dereference the pointer.
1181 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
1183 * sh.md (divsi3_i4_media): Use match_operand for input values
1184 rather than hard registers.
1185 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1186 unnecessarily through hard registers. Keep copies of pseudo
1187 registers outside of the libcall sequence.
1189 * sh.md (casesi_shift_media): Add modes.
1191 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
1194 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
1196 * attribs.c (c_common_attribute_table): Move table and handlers
1198 (format_attribute_table, lang_attribute_table,
1199 lang_attribute_common): Remove.
1200 (init_attributes): Replace NULL pointers with pointers to the
1202 (handle_packed_attribute, handle_nocommon_attribute,
1203 handle_common_attribute, handle_noreturn_attribute,
1204 handle_noinline_attribute, handle_always_inline_attribute,
1205 handle_used_attribute, handle_unused_attribute,
1206 handle_const_attribute, handle_transparent_union_attribute,
1207 handle_constructor_attribute, handle_destructor_attribute,
1208 handle_mode_attribute, handle_section_attribute,
1209 handle_aligned_attribute, handle_weak_attribute,
1210 handle_alias_attribute, handle_visibility_attribute,
1211 handle_no_instrument_function_attribute, handle_malloc_attribute,
1212 handle_no_limit_stack_attribute, handle_pure_attribute,
1213 handle_deprecated_attribute, handle_vector_size_attribute,
1214 vector_size_helper): Move to c-common.c.
1215 * c-common.c (c_common_attribute_table,
1216 handle_packed_attribute, handle_nocommon_attribute,
1217 handle_common_attribute, handle_noreturn_attribute,
1218 handle_noinline_attribute, handle_always_inline_attribute,
1219 handle_used_attribute, handle_unused_attribute,
1220 handle_const_attribute, handle_transparent_union_attribute,
1221 handle_constructor_attribute, handle_destructor_attribute,
1222 handle_mode_attribute, handle_section_attribute,
1223 handle_aligned_attribute, handle_weak_attribute,
1224 handle_alias_attribute, handle_visibility_attribute,
1225 handle_no_instrument_function_attribute, handle_malloc_attribute,
1226 handle_no_limit_stack_attribute, handle_pure_attribute,
1227 handle_deprecated_attribute, handle_vector_size_attribute,
1228 vector_size_helper): Move from attribs.c.
1229 * c-common.h (c_common_attribute_table,
1230 c_common_format_attribute_table): New.
1231 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1232 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1233 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
1234 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
1235 (LANG_HOOKS_INITIALIZER): Update.
1236 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
1237 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
1238 * target.h: Update comment.
1239 * tree.c (default_target_attribute_table): Remove.
1240 * tree.h (default_target_attribute_table, format_attribute_table,
1241 lang_attribute_table, lang_attribute_common): Remove.
1243 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1244 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1246 2002-04-24 Jason Merrill <jason@redhat.com>
1248 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
1249 * dwarf2out.c (dwarf_attr_name): Support it.
1250 (gen_array_type_die): Emit it.
1251 (lookup_type_die): No special handling for VECTOR_TYPE.
1252 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
1254 2002-04-24 Richard Henderson <rth@redhat.com>
1256 * config/mips/mips.md (movdi_usd): Renumber.
1258 2002-04-24 David S. Miller <davem@redhat.com>
1261 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
1262 32-bit Sparc and current_function_returns_struct is true.
1264 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
1266 * loop.c (canonicalize_condition): Use gen_int_mode.
1268 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
1270 * config/rs6000/altivec.h: Cleanup file. Add non individual
1292 (vec_vcmpequb): New.
1293 (vec_vcmpequh): New.
1294 (vec_vcmpequw): New.
1295 (vec_vcmpeqfp): New.
1296 (vec_vcmpgefp): New.
1297 (vec_vcmpgtub): New.
1298 (vec_vcmpgtsb): New.
1299 (vec_vcmpgtuh): New.
1300 (vec_vcmpgtsh): New.
1301 (vec_vcmpgtuw): New.
1302 (vec_vcmpgtsw): New.
1303 (vec_vcmpgtfp): New.
1304 (vec_vcmpgefp): New.
1309 (vec_vexptefp): New.
1314 (vec_lde): Add vector float variant.
1319 (vec_vmhaddshs): New.
1341 (vec_vmladduhm): New.
1342 (vec_vmhraddshs): New.
1344 (vec_vmsummbm): New.
1345 (vec_vmsumuhm): New.
1346 (vec_vmsumshm): New.
1347 (vec_vmsumuhs): New.
1348 (vec_vmsumshs): New.
1357 (vec_vnmsubfp): New.
1375 (vec_vrsqrtefp): New.
1386 (vec_vspltisb): New.
1387 (vec_vspltish): New.
1388 (vec_vspltisw): New.
1413 (vec_vsum4ubs): New.
1414 (vec_vsum4sbs): New.
1415 (vec_vsum4shs): New.
1416 (vec_vsum2sws): New.
1427 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
1430 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
1431 added literals from substracted literals.
1432 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
1433 (fold) [associate]: Preserve MINUS_EXPR if needed.
1435 2002-04-23 Zack Weinberg <zack@codesourcery.com>
1437 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
1440 2002-04-23 Tom Tromey <tromey@redhat.com>
1442 * gcc.c: Added --resource. For PR java/6314.
1444 2002-04-23 David O'Brien <obrien@FreeBSD.org>
1446 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
1447 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
1450 2002-04-23 David O'Brien <obrien@FreeBSD.org>
1452 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
1454 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
1456 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
1458 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
1459 (ix86_expand_clrstr): Fix typo.
1460 * loop.c (gen_load_of_final_value): New.
1461 (loop_givs_rescan, strength_reduce, check_dbra_loop):
1464 2002-04-23 Roger Sayle <roger@eyesopen.com>
1466 * builtins.c (builtin_memset_gen_str): New function.
1467 (expand_builtin_memset): Optimize the case of constant length, but
1470 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
1472 * config/rs6000/altivec.h (vec_step): Remove extraneous
1474 (vec_ctu): Cast return.
1476 2002-04-23 Alan Modra <amodra@bigpond.net.au>
1479 * function.h: (struct function): Add profile_label_no field.
1480 (current_function_profile_label_no): Define.
1481 * function.c: (profile_label_no): New static var.
1482 (expand_function_start): Increment it, and copy to
1483 current_function_profile_label_no.
1484 * output.h (profile_label_no): Delete.
1485 * final.c (profile_label_no): Delete.
1486 (profile_function): Use current_function_profile_label_no.
1487 (final_end_function): Don't increment profile_label_no here.
1488 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
1489 profile_label_no with current_function_profile_label_no.
1490 * config/pa/pa.c (current_function_number): Delete.
1491 (pa_output_function_prologue): Don't output profile label here.
1492 (hppa_profile_hook): Use label_no param rather than
1493 current_function_number.
1494 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
1495 * config/pa/pa.h: .. here.
1496 (FUNCTION_PROFILER): Output profile label here.
1498 2002-04-22 Eric Christopher <echristo@redhat.com>
1500 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
1501 patch of 2002-04-09 due to binutils issues.
1502 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
1504 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
1506 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
1507 constraint to 'o' for m=r and r=m alternatives.
1508 ("*movv8hi_internal1"): Same.
1509 ("*movv16qi_internal1"): Same.
1510 ("*movv4sf_internal1"): Same.
1512 2002-04-22 Janis Johnson <janis187@us.ibm.com>
1514 * rtl.h (RTX_FLAG): New macro.
1515 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
1516 * final.c (alter_subreg): Use macro to access rtx flag.
1517 * integrate.c (copy_rtx_and_substitute): Use new access macro.
1518 * print-rtl.c (print_rtx): Use new access macro.
1520 * cse.c (insert): Check rtx code before accessing flag.
1522 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
1523 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
1524 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
1525 convert_const_symbol_ref, make_canonical, make_alternative_compare,
1526 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
1527 simplify_test_exp, optimize_attrs, simplify_by_exploding,
1528 find_and_mark_used_attributes, unmark_used_attributes,
1529 add_values_to_cover, simplify_with_current_value,
1530 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
1531 copy_rtx_unchanging, main): Use new access macros.
1533 2002-04-22 Tom Rix <trix@redhat.com>
1535 * expmed.c (init_expmed): Generate shifted constant once.
1537 2002-04-22 Zack Weinberg <zack@codesourcery.com>
1539 * c-lex.c (lex_charconst): Call convert to get constant in
1540 proper type; don't just smash the type field.
1543 * config.gcc: Add list of obsolete configurations. Disallow
1544 building these without --enable-obsolete.
1545 * doc/install.texi: Document --enable-obsolete and obsoletion
1546 policy. Mention obsoletion of individual targets in
1549 2002-04-22 Richard Henderson <rth@redhat.com>
1551 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
1553 2002-04-22 Mark Mitchell <mark@codesourcery.com>
1556 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
1557 (walk_fixup_memory_subreg): Likewise.
1558 (fixup_var_refs_insn): Adjust accordingly.
1559 (fixup_var_refs_1): Likewise.
1561 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
1563 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
1564 LIBPATH_ARCH64_SPEC): Define.
1565 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
1566 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
1567 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
1568 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
1570 2002-04-22 Joel Sherrill <joel@OARcorp.com>
1572 * gthr-rtems.h: Correct prototypes to remove warnings.
1574 2002-04-22 Richard Henderson <rth@redhat.com>
1577 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
1579 * gcse.c (free_insn_expr_list_list): New.
1580 (clear_modify_mem_tables): Use it. Fix bit set usage.
1581 (canon_list_insert): Use EXPR_LISTs for expressions.
1582 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
1584 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
1586 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
1587 file change and include code to _cpp_pop_buffer.
1588 * cpphash.h (struct pending_option): Predeclare.
1589 (struct cpp_reader): New member next_include_file.
1590 (_cpp_pop_file_buffer): Update.
1591 (_cpp_push_next_buffer): Update, rename.
1592 * cppinit.c (cpp_destroy): Free include chain and pending here.
1593 (cpp_finish_options): Simplify.
1594 (_cpp_push_next_buffer): Rename and clean up.
1595 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
1597 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
1599 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
1601 * config/rs6000/altivec.h (vec_xor): Add variant for both args
1602 being vector signed int.
1604 (vec_xor): Add variant for both args being vector signed char.
1605 Remove redundant variant.
1608 2002-04-21 David S. Miller <davem@redhat.com>
1610 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
1611 compare mode in output RTL.
1613 2002-04-22 David Edelsohn <edelsohn@gnu.org>
1615 * config/rs6000/rs6000.c (rs6000_override_options): Correct
1616 style and formatting of previous patch.
1618 2002-04-22 Alan Modra <amodra@bigpond.net.au>
1620 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
1621 flag_pic for ABI_AIX.
1623 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
1625 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
1626 * cppfiles.c (read_include_file): Similarly.
1627 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
1628 uxstrdup ustrchr, ufputs): Similarly.
1629 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
1630 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
1631 cpp_ideq, parse_identifier, parse_number): Similarly.
1632 * cpplib.c (struct directive, dequote_string, D, run_directive,
1633 cpp_push_buffer): Similarly.
1634 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
1635 _cpp_create_definition, check_trad_stringification,
1636 cpp_macro_definition): Similarly.
1638 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
1640 * cppmacro.c (funlike_invocation_p): Don't step back
1643 2002-04-21 David Edelsohn <edelsohn@gnu.org>
1645 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
1648 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
1650 * doc/invoke.texi: Remove Chill references.
1651 * doc/gcc.texi: Update last modified date.
1653 2002-04-20 Kazu Hirata <kazu@hxi.com>
1655 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
1656 push and pop. Replace add.l with add.w.
1658 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1660 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
1661 multiply instructions for H8/300H case.
1663 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1665 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
1666 Bum three instructions from each routine.
1668 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
1670 * Makefile.in: Update.
1671 * decl.c (push_c_function_context, pop_c_function_context,
1672 mark_c_function_context): Rename for consistency.
1673 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
1674 * c-tree.h (push_c_function_context, pop_c_function_context,
1675 mark_c_function_context): Rename for consistency.
1676 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1677 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1678 * function.c (init_lang_status, save_lang_status,
1679 restore_lang_status, mark_lang_status, free_lang_status):
1680 Move to langhooks.h.
1681 (push_function_context_to, pop_function_context_from,
1682 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
1684 * function.h (init_lang_status, save_lang_status,
1685 restore_lang_status, mark_lang_status, free_lang_status):
1686 Move to langhooks.h.
1687 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
1688 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
1689 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
1690 LANG_HOOKS_FUNCTION_INITIALIZER): New.
1691 (LANG_HOOKS_INITIALIZER): Update.
1692 (lhd_do_nothing_f): New.
1693 * langhooks.h (struct lang_hooks_for_functions): New.
1694 (struct lang_hooks): New hooks.
1695 * langhooks.c (lhd_do_nothing_f): New.
1697 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1698 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1700 2002-04-19 David S. Miller <davem@redhat.com>
1702 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
1703 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
1705 2002-04-19 Jakub Jelinek <jakub@redhat.com>
1707 PR optimization/3756
1708 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
1709 x = ((int) y < 0) ? cst1 : cst2.
1711 2002-04-19 Jakub Jelinek <jakub@redhat.com>
1714 * function.c: Reapply patch for c/6358.
1715 (expand_function_end): Copy decl_rtl's mode, not
1716 current_function_return_rtx mode.
1718 2002-04-19 Joel Sherrill <joel@OARcorp.com>
1720 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
1723 2002-04-19 Tom Tromey <tromey@redhat.com>
1725 * doc/install.texi (Specific): Update status of Solaris 2.8.
1728 2002-04-19 Andreas Schwab <schwab@suse.de>
1730 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
1731 (PUT_REAL): Restore old definition.
1733 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
1734 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1736 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
1737 binutils 2.11.2 and higher generate smaller binaries than Sun's
1740 2002-04-19 Mark Mitchell <mark@codesourcery.com>
1743 * toplev.c (rest_of_compilation): Do not defer functions for which
1744 TREE_SYMBOL_REFERENCED has already been set.
1746 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
1748 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
1751 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
1753 * builtins.c: Include langhooks.h.
1754 (lang_type_promotes_to): Remove.
1755 (expand_builtin_va_arg): Use new hook.
1756 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
1757 (simple_type_promotes_to): Move to c-typeck.c.
1758 * c-common.h (simple_type_promotes_to): Remove.
1759 * c-decl.c (duplicate_decls, grokdeclarator): Update.
1760 * c-format.c: Include langhooks.h.
1761 (check_format_types): Update.
1762 * c-tree.h (c_type_promotes_to): New.
1763 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
1764 (type_lists_compatible_p): Update.
1765 * langhooks-def.h (lhd_type_promotes_to): New.
1766 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
1767 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1768 * langhooks.c (lhd_type_promotes_to): New.
1769 * langhooks.h (struct lang_hooks_for_types): New hook.
1770 * tree.h (lang_type_promotes_to): Remove.
1772 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
1774 2002-04-18 Richard Henderson <rth@redhat.com>
1776 * function.c: Revert patch for c/6358.
1778 2002-04-18 Richard Henderson <rth@redhat.com>
1780 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
1781 blocks. Handle multiple references to the TRAP block. Handle
1782 non-adjacent THEN and OTHER blocks.
1784 2002-04-18 Richard Henderson <rth@redhat.com>
1786 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
1787 crash with no type for by-mode libcalls.
1789 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
1791 2002-04-18 Bob Wilson <bob.wilson@acm.org>
1793 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
1794 __xtensa_nonlocal_goto): Use a syscall instructions to flush
1795 the register windows.
1797 2002-04-18 Zack Weinberg <zack@codesourcery.com>
1799 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
1800 appropriate. Document need for extended precision even when
1801 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
1802 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
1803 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
1804 instead of relying on later syntax error when REAL_WIDTH > 5.
1805 * real.c: Define NE based only on whether or not we have a
1806 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
1807 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
1808 define GET_REAL and PUT_REAL as simple memcpy operations; no
1809 need to byteswap or round.
1810 Use #error instead of #ifdef-ing out the entire file, for
1811 prompt error detection.
1813 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
1815 2002-04-18 David S. Miller <davem@redhat.com>
1817 * config/sparc/sparc.h (BRANCH_COST): Define.
1819 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
1822 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
1824 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
1825 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
1826 propagate_block calls after relaxation loop using new variable
1827 stabilized_prop_flags.
1829 2002-04-18 Richard Henderson <rth@redhat.com>
1831 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
1832 (ia64_va_arg): Expect variable sized types by reference.
1833 * config/ia64/ia64-protos.h: Update.
1834 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
1835 ia64_function_arg_pass_by_reference.
1837 2002-04-18 Richard Henderson <rth@redhat.com>
1839 * ifcvt.c: Include except.h.
1840 (block_has_only_trap): Break out from find_cond_trap.
1841 (find_cond_trap): Use it. Always delete the trap block.
1842 (merge_if_block): Allow then block null. Be less simplistic about
1843 what insns can end a block.
1844 * Makefile.in (ifcvt.o): Depend on except.h.
1846 * config/ia64/ia64.md (trap, conditional_trap): New.
1848 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1851 * function.c (assign_parms): Assign hard current_function_return_rtx
1853 (expand_function_end): ...not here.
1855 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
1857 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1858 * c-tree.h (c_incomplete_type_error): New.
1859 * c-typeck.c (require_complete_type, build_component_ref): Update.
1860 (incomplete_type_error): Rename.
1861 * langhooks-def.h (lhd_incomplete_type_error): New.
1862 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
1863 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1864 * langhooks.c (lhd_incomplete_type_error): New.
1865 * langhooks.h (struct lang_hooks_for_types): New hook.
1866 * tree.c (size_in_bytes): Use new hook.
1867 * tree.h (incomplete_type_error): Remove.
1869 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1871 2002-04-18 Zack Weinberg <zack@codesourcery.com>
1873 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
1874 TARGET_FLOAT_FORMAT blocks.
1876 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1878 * doc/install.texi (Downloading the source): Do not mention Chill
1879 any longer, but mention Ada.
1880 (Configuration): Do not mention Chill any longer.
1882 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
1884 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
1886 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
1888 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
1891 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1893 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
1894 instead of unsigned_type.
1896 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
1898 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
1899 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
1902 2002-04-18 Bernd Schmidt <bernds@redhat.com>
1904 * attribs.c (vector_type_node_list): New static variable.
1905 (handle_vector_size_attribute): Use it to avoid generating a
1906 new type node each time we are called.
1908 * combine.c (subst): Avoid trying to make a vector mode subreg of
1909 an integer constant.
1910 (gen_lowpart_for_combine): Likewise.
1912 2002-04-18 Roger Sayle <roger@eyesopen.com>
1913 Jakub Jelinek <jakub@redhat.com>
1915 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
1916 for integer constant c (if x has unsigned type or sign bit is not
1917 set in c). This folds the zero/sign extension into the bit-wise and
1920 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1923 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
1926 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
1928 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
1930 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
1932 * gcc.c (read_specs): Detect and fail if an attempt is made to
1933 rename a spec string to an already existing string.
1935 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1937 * config/s390/s390.c (legitimize_pic_address): Do not generate
1938 illegal address constant without CONST.
1940 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1942 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
1943 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1945 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1947 PR optimization/6305
1948 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
1949 to make sure previous reloads are taken into account. Generate
1950 better code if one operand is an in-range immediate constant.
1952 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
1954 * doc/install.texi (Building): libgcj requires GNU make.
1956 2002-04-17 Jakub Jelinek <jakub@redhat.com>
1959 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
1960 even if hard quad and register is not floating.
1961 (movtf reg<-mem split): Disallow splitting if hard quad and
1962 register is floating.
1963 (movtf mem<-reg split): Likewise.
1964 * config/sparc/sparc.c (fp_register_operand): New predicate.
1965 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
1967 2002-04-17 Zack Weinberg <zack@codesourcery.com>
1969 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
1970 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
1971 (unprotoize.o): Ditto. Build from protoize.c. Define
1972 UNPROTOIZE on command line.
1973 * protoize.c: Include cppdefault.h. Delete include_defaults.
1974 (in_system_include_dir): Use cpp_include_defaults (defined in
1976 * unprotoize.c: Delete file.
1978 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
1980 * config/rs6000/altivec.h (vec_ld): Add array variants.
1984 2002-04-17 Alan Matsuoka <alanm@redhat.com>
1985 Aldy Hernandez <aldyh@redhat.com>
1987 * config/rs6000/altivec.h: Define __ALTIVEC__.
1994 Add parentheses to all macro arguments.
1996 2002-04-16 Richard Henderson <rth@redhat.com>
1999 * except.c (remove_eh_handler): Insert inner regions at beginning
2000 of sibling chain. Refactor expressions.
2002 2002-04-16 Richard Henderson <rth@redhat.com>
2004 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
2005 * config/sparc/sol2-gas-bi.h: New file.
2006 * config.gcc (sparc*-solaris): Add it as needed.
2007 * configure.in (AS_SPARC64_FLAG): Remove check.
2008 * config.in, configure: Regenerate.
2010 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
2012 2002-04-16 Richard Henderson <rth@redhat.com>
2014 * config/mips/mips.c (override_options): Don't override N32 for
2018 * config/mips/mips.md (can_delay): Split out of existing define_delays.
2019 (HILO_delay): Set can_delay false.
2021 2002-04-16 Dale Johannesen <dalej@apple.com>
2023 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
2024 instruction addresses.
2025 (rs6000_output_function_epilogue): Likewise.
2027 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
2029 * c-parse.in (poplevel, compstmt_start,
2030 compstmt_primary_start): Add ending ';', in accordance
2033 2002-04-16 Richard Henderson <rth@redhat.com>
2035 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
2036 Adjust tm_file order to get TARGET_DEFAULT set properly.
2037 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
2038 * doc/install.texi (sparc-solaris): Update.
2040 2002-04-16 Dale Johannesen <dalej@apple.com>
2042 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
2043 comparison operands do not match each other or if modes of
2044 conditions do not match result.
2046 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
2049 * config/s390/s390.md (mulsidi3): Set both subregs of the
2052 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
2054 * config/rs6000/altivec.h (vec_addc): Type check.
2056 2002-04-16 Jakub Jelinek <jakub@redhat.com>
2059 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
2061 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
2063 2002-04-15 Richard Henderson <rth@redhat.com>
2065 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
2066 call_really_used_regs too.
2068 2002-04-15 Richard Henderson <rth@redhat.com>
2070 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
2072 2002-04-15 David S. Miller <davem@redhat.com>
2074 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
2077 2002-04-16 Jakub Jelinek <jakub@redhat.com>
2080 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
2081 CONST_VECTOR is { 0, ... 0 }.
2083 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
2085 * doc/install.texi (Installing GCC: Configuration): Clarify
2086 the only supported ways to configure gcc.
2088 2002-04-15 Roland McGrath <roland@frob.com>
2090 * config.gcc (alpha*-*-gnu*): New target configuration.
2091 * config/alpha/gnu.h: New file for it.
2092 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
2094 2002-04-16 Mark Mitchell <mark@codesourcery.com>
2096 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
2097 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
2098 * tree.h (expand_start_stmt_expr): Update prototype.
2099 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
2100 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
2101 on the STMT_EXPR created for the inline function.
2103 2002-04-15 Richard Henderson <rth@redhat.com>
2105 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
2106 config/i386/linux-aout.h, config/i386/linux-oldld.h,
2107 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
2108 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
2109 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
2110 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
2111 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
2112 Define __gnu_linux__, not gnu_linux.
2113 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
2115 2002-04-15 Mark Mitchell <mark@codesourcery.com>
2117 Remove Chill front end.
2118 * gcc.c (default_compilers): Remove Chill entries.
2119 * ch: Remove directory.
2120 * doc/frontends.texi: Remove information about Chill.
2121 * doc/sourcebuild.texi: Likewise.
2122 * doc/standards.texi: Likewise.
2124 2002-04-15 Douglas B Rupp <rupp@gnat.com>
2126 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
2127 (LONGLONG_STANDALONE): Define.
2129 2002-04-15 David S. Miller <davem@redhat.com>
2131 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
2132 Call emit_library_call with LCT_NORMAL.
2133 (sparc_initialize_trampoline): Use LCT_foo instead of
2134 magic constant in emit_library_call invocations.
2135 (sparc64_initialize_trampoline): Likewise.
2136 (sparc_profile_hook): Likewise.
2137 * config/sparc/sparc.md: Likewise.
2139 * config/sparc/sparc.c (sparc_extra_constraint_check):
2140 Fix type of argument 'c'.
2141 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
2144 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
2146 * diagnostic.h (output_buffer_state): Redefine.
2147 (output_format_decoder): New macro.
2148 (output_prefixing_rule): Likewise.
2149 (output_line_cutoff): Likewise.
2150 (diagnostic_format_decoder): Adjust.
2151 (diagnostic_prefixing_rule): Likewise.
2152 (diagnostic_line_cutoff): Likewise.
2153 (diagnostic_state): Likewise.
2154 (diagnostic_kind_count): Likewise.
2155 (diagnostic_buffer): Now a macro.
2157 * diagnostic.c (diagnostic_buffer): Remove definition.
2158 (output_is_line_wrapping): Adjust.
2159 (set_real_maximum_length): Likewise.
2160 (output_set_maximum_length): Likewise.
2161 (init_output_buffer): Likewise.
2162 (lhd_print_error_function): Likewise.
2163 (output_do_verbatim): Likewise.
2165 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
2167 * cpperror.c (print_location): Don't print include chain
2169 (cpp_begin_message): Update to use DL_ macros.
2170 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2171 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2172 cpp_notice, cpp_notice_from_errno): Remove.
2173 (cpp_error, cpp_error_with_line): Update to take a diagnostic
2176 * cppexp.c (CPP_ICE): Remove.
2177 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
2178 lex, integer_overflow, _cpp_parse_expr): Update.
2179 * cppfiles.c (read_include_file, find_include_file,
2180 handle_missing_header, _cpp_read_file, remap_filename): Update.
2181 * cpphash.h (enum error_type): Remove.
2182 (_cpp_begin_message): Update.
2183 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
2184 cpp_handle_option, cpp_post_options): Update.
2185 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
2186 skip_whitespace, parse_identifier, parse_slow, parse_string,
2187 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
2188 cpp_interpret_charconst): Update.
2189 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
2190 lex_macro_node, do_undef, glue_header_name, parse_include,
2191 do_include_common, read_flag, do_line, do_linemarker, do_ident,
2192 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
2193 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
2194 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
2195 _cpp_pop_buffer, do_diagnostic): Update.
2196 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
2197 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
2198 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2199 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2200 cpp_notice, cpp_notice_from_errno): Remove.
2201 (cpp_error, cpp_error_with_line): Update to take a diagnostic
2204 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
2205 collect_args, enter_macro_context, save_parameter, parse_params,
2206 _cpp_create_definition, check_trad_stringification,
2207 cpp_macro_definition): Update.
2208 * cppmain.c (cpp_preprocess_file): Update.
2209 * fix-header.c (read_scan_file): Update.
2211 2002-04-14 Andreas Schwab <schwab@suse.de>
2213 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
2215 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
2217 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
2219 2002-04-13 Mark Mitchell <mark@codesourcery.com>
2221 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
2224 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
2226 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
2228 2002-04-13 Joel Sherrill <joel@OARcorp.com>
2230 * config/sparc/t-elf: Enable v8 multilibs. Impacts
2231 sparc-elf and sparc-rtems targets.
2233 2002-04-13 Mark Mitchell <mark@codesourcery.com>
2235 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
2236 defined, and __gnu_hurd__ wherever __GNU__ is defined.
2237 * arm/linux-elf.h: Likewise.
2238 * cris/aout.h: Likewise.
2239 * cris/linux.h: Likewise.
2240 * i370/linux.h: Likewise.
2241 * i386/gnu.h: Likewise.
2242 * i386/linux-aout.h: Likewise.
2243 * i386/linux-oldld.h: Likewise.
2244 * i386/linux.h: Likewise.
2245 * i386/linux64.h: Likewise.
2246 * ia64/linux.h: Likewise.
2247 * m68k/linux-aout.h: Likewise.
2248 * m68k/linux.h: Likewise.
2249 * mips/linux.h: Likewise.
2250 * pa/pa-linux.h: Likewise.
2251 * pj/linux.h: Likewise.
2252 * rs6000/sysv4.h: Likewise.
2253 * s390/linux.h: Likewise.
2254 * sh/linux.h: Likewise.
2255 * sparc/linux-aout.h: Likewise.
2256 * sparc/linux.h: Likewise.
2257 * sparc/linux64.h: Likewise.
2258 * xtensa/linux.h: Likewise.
2260 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
2262 * stmt.c (check_unique_operand_names): Expect operand names to
2263 be strings rather than identifiers. Use simple_cst_equal to
2265 (resolve_operand_name_1): Make same identifier to string change here.
2266 * c-parse.in (asm_operand): Convert a named operand into a string.
2267 * cp/parse.y (asm_operand): Likewise.
2269 2002-04-13 Andreas Schwab <schwab@suse.de>
2271 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
2273 2002-04-12 Mark Mitchell <mark@codesourcery.com>
2275 Revert these changes:
2277 2002-04-06 Mark Mitchell <mark@codesourcery.com>
2280 * stor-layout.c (layout_decl): Reset the RTL for the decl.
2282 2002-04-12 Richard Henderson <rth@redhat.com>
2284 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
2285 (sparc*-*-solaris): Clean up header files.
2286 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
2287 and plan on generating 64-bit code.
2288 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
2289 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
2290 * config/sparc/sol2-sld-64.h: Rename ...
2291 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
2292 for AS_SPARC64_FLAG not defined.
2293 * config/sparc/sol2-gld-bi.h: New.
2294 * config/sparc/sol2-sld.h: Remove.
2295 * config/sparc/sol26-sld.h: New.
2296 * config/sparc/sol2.h: Tidy comments.
2297 * doc/install.texi: Document sparc-solaris configury changes.
2299 2002-04-12 Richard Henderson <rth@redhat.com>
2301 * recog.c (offsettable_address_p): Match the logic in adjust_address.
2303 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
2304 in 64-bit mode only. Use only for 32-bit or MEDLOW.
2306 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2308 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
2310 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
2312 * pa.c (pa_can_combine_p): Call extract_insn before calling
2315 2002-04-12 Douglas B Rupp <rupp@gnat.com>
2317 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
2318 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
2319 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2320 (CPP_PREDEFINES): Handle __declspec.
2321 * config/i386/t-interix (USER_H): Remove.
2323 2002-04-12 DJ Delorie <dj@redhat.com>
2325 * integrate.c (compare_blocks): Make comparisons safe for when
2326 sizeof(int) < sizeof(char *).
2327 (find_block): Likewise.
2329 2002-04-12 Jan Hubicka <jh@suse.cz>
2330 David Edelsohn <edelsohn@gnu.org>
2332 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
2334 (symbol_ref_operand): New.
2335 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
2336 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
2338 2002-04-12 Andreas Schwab <schwab@suse.de>
2340 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
2341 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
2342 overrides the definition in config/svr4.h.
2344 2002-04-12 Eric Norum <eric.norum@usask.ca>
2346 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
2347 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
2348 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
2349 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
2350 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
2351 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
2352 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
2353 definitions to config/rtems.h and make the targets more similar.
2355 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2357 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
2358 POINTERS_EXTEND_UNSIGNED.
2359 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
2360 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
2362 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
2365 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
2367 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
2368 depends on TARGET_SHMEDIA, not TARGET_SH5.
2370 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
2372 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
2373 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
2375 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
2377 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
2380 2002-04-12 Andreas Schwab <schwab@suse.de>
2382 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
2384 2002-04-12 Richard Henderson <rth@redhat.com>
2387 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
2389 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
2390 modes spanning multiple hard regs.
2392 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
2394 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2396 * pa.c (pa_output_function_prologue): Don't accumulate the total
2397 number of code bytes when using TARGET_64BIT, or gas, SOM and not
2398 the portable runtime.
2399 (output_deferred_plabels): Handle 64bit plabels.
2400 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
2401 generating pic code using the GAS assembler for object formats that
2402 are not SOM (ie., ELF32 and ELF64).
2403 (output_millicode_call): Check attribute type if attribute length is 28.
2404 Likewise use $PIC_pcrel$0. Only call get_attr_length and
2405 dbr_sequence_length once.
2406 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
2407 dbr_sequence_length once.
2408 * pa.h (TARGET_SOM): Define if not defined.
2409 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
2410 with GAS and not SOM.
2411 (jump, call_internal_reg, call_value_internal_reg): Likewise.
2412 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
2414 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2416 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
2417 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
2418 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
2419 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
2420 elfos.h and dbxelf.h values are fine now.
2421 * config/i386/freebsd.h, config/alpha/freebsd.h
2422 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
2424 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2426 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
2427 or set Acpu or Amachine. Reformat.
2428 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2430 (LINK_SPEC): Do not need to undef.
2431 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
2432 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
2433 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2435 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
2436 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
2437 (LINK_SPEC): Do not need to undef.
2438 (DONT_USE_BUILTIN_SETJMP): Do not define.
2439 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
2440 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
2441 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
2442 Remove trailing spaces.
2443 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
2444 __ELF__, or set Acpu or Amachine. Reformat.
2445 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2448 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2450 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
2451 all other *-*-freebsd* targets.
2453 2002-04-11 Richard Henderson <rth@redhat.com>
2455 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
2457 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2459 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
2460 Include {cpu}/{cpu}.h thru tm_file.
2461 (alpha*-*-linux*ecoff): Remove target.
2462 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
2463 (LINK_SPEC): Remove, is not OS independent.
2464 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
2465 (LINK_SPEC): Do not need to #undef any longer.
2466 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
2468 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
2470 (LINK_SPEC): Moved here from alpha/elf.h.
2471 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
2473 * config/alpha/linux-ecoff.h: Remove.
2474 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
2475 (CPP_SPEC): Define _POSIX_SOURCE as needed.
2476 (CPP_SUBTARGET_SPEC): Do not define.
2477 (LINK_SPEC): Do not need to #undef any longer.
2478 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
2479 * config/alpha/vms.h: Likewise.
2481 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
2483 * doc/extend.texi: Remove old claim that typedefs cannot have
2484 an alignment attribute.
2486 2002-04-11 Jakub Jelinek <jakub@redhat.com>
2488 PR optimization/6177
2489 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
2490 bitpos is 0 and bitsize CONCAT size.
2492 2002-04-11 Jakub Jelinek <jakub@redhat.com>
2495 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
2497 2002-04-10 David O'Brien <obrien@FreeBSD.org>
2499 * config/alpha/freebsd.h: Minor reformatting.
2500 (CPP_SPEC): Define ELF and add cpp_subtarget.
2501 (ASM_SPEC): No longer needed.
2503 2002-04-11 Richard Henderson <rth@redhat.com>
2505 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
2506 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
2507 (dimode mem/zero splitter): New.
2509 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
2511 * config/cris/cris.c (cris_override_options): Tweak error message
2512 for PIC not implemented.
2514 * config/cris/cris.h: Tweak comments related to parameter-passing.
2516 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
2518 2002-04-10 Richard Henderson <rth@redhat.com>
2520 * except.c (add_ehl_entry): Allow duplicates after landing pad
2523 2002-04-10 David Edelsohn <edelsohn@gnu.org>
2525 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
2527 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
2529 * c-decl.c (c_init_decl_processing): Move generation of
2530 decls for g77_integer_type_node and friends from here ...
2531 * c-common.c (c_common_nodes_and_builtins): ... to here.
2533 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
2535 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
2536 is only used as frame pointer when frame_pointer_needed is true.
2538 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
2541 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
2542 for the fact that the pool entry uses two words.
2543 (movdf_hard_insn): Similarly. Also, ADR instruction can span
2545 (movdf_soft_insn): Similarly.
2546 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
2547 for the fact that the pool entry uses three words.
2549 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
2551 * config/mips/mips.c (mips_va_arg): When using the struct version
2552 of the EABI va_list, allow arguments in the register save area to
2553 take up less room than a stack argument.
2555 2002-04-10 Richard Henderson <rth@redhat.com>
2557 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
2558 if EXPAND_INITIALIZER.
2560 2002-04-09 Richard Henderson <rth@redhat.com>
2562 * config/alpha/alpha.md (movdi_er_maybe_g): New.
2563 * config/alpha/alpha.c (alpha_expand_mov): Use it.
2565 2002-04-10 Alan Modra <amodra@bigpond.net.au>
2567 PR optimization/6233
2568 * rtlanal.c (pure_call_p): New function.
2569 * rtl.h (pure_call_p): Declare.
2570 * loop.c (prescan_loop): Use it to set has_nonconst_call.
2571 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
2573 2002-04-09 Eric Christopher <echristo@redhat.com>
2575 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
2576 information to .comm directive.
2578 2002-04-09 Richard Henderson <rth@redhat.com>
2581 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
2583 2002-04-09 Richard Henderson <rth@redhat.com>
2585 * basic-block.h (flow_delete_block_noexpunge): Declare.
2586 (expunge_block_nocompact): Declare.
2587 * cfg.c (expunge_block_nocompact): Split out from ...
2588 (expunge_block): ... here.
2589 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
2590 (flow_delete_block_noexpunge): Split out from ...
2591 (flow_delete_block): ... here.
2592 * cfgcleanup.c (delete_unreachable_blocks): Compact while
2593 removing dead blocks.
2594 * except.c (exception_handler_labels): Remove.
2595 (exception_handler_label_map): New.
2596 (struct eh_region): Add aka member.
2597 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
2598 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
2599 (for_each_eh_label, for_each_eh_label_1): New.
2600 (init_eh): Register exception_handler_label_map.
2601 (free_eh_status): Use free_region.
2602 (find_exception_handler_labels): Use the map, not the list.
2603 (remove_exception_handler_label): Likewise.
2604 (maybe_remove_eh_handler): Likewise.
2605 (remove_eh_handler): Use the region aka bitmap.
2606 * except.h (exception_handler_labels): Remove.
2607 (for_each_eh_label): Declare.
2608 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
2609 * loop.c (invalidate_loops_containing_label): New.
2610 (find_and_verify_loops): Use it. Use for_each_eh_label.
2611 * sched-rgn.c (is_cfg_nonregular): Use
2612 current_function_has_exception_handlers.
2614 2002-04-09 Richard Henderson <rth@redhat.com>
2616 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
2617 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
2618 Do not return changed status.
2619 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
2620 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
2621 New functions that do return changed status.
2622 * sbitmap.h: Update decls.
2623 * gcse.c, lcm.c: Use _cg functions as needed.
2625 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2627 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
2628 (sh64-*-elf*, sh-*-rtemself*): Likewise.
2629 * config/sh/embed_bb.c: New file.
2630 * config/sh/embed-elf.h: New file.
2631 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
2632 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
2633 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2635 (SUBTARGET_CPP_PTR_SPEC): Don't define.
2636 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
2637 Add subtarget_asm_endian_spec.
2638 (ASM_SPEC): Use subtarget_asm_endian_spec.
2639 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
2640 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
2641 (WCHAR_UNSIGNED): Define.
2642 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
2643 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2644 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
2646 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
2647 (sh_adjust_cost): Likewise.
2648 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2650 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
2651 (WCHAR_TYPE_SIZE): Likewise.
2652 (ASM_SPEC): Use subtarget_asm_endian_spec.
2653 (SH_ELF_WCHAR_TYPE): #undef/ #define.
2654 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
2655 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
2656 (MAX_WCHAR_TYPE_SIZE): Don't #define .
2657 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
2658 (USER_LABEL_PREFIX): Don't #undef /#define .
2659 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2660 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
2661 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
2662 (ASM_SPEC): Likewise.
2663 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
2664 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
2665 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
2666 (LIB2FUNCS_EXTRA): Define.
2667 * t-sh64 (LIB2FUNCS_EXTRA): Define.
2668 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
2669 (LIB1ASMFUNCS_CACHE): Define.
2670 (LIB2FUNCS_EXTRA): Redefine empty.
2672 2002-04-08 Richard Henderson <rth@redhat.com>
2674 * reorg.c (get_branch_condition): Use reversed_comparison_code.
2676 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2678 * config/m68hc11/larith.asm (__map_data_section): Fix condition
2679 and optimize for size.
2680 (__do_global_ctors): Fix pointer comparison.
2681 (__do_global_dtors): Likewise.
2683 2002-04-09 David S. Miller <davem@redhat.com>
2685 * config/sparc/sparc.c (sparc_extra_constraint_check): New
2686 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
2687 allow reloading pseudos.
2688 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
2689 * config/sparc/sparc-protos.h: Declare it.
2691 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
2692 unsigned comparison warning.
2693 (output_restore_regs): Mark leaf_function as unused.
2695 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2697 * expr.c (is_aligning_offset): New function.
2698 (expand_expr, case COMPONENT_EXPR): Call it.
2700 2002-04-08 David S. Miller <davem@redhat.com>
2703 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
2705 Make init_priority work on Sparc when using GNU ld.
2706 * config/sparc/linux.h, config/sparc/linux64.h,
2707 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
2708 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
2709 * config/sparc/sol2-gld.h: New file to do the same.
2710 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
2711 sparc/sol2-gld.h to tm_file.
2713 PR optimization/4328
2714 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
2715 * doc/md.texi: Document it.
2716 * config/sparc/sparc.md (movdi_insn_sp64_novis,
2717 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
2718 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
2719 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
2720 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
2722 2002-04-08 Andreas Jaeger <aj@suse.de>
2724 * stmt.c (expand_asm_operands): Revert last patch from Richard
2727 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2729 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
2730 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
2732 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2734 * doc/contrib.texi (Contributors): Add David O'Brien.
2736 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2738 * configure.in (auto-build.h): Use target_alias and build_alias
2739 when running configure.
2740 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
2741 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
2742 * configure: Regenerate.
2744 2002-04-07 David S. Miller <davem@redhat.com>
2746 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
2748 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
2751 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
2752 generating 32-bit pic code.
2754 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
2756 * cppinit.c (cpp_create_reader): Initialize
2757 discard_comments_in_macro_exp.
2758 (COMMAND_LINE_OPTIONS): Add "-CC" option.
2759 (cpp_handle_option): Handle "-CC" option.
2760 * cpplex.c (save_comment): If saving a C++ comment in
2761 a directive, convert it to a C comment.
2762 (_cpp_lex_direct): Pass second comment start character to
2763 save_comment to indicate comment type.
2764 * cpplib.c (_cpp_handle_directive): If processing
2765 a "#define" directive and discard_comments_in_macro_exp
2766 is false, re-enable saving of comments.
2767 (lex_macro_node): If discard_comments_in_macro_exp is false,
2768 discard any comments before the macro identifier.
2769 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
2771 * cppmacro.c (cpp_get_token): If expanding a macro while
2772 processing a directive, discard any comments we might encounter.
2773 (parse_params): If discard_comments_in_macro_exp is false,
2774 ignore comments in the macro parameter list.
2775 * gcc.c (cpp_unique_options): Add "-CC" option.
2776 (option_map): Map "--comments-in-macros" to "-CC".
2777 * doc/cppopts.texi: Document "-CC" option.
2778 * f/lang-specs.h: Add "-CC" option.
2779 * testsuite/gcc.dg/cpp/maccom1.c: New test.
2780 * testsuite/gcc.dg/cpp/maccom2.c: New test.
2781 * testsuite/gcc.dg/cpp/maccom3.c: New test.
2782 * testsuite/gcc.dg/cpp/maccom4.c: New test.
2783 * testsuite/gcc.dg/cpp/maccom5.c: New test.
2784 * testsuite/gcc.dg/cpp/maccom6.c: New test.
2786 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2789 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
2791 2002-04-06 Mark Mitchell <mark@codesourcery.com>
2794 * stor-layout.c (layout_decl): Reset the RTL for the decl.
2797 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
2798 RTX_UNCHANGING_P for the functions arguments when a tail call
2801 2002-04-06 Jason Merrill <jason@redhat.com>
2803 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
2804 (parse_options_and_default_flags): Set them appropriately.
2805 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
2807 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
2809 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
2812 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
2815 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
2816 types come in by-reference. Fix typo in comment.
2818 2002-04-05 David S. Miller <davem@redhat.com>
2820 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
2821 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
2822 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
2823 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
2825 2002-04-05 David S. Miller <davem@redhat.com>
2827 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
2828 are not going to emit return instructions, emit at least a nop
2829 for the sake of sane backtraces.
2831 2002-04-05 Richard Henderson <rth@redhat.com>
2833 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
2835 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
2837 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
2839 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
2841 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
2842 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
2843 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
2845 2002-04-05 Andreas Schwab <schwab@suse.de>
2847 * c-convert.c: Include c-common.h.
2848 * Makefile.in (c-convert.o): Updated.
2850 2002-04-05 Jakub Jelinek <jakub@redhat.com>
2852 * mklibgcc.in: Use separate libgcc.map for each multilib.
2853 * Makefile.in (distclean): Don't remove libgcc.map here.
2855 2002-04-05 Jakub Jelinek <jakub@redhat.com>
2857 * Makefile.in (s-mlib): Handle --disable-multilib by separate
2858 genmultilib invocation.
2860 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
2862 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
2863 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
2864 to num_gprs for symmetry.
2865 * config/mips/mips.c: Adjust accordingly.
2867 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
2869 * c-common.c (truthvalue_conversion): Rename, update.
2870 * c-common.h (c_common_truthvalue_conversion): New.
2871 * c-convert.c (convert): Update.
2872 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2873 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
2874 * c-typeck.c (build_binary_op, build_unary_op,
2875 build_conditional_expr): Update.
2876 * fold-const.c (constant_boolean_node, fold): Use langhook.
2877 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
2878 * langhooks.h (struct lang_hooks): New hook.
2879 * stmt.c (expand_decl_cleanup): Use langhook.
2880 * tree.h (truthvalue_conversion): Remove.
2882 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2884 2002-04-05 Alan Modra <amodra@bigpond.net.au>
2886 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
2887 Add rules to make null object file.
2889 2002-04-04 Jim Blandy <jimb@redhat.com>
2891 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
2892 macro formal parameter names.
2894 2002-04-04 David S. Miller <davem@redhat.com>
2896 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
2898 2002-04-04 Richard Henderson <rth@redhat.com>
2901 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
2902 Support copies into and out of memory. Don't accept allows_reg
2903 and allows_mem as gospel.
2905 2002-04-04 Richard Henderson <rth@redhat.com>
2908 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
2909 (write_dependence_p): Likewise.
2911 2002-04-04 Richard Henderson <rth@redhat.com>
2913 * predict.c (estimate_bb_frequencies): Do frequency calculation
2914 with a volatile temporary.
2916 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
2918 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
2920 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2923 * final.c (final_start_function): Don't bump profile_label_no here...
2924 (final_end_function): ...but here.
2926 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2928 * config/sparc/sparc.md (pic): New attribute.
2929 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
2931 (split after do_builtin_setjmp_setup): New.
2933 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2936 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
2939 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2941 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
2942 UNITS_PER_WORD for zero sized aggregates.
2944 2002-04-03 David S. Miller <davem@redhat.com>
2946 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
2947 one-character spec for this, just use %(link_gcc_c_sequence).
2949 2002-04-03 David S. Miller <davem@redhat.com>
2951 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
2954 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
2956 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
2957 (DWARF_FRAME_RETURN_COLUMN): Move.
2958 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2959 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
2960 * pa.c (except.h, predict.h): Include.
2962 (store_reg_modify, set_reg_plus_d): Revise prototypes.
2963 (output_ascii): Add cast.
2964 (store_reg_modify): Revise to add frame notes.
2965 (set_reg_plus_d): Likewise.
2966 (compute_frame_size): Include space for eh data registers in frame if
2967 the current function calls eh_return.
2968 (hppa_expand_prologue): Ensure register %r2 is saved if the current
2969 function calls eh_return. Save eh data registers if the current
2970 function calls eh_return. Fix code to add frame notes. Emit
2971 blockage to prevent insns with frame notes being scheduled in the
2972 delay slot of calls.
2973 (hppa_expand_epilogue): Restore eh data registers and do final stack
2974 adjustment if the current function calls eh_return. Don't add frame
2976 (output_call): Revise for change in length of call insn. Don't do
2977 return pointer adjustment for an unconditional jump in the delay slot
2978 of a call when using frame notes.
2979 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
2980 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
2981 (ARG_POINTER_CFA_OFFSET): Define.
2982 * pa.md (return_external_pic): New pattern.
2983 (prologue): Correct formatting. Use return_external_pic if current
2984 function calls eh_return.
2985 (call_internal_symref, call_value_internal_symref,
2986 sibcall_internal_symref, sibcall_value_internal_symref): Change default
2987 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
2989 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
2991 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
2992 list of targets to check using "nop" insn.
2993 * configure: Rebuilt.
2995 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2997 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
2999 2002-04-03 David S. Miller <davem@redhat.com>
3001 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
3002 library sequence passed to the linker.
3003 (LINK_COMMAND_SPEC): Use it.
3004 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
3005 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
3006 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3008 2002-04-03 Jason Merrill <jason@redhat.com>
3010 * except.c (struct eh_status): Remove protect_list.
3011 (begin_protect_partials, end_protect_partials): Remove.
3012 (add_partial_entry): Remove.
3013 * except.h: Remove prototypes.
3015 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
3016 expand_decl_cleanup_eh.
3019 * tree.h (CLEANUP_EH_ONLY): New macro.
3020 * stmt.c (expand_decl_cleanup_eh): New fn.
3021 (expand_cleanups): Check CLEANUP_EH_ONLY.
3022 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
3023 Use expand_decl_cleanup_eh.
3024 (expand_stmt): Adjust.
3025 * c-common.h: Adjust prototype.
3027 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
3029 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
3030 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
3031 (cris_target_asm_function_epilogue): Ditto.
3032 (cris_initial_frame_pointer_offset): Ditto.
3033 (cris_simple_epilogue): Ditto.
3034 (cris_expand_builtin_va_arg): Variable-size types come in
3037 2002-04-03 David S. Miller <davem@redhat.com>
3039 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
3041 (set_fast_math): Correct 'fsr' type.
3043 2002-04-03 Richard Henderson <rth@redhat.com>
3046 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
3047 * toplev.c (check_global_declarations): Use it.
3048 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
3049 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3050 (LANG_HOOKS_DECLS): Add it.
3051 * langhooks.c (lhd_warn_unused_global_decl): New.
3052 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3053 * c-objc-common.c (c_warn_unused_global_decl): New.
3054 * c-tree.h (c_warn_unused_global_decl): Declare.
3055 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3057 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
3059 * langhooks-def.h (lhd_set_decl_assembler_name,
3060 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
3061 (LANG_HOOKS_INITIALIZER): Update.
3062 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
3063 * langhooks.h (struct lang_hooks): New hook.
3064 * tree.c (set_decl_assembler_name): Move to langhooks.c.
3065 (lang_set_decl_assembler_name): Remove.
3066 (init_obstacks): Don't set hook.
3067 (decl_assembler_name): New function.
3068 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
3069 (decl_assembler_name): New.
3070 (lang_set_decl_assembler_name): Remove.
3072 2002-04-03 Jakub Jelinek <jakub@redhat.com>
3074 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
3075 works properly with .hidden symbols.
3076 * configure: Rebuilt.
3077 * config.in: Rebuilt.
3078 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
3079 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
3080 properly with .hidden symbols.
3082 2002-04-03 Jakub Jelinek <jakub@redhat.com>
3085 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
3088 2002-04-03 Richard Henderson <rth@redhat.com>
3091 * sched-rgn.c (sets_likely_spilled): New.
3092 (sets_likely_spilled_1): New.
3093 (add_branch_dependences): Use it.
3095 2002-04-02 Richard Henderson <rth@redhat.com>
3098 * loop.h (LOOP_FIRST_PASS): New.
3099 * loop.c (strength_reduce): Mind it when deciding to unroll.
3100 * toplev.c (rest_of_compilation): Set it.
3102 2002-04-02 David S. Miller <davem@redhat.com>
3104 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
3105 mems_ok_for_ldd_peep when the order of the loads being examined
3107 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
3108 existing comment to increase comprehension of this situation.
3110 2002-04-02 Zack Weinberg <zack@codesourcery.com>
3112 * config/sh/sh.md: Don't use union real_extract.
3114 2002-04-02 Richard Henderson <rth@redhat.com>
3116 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
3118 2002-04-02 David O'Brien <obrien@FreeBSD.org>
3120 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
3121 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
3122 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
3123 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
3124 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
3125 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
3126 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
3127 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
3128 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
3129 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
3130 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
3131 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
3132 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
3133 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
3134 Include as many configury headers via tm_file as possible. This
3135 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
3136 * config/openbsd-oldgas.h: New file.
3137 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
3138 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
3139 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
3140 config/i386/i386-coff.h, config/i386/i386-interix.h,
3141 config/i386/iscdbx.h, config/i386/linux-aout.h,
3142 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
3143 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
3144 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
3145 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
3146 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
3147 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
3148 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
3149 config/i386/vxi386.h: Do not directly include configury headers.
3150 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
3151 Directly include configury headers that are no longer automatically
3152 included by the above headers.
3153 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
3154 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
3155 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
3156 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
3157 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
3158 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
3159 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
3160 (TARGET_VERSION): Define.
3161 * config/i386/beos-elf.h, config/i386/freebsd.h,
3162 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
3163 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
3164 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
3165 config/i386/sco5.h, config/i386/sysv4.h
3166 (TARGET_VERSION): Do not need to protect.
3167 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
3168 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
3169 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
3170 config/i386/i386-interix.h, config/i386/linux-aout.h,
3171 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
3172 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
3173 (YES_UNDERSCORES): Do not define - not needed.
3174 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
3175 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3176 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
3177 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
3178 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3179 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
3180 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
3181 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
3183 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
3184 Richard Henderson <rth@redhat.com>
3187 * function.c (assign_temp): Accept either type or decl argument.
3188 Detect variables whose size is too large to fit into an integer.
3189 * stmt.c (expand_decl): Pass the decl, not the type.
3191 2002-04-02 David O'Brien <obrien@FreeBSD.org>
3193 * protoize.c: Match include directory usage with cppdefault.c.
3195 2002-04-03 Jeffrey A Law (law@redhat.com)
3196 Hans-Peter Nilsson <hp@bitrange.com>
3198 * combine.c (simplify_comparison): Avoid narrowing a comparison
3199 with a paradoxical subreg when doing so would drop signficant bits.
3201 2002-04-02 Steve Ellcey <sje@cup.hp.com>
3203 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
3204 if POINTERS_EXTEND_UNSIGNED is defined.
3206 2002-04-02 Richard Henderson <rth@redhat.com>
3209 * local-alloc.c (contains_replace_regs): LO_SUM may contain
3212 2002-04-02 Richard Henderson <rth@redhat.com>
3214 * doc/standards.texi: Document required freestanding libc entry points.
3216 2002-04-02 Alan Modra <amodra@bigpond.net.au>
3218 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
3219 associated splitter. Remove MQ constraint.
3220 (ctrdi_internal4): Correct CCmode clobber.
3222 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
3224 * milli64.S ($$dyncall): New function.
3225 * t-linux (LIB1ASMFUNCS): Revise module list.
3226 (LIB1ASMSRC): Use pa/milli64.S.
3228 2002-04-02 Richard Henderson <rth@redhat.com>
3230 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
3231 rename solaris_sys_varargs_h.
3233 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3235 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
3236 the same mode as its component.
3238 2002-04-02 Richard Henderson <rth@redhat.com>
3241 * final.c (this_is_asm_operands): Export.
3242 * output.h (this_is_asm_operands): Declare.
3243 * config/i386/i386.c (print_operand): Error odd asm operands.
3245 2002-04-02 Richard Henderson <rth@redhat.com>
3248 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
3250 2002-04-01 Richard Henderson <rth@redhat.com>
3253 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
3254 * fixinc/fixincl.x: Rebuild.
3256 2002-04-01 Richard Henderson <rth@redhat.com>
3258 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
3259 (atomic_alloc, atomic_free): New.
3260 (SIZE, MASK_FOR, PTR_IN): New.
3261 (emergency_reg_state, emergency_reg_state_free): New.
3262 (emergency_labeled_state, emergency_labeled_state_free): New.
3263 (reg_state_alloced, labeled_state_alloced): New.
3264 (alloc_reg_state, free_reg_state): New.
3265 (alloc_label_state, free_label_state, free_label_states): New.
3266 (push, pop, dup_state_stack, free_state_stack): Use them.
3267 (desc_label_state): Likewise.
3268 (uw_frame_state_for): Free label states and state stack.
3269 (uw_update_reg_address): Eliminate warnings.
3271 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
3273 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
3274 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
3276 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3278 * c-decl.c (grokdeclarator): Update.
3279 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3280 * c-tree.h (c_mark_addressable): New.
3281 * c-typeck.c (default_function_array_conversion, build_unary_op,
3282 build_array_ref, convert_for_assignment): Update.
3283 (mark_addressable): Rename.
3284 * calls.c (try_to_integrate, expand_call): Use langhook.
3285 * expr.c (expand_expr): Use langhook.
3286 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
3287 * langhooks.h (struct lang_hooks): New hook.
3288 * stmt.c (expand_asm_operands): Use langhook.
3289 * tree.h (mark_addressable): Remove.
3291 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3293 2002-04-01 Bob Wilson <bob.wilson@acm.org>
3295 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
3298 2002-04-01 Bob Wilson <bob.wilson@acm.org>
3300 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
3301 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
3303 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3305 * c-common.c (unsigned_conversion_warning, convert_and_check,
3306 unsigned_type, signed_type, shorten_compare,
3307 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
3308 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
3309 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
3311 * c-decl.c (grokdeclarator): Update.
3312 * c-format.c (check_format_types): Update.
3313 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3314 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3315 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
3316 * convert.c (convert_to_integer): Use new hooks.
3317 * expmed.c (make_tree): Use new hooks.
3318 * expr.c (store_expr): Use new hooks.
3319 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
3320 all_ones_mask_p, unextend, fold): Use new hooks.
3321 * langhooks.h (struct lang_hooks_for_types): New hooks.
3322 * tree.h (signed_or_unsigned_type, signed_type,
3323 unsigned_type): Remove.
3325 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3326 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3328 2002-03-31 Richard Henderson <rth@redhat.com>
3330 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
3331 (desc_frgr_mem): Fix reference to f16-f31.
3333 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3335 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
3336 RTVEC_ELT): Const-ify.
3337 * varray.h (VARRAY_CHECK): Const-ify.
3338 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
3339 ggc_mark_rtvec, ggc_mark): Const-ify.
3341 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3343 * diagnostic.c: Include langhooks-def.h.
3344 * Makefile.in (diagnostic.o): Update.
3346 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
3348 * c-common.c (c_unsafe_for_reeval): Rename.
3349 * c-common.h (c_unsafe_for_reeval): Rename.
3350 * c-decl.c (finish_incomplete_decl): Rename.
3351 (c_init_decl_processing): Don't set langhook.
3352 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3353 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3354 * c-objc-common.c (c_objc_common_init): Don't set langhook.
3355 * c-tree.h (finish_incomplete_decl): Rename.
3356 * langhooks-def.h (lhd_unsafe_for_reeval): New.
3357 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
3358 (LANG_HOOKS_INITIALIZER): Update.
3359 * langhooks.c (lhd_unsafe_For_reeval): New.
3360 * langhooks.h (struct langhooks): New hooks.
3361 * toplev.c (incomplete_decl_finalize_hook): Remove.
3362 (wrapup_global_declarations): Update.
3363 * tree.c (lang_unsafe_for_reeval): Remove.
3364 (unsafe_for_reeval): Update.
3365 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
3368 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3369 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3371 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
3373 * diagnostic.c (print_error_function): Remove.
3374 (default_print_error_function): Rename.
3375 (report_error_function): Update.
3376 * diagnostic.h (print_error_function): Remove.
3377 (default_print_error_function): Remove.
3378 * langhooks-def.h (struct diagnostic_context): Predeclare.
3379 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
3380 (LANG_HOOKS_INITIALIZER): Update.
3381 * langhooks.h (struct diagnostic context): Predeclare.
3382 (struct lang_hooks): New hook.
3384 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3386 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
3387 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
3389 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
3390 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
3391 of PIC_OFFSET_TABLE_REGNUM thruout.
3392 * config/rs6000/rs6000.md: Likewise.
3393 * config/rs6000/darwin.h: Likewise.
3395 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3397 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
3398 unsigned HOST_WIDE_INT, not unsigned int.
3400 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3402 PR middle-end/6096, middle-end/6098, middle-end/6099
3403 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
3405 (fill_slots_from_thread): Likewise.
3407 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3409 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
3410 floating fields in float regs.
3411 (function_arg_record_value_2): Likewise.
3413 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
3415 * config/mmix/mmix.md (define_constants): Remove misleading
3416 FIXME. Add MMIX_fp_rO_OFFSET.
3417 ("nonlocal_goto_receiver"): Don't have stack-frame address of
3418 saved rO as part of the pattern. Remove FIXME.
3419 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
3420 here, at output-time.
3422 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3425 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
3427 (output_v9branch): Likewise.
3429 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
3431 * gcc.c: Revert previous patch for now.
3432 * config/i386/djgpp.h: Likewise.
3434 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
3436 * config/mmix/crti.asm (_init): Register _fini with atexit.
3437 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
3439 2002-03-31 Richard Henderson <rth@redhat.com>
3442 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
3443 (ASM_OUTPUT_DEF_FROM_DECLS): New.
3445 2002-03-31 Richard Henderson <rth@redhat.com>
3447 * libgcc2.c (__bb_exit_func): Make static.
3449 * config/alpha/alpha.md (trap): New.
3451 2002-03-31 Richard Henderson <rth@redhat.com>
3453 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
3454 promoted argument types; build trap.
3455 (expand_builtin_trap): New.
3456 (expand_builtin): Use it.
3457 * stmt.c (expand_nl_goto_receivers): Likewise.
3458 * expr.h (expand_builtin_trap): Declare.
3459 * libfuncs.h (LTI_abort, abort_libfunc): New.
3460 * optabs.c (init_optabs): Init abort_libfunc.
3462 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
3464 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
3465 (LINK_COMMAND_SPEC): ... from here.
3466 (init_gcc_specs): Duplicate it here too, omitting
3467 shared_name in the second copy.
3468 (init_spec): Test for duplicate
3469 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
3471 2002-03-30 David S. Miller <davem@redhat.com>
3473 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3474 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
3476 2002-03-30 Roger Sayle <roger@eyesopen.com>
3477 Richard Henderson <rth@redhat.com>
3479 * regmove.c (combine_stack_adjustments_for_block): Avoid
3480 emitting a stack adjustment of zero bytes. Let delete_insn
3483 2002-03-30 Richard Henderson <rth@redhat.com>
3485 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
3486 (sparc_emitting_epilogue): New.
3487 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
3488 * config/sparc/sparc-protos.h: Update.
3489 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
3490 (TARGET_SWITCHES): Update.
3491 * config/sparc/sparc.md (return): Remove.
3492 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
3493 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
3494 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
3495 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3496 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
3497 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
3498 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
3499 Remove MASK_EPILOGUE.
3500 * doc/invoke.texi: Update.
3502 2002-03-30 Daniel Berlin <dan@dberlin.org>
3504 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
3505 CPP will start the file for us.
3507 2002-03-30 Richard Henderson <rth@redhat.com>
3510 * config/ia64/ia64.c (group_barrier_needed_p): Special case
3511 prologue_allocate_stack.
3512 (ia64_single_set): Use insn codes for recognition of special
3513 cases, not rtl matching.
3514 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
3516 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
3518 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
3520 2002-03-30 Richard Henderson <rth@redhat.com>
3523 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
3524 or -fomit-frame-pointer with profiling.
3525 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3526 (FUNCTION_PROFILER): Do nothing.
3527 (PROFILE_HOOK): New.
3528 * config/sparc/sparc.c (sparc_override_options): Don't check
3529 code models for profiling.
3530 (sparc_function_profiler): Remove.
3531 (sparc_profile_hook): New.
3532 * config/sparc/sparc-protos.h: Update.
3534 2002-03-30 Jakub Jelinek <jakub@redhat.com>
3536 PR optimization/6086
3537 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
3538 of SUBREG of volatile MEM or because the MEM was mode dependent,
3539 return CLOBBER instead of unmodified SUBREG.
3541 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
3543 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
3544 when not optimizing.
3546 * toplev.c (rest_of_compilation): Cann mark_constant_function
3547 only when optimizing.
3549 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
3552 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
3553 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
3554 (try_optimize_cfg): clear all AUX fields.
3556 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
3557 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
3558 (ix86_address_cost): Be prepared for SUBREGed registers.
3559 (legitimate_address_p): Accept SUBREGed registers.
3561 2002-03-29 Richard Henderson <rth@redhat.com>
3564 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
3566 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3568 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
3569 for aggregate and TFmode types.
3571 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
3573 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
3575 2002-03-29 Richard Henderson <rth@redhat.com>
3578 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
3579 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
3581 2002-03-29 Richard Henderson <rth@redhat.com>
3584 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
3585 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
3586 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
3587 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
3589 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
3591 2002-03-29 Dale Johannesen <dalej@apple.com>
3593 * loop.c (combine_movables): Do allow combination of pseudos.
3595 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
3597 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
3598 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
3599 No functional change except ...
3600 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
3601 * doc/install.texi (*-*-freebsd*): Document port configuration.
3603 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
3605 * Makefile.in (convert.o, calls.o, expmed.o): Update.
3606 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
3608 * builtin-types.def (BT_PTRMODE): Update.
3609 * c-common.c (type_for_size): Rename c_common_type_for_size.
3610 (type_for_mode): Similarly.
3611 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
3613 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
3614 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
3615 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
3617 * c-typeck.c (common_type, comptypes, default_conversion):
3619 * calls.c: Include langhooks.h.
3620 (emit_library_call_value_1): Use new hooks. Avoid redundant
3622 * convert.c: Include langhooks.h
3623 (convert_to_pointer, convert_to_integer): Use new hooks.
3624 * except.c (init_eh): Similarly.
3625 * expmed.c: Include langhooks.h.
3626 (expand_mult_add): Use new hooks.
3627 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
3628 try_casesi): Similarly.
3629 * fold-const.c (optimize_bit_field_compare, make_range,
3630 decode_field_reference, fold_truthop, fold): Similarly.
3631 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
3632 put_var_into_stack): Similarly.
3633 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
3634 LANG_HOOKS_TYPE_FOR_SIZE): New.
3635 (LANG_HOOKS_TYPES_INITIALIZER): Update.
3636 * langhooks.h (lang_hooks_for_types): New hooks.
3637 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
3638 * tree.c (get_unwidened, get_narrower): Similarly.
3639 * tree.h (type_for_mode, type_for_size): Remove.
3640 * varasm.c (force_const_mem): Use new hooks.
3641 * utils2.c (nonbinary_modular_operation): Update.
3643 * objc-act.c (handle_impent): Update.
3644 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
3647 2002-03-29 Steve Ellcey <sje@cup.hp.com>
3649 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
3650 * config/ia64/ia64.c (basereg_operand): New.
3651 * config/ia64/ia64-protos.h (basereg_operand): Declare.
3652 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
3654 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
3656 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
3657 unwind information when frame_pointer_needed.
3658 (mmix_assemble_integer): Tweak wording in comment.
3660 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
3662 * Makefile.in (except.o): Update.
3663 * except.c: Include langhooks.h.
3664 (init_eh): Use langhook.
3665 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
3666 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
3667 (LANG_HOOKS_INITIALIZER): Update.
3668 * langhooks.h (lang_hooks_for_types): New.
3669 (struct lang_hooks): Add it.
3670 * tree.c (make_lang_type_fn, make_lang_type): Remove.
3671 * tree.h (make_lang_type_fn, make_lang_type): Remove.
3673 * alpha/alpha.c: Include langhooks.h.
3674 (alpha_build_va_list): Use langhook.
3675 * d30v/d30v.c: Include langhooks.h.
3676 (d30v_build_va_list): Use langhook.
3677 * i386/i386.c: Include langhooks.h.
3678 (ix86_build_va_list): Use langhook.
3679 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
3680 * s390/s390.c: Include langhooks.h.
3681 (s390_build_va_list): Use langhook.
3682 * stormy16/stormy16.c: Include langhooks.h.
3683 (stormy16_build_va_list): Use langhook.
3685 2002-03-29 Jakub Jelinek <jakub@redhat.com>
3688 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
3690 (length): Compute variable length for branches/calls/jumps here.
3691 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
3692 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
3693 define branch_type attribute.
3694 (divsi3_sp32): Maximum length is 6 not 7.
3695 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
3696 call_address_untyped_struct_value_sp32,
3697 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
3698 * config/sparc/sparc.c (empty_delay_slot): New function.
3699 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
3700 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
3702 2002-03-29 Jakub Jelinek <jakub@redhat.com>
3704 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
3705 nonzero_bits if not needed.
3706 (nonzero_bits) [XOR]: Likewise.
3707 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
3708 reg_last_set_mode and mode are both MODE_INT, but not equal.
3709 (record_value_for_reg): Compute reg_last_set_nonzero_bits
3710 in nonzero_bits_mode for MODE_INT modes.
3712 2002-03-28 Richard Henderson <rth@redhat.com>
3715 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
3716 to GAS. Correct drift between alternatives.
3718 2002-03-28 Richard Henderson <rth@redhat.com>
3721 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
3723 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
3725 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
3726 emulation to the linker.
3728 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
3730 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
3731 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3733 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
3735 * combine.c (simplify_and_const_int): Make sure to apply mask
3736 when force_to_mode returns a constant integer. PR3311.
3738 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3740 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
3742 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3744 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
3745 and Objective-C Dialect Options.
3747 2002-03-28 Richard Henderson <rth@redhat.com>
3749 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
3750 comparison should be done vs !=0 not >0 return code. Tidy cases.
3752 2002-03-28 Richard Henderson <rth@redhat.com>
3754 * c-decl.c (finish_function): New arg can_defer_p. Pass it
3755 on to c_expand_body.
3756 * c-tree.h (finish_function): Update decl.
3757 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
3759 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
3761 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
3763 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
3765 * rtlanal.c: Include flags.h
3766 (may_trap_p): Do not mark FP operations if trapping
3767 if !flag_trapping_math
3768 * Makefile.in (rtlanal.o): Add dependency on flag.h
3769 * ifcvt.c (noce_operand_ok): Avoid the lameness.
3771 2002-03-27 Zack Weinberg <zack@codesourcery.com>
3773 * mips.md: Use dconst1, not 1.0, as first argument of
3774 REAL_VALUE_LDEXP. Don't use union real_extract.
3776 2002-03-28 Alan Modra <amodra@bigpond.net.au>
3778 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
3779 rather than $target. Heed program_prefix and
3780 program_transform_name. Search for gas in cross-compiler case too.
3781 "test -x" rather than "test -f".
3782 (gcc_cv_ld): Likewise.
3783 (gcc_cv_nm): Heed program_prefix and program_transform_name.
3784 (gcc_cv_objdump): Likewise.
3785 * configure: Regenerate.
3787 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3789 * Makefile.in (attribs.o): Update.
3790 * attribs.c: Include langhooks.h.
3791 (decl_attributes): Use langhook.
3792 * c-decl.c (insert_default_attributes): Rename.
3793 * c-tree.h (c_insert_default_attributes): New.
3794 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
3795 (LANG_HOOKS_INITIALIZER): Update.
3796 * langhooks.h (struct lang_hooks): New hook.
3797 * tree.h (insert_default_attributes): Remove.
3799 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
3801 2002-03-27 Andreas Schwab <schwab@suse.de>
3803 * config/i386/i386.c (classify_argument): Also check for
3806 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3808 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
3811 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
3813 * i960.md (ret): Set PC.
3814 (nonlocal_goto): Fix expander.
3815 * builtins.c (epxand_builin_longjmp): Check that we've emitted
3818 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
3820 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
3823 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3825 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
3826 assigning to BLOCK_FOR_INSN directly.
3828 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
3830 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
3832 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3834 * c-common.c (c_expand_expr): Fix prototype.
3835 * c-common.h (c_expand_expr): Always declare, update.
3836 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3837 * c-objc-common.c (c_objc_common_init): No global hook.
3838 * expr.c (expand_expr): Use langhook.
3839 * expr.h (enum expand_modifier): Conditionally declare.
3840 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
3841 (LANG_HOOKS_INITIALIZER): Update.
3842 * langhooks.c (lhd_expand_expr): New.
3843 * langhooks.h (struct lang_hooks): New hook.
3844 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
3845 (lang_independent_init): Don't default hook.
3847 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3849 2002-03-27 Richard Henderson <rth@redhat.com>
3852 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
3853 TARGET_CONST_GP. Simplify conditions.
3855 2002-03-27 Richard Henderson <rth@redhat.com>
3857 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3858 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
3859 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
3861 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
3863 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
3864 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
3865 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
3866 Remove unnecessary masks.
3867 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
3868 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
3869 -mwindows, -mdll switches and their negations.
3871 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3873 * gcc-common.c (lang_mark_false_label_stack): Remove.
3874 * ggc.h (lang_mark_false_label_stack): Similarly.
3876 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
3878 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
3880 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
3881 or __rtems_ is defined.
3883 2002-03-26 Richard Henderson <rth@redhat.com>
3885 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
3886 if a non-trivial load was emitted.
3887 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
3888 in high+extra+low case.
3890 2002-03-26 Richard Henderson <rth@redhat.com>
3892 * config.gcc (sparc*-solaris): Use float_format=sparc.
3894 2002-03-26 Richard Henderson <rth@redhat.com>
3896 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
3897 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
3898 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
3899 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
3900 (WINT_TYPE_SIZE): Fix at 32.
3902 2002-03-26 Richard Henderson <rth@redhat.com>
3904 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
3905 until after eh landing pad generation.
3906 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
3907 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
3909 2002-03-26 Richard Henderson <rth@redhat.com>
3911 * expr.h (ADD_PARM_SIZE): One more convert for INC.
3913 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
3915 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
3916 and warning switches.
3917 (cc1_options): Likewise.
3919 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
3921 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
3922 Restore more of the signal context. Set no_reg_stack_frame.
3923 * config/ia64/unwind-ia64.c (unw_state_record):
3924 Add no_reg_stack_frame, comments.
3925 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
3926 (uw_update_context): Adjust bsp when unwinding from leaf,
3927 but not signal frame.
3929 2002-03-26 David Edelsohn <edelsohn@gnu.org>
3931 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
3933 2002-03-26 Bob Wilson <bob.wilson@acm.org>
3935 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
3937 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
3940 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
3941 "Add a pool_range attribute", which was lost during the ARM/Thumb
3944 2002-03-26 Bob Wilson <bob.wilson@acm.org>
3946 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
3947 a register into the MAC16 accumulator.
3949 2002-03-26 Andrew Cagney <ac131313@redhat.com>
3951 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
3952 (Warning Options): Document -Wswitch-enum.
3953 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
3955 (warn_switch_enum): Define variables.
3956 * flags.h (warn_switch_enum): Declare variables.
3957 * stmt.c (expand_end_case_type): When warn_switch_enum /
3958 -Wswitch-enum, perform switch checks.
3961 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
3963 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
3964 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
3965 (reload_muladdsi_compare0_scratch): Delete.
3967 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
3969 * doc/install.texi (*-*-freebsd*): Update.
3971 2002-03-26 Richard Henderson <rth@redhat.com>
3973 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
3974 (SUB_PARM_SIZE): Cast DEC to ssizetype.
3976 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
3977 types from the normal argument frame.
3979 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
3980 variable sized objects by reference.
3981 (sparc_va_arg): Receive them by reference too.
3983 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
3985 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
3986 code to not restoring global registers.
3988 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
3990 * Makefile.in (ggc-common.o): Update.
3991 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
3992 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3993 * c-tree.h (c_mark_tree): New.
3994 * ggc-common.c: Include langhooks.h.
3995 (gcc_mark_trees): Use new langhook.
3996 * ggc-callbacks.c: Delete file.
3997 * ggc.h (lang_mark_tree): Remove.
3998 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
3999 (LANG_HOOKS_INITIALIZER): Update.
4000 * langhooks.h (struct lang_hooks): New hook.
4002 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4004 2002-03-25 Zack Weinberg <zack@codesourcery.com>
4006 * doc/cpp.texi: Exclude entire Top node from printed manual.
4007 Move option index after directive index. Insert page breaks
4008 before GFDL and concept index. Index environment variables
4009 with command line options.
4010 * doc/cppenv.texi: Use @vtable for environment variable list.
4011 Add paragraph explaining semantics of empty elements in path
4012 variables. Exclude a cross-reference to Fishkill from the
4013 manpage. Remove an unnecessary cross-reference of the entry
4014 right above the referer. Don't use @anchor in text that goes
4016 * doc/cppopts.texi: Cross-reference the environment variables
4017 section, not the specific environment variable, for consistency.
4019 2002-03-25 Richard Henderson <rth@redhat.com>
4021 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
4022 anywhere in the block. Don't refer to insns that have been
4023 removed from the chain. Iterate backward through the new insns.
4024 Don't refer to edges that have been removed.
4026 2002-03-26 Alan Modra <amodra@bigpond.net.au>
4028 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
4029 test for overflow of constant.
4031 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
4034 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
4035 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
4036 these patterns on arm_archv4.
4038 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
4040 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
4043 2002-03-25 Zack Weinberg <zack@codesourcery.com>
4045 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
4046 float_handled, float_handler, float_signal, set_float_handler,
4047 and do_float_handler. Set handler for SIGFPE to crash_signal.
4048 * toplev.h: Don't prototype do_float_handler.
4050 * c-lex.c: Fold parse_float into lex_number. Make warning
4051 about portability of hex float constants more informative, and
4052 don't issue it on top of a syntax error.
4053 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
4055 * real.h: Define REAL_VALUE_ABS here...
4056 * simplify-rtx.c: ... not here. Fold check_fold_consts,
4057 simplify_unary_real, simplify_binary_real, and
4058 simplify_binary_is2orm1 into their callers.
4059 * tree.c: Fold build_real_from_int_cst_1 into caller.
4061 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
4063 * tsystem.h: Include float.h here...
4064 * libgcc2.c: ... not here.
4066 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
4068 Fixes for: PR bootstrap/3591, target/5676
4069 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
4070 defined. Do not disable exceptions or rtti.
4071 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
4072 mcore.h. Disable exceptions and rtti, since they are not
4075 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
4077 * c-decl.c (maybe_build_cleanup): Remove.
4078 * expr.c (expand_expr): Use langhook.
4079 * langhooks-def.h (lhd_return_null_tree,
4080 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
4081 (LANGHOOKS_INITIALIZER): Update.
4082 * langhooks.c (lhd_return_null_tree): New.
4083 * langhooks.h (struct lang_hooks): New hook.
4084 * tree-inline.c (initialize_inlined_parameters): Use langhook.
4085 * tree.h (maybe_build_cleanup): Remove.
4087 2002-03-25 Jakub Jelinek <jakub@redhat.com>
4089 * regrename.c (build_def_use): Move recog_memoized
4090 before extract_insn.
4092 2002-03-25 Jakub Jelinek <jakub@redhat.com>
4095 * expr.c (emit_group_store): Handle storing into CONCAT.
4097 2002-03-25 Jakub Jelinek <jakub@redhat.com>
4099 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
4100 corresponding MATCH_DUP.
4102 2002-03-24 Richard Henderson <rth@redhat.com>
4104 * unroll.c (unroll_loop): Zero label_map.
4106 * gcse.c: Include except.h.
4107 * Makefile.in (gcse.o): Update.
4109 2002-03-24 Richard Henderson <rth@redhat.com>
4111 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
4112 Do resolve_unique_section before shared data clause.
4114 2002-03-24 Richard Henderson <rth@redhat.com>
4116 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
4118 2002-03-24 Richard Henderson <rth@redhat.com>
4120 * recog.c (peephole2_optimize): Split blocks when EH insns are
4121 generated in the middle of a block. Do global life update if
4124 2002-03-24 Richard Henderson <rth@redhat.com>
4126 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
4128 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
4131 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
4132 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
4133 (init_dependency_output): Don't make no_output decision here.
4135 2002-03-24 Andrew Cagney <ac131313@redhat.com>
4137 * stmt.c (check_for_full_enumeration_handling): Remove tests of
4138 warn_switch. Update description.
4139 (expand_end_case_type): Call check_for_full_enumeration_handling
4142 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4144 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
4145 (m68hc11_split_move): Call it to see if the source and destination
4146 operands use the same direction auto inc/dec mode, otherwise make the
4147 source an offsetable memory operand and generate an add.
4149 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4151 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
4152 register for operand 2.
4153 ("*subsi3_zero_extendqi"): Likewise.
4154 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
4155 bits so that it is compatible with a pop.
4156 ("*andhi3_gen"): Likewise.
4157 ("xorhi3"): Likewise.
4159 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
4161 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
4163 (cpp_post_options): ... not here.
4165 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
4166 Aldy Hernandez <aldyh@redhat.com>
4168 Removal of separate preprocessor cpp0.
4170 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
4171 cpp0, install-common): Update.
4172 * c-common.c (flag_preprocess_only): New.
4173 (c_common_init): Preprocess for -E.
4174 * c-common.h (flag_preprocess_only): New.
4175 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
4176 * c-objc-common.c (c_init_decl_processing): Exit quickly
4177 for NULL return from c_common_init.
4178 * cpplib.h (cpp_preprocess_file): New.
4179 * cppmain.c (main, general_init, pfile, progname): Remove.
4180 (do_preprocessing): Rename cpp_preprocess_file, don't call
4181 cpp_finish. Don't close stdout here.
4182 (setup_callbacks): Update prototype.
4183 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
4185 * tradcpp.c (main): Ignore -quiet.
4187 * lang-specs.h (default_compilers): Preprocess with cc1obj.
4189 2002-03-24 Richard Henderson <rth@redhat.com>
4191 PR optimization/5742
4192 * machmode.def: Add inner mode field to complex modes.
4193 * config/mips/mips.c (mips_function_value): Always define. Add
4194 new argument to handle libcalls.
4195 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
4196 (FUNCTION_VALUE): Likewise.
4197 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
4198 * config/mips/mips-protos.h: Update.
4200 2002-03-23 Richard Henderson <rth@redhat.com>
4202 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
4203 * config/sparc/sparc-protos.h: Update.
4204 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
4206 2002-03-23 Richard Henderson <rth@redhat.com>
4208 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
4209 _start or _init begins the text segment.
4211 2002-03-23 David Edelsohn <edelsohn@gnu.org>
4213 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
4214 not HOST_WIDEST_INT.
4215 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
4217 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
4220 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
4221 operand argument to output_return_instruction.
4222 * arm.c (arm_print_operand, case 'd'): If the operand is
4223 const_true_rtx then just return.
4224 (arm_print_operand, case 'D'): If the operand is const_true_rtx
4227 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4229 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
4230 (Warning Options): Document -Wswitch-default.
4231 * toplev.c (W_options): Add -Wswitch-default. Update comment on
4233 (warn_switch_default): Define variable.
4234 (warn_switch): Update comment.
4235 * flags.h (warn_switch_default): Declare variable.
4236 (warn_switch): Update comment.
4237 * stmt.c (expand_end_case): Check for and, when
4238 warn_switch_no_default, warn of a missing default case.
4240 2002-03-23 Alan Modra <amodra@bigpond.net.au>
4242 * real.h (N): Special case 128 bit doubles.
4244 * combine.c (simplify_comparison): When widening modes, ignore
4245 sign extension on CONST_INTs.
4247 2002-03-22 Bob Wilson <bob.wilson@acm.org>
4249 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
4250 passed to adjust_address. Fix comment formatting.
4253 2002-03-22 Zack Weinberg <zack@codesourcery.com>
4255 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
4256 Always make REAL_VALUE_TYPE a struct containing an array of
4257 HOST_WIDE_INT, not a double. Tidy up the code deciding how
4258 big it is. Don't declare or use union real_extract.
4260 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
4261 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
4262 (print_operand), config/arm/arm.c (output_move_double),
4263 config/arm/arm.md (consttable_4, consttable_8),
4264 config/romp/romp.c (output_fpops), config/s390/s390.h
4265 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
4266 (xtensa_output_literal): Don't use union real_extract.
4268 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
4269 (sfmode_constant_to_ulong), config/ns32k/merlin.h
4270 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
4271 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
4272 (PRINT_OPERAND): Don't use local version of union
4275 * config/convex/convex.c (check_float_value), config/vax/vax.c
4276 (vax_float_literal), config/m88k/m88k.md (divdf3),
4277 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
4278 config/pdp11/pdp11.c (output_move_quad): Don't do host
4279 arithmetic on target floating point quantities.
4281 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
4282 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
4284 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
4285 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
4287 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
4288 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
4290 * print-rtl.c (print_rtx): Disable code which needs
4291 floating-point emulator.
4292 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
4293 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
4294 depending on HOST_FLOAT_FORMAT to be defined properly.
4296 * config/1750a/1750a.c (get_double, float_label): Delete.
4297 (print_operand): Delete huge commented-out chunk. Use
4298 REAL_VALUE_TO_DECIMAL.
4299 * config/1750a/1750a-protos.h: Delete prototypes of deleted
4301 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
4303 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
4304 Use REAL_VALUE_TO_DECIMAL as ELF version does.
4305 * config/m88k/m88k.c (real_power_of_2_operand,
4306 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
4307 real_extract out of the union; run the input through
4308 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
4309 from that into the union.
4310 * config/pdp11/pdp11.c (output_move_double): Rearrange
4311 parentheses to make automatic indenter happy.
4313 * doc/tm.texi (Cross-compilation): Rename node to "Floating
4314 Point" and rewrite to describe current situation. Also adjust
4315 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
4317 * doc/rtl.texi: Adjust cross reference.
4319 2002-03-22 Bob Wilson <bob.wilson@acm.org>
4321 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
4322 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
4323 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
4324 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
4325 prevent use of sp as a reload register.
4326 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
4327 non_acc_reg_operand.
4328 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
4329 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
4330 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
4331 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
4333 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
4335 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
4336 * cpplex.c (unterminated): Delete.
4337 (parse_string): No string literal may extend over multiple
4338 lines. Suppress the error when preprocessing assembly.
4339 * cppmain.c (scan_translation_unit): Strings are single-line.
4341 * doc/cpp.texi: Update to match.
4343 2002-03-22 Jakub Jelinek <jakub@redhat.com>
4345 PR optimization/5854
4346 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
4348 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
4349 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
4350 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
4351 const0 if scratch register was not allocated.
4352 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
4353 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
4355 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
4356 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
4357 with GEN_INT (...) everywhere. Remove constraints in define_split
4359 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
4360 require scratch register for setting 0 into regs/non-pushable memory.
4362 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
4364 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
4365 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
4367 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
4369 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
4370 * cppinit.c (cpp_create_reader): On by default.
4371 (cpp_handle_option): Handle -W[no-]endif-labels.
4372 (cpp_post_options): Also enable if -pedantic.
4373 * cpplib.c (do_else): Use it.
4374 (do_endif): Likewise.
4375 * doc/cppopts.texi: Document new option.
4376 * doc/invoke.texi: Document new option.
4378 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
4380 * config/i386/i386.c, config/i386/i386.md: Change all occurences
4381 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
4383 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
4385 * flow.c (calculate_global_regs_live): Clear aux fields of
4388 2002-03-22 Jakub Jelinek <jakub@redhat.com>
4390 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
4391 REG or MEM subregs, pass rtx * instead of rtx to it.
4392 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
4393 rtx * instead of rtx to alter_subreg.
4394 * config/m32r/m32r.c (gen_split_move_double): Likewise.
4395 * config/pj/pj.c (pj_output_rval): Likewise.
4397 2002-03-22 Richard Henderson <rth@redhat.com>
4400 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
4401 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
4402 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
4403 (ia64_expand_prologue): Look at int_regs, not words, for number
4404 of incomming int regs.
4406 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
4408 * expr.c (expand_expr): A RESULT_DECL is part of a call.
4410 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
4412 * toplev.c (flag_loop_optimize, flag_crossjumping):
4413 New static variables.
4414 (rest_of_compilation): Conditionalize crossjumping and
4416 (parse_options_and_default_flags): Default loop_optimize and
4418 (lang_independent_options): Add -fcrossjumping and -floop-optimize
4419 * invoke.texi (crossjumping, loop-optimize): Document.
4421 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4423 * real.c (eiisneg): Move outside #ifdef NANS.
4425 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
4427 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
4428 frequencies match; avoid match on different loop depths.
4429 (try_crossjump_to_bb): Kill tests that no longer brings time
4431 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
4433 (split_edge): Likewise.
4435 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
4438 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
4439 * cfgrtl.c: Include insn-config.h
4440 (split_block) Dirtify block in presence of conditional execution
4442 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4444 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
4445 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
4446 (function_arg): Constify CUMULATIVE_ARGS.
4447 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
4448 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
4449 (UNITS_PER_DOUBLE): New macro.
4450 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
4451 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
4452 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
4453 fp_regs and stack_words.
4454 (EABI_FLOAT_VARARGS_P): New macro.
4455 * config/mips/mips.c (struct mips_arg_info): New.
4456 (mips_arg_info): New function.
4457 (function_arg_advance): Use it. Add adjustment instructions here
4458 rather than in function_arg.
4459 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
4460 for VOIDmode at the beginning of the function.
4461 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
4462 (function_arg_pass_by_reference): Likewise.
4463 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
4464 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
4465 (mips_va_start): Likewise. Use the new stack_words field of
4466 CUMULATIVE_ARGS to set up overflow area. Reformat.
4467 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
4468 doubles and other types, aligning the overflow pointer for non-doubles
4469 too. Remove some code duplication. Replace hard-coded constants.
4471 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4473 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
4474 (CLASS_UNITS): Undefine.
4475 (CLASS_MAX_NREGS): Use FP_INC.
4476 * config/mips/mips.c (compute_frame_size): Likewise.
4477 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
4479 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
4481 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
4482 prototype, and handle lexing numbers and identifiers.
4483 (parse_identifier): Update to new form of parse_slow.
4484 (parse_number): Fast path only, use parse_slow otherwise.
4485 (_cpp_lex_direct): Update calls to parse_number.
4487 2002-03-21 DJ Delorie <dj@redhat.com>
4489 * bb-reorder.c (make_reorder_chain_1): Protect against
4490 when redundant edges are omitted.
4491 * predict.c (dump_prediction): Likewise.
4493 2002-03-21 Richard Henderson <rth@redhat.com>
4496 * fixinc/inclhack.def (solaris_stdio_tag): New.
4497 * fixinc/fixincl.x: Regenerate.
4499 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
4502 * c-typeck.c (process_init_element): Flag non-static
4503 initialization of a flexible array member as illegal.
4505 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4507 * config/rs6000/t-linux64: New.
4508 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
4509 t-ppccomm. Use t-rs6000 and t-linux64.
4510 (powerpc64-*-gnu* <tmake_file>): Likewise.
4511 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
4512 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
4513 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
4515 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
4517 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
4518 flag_really_no_inline instead of optimize == 0.
4520 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
4522 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
4524 * flags.h (flag_really_no_inline): New.
4526 * c-common.c (c_common_post_options): Initialize
4527 flag_really_no_inline.
4529 * toplev.c (flag_really_no_inline): New.
4531 2002-03-21 Jakub Jelinek <jakub@redhat.com>
4533 * config/avr/avr.md (length): Fix length computation for
4534 conditional branches.
4536 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
4538 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
4539 sdbout.o, profile.o): Update.
4540 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
4542 * c-common.h (gettags): Move here from tree.h.
4543 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
4544 insert_block, getdecls, kept_level_p, global_bindings_p): New.
4545 * dbxout.c (dbxout_init): Use getdecls langhook.
4546 * expr.c (expand_expr): Use insert_block langhook.
4547 * fold-const.c: Include langhooks.h.
4548 (fold_range_test, fold_binary_op_with_conditional_arg,
4549 fold): Use global_bindings_p langhook.
4550 * integrate.c (expand_inline_function): Use insert_block langhook.
4551 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
4552 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
4553 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
4554 LANG_HOOKS_GETDECLS): New.
4555 (LANG_HOOKS_INITIALIZER): Update.
4556 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
4558 * langhooks.h (struct lang_hooks_for_decls): New.
4559 (struct lang_hooks): Update.
4560 * profile.c: Include langhooks.h.
4561 (output_func_start_profiler): Use new langhooks.
4562 * sdbout.c: Include langhooks.h.
4563 (sdbout_init, sdbout_finish): Use getdecls langhook.
4564 * stmt.c: Include langhooks.h.
4565 (expand_fixup, fixup_gotos): Use new langhooks.
4566 * stor-layout.c: Include langhooks.h.
4567 (variable_size): Use global_bindings_p langhook.
4568 * toplev.c (compile_file): Use getdecls langhook.
4569 * tree-inline.c (remap_block): Use insert_block langhook.
4570 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
4571 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
4573 2002-03-21 Richard Henderson <rth@redhat.com>
4575 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
4576 constants in .data when -fpic.
4578 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4580 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
4583 2002-03-21 Tom Tromey <tromey@redhat.com>
4585 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
4587 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4589 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
4591 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
4593 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
4594 Richard Henderson <rth@redhat.com>
4597 * c-common.c (c_expand_expr): Preserve result of a statement
4598 expression if needed.
4600 2002-03-21 Jakub Jelinek <jakub@redhat.com>
4603 * genrecog.c (maybe_both_true_mode): Remove.
4604 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
4605 * machmode.def (Pmode): Likewise.
4607 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
4609 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
4610 (nonlocal_mentioned_p_1): New function.
4611 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
4612 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
4613 (mark_constant_function): Recognize pure functions.
4614 * rtl.h (global_reg_mentioned_p): New prototype.
4615 * rtlanal.c (global_reg_mentioned_p,
4616 global_reg_mentioned_p_1): New function.
4618 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4620 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
4622 * fixinc/fixincl.x: Regenerate.
4624 2002-03-20 Jason Merrill <jason@redhat.com>
4626 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
4628 2002-03-20 Michael Meissner <meissner@redhat.com>
4630 * doc/invoke.texi (Optimize Options): Document that -O2 sets
4633 2002-03-20 Bob Wilson <bob.wilson@acm.org>
4635 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
4636 ".literal_position" directive before the constant pool.
4638 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4640 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
4641 Add Craig Rodrigues.
4642 Add Brad Lucier to testers.
4644 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4647 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
4649 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
4650 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
4651 instead of insn_extract.
4653 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4656 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
4658 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
4659 stmt if some case has been output.
4661 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4664 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
4665 movsfcc_1, movdfcc_1): Add %O2.
4666 * config/i386/i386.c (print_operand): Handle %ON.
4667 Print . before float condition codes in Sun as cmov syntax.
4668 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
4669 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
4672 2002-03-20 Philip Blundell <pb@nexus.co.uk>
4674 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
4675 return instruction if PC was popped.
4677 2002-03-20 Bob Wilson <bob.wilson@acm.org>
4679 * config/xtensa/xtensa.md: Remove unused type attributes.
4680 (adddi_carry, subddi_carry): Change type attribute to "multi".
4682 2002-03-19 Dale Johannesen <dalej@apple.com>
4684 PR optimization/5999, middle-end/5731
4685 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
4686 multiplications by reciprocals.
4688 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
4690 * Makefile.in: Update.
4691 * c-common.c: Include langhooks.h.
4692 (inline_forbidden_p): Use new hook.
4693 * diagnostic.c: Include langhooks.h.
4694 (format_with_decl, announce_function,
4695 default_print_error_function): Use new hook.
4696 * dwarf2out.c (dwarf2_name): Use new hook.
4697 * function.c: Include langhooks.h.
4698 (init_function_start): Use new hook.
4699 * langhooks-def.h (lhd_decl_printable_name): New.
4700 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
4701 (LANGHOOKS_INITIALIZER): Update.
4702 * langhooks.c (lhd_decl_printable_name): New.
4703 * langhooks.h (struct lang_hooks): New hook.
4704 * toplev.c (decl_name, decl_printable_name): Remove.
4705 (open_dump_file): Use new hook.
4706 (process_options): Remove old hook.
4707 * tree.h (decl_printable_name): Remove.
4709 * objc-act.c (objc_init): Remove old hook.
4710 (objc_printable_name): Export.
4711 * objc-act.h (objc_printable_name): New.
4712 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
4714 2002-03-19 Jim Blandy <jimb@redhat.com>
4716 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
4717 the start_source_file debug hook, not the current line number.
4719 2002-03-19 Richard Henderson <rth@redhat.com>
4721 * flow.c (EH_USES): Provide default.
4722 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
4723 * doc/tm.texi (EH_USES): New.
4725 * config/ia64/ia64.c (ia64_eh_uses): New.
4726 * config/ia64/ia64-protos.h: Update.
4727 * config/ia64/ia64.h (EH_USES): New.
4729 2002-03-19 Richard Henderson <rth@redhat.com>
4731 * varasm.c (output_constant_def): Fix stupid typo.
4733 2002-03-19 Richard Henderson <rth@redhat.com>
4736 * except.c (current_function_has_exception_handlers): New.
4737 * except.h: Declare it.
4738 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
4739 Combine tests that disable all sibcalls for the function.
4741 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
4743 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
4746 2002-03-19 Richard Henderson <rth@redhat.com>
4749 * config/ia64/ia64.c: Revert 2002-03-01 patch.
4750 * config/ia64/ia64.h (INIT_EXPANDERS): New.
4752 2002-03-19 Jim Blandy <jimb@redhat.com>
4754 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
4755 name, even if the replacement list contains no tokens, as required
4758 2002-03-19 Jason Merrill <jason@redhat.com>
4760 * varasm.c (globalize_decl): Get the name from the RTL, not
4761 DECL_ASSEMBLER_NAME.
4763 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
4765 2002-03-19 Bob Wilson <bob.wilson@acm.org>
4767 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
4768 subdi_carry): Define.
4770 2002-03-19 David Edelsohn <edelsohn@gnu.org>
4772 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
4773 about -fpic/-fPIC if extra_warnings set.
4775 2002-03-19 David Edelsohn <edelsohn@gnu.org>
4777 * expr.c (expand_expr): Sign-extend CONST_INT generated from
4778 TREE_STRING_POINTER.
4779 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
4781 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4783 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
4784 in favor of SP if FRAME_POINTER_REQUIRED is false.
4786 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
4788 * emit-rtl.c (gen_int_mode): New function.
4789 * rtl.h: Prototype for it.
4790 * combine.c (make_extraction, simplify_comparison), expmed.c
4791 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
4792 (convert_modes, store_field), optabs.c (expand_fix),
4793 simplify-rtx.c (neg_const_int, simplify_unary_real),
4795 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
4796 Use it instead of GEN_INT (trunc_int_for_mode (...)).
4798 2002-03-19 Jakub Jelinek <jakub@redhat.com>
4801 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
4802 convert_parm_for_inlining.
4803 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
4805 * langhooks-def.h: Likewise.
4806 * objc/objc-lang.c: Likewise.
4807 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
4809 * tree-inline.c (initialize_inlined_parameters):
4810 Call convert_parm_for_inlining lang hook if needed.
4811 * c-typeck.c (c_convert_parm_for_inlining): New function.
4812 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
4814 2002-03-18 Mark Mitchell <mark@codesourcery.com>
4816 * calls.c (precompute_arguments): Do not assume that temporaries
4817 can be destroyed after expanding the argument.
4818 (expand_call): Likewise.
4820 2002-03-15 Eric Christopher <echristo@redhat.com>
4822 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
4823 Fix register preference on last change.
4824 * config/mips/mips.c (mips_return_in_memory): New function.
4825 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
4826 * config/mips/mips-protos.h: Declare.
4827 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
4828 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
4830 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4832 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
4834 (anddi3, iorsi3): Likewise.
4836 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
4837 use %gprel for symbols that are going to be placed in linkonce
4840 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
4841 RETURN_ADDRESS_POINTER_REGNUM to $ra.
4842 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
4843 not needed. Disregard leaf_function_p().
4844 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
4845 mips16 frame pointer.
4846 * config/mips/mips.md (store ra): Only to small SP offsets.
4847 2001-08-22 Graham Stott <grahams@redhat.com>
4848 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
4849 return a REG rtx for the return address register.
4851 2002-03-18 Bob Wilson <bob.wilson@acm.org>
4853 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
4854 constant-pool addresses as "mode-dependent".
4855 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
4857 2002-03-18 Jakub Jelinek <jakub@redhat.com>
4860 * expr.c (emit_group_load): Use extract_bit_field if
4861 needed for CONCAT arguments.
4863 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
4866 * arm.md (tablejump): Make this a define_expand. For PIC add the
4867 offset to the base of the table.
4868 (thumb_tablejump): Matcher for Thumb tablejump insn.
4869 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
4870 as the difference of two labels.
4871 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4872 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
4874 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
4875 * arm.c (get_jump_table_size): If the table is not in the text
4876 section, return zero.
4878 2002-03-18 Bernd Schmidt <bernds@redhat.com>
4880 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
4882 (arm_reload_out_hi): Use gen_lowpart instead of
4883 gen_rtx_SUBREG to access QImode components.
4884 * config/arm/arm.md: Disable zero_extend split for QImode
4885 subregs in BIG_ENDIAN mode.
4886 (storehi_bigend): Match use of least significant byte.
4887 (storeinthi): Remove extraneous SUBREG.
4888 Add missing construction of operands[2].
4889 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
4890 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
4891 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
4893 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
4895 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
4898 2002-03-17 Richard Henderson <rth@redhat.com>
4900 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
4903 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
4905 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
4906 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
4908 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4910 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
4912 * predict.c (estimate_bb_frequencies): Delete unused variables.
4914 2002-03-17 Richard Henderson <rth@redhat.com>
4916 * config/ia64/ia64.c (ia64_attribute_table): Move before
4917 targetm definition. Make static.
4919 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
4921 * c-common.h (yyparse, c_common_parse_file): New.
4922 * c-lang.c: Include c-common.h.
4923 (LANG_HOOKS_PARSE_FILE): Redefine.
4924 * c-lex.c: Include c-common.h.
4925 (yyparse): Rename c_common_parse_file. Call yyparse.
4926 * c-parse.in (yyparse): Remove macro.
4927 * c-tree.h (yyparse_1): Remove.
4928 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
4929 (LANG_HOOKS_INITIALIZER): Update.
4930 * langhooks.h (struct lang_hoooks): New hook parse_file.
4931 * toplev.c (compile_file): Use parse_file hook.
4932 * tree.h (yyparse): Remove.
4933 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
4935 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
4937 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
4938 float_truncate, not fix.
4939 ("*truncdfsf2_real"): Ditto.
4940 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
4942 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
4944 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
4946 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
4947 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
4948 where appropriate. Make the second reference to
4949 leaf_function_p a function call, as intended. Reindented.
4951 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
4952 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
4954 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
4955 add register to non-constant into sp.
4957 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
4958 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
4959 (mips16_gp_pseudo_rtx): Lose.
4960 (INIT_EXPANDERS): Deleted.
4961 * config/mips/mips.c (mips_init_machine_status): New.
4962 (mips_free_machine_status): New.
4963 (mips_mark_machine_status): New.
4964 (override_options): Set them.
4965 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
4966 (struct machine_function): ... new. Replaced all references.
4967 (mips_add_gc_roots): Don't mark them.
4968 (embedded_pic_fnaddr_reg): New, extracted from...
4969 (embedded_pic_offset): ... here.
4970 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
4973 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
4975 * cppinit.c: Revert -MD removal.
4977 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4979 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
4980 soft registers by default for 68HC12.
4981 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
4982 when compiling with -fomit-frame-pointer.
4983 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
4984 (expand_epilogue): Likewise.
4985 (m68hc11_gen_rotate): Use exg when rotating by 8.
4987 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4989 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
4990 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
4991 (splits): Remove unused add splits.
4992 ("*addhi3_68hc12"): Tune constraints.
4993 ("addhi_sp"): Try to use X instead of Y in all cases and if the
4994 constant fits in 8-bits and D is dead use abx/aby instructions.
4995 ("*addhi3"): Remove extern declaration of ix_reg.
4996 ("*subsi3"): Optimize and provide new split.
4997 ("subhi3"): Cleanup.
4998 ("*subhi3_sp"): Avoid saving X if we know it is dead.
4999 (arith splits): For 68hc12 save the address register on the stack
5000 and do the arithmetic operation with a pop.
5002 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5004 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
5005 allocating QImode in address registers.
5006 ("*movqi_m68hc11"): Likewise.
5008 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
5010 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
5012 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
5014 * cppinit.c (print_help): Display -MD and -MMD.
5015 Don't display usage string. Update assertion syntax and
5017 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
5018 (cpp_handle_option): Update.
5020 2002-03-15 Chris Demetriou <cgd@broadcom.com>
5022 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
5023 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
5024 and define it so that regardless of target CPU size,
5025 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
5026 of "int" rather than "long."
5028 2002-03-15 Richard Henderson <rth@redhat.com>
5030 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
5033 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5035 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
5036 ("tstqi" split): Avoid using memory for tstqi on address register.
5037 (splits): Remove constraints.
5038 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
5039 ("cmpdf", "cmpsf"): Remove since not used.
5040 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
5041 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
5043 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5045 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
5046 ("neghi2"): Tighten constraints.
5047 ("one_cmplsi2"): Optimize and simplify split.
5048 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
5050 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5052 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
5053 and split of AND operation to clear the upper bits.
5054 ("*logicalsi3_zextqi"): Likewise.
5055 ("*logicallhi3_zexthi_ashift8"): Likewise.
5056 ("*logicalsi3_silshr16"): Likewise.
5057 ("logicalsi3_silshl16"): Likewise.
5058 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
5060 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5062 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
5063 (m68hc11_indirect_p): New function.
5064 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
5065 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
5067 (asm_print_register): Likewise.
5068 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
5069 (m68hc11_indirect_p): Declare.
5070 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
5071 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
5072 (TARGET_SWITCHES): New option -mrelax.
5073 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
5075 ("iorsi3", "xorsi3"): Likewise.
5076 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
5077 ("*andhi3_mem"): New to handle destination in memory with bclr
5078 and a scratch register.
5079 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
5080 ("*andhi3_const"): New when operand2 is constant.
5081 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
5082 ("*andhi3_gen"): Cleanup of the old "andhi3".
5083 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
5084 ("xorqi3"): Update constraints.
5086 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5088 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
5089 for reg_equiv_memory_loc when the operand is a register that does
5090 not get a hard register (stack location).
5091 (tst_operand): After reload, accept all memory operand.
5092 (symbolic_memory_operand): Fix detection of symbolic references.
5093 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
5094 accept symbols and any constant.
5096 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5098 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
5099 note on the insn that sets the soft frame register.
5100 (must_parenthesize): ix and iy are also reserved names.
5101 (print_operand_address): One more place where parenthesis are required
5102 to avoid confusion with register names.
5103 (m68hc11_gen_movhi): Allow push of stack pointer.
5104 (m68hc11_check_z_replacement): Fix handling of parallel with a
5106 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
5107 the replacement register is.
5108 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
5109 and D8_REGS classes.
5110 (MODES_TIEABLE_P): All modes are tieable except QImode.
5112 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5114 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
5115 (___subdi3): Likewise.
5116 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
5117 (__map_data_section): Optimize 68hc11 case.
5119 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5121 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
5122 than a shift to avoid adding a register with itself.
5123 (m68hc11_memory_move_cost): Take into account NO_REGS.
5124 (m68hc11_register_move_cost): Update and use memory move cost
5126 (m68hc11_address_cost): Make cost of valid offset not 0 so that
5127 it gives more opportunities to cse to optimize.
5128 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
5129 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
5131 2002-03-15 Mark Mitchell <mark@codesourcery.com>
5133 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
5134 * c-common.def (CLEANUP_STMT): New tree node.
5135 * c-common.h (CLEANUP_DECL): New macro.
5136 (CLEANUP_EXPR): Likewise.
5137 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
5138 * expr.c (expand_expr): Tidy.
5139 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
5140 * tree-inline.c (initialize_inlined_parameters): Clean up
5141 new local variables.
5143 2002-03-15 Jakub Jelinek <jakub@redhat.com>
5146 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
5147 before movrXX only, use reg_overlap_mentioned_p.
5148 Only special case NE if just one insn can be generated.
5150 2002-03-15 Jason Merrill <jason@redhat.com>
5152 * varasm.c (assemble_variable): Call resolve_unique_section before
5153 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
5156 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
5159 * arm.md (split pattern for thumb shiftable immediates): Add comment
5160 explaining non-obvious test.
5162 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
5165 * arm.md (movaddr, movaddr_insn): Delete.
5167 2002-03-15 Jason Merrill <jason@redhat.com>
5169 * toplev.c (wrapup_global_declarations): Clarify variable handling.
5170 -fkeep-static-consts doesn't apply to comdats.
5172 2002-03-14 Richard Henderson <rth@redhat.com>
5174 * c-decl.c: Include c-pragma.h.
5175 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
5176 (finish_function): Tidy.
5177 * c-pragma.c: Include c-common.h.
5178 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
5179 (handle_pragma_weak): Use them.
5180 (init_pragma): Register pending_weaks.
5181 * c-pragma.h (maybe_apply_pragma_weak): Declare.
5182 * print-tree.c (print_node): Print DECL_WEAK.
5183 * varasm.c (mark_weak_decls): Remove.
5184 (remove_from_pending_weak_list): Remove.
5186 (asm_emit_uninitialised): Call globalize_decl for weak commons.
5187 (weak_decls): Make a tree_list.
5188 (declare_weak): Cons weak_decls directly.
5189 (globalize_decl): Remove weak_decls elements directly.
5190 (weak_finish): Simplify weak_decls walk. Don't weaken unused
5191 symbols. Don't pretend to handle aliases.
5192 (init_varasm_once): Update weak_decls registry.
5193 * Makefile.in: Update dependencies.
5195 2002-03-14 Richard Henderson <rth@redhat.com>
5198 * config/ia64/ia64.c: Include tm_p.h last.
5199 (gen_nop_type): Remove duplicate definition.
5200 (cycle_end_fill_slots): Set sched_data for second L slot.
5201 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
5202 (nop_cycles_until): Fix typos.
5204 2002-03-15 Jakub Jelinek <jakub@redhat.com>
5206 PR optimization/5891
5207 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
5209 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
5211 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
5212 descriptors correctly.
5214 2002-03-14 Michael Meissner <meissner@redhat.com>
5216 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
5217 100, allowing MAX_UNROLLED_INSNS to be overridden.
5219 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
5222 * unroll.c (params.h): Include.
5223 (MAX_UNROLLED_INSNS): Delete, now in params.h.
5225 * doc/invoke.texi (--param max-unroll-insns): Document.
5227 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
5229 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
5231 * arm.md: Fix warnings about constraints in peepholes and splits.
5233 2002-03-14 Zack Weinberg <zack@codesourcery.com>
5235 * cpphash.h (struct lexer_state): Remove line_extension member.
5236 * cpplib.c (dequote_string, do_linemarker): New functions.
5237 (linemarker_dir): New data object.
5238 (DIRECTIVE_TABLE): No longer need to interpret #line in
5239 preprocessed source. Delete obsolete comment about return
5241 (end_directive, directive_diagnostics, _cpp_handle_directive):
5242 Don't muck with line_extension.
5243 (directive_diagnostics): No need to issue warnings for
5245 (_cpp_handle_directive): Issue warnings for linemarkers here,
5246 when appropriate. Dispatch linemarkers to do_linemarker, not
5248 (do_line): Code to handle linemarkers split out to do_linemarker.
5249 Convert escape sequences in filename argument, both places.
5251 * cppmacro.c (quote_string): Rename cpp_quote_string and
5252 export. All callers changed.
5253 * cpplib.h (cpp_quote_string): Prototype.
5254 * cppmain.c (print_line): Call cpp_quote_string on to_file
5257 * doc/cpp.texi: Document that escapes are now interpreted in
5258 #line and in linemarkers, and that non-printing characters are
5259 converted to octal escapes when linemarkers are generated.
5261 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
5263 * emit-rtl.c (try_split): Use delete_insns.
5264 * recog.c (split_all_insns): Fix terminating condition.
5266 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
5267 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5270 * arm.c (arm_output_epilogue): Fix floating-point register save
5271 adjustment when using a frame pointer.
5273 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
5275 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
5276 * config/mips/mips.c (compute_frame_size): Retrofit them here.
5277 (save_restore_insns, mips_expand_epilogue): And here.
5278 (build_mips16_call_stub): And here.
5279 (mips_function_value): Use the new macros to decide whether a single
5280 or complex float can be returned in floating-point registers. Return
5281 a parallel rtx in the complex case.
5283 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
5285 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
5286 call after liveness analysis.
5288 * recog.c (split_insn): Use delete_insn_and_edges.
5290 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
5291 instructions to have branch prediction notes.
5292 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
5294 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
5296 * configure.in: Don't pass -Wno-long-long to a ADA compiler
5297 that doesn't support it.
5298 * configure: Regenerate.
5300 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5303 * config/sparc/sparc.md (normal_branch, inverted_branch,
5304 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
5305 inverted_fp_branch): Adjust calls to output_cbranch.
5306 Set length attribute.
5307 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
5308 output_v9branch. Set length attribute.
5309 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
5311 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
5312 (output_cbranch): Likewise. Handle far branches.
5313 (output_v9branch): Handle far branches.
5314 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
5316 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
5317 noov_compare64_op predicates.
5319 2002-03-13 Jason Merrill <jason@redhat.com>
5321 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
5322 into the function and constify it.
5323 * gthr-dce.h, gthr-solaris.h: Likewise.
5325 2002-03-13 David Edelsohn <edelsohn@gnu.org>
5327 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
5328 * config/rs6000/rs6000.c (rs6000_va_arg): Use
5329 std_expand_builtin_va_arg if not ABI_V4.
5331 2002-03-13 Jason Merrill <jason@redhat.com>
5333 * varasm.c (globalize_decl): New fn.
5334 (assemble_start_function): Use it.
5335 (asm_emit_uninitialized): Use it.
5336 (assemble_alias): Use it.
5337 (assemble_variable): Use it.
5339 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
5341 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
5342 2002-03-12 internal visibility change.
5343 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
5344 visibility into SYMBOL_REF_FLAG.
5346 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
5348 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
5349 VOIDmode operand. Add compile-time optimization for constant results.
5351 2002-03-12 Jason Merrill <jason@redhat.com>
5353 * c-typeck.c (convert_for_assignment): Don't allow conversions
5354 between pointers and references. Only allow lvalues to convert to
5357 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
5359 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
5360 before prologue, to avoid scheduling problems.
5362 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5364 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
5365 (ELIMINABLE_REGS): Add sfp->sp.
5366 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
5368 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5370 PR optimization/5892
5371 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
5373 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5375 * loop.c (basic_induction_var): Don't call convert_modes if mode
5376 classes are different.
5378 2002-03-12 Richard Henderson <rth@redhat.com>
5380 PR optimization/5901
5381 * function.c (reposition_prologue_and_epilogue_notes): Position
5382 the markers after/before the last/first insn not deleted.
5384 2002-03-12 Richard Henderson <rth@redhat.com>
5386 PR optimization/5878
5387 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
5388 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
5389 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5391 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
5392 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
5393 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
5395 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
5396 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
5397 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
5398 also. Don't set it if not flag_pic.
5399 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
5400 to be INVALID_REGNUM when not used.
5402 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
5404 * expmed.c (store_bit_field): Reset alias set for memory.
5405 (extract_bit_field): Same.
5407 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5409 * c-common.c (c_tree_code_type, c_tree_code_length,
5410 c_tree_code_name, add_c_tree_codes): Delete.
5411 * c-common.h (add_c_tree_codes): Delete.
5412 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
5414 * c-objc-common.c (c_objc_common_init): Don't call
5415 add_c_tree_codes, instead set lang_unsafe_for_reeval.
5416 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
5417 objc_tree_code_name, add_objc_tree_codes): Delete.
5418 (objc_init): Don't call add_objc_tree_codes.
5419 * objc/objc-lang.c (tree_code_type, tree_code_length,
5420 tree_code_name): Define.
5421 * toplev.c (lang_independent_init): Don't set
5422 tree_code_length[IDENTIFIER_NODE].
5423 * tree.c (tree_code_type, tree_code_length, tree_code_name):
5424 Delete definitions, moved to language front-ends.
5425 * tree.def (IDENTIFIER_NODE): Hardwire the length.
5426 * tree.h (tree_code_type, tree_code_length, tree_code_name):
5428 (tree_code_length): Change type to unsigned char.
5430 2002-03-12 Richard Henderson <rth@redhat.com>
5432 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
5433 internal visibility change.
5435 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5437 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
5438 validize_mem() instead of change_address to avoid clobbering
5441 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
5443 * c-lex.h (position_after_whitespace): Remove.
5445 2002-03-12 Jakub Jelinek <jakub@redhat.com>
5447 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
5448 (lex_string): Use unsigned char pointers.
5450 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
5452 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
5453 is not a valid memory_operand.
5455 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5457 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
5458 * config/xtensa/lib1funcs.asm: Fix copyright to include
5459 special case for libgcc files.
5460 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
5461 (__divsi3): Likewise.
5462 (__umodsi3): Likewise.
5463 (__modsi3): Likewise.
5464 * config/xtensa/lib2funcs.S: Fix copyright to include
5465 special case for libgcc files.
5467 2002-03-12 Tom Rix <trix@redhat.com>
5469 * collect2.c (resolve_lib_name): Move outside of
5470 OBJECT_FORMAT_COFF ifdef.
5471 (ignore_library): Same.
5473 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5475 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
5477 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5479 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
5480 to function_section before writing out the constant pool.
5482 2002-03-12 David Edelsohn <edelsohn@gnu.org>
5484 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
5486 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
5488 2002-03-12 Alan Modra <amodra@bigpond.net.au>
5490 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
5494 (cmpsi splitter): Likewise.
5495 (modsi3): Fail if <= 0.
5496 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
5497 redundant test when HOST_BITS_PER_WIDE_INT != 32.
5498 (reg_or_sub_cint64_operand): Likewise.
5499 (num_insns_constant_wide): Optimize sign extension.
5500 (rs6000_legitimize_address): Likewise.
5502 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
5504 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5505 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5507 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
5509 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
5510 address calculation.
5512 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
5514 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
5515 scratch register to DImode / TImode.
5516 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
5517 register used does not overlap the target.
5519 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5521 * Makefile.in (debug.o): Depend on debug.h.
5522 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
5523 * debug.c (do_nothing_debug_hooks): Likewise.
5524 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
5525 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
5526 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
5527 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5528 * dwarfout.c (dwarf_debug_hooks): Likewise.
5529 * integrate.c (output_inline_function): Likewise.
5530 * objc/objc-act.c (synth_module_prologue): Likewise.
5531 * sdbout.c (sdb_debug_hooks): Likewise.
5532 * toplev.c (debug_hooks): Likewise.
5533 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5535 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5537 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
5538 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
5539 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
5540 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
5541 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
5542 * defaults.h (POINTER_SIZE): Define.
5543 * doc/tm.texi (POINTER_SIZE): Document default.
5545 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5547 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
5549 2002-03-11 Richard Henderson <rth@redhat.com>
5551 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
5552 if rebuild_label_notes_after_reload.
5554 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
5556 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
5557 emit pic register load if "internal" visibility.
5558 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
5559 (cris_expand_builtin_va_arg): Do all computations on trees.
5561 2002-03-11 Richard Henderson <rth@redhat.com>
5563 * rtlanal.c: Include recog.h.
5564 (keep_with_call_p): Fix thinko.
5565 * Makefile.in (rtlanal.o): Update dependencies.
5567 2002-03-11 Chris Meyer <cmeyer@gatan.com>
5569 * genflags.c (gen_insn): Use IS_VSPACE.
5570 * genoutput.c (output_insn_data): Likewise.
5571 (process_template): Likewise.
5573 2002-03-11 Richard Henderson <rth@redhat.com>
5575 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
5577 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
5579 * Makefile.in: Update.
5580 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
5581 Update documentation.
5582 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
5583 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
5585 2002-03-11 Zack Weinberg <zack@codesourcery.com>
5587 * Makefile.in: Give texi2pod its input file as a command line
5588 argument, not on stdin.
5590 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
5591 Daniel Berlin <dan@dberlin.org>
5593 C++ alias analysis improvement.
5594 * alias.c (record_component_aliases): Record aliases for base
5597 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
5599 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
5601 2002-03-11 Douglas B Rupp <rupp@gnat.com>
5603 * toplev.c (vms_fopen): Remove, not needed.
5605 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
5607 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
5609 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
5610 for FP, already done later.
5612 * toplev.c (debug_args): Add entry for VMS_DEBUG.
5613 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
5615 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
5617 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
5618 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
5619 LARGEST_EXPONENT_IS_NORMAL for the given mode.
5620 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
5621 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
5622 (ediv, emul, eldexp, esqrt): Likewise.
5623 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
5624 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
5625 (saturate): New function.
5626 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
5627 (make_nan): Use a saturation value instead of a NaN if
5628 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
5629 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
5630 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
5631 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
5632 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
5633 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
5634 !ROUND_TOWARDS_ZERO.
5635 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
5636 (ROUND_TOWARDS_ZERO): Document.
5638 2002-03-11 Andreas Jaeger <aj@suse.de>
5640 * cfg.c (dump_flow_info): Remove unused variable.
5642 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
5644 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
5645 computations on trees.
5647 2002-03-10 Richard Henderson <rth@redhat.com>
5650 * reload.c (copy_replacements_1): New.
5651 (copy_replacements): Use it to recurse through the rtx.
5653 2002-03-10 Richard Henderson <rth@redhat.com>
5655 * loop.c (strength_reduce): Compute number of iterations as
5656 unsigned HOST_WIDE_INT.
5658 2002-03-10 Richard Henderson <rth@redhat.com>
5660 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
5661 to move away from the end of the block.
5663 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
5665 PR preprocessor/5899
5666 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
5668 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5670 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
5672 * attribs.c (decl_attributes): Fix signed/unsigned warning.
5674 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
5676 * config/mmix/mmix.c: Improve comments.
5677 (mmix_target_asm_function_prologue): Drop variable
5678 empty_stack_frame. Don't allocate unused slot above fp.
5679 (mmix_target_asm_function_epilogue): Mirror prologue changes.
5680 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
5681 brace in first column.
5682 (enum reg_class): Ditto.
5683 (FIRST_PARM_OFFSET): Now 0.
5684 (USER_LABEL_PREFIX): Remove #if 0:d definition.
5686 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5688 * combine.c (make_extraction): Fix error in last change.
5690 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5692 * c4x.c (c4x_fp_reglist): Const-ify.
5693 * cris.c (cris_print_operand): Likewise.
5694 * i386.c (ix86_va_arg): Likewise.
5695 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
5696 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
5697 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
5698 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
5699 * mcore.h (regno_reg_class): Likewise.
5700 * mips.c (gen_int_relational): Likewise.
5701 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
5702 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
5703 * pdp11.c (move_costs): Likewise.
5704 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
5705 * s390.c (s390_branch_condition_mnemonic, regclass_map):
5707 * s390.h (regclass_map): Likewise.
5708 * sh.c (shift_amounts): Likewise.
5709 * sh.md (rotlsi3): Likewise.
5711 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
5713 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
5714 (ne0+5): Use new clobber to generate proper shift pattern.
5715 Patch by Michael Matz <matz@kde.org>.
5717 2002-03-09 Andreas Schwab <schwab@suse.de>
5719 * gcc.c (validate_all_switches): Also handle `%W{...}'.
5721 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
5723 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
5725 2002-03-09 Jakub Jelinek <jakub@redhat.com>
5728 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
5729 even for non-representable constants.
5731 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5733 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
5734 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
5735 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
5736 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
5737 (pop_function_context): Compute MAY_SHARE parameter for
5739 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
5740 (gen_mem_addressof): Call fixup_var_refs with new parm.
5742 * combine.c (make_extraction): Don't make extension of CONST_INT.
5744 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
5746 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
5747 in o32 and o64 ABIs.
5748 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
5749 but getting fixed-size structs passed in registers regardless of
5750 padding in o32 and o64 ABIs.
5752 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
5753 offset before loading address of argument passed by transparent
5756 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
5758 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
5760 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
5762 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
5763 marker such that registers after it are saved.
5765 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5767 * sparc.c (arith_4096_operand): Fix error in last change.
5769 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
5771 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
5774 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
5776 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
5779 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
5781 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
5783 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
5785 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
5786 removed; fix return value.
5787 * combine.c (combine_instructions): Dirtify blocks where we failed to
5788 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
5789 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
5791 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5793 * gcse.c (insert_insn_end_bb): Fix typo in last change.
5795 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
5797 * recog.c (peephole2_optimize): Re-distribute EH edges.
5799 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
5801 * expr.c (expand_expr): Use unsave lang hook.
5802 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
5803 (LANG_HOOKS_INITIALIZER): Update.
5804 * langhooks.h (struct lang_hooks): New hook unsave.
5805 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
5806 (unsave_expr_1): Remove unused lang_unsave_expr_now.
5807 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
5808 (unsave_expr_now): Remove.
5809 * tree.h (unsave_expr_now, lang_unsave,
5810 lang_unsave_expr_now): Remove.
5813 2002-03-08 Andreas Jaeger <aj@suse.de>
5815 * flow.c (propagate_block_delete_insn): Remove unused variable.
5817 2002-03-08 Kazu Hirata <kazu@hxi.com>
5819 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
5820 insn length for memory load/store.
5822 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
5824 * doc/install.texi (--with-libiconv-prefix): Document.
5826 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
5828 * doc/sourcebuild.texi: Fix typo.
5830 2002-03-08 Jakub Jelinek <jakub@redhat.com>
5833 * builtins.c (std_expand_builtin_va_arg): Do all computations on
5836 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5838 * rtl.c (copy_most_rtx): Move from here ...
5839 * emit-rtl.c (copy_most_rtx): ... to here.
5841 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
5843 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
5844 SUBTARGET_CPP_SIZE_SPEC.
5845 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
5847 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
5849 2002-03-07 Matt Hiller <hiller@redhat.com>
5851 * gensupport.c (first_dir_md_include): Renamed from include;
5852 change all references.
5853 (last_dir_md_include): Renamed from last_include; change all
5855 (init_md_reader): Unconditionally initialize base_dir whether or
5856 not filename is a relative path.
5858 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
5860 * config/fp-bit.c (_unord_f2): Compile it in even if
5861 US_SOFTWARE_GOFAST is enabled.
5863 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
5864 NULL_RTX. Set all HFmode operations as NULL_RTX.
5865 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
5866 NULL_RTX, try reversing the comparison and the operands.
5868 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
5870 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
5871 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
5874 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
5876 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
5878 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
5880 * basic-block.h (fixup_abnormal_edges): Declare.
5881 * reload1.c (fixup_abnormal_edges): New function.
5882 * reg-stack.c (convert_regs): Use it.
5884 * gcse.c (insert_insn_end_bb): Handle trapping insns.
5886 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
5888 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
5890 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
5891 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
5892 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
5893 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
5894 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
5895 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
5896 unless x and y could be infinite.
5897 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
5898 Check that the common type of both arguments is a real, even for
5899 targets without unordered comparisons. Allow an integer argument
5900 to be compared against a real.
5901 (expand_tree_builtin): Use expand_unordered_cmp.
5902 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
5903 * cse.c (fold_rtx): Likewise. Fix indentation.
5904 * fold-const.c (fold_real_zero_addition_p): New.
5905 (fold): Use it, and the new HONOR_... macros.
5906 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
5907 * jump.c (reversed_comparison_code_parts): After searching for
5908 the true comparison mode, use HONOR_NANS to decide whether it
5909 can be safely reversed.
5910 (reverse_condition_maybe_unordered): Remove IEEE check.
5911 * simplify-rtx.c (simplify_binary_operation): Use the new macros
5912 to decide which simplifications are valid. Allow the following
5913 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
5914 and (a - -b) to (a + b).
5915 (simplify_relational_operation): Use HONOR_NANS.
5916 * doc/tm.texi: Document the MODE_HAS_... macros.
5918 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
5920 * combine.c (simplify_comparison): If simplifying a logical shift
5921 right and compare with constant, force the comparison to unsigned.
5923 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
5925 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
5927 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
5929 (alt_reg_names): Remove % for vrsave.
5931 2002-03-06 Richard Henderson <rth@redhat.com>
5933 PR optimization/5844
5934 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
5935 if used indicates we've already emitted one copy of an operand.
5936 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
5937 (gen_split): Supply a non-null used.
5939 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
5941 * reload1.c (reload): Unshare all rtl after reload is done.
5943 * simplify-rtx.c (simplify_plus_minus): Do not abort,
5944 but simply fail if the expression is too complex to simplify.
5945 (simplify_gen_binary): Handle simplify_plus_minus failures.
5947 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
5949 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
5950 consistently call delete_trivially_dead_insns after CSE and GCSE;
5951 fix DFI_life dumping; do jump threading after liveness; do crossjumping
5952 after liveness2; update comment in last crossjumping.
5953 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
5955 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
5957 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
5958 after completing fast dead code elimination.
5960 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
5963 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
5965 * version.c: Fix misplaced leading blanks on first line.
5967 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
5969 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
5971 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
5973 * cfgcleanup.c (mentions_nonequal_regs): New function.
5974 (thread_jump): Use it.
5975 * toplev.c (rest_of_compilation): Run jump threading after
5978 2002-03-06 Jakub Jelinek <jakub@redhat.com>
5980 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
5983 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
5985 * predict.c (estimate_bb_frequencies): Do not reload the
5986 frequencies from notes.
5988 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
5990 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
5991 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
5993 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
5994 delete_noop_moves): Return indeger.
5995 * flow.c (ndead): New variable.
5996 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
5997 BB argument; update callers.
5998 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
5999 (life_analysis): Do not call purge_all_dead_edges.
6000 (update_life_info): Return number of deleted insns; print statistics.
6001 (update_life_info_in_dirty_blocks): likewise.
6002 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
6003 return number of insns deleted.
6005 * cse.c: Include timevar.h
6006 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
6007 iterate until stabilizes; print statistics; return number of killed
6009 * Makefile.in: (cse.o): Add timevar.h dependency
6010 * rtl.h (delete_trivially_dead_insns): New.
6011 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
6012 * toplev.c (rest_of_compilation): Update callers.
6014 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
6015 (try_optimize_cfg): Do not update liveness.
6016 (cleanup-cfg): Loop until try_optimize_cfg and dead code
6017 removal stabilizes; use delete_trivially_dead_insns.
6019 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
6021 2002-03-05 Zack Weinberg <zack@codesourcery.com>
6023 * cppmain.c (setup_callbacks): Disable #pragma and #ident
6024 callbacks when processing assembly language.
6026 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
6028 * pa.h (ASM_FILE_END): Define.
6029 * som.h (ASM_FILE_END): Delete.
6031 * pa.c (function_arg): Don't pass floats in general registers in
6032 indirect calls if TARGET_ELF32.
6034 2002-03-05 Richard Henderson <rth@redhat.com>
6036 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
6038 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
6040 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
6042 2002-03-05 Jakub Jelinek <jakub@redhat.com>
6044 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
6045 -r command line. Don't hide any symbols if not building
6048 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
6050 * cfg.c (dump_flow_info): Warn about profile mismatches.
6051 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
6052 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
6054 2002-03-05 Jakub Jelinek <jakub@redhat.com>
6056 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
6057 wide volatile memory by parts.
6059 2002-03-05 Jakub Jelinek <jakub@redhat.com>
6061 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
6064 2002-03-05 Richard Henderson <rth@redhat.com>
6066 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
6068 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
6070 * toplev.c (documented_lang_options): Document more
6071 language-specific options.
6072 * doc/invoke.texi (Warning Options): Correct documentation for
6073 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
6074 * c-decl.c (c_decode_option): Use a table to handle warning options.
6076 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
6078 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
6079 parameter to mmix_encode_section_info.
6080 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
6081 relocatably. Always produce ELF, not mmo if linking relocatably.
6082 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
6083 first is non-zero, don't add symbol prefix.
6084 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
6085 prototype accordingly.
6087 2002-03-04 Krister Walfridsson <cato@df.lth.se>
6089 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
6091 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
6093 * configure.in: Increase required makeinfo version to 4.1.
6094 * configure: Regenerate.
6096 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
6098 * .cvsignore: Remove *.info* and genrtl*; these files are generated
6101 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
6103 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
6104 * doc/invoke.texi: Fix @math uses.
6106 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
6108 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
6111 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
6113 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
6114 (powerpc-*-eabisimaltivec*): Same.
6116 * config/rs6000/t-ppcendian: New.
6118 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6120 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
6121 nonimmediate_src_operand and nonimmediate_lsrc_operand to
6122 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
6124 2002-03-03 Richard Henderson <rth@redhat.com>
6126 * toplev.c (rest_of_decl_compilation): Revert last two changes.
6128 2002-03-03 Zack Weinberg <zack@codesourcery.com>
6130 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
6131 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
6132 tree.c, config/m68k/m68k.c:
6133 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
6134 REAL_ARITHMETIC blocks unconditional. Delete some further
6135 #ifdef blocks predicated on REAL_ARITHMETIC.
6136 * flags.h, toplev.c: Delete remaining references to
6139 * doc/invoke.texi: Remove documentation of -fpretend-float.
6140 * doc/tm.texi: Describe the various REAL_* macros as provided by
6141 real.h, not by the target configuration files.
6143 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
6144 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
6145 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
6146 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
6147 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
6148 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
6149 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
6150 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
6151 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
6152 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
6153 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
6154 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6155 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
6156 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
6157 config/xtensa/xtensa.h:
6158 Do not define, undefine, or mention in comments any of
6159 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
6160 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
6161 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
6162 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
6163 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
6164 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
6165 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
6166 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
6167 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
6169 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6171 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
6172 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
6173 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
6174 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
6175 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
6176 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
6178 * defaults.h (BITS_PER_WORD): Define.
6179 * doc/tm.texi (BITS_PER_WORD): Document default value.
6181 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
6182 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
6183 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
6185 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6187 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
6188 lieu of explicit sizeof/sizeof.
6189 * i386.c (override_options, ix86_init_mmx_sse_builtins,
6190 ix86_expand_builtin): Likewise.
6191 * mips.c (mips_add_gc_roots): Likewise.
6192 * mmix.c (mmix_output_condition): Likewise.
6193 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
6194 altivec_init_builtins): Likewise.
6195 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
6196 * cppexp.c (Nsuff, parse_number): Likewise.
6197 * cppinit.c (builtin_array_end): Likewise.
6198 * gcc.c (n_default_compilers, process_command): Likewise.
6199 * genpreds.c (output_predicate_decls): Likewise.
6200 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
6201 * lcm.c (N_ENTITIES): Likewise.
6202 * stor-layout.c (set_sizetype): Likewise.
6204 2002-03-03 Richard Henderson <rth@redhat.com>
6206 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
6207 for types or labels.
6209 2002-03-03 Richard Henderson <rth@redhat.com>
6211 * c-decl.c (start_decl): Initialized variables are not common.
6213 2002-03-02 Per Bothner <per@bothner.com>
6215 * gcc.c (option_map): Suport new --bootclasspath option.
6216 --CLASSPATH is now just an alias for --classpath.
6218 2002-03-02 Richard Henderson <rth@redhat.com>
6220 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
6221 load if "internal" visibility.
6222 * doc/extend.texi: Document visibility meanings.
6224 2002-03-02 Richard Henderson <rth@redhat.com>
6226 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
6227 to functions as well.
6229 2002-03-02 Richard Henderson <rth@redhat.com>
6231 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
6232 (handle_visibility_attribute): Don't call assemble_visibility.
6233 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
6234 without asmspec. Invoke assemble_alias when needed.
6235 * varasm.c (maybe_assemble_visibility): New.
6236 (assemble_start_function, assemble_variable, assemble_alias): Use it.
6238 2002-03-02 Richard Henderson <rth@redhat.com>
6240 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
6241 invoke ENCODE_SECTION_INFO with first call flag.
6243 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6244 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6245 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
6246 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
6247 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6248 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
6249 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
6250 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
6251 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
6252 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
6253 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
6254 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
6255 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6256 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
6257 config/mcore/mcore-protos.h, config/mcore/mcore.c,
6258 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
6259 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
6260 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
6261 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
6262 config/sh/sh.h, config/sparc/sparc.h,
6263 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
6264 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
6265 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
6266 FIRST argument. As needed, examine it and do nothing.
6268 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
6269 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
6270 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
6272 * config/arm/t-pe (pe.o): Add dependencies.
6274 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6276 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
6277 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
6278 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
6279 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
6280 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
6281 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
6282 * defaults.h (BITS_PER_UNIT): Define.
6283 * doc/tm.texi (BITS_PER_UNIT): Document default value.
6285 2002-03-02 Kazu Hirata <kazu@hxi.com>
6287 * config/h8300/h8300-protos.h: Add a prototype for
6288 compute_a_shift_length.
6289 * config/h8300/h8300.c (h8300_asm_insn_count): New.
6290 (compute_a_shift_length): Likewise.
6291 (h8300_adjust_insn_length): Do not adjust insn length of shift
6293 * config/h8300/h8300.md (anonymous shift patterns): Use
6294 compute_a_shift_length.
6296 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6298 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
6301 * emit-rtl.c (offset_address): Call update_temp_slot_address.
6303 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6305 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
6306 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
6307 * flags.h (flag_zero_initialized_in_bss): Declare.
6308 * toplev.c (flag_zero_initialized_in_bss): New flag.
6309 (lang_independent_options): Add flag_zero_initialized_in_bss.
6310 * tree.c (initializer_zerop): New function.
6311 * tree.h (initializer_zerop): Declare.
6312 * varasm.c (assemble_variable): If we can emit bss, put zero
6313 initializers in the bss section.
6315 2002-03-02 Alan Modra <amodra@bigpond.net.au>
6317 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
6318 like more than one symbol per .weak directive.
6320 2002-03-01 Richard Henderson <rth@redhat.com>
6322 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
6323 adjust argument_pointer by pretend_args_size.
6324 (ia64_va_start): Adjust va_start address by -pretend_args_size.
6326 2002-03-01 Kazu Hirata <kazu@hxi.com>
6328 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
6330 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
6332 * toplev.c (rest_of_compilation): Delete dead jumptables before
6334 * flow.c (delete_dead_jumptables): Make global.
6335 * rtl.h (delete_dead_jumptables): Declare.
6337 2002-03-01 David Edelsohn <edelsohn@gnu.org>
6339 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
6340 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
6341 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
6343 2002-03-01 Kazu Hirata <kazu@hxi.com>
6345 * config/h8300/h8300-protos.h: Fix formatting.
6346 * config/h8300/h8300.c: Likewise.
6347 * config/h8300/h8300.h: Likewise.
6349 2002-03-01 Kazu Hirata <kazu@hxi.com>
6351 * config/h8300/h8300.c (print_operand): Support 16-bit
6353 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
6355 2002-02-28 Richard Henderson <rth@redhat.com>
6357 * expmed.c (store_bit_field): Prevent generation of CONCATs;
6358 pun complex values as integers; use gen_lowpart instead of
6360 (extract_bit_field): Likewise.
6362 2002-03-01 Alan Modra <amodra@bigpond.net.au>
6363 David Edelsohn <edelsohn@gnu.org>
6365 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
6366 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
6367 (SUPPORTS_WEAK): Likewise.
6368 * output.h (add_weak): Add tree param.
6369 * varasm.c (add_weak): Likewise. Save decl.
6370 (struct weak_syms): Add decl field.
6371 (mark_weak_decls): New function.
6372 (init_varasm_once): ggc_add_root mark_weak_decls.
6373 (assemble_start_function): Use ASM_WEAKEN_DECL.
6374 (assemble_variable): Likewise.
6375 (assemble_alias): Likewise.
6376 (declare_weak): Pass decl to add_weak.
6377 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
6378 (remove_from_pending_weak_list): Declare and define for
6380 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
6381 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
6382 * defaults.h (SUPPORTS_WEAK): Likewise.
6383 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6384 .weak for code sym. Do emit .size for descriptor sym.
6385 (ASM_DECLARE_FUNCTION_SIZE): Define.
6386 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
6387 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
6388 .lglobl unless TARGET_XCOFF. Formatting fixes.
6389 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6391 (HANDLE_PRAGMA_WEAK): Remove.
6392 (ASM_WEAKEN_LABEL): Remove.
6393 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
6395 2002-03-01 Jason Merrill <jason@redhat.com>
6397 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
6398 (TARGET_EXPR_CLEANUP): New macro.
6400 2002-02-28 Steve Ellcey <sje@cup.hp.com>
6402 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
6403 to take ptr_extend into account as third type of extension.
6404 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
6405 fields used by SUBREG_PROMOTED_UNSIGNED_P.
6406 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
6407 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
6408 * calls.c (precompute_arguments): Use new macro.
6409 (expand_call): Ditto.
6410 * combine.c (nonzero_bits): Ditto.
6411 (record_promoted_value): Ditto.
6412 * expr.c (store_expr): Ditto.
6413 (expand_expr): Ditto.
6414 * function.c (assign_parms): Ditto.
6416 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
6418 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
6419 override -shared and -shared-libgcc.
6421 2002-02-28 David O'Brien <obrien@FreeBSD.org>
6423 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
6425 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
6428 2002-02-28 Richard Henderson <rth@redhat.com>
6430 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
6431 4 cycle latency from MM producers.
6432 (ia64_internal_sched_reorder): Likewise with pipeline flush.
6434 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6436 * mklibgcc.in: Don't use GNU make extension.
6438 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
6440 * c-parse.in (STATIC): New terminal.
6441 (scspec): New non-terminal. Update productions accordingly.
6442 (program): Remove bogus ifc / end ifc.
6443 (array_declarator): Simplify production using STATIC.
6445 2002-02-28 Jim Meyering <meyering@lucent.com>
6447 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
6448 \a still means TARGET_BELL.
6450 2002-02-28 Richard Henderson <rth@redhat.com>
6452 * haifa-sched.c (sched_emit_insn): New.
6453 (schedule_block): Use last_scheduled_insn to track last insn.
6454 * sched-int.h (sched_emit_insn): Prototype.
6455 * config/ia64/ia64.c (last_issued): Remove.
6456 (ia64_variable_issue): Don't set it.
6457 (nop_cycles_until): Use sched_emit_insn.
6459 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
6461 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
6464 2002-02-28 Kazu Hirata <kazu@hxi.com>
6466 * config/h8300/h8300.c: Fix formatting.
6467 * config/h8300/h8300.h: Likewise.
6469 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
6471 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
6472 which may overwrite the high byte of the frame pointer.
6474 2002-02-28 Bo Thorsen <bo@suse.de>
6476 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
6477 (STARTFILE_SPEC): Add 64 bit files.
6478 (ENDFILE_SPEC): Likewise.
6480 2002-02-28 Jason Merrill <jason@redhat.com>
6482 * c-decl.c (finish_function): Only warn about missing return
6483 statement with -Wreturn-type.
6485 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
6487 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
6489 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
6490 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
6492 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
6494 * basic-block.h (BB_REACHABLE): Renumber.
6495 (BB_DIRTY, BB_NEW): New flags.
6496 (clear_bb_flags): Declare.
6497 (update_life_info_in_dirty_blocks): Declare.
6498 * cfg.c (clear_bb_flags): New function.
6499 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
6500 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
6501 reorder_insns, emit_insn_after): Mark block as dirty.
6502 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
6503 (update_life_info_in_dirty_blocks): New function.
6504 * recog.c (apply_change_group): Dirtify block.
6506 * cse.c (cse_insn): Reorder emitting of jump insn to keep
6508 * gcse.c (delete_null_pointer_checks): Likewise.
6510 * toplev.c (dump_file_index): Move cse2 after bp,
6512 (dump_file_info): Similary.
6513 (rest_of_compilation): Avoid most of CFG rebuilds;
6514 do first if converision after null pointer checks, do cse2
6515 after branch prediction; avoid full liveness rebuild after
6516 initializing subregs.
6517 * invoke.texi (-d options): Document -du, renumber.
6519 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
6520 (notice_new_block): Do not set BB_UPDATE_LIFE.
6521 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
6522 merge_blocks_move_successor_nojumps, merge_blocks,
6523 try_crossjump_to_edge): Likewise.
6524 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
6525 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
6526 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
6527 (merge_of_block): Do not use life_data_ok.
6528 (find_if_case_1): Do not use SET_UPDATE_LIFE.
6529 (if_convert): Use BB_DIRTY mechanizm to update life.
6530 * lcm.c (optimize_mode_switching): Update
6531 update_life_info_in_dirty_blocks
6533 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
6535 * Makefile.in (integrate.o): Update.
6536 * c-decl.c (copy_lang_decl): Rename.
6537 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6538 * integrate.c: Include langhooks.h.
6539 (copy_decl_for_inlining): Update to use langhook.
6540 * langhooks-def.h (lhd_do_nothing_t,
6541 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
6542 (LANG_HOOKS_INITIALIZER): Update.
6543 * langhooks.c (lhd_do_nothing_t): New.
6544 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
6545 * tree.h (copy_lang_decl): Remove.
6547 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6549 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
6551 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
6552 POST_DEC, and POST_MODIFY.
6554 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6556 * c-typeck.c (digest_init): Remove unused parameter; all
6559 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
6561 * expmed.c (expand_shift): Correctly test for low part of a
6564 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
6566 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
6567 insn UIDs with insn addresses.
6569 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6571 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
6572 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
6573 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
6574 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
6575 gcc.c, toplev.c: Delete code implementing -traditional mode.
6577 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
6578 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
6579 Document removal of -traditional mode for compilation, and
6580 remove documentation only relevant to that mode.
6582 * config/nextstep.h, config/ptx4.h, config/svr4.h,
6583 config/convex/convex.h, config/d30v/d30v.h,
6584 config/i386/dgux.h, config/i386/osf1elf.h,
6585 config/i386/osfelf.h, config/i386/osfrose.h,
6586 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
6587 config/m68k/hp310.h, config/m88k/dgux.h,
6588 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
6589 config/m88k/m88k.h, config/m88k/openbsd.h,
6590 config/mips/abi64.h, config/mips/osfrose.h,
6591 config/mips/svr4-5.h, config/mips/svr4-t.h,
6592 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6593 config/stormy16/stormy16.h: Remove all references to
6594 -traditional from target specs. Delete all mention of the
6595 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
6596 delete a couple of commented-out definitions of
6597 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
6600 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
6601 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
6603 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6605 * mklibgcc.in: Don't use \n in a line subject to
6606 interpretation by echo.
6608 2002-02-27 Graham Stott <grahams@redhat.com>
6610 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
6613 * loop.c (prescan_loop): Handle PARALLEL.
6615 * unroll.c (loop_iterations): Return 0 if the add_val for
6618 * final.c (output_operand_lossage): Constify PFX_STR.
6620 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
6622 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
6624 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
6625 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
6627 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
6629 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6631 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
6633 * cpplex.c (_cpp_lex_token): Handle directives in macro
6635 * cpplib.c (_cpp_handle_directive): Save and restore state
6636 if parsing macro args when entering a directive.
6637 * cppmacro.c (collect_args): No need to handle directives
6639 (enter_macro_context, replace_args): Use the original macro
6640 definition in case it was redefined whilst collecting arguments.
6644 2002-02-26 David Edelsohn <edelsohn@gnu.org>
6646 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
6647 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
6648 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
6650 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
6651 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
6652 (load_toc_v4_PIC_2): Same.
6654 2002-02-26 Alan Modra <amodra@bigpond.net.au>
6656 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
6658 2002-02-26 Richard Henderson <rth@redhat.com>
6660 * config/alpha/alpha.md (ashldi_se): Re-enable.
6662 2002-02-26 Richard Henderson <rth@redhat.com>
6664 * config/alpha/alpha.c (alpha_encode_section_info): Examine
6665 MODULE_LOCAL_P; improve commentary.
6667 2002-02-26 Zack Weinberg <zack@codesourcery.com>
6669 * doc/cpp.texi: Clarify documentation of relationship between
6672 2002-02-26 Kazu Hirata <kazu@hxi.com>
6674 * config/h8300/h8300-protos.h: Update the prototype for
6675 compute_logical_op_length. Add the prototype for
6676 compute_logical_op_cc.
6677 * config/h8300/h8300.c (compute_logical_op_length): Figure out
6679 (compute_logical_op_cc): New.
6680 * config/h8300/h8300.md: Combine all the logical op patterns
6681 in HImode and SImode. Use compute_logical_op_cc.
6683 2002-02-26 Kelley Cook <kelleycook@comcast.net>
6685 * config/i386/i386.c (print_operand): Don't append ATT-style
6686 length suffixs to x87 opcodes when in Intel mode.
6688 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
6690 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
6691 (init_emit_once): Update calls.
6692 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
6693 (init_syntax_once): Prototype.
6695 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
6697 * pa-linux.h (LIB_SPEC): Update definition.
6698 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6700 2002-02-26 Richard Henderson <rth@redhat.com>
6702 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
6703 if we emitted a stop bit.
6705 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6707 * configure.in (libgcc_visibility): Substitute.
6708 * configure: Rebuilt.
6709 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
6710 defined symbols .hidden.
6712 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6714 * attribs.c (c_common_attribute_table): Add visibility.
6715 (handle_visibility_attribute): New function.
6716 * varasm.c (assemble_visibility): New function.
6717 * output.h (assemble_visibility): Add prototype.
6718 * tree.h (MODULE_LOCAL_P): Define.
6719 * crtstuff.c (__dso_handle): Use visibility attribute.
6720 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
6721 for MODULE_LOCAL_P symbols too.
6722 * config/ia64/ia64.c (ia64_encode_section_info): Handle
6723 MODULE_LOCAL_P symbols the same way as local symbols.
6724 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
6725 into .sdata/.sbss by the user.
6726 * doc/extend.texi (Function Attributes): Document visibility
6729 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6732 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
6733 STRING_CST initializer spanning the whole variable without
6735 If expand_expr returned MEM, don't use it.
6737 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
6739 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
6740 generate a die for the lexical block.
6742 2002-02-26 Kazu Hirata <kazu@hxi.com>
6744 * config/h8300/h8300-protos.h: Add a prototype for
6745 compute_logical_op_length.
6746 * config/h8300/h8300.c (compute_logical_op_length): New.
6747 * config/h8300/h8300.md (anonymous logical patterns): Use
6748 compute_logical_op_length for length.
6750 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6752 * dwarf2out.c (modified_type_die): Do not call type_main_variant
6754 (gen_type_die): Same.
6756 * attribs.c (handle_vector_size_attribute): Set debug information.
6758 2002-02-26 Daniel Egger <degger@fhm.edu>
6760 * config/rs6000/rs6000.md: Swap define_insn attributes to
6761 fix incorrect generation of merge high instructions instead
6764 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6766 * c-typeck.c (really_start_incremental_init): Use
6767 bitsize_zero_node for vectors.
6769 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6771 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
6772 ("*set_vrsave_internal"): Same.
6774 2002-02-25 Richard Henderson <rth@redhat.com>
6776 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
6777 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
6779 2002-02-25 Jakub Jelinek <jakub@redhat.com>
6782 * config/i386/i386.c (ix86_return_pops_args): Only pop
6783 fake structure return argument if it was passed on the stack.
6785 2002-02-25 Jason Merrill <jason@redhat.com>
6787 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
6790 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
6792 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
6793 link with shared_name only.
6794 * doc/invoke.texi (Link Options): Document new behavior.
6796 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
6798 * c-typeck.c (push_init_level): Handle vectors.
6800 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
6802 * config/sparc/sparc.c (const64_high_operand): Zero-extend
6803 operands of SPARC_SETHI_P.
6804 (input_operand): Likewise.
6805 (sparc_emit_set_const32): Likewise.
6806 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
6807 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
6808 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
6809 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
6810 (movdi_insn_sp64_vis): Likewise.
6811 (movdi split, movdf split): Use SETHI32.
6812 * doc/md.texi: Document SPARC constraints L, M and N.
6814 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
6816 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
6817 ("*set_vrsave_internal"): use mfspr for Darwin.
6819 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
6820 gen_get_vrsave_internal.
6822 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6824 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
6826 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
6828 * cpplex.c (cpp_interpret_charconst): Get signedness or
6829 otherwise of wide character constants correct.
6830 * cppexp.c (lex): Get signedness of wide charconsts correct.
6832 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6834 * optabs.c (widen_operand): Only call convert_modes for
6835 promoted SUBREG if signedness matches.
6836 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
6838 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6840 * cpplib.c (glue_header_name): Use local buffer to build up
6843 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6845 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
6847 2002-02-23 Kazu Hirata <kazu@hxi.com>
6849 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
6850 H8/300[HS] separately.
6851 * config/h8300/h8300.md: Remove the early clobber constraint
6852 from bit field patterns.
6854 2002-02-23 Kazu Hirata <kazu@hxi.com>
6856 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
6858 (mulhisi3): Likewise.
6859 (umulqisi3): Likewise.
6860 (umulhisi3): Likewise.
6862 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6864 * cppinit.c (output_deps): Correct test for stdout output.
6865 (init_dependency_output): Cure warning.
6867 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6869 * expr.c (store_expr): When converting expression to promoted
6870 equivalent type, allow using SUBREG_REG of TARGET as the target
6871 of the expansion of EXP.
6872 * loop.c (basic_induction_var, case SUBREG): Always look inside.
6873 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
6874 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
6875 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
6876 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
6878 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
6880 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
6881 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
6882 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
6884 2002-02-23 Jakub Jelinek <jakub@redhat.com>
6886 PR optimization/5747
6887 * loop.c (scan_loop): Update reg info if move_movables created new
6890 2002-02-23 David Edelsohn <edelsohn@gnu.org>
6892 * gcc.c (init_gcc_spec): Revert last change.
6894 2002-02-23 David Edelsohn <edelsohn@gnu.org>
6896 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
6897 gpc_reg_operand constraint.
6899 2002-02-23 Alan Modra <amodra@bigpond.net.au>
6901 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
6902 Simplify comparison of `low'.
6903 (add_operand): Fix formatting.
6904 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
6905 (mask_operand): Disallow mask to wrap in 64-bit mode.
6906 (rs6000_stack_info): Remove redundant test setting push_p.
6907 (output_toc): Fix formatting.
6908 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
6909 cc_reg_not_cr0_operand constraint.
6910 (booldi3, boolcdi3 splitters): Same.
6912 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
6914 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
6916 2002-02-22 David Edelsohn <edelsohn@gnu.org>
6918 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
6919 gcc invoked with -shared-libgcc.
6921 2002-02-22 Jakub Jelinek <jakub@redhat.com>
6924 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
6925 decl if any of elements was TREE_USED.
6927 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
6929 * config/sparc/sol2.h: Don't include sys/mman.h.
6930 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
6931 (arith_4096_operand): Don't throw high bits away.
6932 (const64_operand): Take sign extension of CONST_INTs into account.
6933 (const64_high_operand, sparc_emit_set_const32): Likewise.
6934 (GEN_HIGHINT64): Likewise.
6935 (sparc_emit_set_const64_quick1): Likewise.
6936 (const64_is_2insns): Likewise.
6937 (print_operand): Use trunc_int_for_mode for sign extension.
6938 * config/sparc/sparc.h (SMALL_INT32): Likewise.
6939 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
6940 chars. Assume CONST_INT is already properly sign-extended.
6941 (movdi split): Sign-extend each SImode part.
6942 (andsi3 split): Don't mask high bits off, so that result
6943 remains properly sign-extend.
6944 (iorsi3 split): Likewise.
6945 (xorsi3 split): Likewise.
6947 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
6949 * fold-const.c (fold): Fix typo in comments.
6951 2002-02-21 Diego Novillo <dnovillo@redhat.com>
6953 * Makefile.in (langhooks.o): Update dependencies.
6955 2002-02-21 Diego Novillo <dnovillo@redhat.com>
6957 * langhooks.c: Include flags.h.
6959 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
6961 * testsuite/gcc.dg/attr-alwaysinline.c: New.
6963 * c-common.c (c_common_post_options): Set inline trees by
6966 * doc/extend.texi (Function Attributes): Document always_inline
6968 Update documentation about inlining when not optimizing.
6970 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
6972 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
6973 unless DECL_ALWAYS_INLINE.
6975 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
6976 unless DECL_ALWAYS_INLINE.
6977 (c_disregard_inline_limits): Disregard if always_inline set.
6979 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
6980 Disregard if always_inline set.
6981 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
6982 unless DECL_ALWAYS_INLINE.
6984 * attribs.c (handle_always_inline_attribute): New.
6985 (c_common_attribute_table): Add always_inline.
6987 * config/rs6000/altivec.h: Add prototypes for builtins
6988 requiring the always_inline attribute.
6990 2002-02-21 Eric Christopher <echristo@redhat.com>
6992 * expmed.c (store_bit_field): Try to simplify the subreg
6993 before generating a new one when when the mode size of
6994 value is less than maxmode.
6996 2002-02-21 Richard Henderson <rth@redhat.com>
6998 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
6999 than gen_rtx_PLUS to form the sum.
7000 * explow.c (force_reg): Rearrange to not allocate new pseudo
7001 when force_operand returns a register.
7002 * expr.c (expand_assignment): Allow offset_rtx expansion to
7003 return a sum. Do not force addresses into registers.
7004 (expand_expr): Likewise.
7005 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
7006 to canonicalize arithmetic that didn't simpify.
7007 (simplify_plus_minus): New argument force; update
7008 all callers. Don't split CONST unless we can do something with it,
7009 and wouldn't lose the constness of the operands.
7011 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
7012 that we generated earlier.
7014 2002-02-21 Tom Tromey <tromey@redhat.com>
7016 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7017 (output_line_info): Use constant `1', with a long explanatory
7019 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
7021 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
7023 * jump.c (redirect_jump): If old label has no UID, don't try to
7026 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
7028 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
7029 If input is constant, do shifts at compile time.
7031 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
7033 * doc/extend.texi: Fix some more overfull hboxes.
7035 2002-02-21 Jakub Jelinek <jakub@redhat.com>
7037 PR optimization/4994
7038 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
7041 2002-02-21 Jakub Jelinek <jakub@redhat.com>
7044 * expr.h (expand_and): Add mode argument.
7045 * expmed.c (expand_and): Add mode argument.
7046 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
7047 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
7048 * except.c (expand_builtin_extract_return_addr): Likewise.
7049 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
7050 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
7051 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
7052 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
7053 * config/c4x/c4x.md: Use GEN_INT (x) instead of
7054 gen_rtx (CONST_INT, VOIDmode, x).
7056 2002-02-21 Jakub Jelinek <jakub@redhat.com>
7059 * stmt.c (warn_if_unused_value): Move side effects test once more.
7061 2002-02-20 Torbjorn Granlund <tege@swox.com>
7063 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
7064 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
7066 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
7068 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
7069 SUBREG or ZERO_EXTEND.
7071 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
7073 * sh.h (current_function_anonymous_args): Remove.
7074 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
7075 of current_function_varargs and current_function_stdarg is set.
7076 * sh.c (sh_expand_prologue): Check current_function_varargs /
7077 current_function_stdarg / TARGET_SH5 instead of
7078 current_function_anonymous_args.
7080 * sh64.h (TARGET_VERSION): Define.
7082 2002-02-20 David Edelsohn <edelsohn@gnu.org>
7084 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
7085 VRSAVE_REGNO on TARGET_ALTIVEC.
7087 2002-02-20 Alan Modra <amodra@bigpond.net.au>
7089 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
7090 bits of SImode const_int.
7091 (includes_rshift_p): Likewise.
7092 (print_operand): Call mask_operand and mask64_operand with correct
7094 (rs6000_output_function_epilogue): Pad traceback table to word.
7095 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
7096 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
7097 mask64_operand with correct mode.
7098 (FUNCTION_ARG_REGNO_P): Correct parentheses.
7100 2002-02-20 Jakub Jelinek <jakub@redhat.com>
7103 * varasm.c (get_pool_constant_mark): New.
7104 * rtl.h (get_pool_constant_mark): Add prototype.
7105 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
7106 be represented if it has not been output.
7108 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
7110 * combine.c (do_SUBST): Sanity check substitutions of
7111 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
7112 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
7113 CONST_INT into its operand.
7114 (known_cond): Likewise, for ZERO_EXTEND.
7115 * simplify-rtx.c (simplify_unary_operation): Fix condition to
7116 allow for simplification of wide modes. Reject CONST_INTs in
7117 ZERO_EXTEND when their actual mode is not given.
7119 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
7121 * c-decl.c (pushdecl): If no global declaration is found for an
7122 extern declaration in block scope, try a limbo one.
7124 2002-02-20 Jakub Jelinek <jakub@redhat.com>
7127 * c-common.c (pointer_int_sum): Moved from...
7128 * c-typeck.c (pointer_int_sum): ...here.
7129 * c-common.h (pointer_int_sum): Add prototype.
7131 2002-02-20 Jakub Jelinek <jakub@redhat.com>
7134 * c-decl.c (duplicate_decls): Return 0 if issued error about
7137 2002-02-20 Roger Sayle <roger@eyesopen.com>
7138 Jakub Jelinek <jakub@redhat.com>
7141 * tree.c (host_integerp): Ensure that the constant integer is
7142 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
7143 when pos is zero or non-zero respectively. Clarify comment.
7144 * c-format.c (check_format_info_recurse): Fix host_integerp
7145 usage; the pos argument should be zero when assigning to a
7146 signed HOST_WIDE_INT.
7148 2002-02-20 Richard Henderson <rth@redhat.com>
7150 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
7151 of the operand, rather than assuming TImode.
7152 (ix86_expand_binop_builtin): Cope with commutative patterns
7153 using nonimmediate_operand for both operands.
7154 (ix86_expand_timode_binop_builtin): Likewise.
7155 (ix86_expand_store_builtin): Validate operand 1.
7156 (ix86_expand_unop1_builtin): Likewise.
7158 2002-02-20 Philip Blundell <philb@gnu.org>
7161 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
7163 2002-02-20 Richard Henderson <rth@redhat.com>
7166 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
7168 2002-02-20 Tom Tromey <tromey@redhat.com>
7170 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7171 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7172 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7173 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7174 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
7177 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
7179 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
7180 for (const_int 0) in X not just INTVAL.
7182 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
7184 * doc/extend.texi: Avoid or reduce overfull hboxes.
7186 2002-02-20 Diego Novillo <dnovillo@redhat.com>
7188 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
7189 operations if the field does not start at a mode boundary.
7191 2001-02-20 Joel Sherrill <joel@OARcorp.com>
7193 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
7194 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
7195 Also done for -Acpu and -Amachine.
7197 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
7199 * cppinit.c (init_dependency_output): Take deps output file
7200 from -o if none given with -MF. Suppress normal output.
7201 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
7202 * doc/cpp.texi, doc/invoke.texi: Update.
7204 2002-02-19 Zack Weinberg <zack@codesourcery.com>
7206 * toplev.c (output_quoted_string): Write unprintable
7207 characters with octal escapes.
7209 2002-02-19 David Edelsohn <edelsohn@gnu.org>
7211 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
7212 really_call_used[VRSAVE_REGNO] if not Altivec.
7214 2002-02-19 Alan Modra <amodra@bigpond.net.au>
7216 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
7218 (constant_pool_expr_1): Fix formatting.
7219 (rs6000_legitimize_reload_address): Likewise.
7221 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7223 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
7224 now that we have one.
7226 2002-02-19 Zack Weinberg <zack@codesourcery.com>
7228 * tree.h (struct tree_common): Remove aux. Add unused_0 at
7229 end of first block of bitfields (which was only seven bits);
7230 rename dummy to unused_1; remove comment which is no longer true.
7232 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
7234 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
7236 2002-02-19 Philip Blundell <pb@nexus.co.uk>
7239 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
7243 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
7244 arm_is_longcall_p rather than inspecting call-type cookie
7246 (call_value_insn) [TARGET_THUMB]: Likewise.
7248 2002-02-19 Graham Stott <grahams@redhat.com>
7250 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
7252 2002-02-19 David Edelsohn <edelsohn@gnu.org>
7254 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
7255 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
7256 (FP_SAVE_INLINE): Delete.
7258 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
7259 * config/rs6000/eabi.asm: Remove ABI save restore routines.
7260 * config/rs6000/t-ppccomm: Build crtsavres.o.
7261 * config/rs6000/crtsavres.asm: New file.
7263 2002-02-19 Philip Blundell <philb@gnu.org>
7265 * config/arm/arm.c (use_return_insn): Don't reject interrupt
7267 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
7268 (output_return_instruction): Allow interrupt functions to return with
7269 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
7270 (arm_expand_prologue): Subtract 4 before stacking LR in an
7273 2002-02-19 Philip Blundell <pb@nexus.co.uk>
7275 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
7276 decl, not just FUNCTION_DECL.
7277 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
7278 (arm_assemble_integer): Likewise.
7279 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
7282 2002-02-19 matthew green <mrg@eterna.com.au>
7284 * config.gcc (sparc-*-netbsdelf*): Enable target.
7285 (sparc64-*-netbsd*): New target.
7286 * config/sparc/netbsd-elf.h: New file.
7287 * config/sparc/t-netbsd64: New file.
7289 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
7291 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
7293 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
7295 * doc/invoke.texi: explicitly list the style guidelines that
7296 -Weffc++ checks for.
7298 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
7300 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
7302 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
7305 * gcc.c (cpp_unique_options): Treat -o as indicating object file
7306 only if not -E. If -E, pass -o through to the preprocessor.
7308 2002-02-19 Kazu Hirata <kazu@hxi.com>
7310 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
7311 register number with an appropriate macro.
7313 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
7315 * doc/rtl.texi (Constants): Close @code tag.
7317 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
7319 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
7320 ("mmx_uavgv4hi3"): Same.
7321 ("pmulhrwv4hi3"): Same.
7323 * tree-inline.c (walk_tree): Handle vectors.
7325 * c-common.c (constant_expression_warning): Handle vectors.
7326 (overflow_warning): Same.
7328 * sched-deps.c (sched_analyze_2): Handle vectors.
7330 * rtlanal.c (rtx_unstable_p): Handle vectors.
7331 (rtx_varies_p): Same.
7332 (count_occurrences): Same.
7333 (regs_set_between_p): Same.
7334 (modified_between_p): Same.
7335 (modified_in_p): Same.
7336 (volatile_insn_p): Same.
7337 (volatile_refs_p): Same.
7338 (side_effects_p): Same.
7340 (inequality_comparisons_p): Same.
7341 (replace_regs): Same.
7342 (computed_jump_p_1): Same.
7344 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
7346 (inner_mode_array): New.
7347 (copy_rtx): Handle vectors.
7348 (copy_most_rtx): Same.
7349 (rtx_equal_p): Same.
7350 (get_mode_alignment): Adjust for vectors.
7352 * resource.c (mark_referenced_resources): Handle vectors.
7353 (mark_set_resources): Same.
7355 * reload1.c (eliminate_regs): Handle vectors.
7356 (elimination_effects): Same.
7357 (scan_paradoxical_subregs): Same.
7359 * reload.c (subst_reg_equivs): Handle vectors.
7361 * regrename.c (scan_rtx): Handle vectors.
7363 * regclass.c (reg_scan_mark_refs): Handle vectors.
7365 * recog.c (find_single_use_1): Handle vectors.
7367 * local-alloc.c (equiv_init_varies_p): Handle vectors.
7368 (contains_replace_regs): Same.
7369 (memref_referenced_p): Same.
7371 * integrate.c (copy_rtx_and_substitute): Handle vectors.
7372 (subst_constants): Same.
7374 * genattrtab.c (attr_copy_rtx): Handle vectors.
7375 (encode_units_mask): Same.
7376 (clear_struct_flag): Same.
7377 (count_sub_rtxs): Same.
7379 * gcse.c (want_to_gcse_p): Handle vectors.
7380 (oprs_unchanged_p): Same.
7381 (hash_expr_1): Same.
7382 (oprs_not_set_p): Same.
7383 (expr_killed_p): Same.
7384 (compute_transp): Same.
7385 (store_ops_ok): Same.
7387 * function.c (purge_addressof_1): Do not allow paradoxical subregs
7389 (fixup_var_refs_1): Same.
7390 (instantiate_virtual_regs_1): Same.
7392 * fold-const.c (operand_equal_p): Handle vectors.
7394 (rtl_expr_nonnegative_p): Same.
7396 * flow.c (mark_used_regs): Handle vectors.
7398 * df.c (df_uses_record): Handle vectors.
7400 * cselib.c (cselib_subst_to_values): Handle vectors.
7401 (cselib_mem_conflict_p): Same.
7404 * cse.c (canon_reg): Handle vectors.
7406 (cse_process_notes): Same.
7407 (count_reg_usage): Same.
7410 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
7412 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
7414 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
7415 (gen_rtx): Handle CONST_VECTOR.
7416 (gen_const_vector_0): New.
7417 (copy_rtx_if_shared): CONST_VECTORs can be shared.
7418 (reset_used_flags): Same.
7419 (copy_insn_1): Same.
7420 (initializer_constant_valid_p): Handle VECTOR_CST.
7422 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
7424 * doc/rtl.texi (Constants): Document const_vector.
7425 (CONST0_RTX): Update for vectors.
7426 (RTL sharing): Same.
7428 * print-tree.c (print_node): Add case for VECTOR_CST.
7430 * tree.h (TREE_VECTOR_CST_ELTS): New.
7431 (struct tree_vector): New.
7432 (union tree_node): Add vector node.
7433 (build_vector): Add prototype.
7435 * tree.def (VECTOR_CST): New.
7437 * tree.c (build_vector): New.
7439 * expmed.c (make_tree): Handle CONST_VECTOR.
7441 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
7442 (CONST_VECTOR_ELT): New.
7443 (CONST_VECTOR_NUNITS): New.
7445 * machmode.h (GET_MODE_INNER): New.
7446 (DEF_MACHMODE): Accept 8th arg.
7448 * machmode.def: Add 8th argument for vector inner mode.
7449 Add inner vector modes for vectors.
7451 * rtl.def (VEC_CONST): Remove.
7452 (CONST_VECTOR): New.
7454 * expr.c (clear_storage): Allow vectors.
7455 (is_zeros_p): Handle VECTOR_CST.
7457 * varasm.c (output_constant_pool): Handle vectors.
7458 (rtx_const): Add veclo and vechi fields.
7459 (kind): Add RTX_VECTOR.
7460 (decode_rtx_const): Add case for vector.
7462 * config/rs6000/rs6000-protos.h: Add zero_constant.
7464 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
7465 constants. Force easy vector constants into memory.
7466 (easy_vector_constant): New.
7467 (emit_easy_vector_constant): New.
7468 (rs6000_legitimize_reload_address): Do not generate bad reloads on
7471 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
7473 ("altivec_lvxl"): Same.
7474 (altivec_lvebx): Same.
7475 (altivec_lvehx): Same.
7476 (altivec_lvewx): Same.
7477 ("*movv4si_const0"): New.
7478 ("*movv4sf_const0"): New.
7479 ("*movv8hi_const0"): New.
7480 ("*movv16qi_const0"): New.
7482 2002-02-18 Kazu Hirata <kazu@hxi.com>
7484 * config/h8300/h8300.c (notice_update_cc): Use
7487 2002-02-18 Kazu Hirata <kazu@hxi.com>
7489 * config/h8300/h8300.md (divmod patterns): Change the
7490 constraints for operands[1] to register_operand.
7492 2002-02-18 Kazu Hirata <kazu@hxi.com>
7494 * config/h8300/h8300-protos.h: Remove the prototype for
7496 * config/h8300/h8300.c (p_operand): Remove.
7497 * config/h8300/h8300.md: Replace p_operand with
7500 2002-02-18 Philip Blundell <pb@nexus.co.uk>
7502 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
7504 (output_return_instruction): Allow use of LDR to unstack
7505 return addresss even for interrupt handlers or when
7506 interworking. If compiling for ARMv5, use interworking-safe
7507 return instructions by default. Remove duplicated code and
7508 lengthy "strcat" sequences.
7510 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7512 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
7513 (LINK_EH_SPEC): Define.
7514 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
7516 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
7518 * config/s390/s390.c (s390_emit_prologue): Do not set the
7519 frame_related flag for call-clobbered registers.
7521 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
7523 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
7524 (construct_container): Fix handling of SSE operands.
7525 (ix86_expand_builtin): Fix handling of 64bit pointers.
7526 (mmx_maskmovq_rex): New pattern.
7528 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
7530 * regrename.c (kill_set_value): Handle subregs properly.
7532 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
7534 * objc/objc-act.c (handle_impent): Remove leading '*'
7535 from objc_class_name.
7537 2002-02-17 Richard Henderson <rth@redhat.com>
7539 * config/alpha/alpha.c (some_small_symbolic_operand,
7540 some_small_symbolic_operand_1, split_small_symbolic_operand,
7541 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
7542 Handle small SYMBOL_REFs anywhere, not just inside memories.
7543 * config/alpha/alpha-protos.h: Update.
7544 * config/alpha/alpha.h (PREDICATE_CODES): Update.
7545 * config/alpha/alpha.md (small symbolic operand splitter): Update.
7547 2002-02-17 Roland McGrath <roland@frob.com>
7549 * config.gcc (powerpc-*-gnu-gnualtivec*,
7550 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
7551 * config/rs6000/gnu.h: New file.
7552 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
7553 Grok "gnu" in rs6000_abi_name.
7554 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
7555 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
7556 Grok -mcall-gnu analogous to -mcall-linux et al.
7557 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7558 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
7559 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
7561 2002-02-17 Jakub Jelinek <jakub@redhat.com>
7564 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
7567 2002-02-17 Philipp Thomas <pthomas@suse.de>
7569 * config/cris/cris.h: Undefine STARTFILE_SPEC and
7570 ENDFILE_SPEC before (re)defining them.
7572 2002-02-17 Kazu Hirata <kazu@hxi.com>
7574 * config/h8300/h8300.c: Fix formatting.
7575 * config/h8300/h8300.h: Likewise.
7577 2002-02-17 Philipp Thomas <pthomas@suse.de>
7579 * doc/tm.texi: Explain why empty strings should not be
7580 marked for translation.
7582 2002-02-17 Philipp Thomas <pthomas@suse.de>
7584 * final.c (output_operand_lossage): Changed to accept
7585 printf style arguments. Change calls where necessary.
7586 * output.h (output_operand_lossage): Change declaration
7587 accordingly. Update copyright.
7588 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
7589 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
7590 Update copyright date where necessary.
7592 * config/i386/i386.c (print_operand): Likewise. Remove use of
7595 * config/cris/cris.c (cris_operand_lossage): Likewise.
7596 Rename parameter so that exgettext recognizes it as
7597 translatable message.
7598 (LOSE_AND_RETURN): Rename parameter to msgid.
7600 2002-02-17 Kazu Hirata <kazu@hxi.com>
7602 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
7603 hard coded register number with an appropriate macro.
7604 (HARD_REGNO_MODE_OK): Likewise.
7605 (ARG_POINTER_REGNUM): Likewise.
7606 (STATIC_CHAIN_REGNUM): Likewise.
7607 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
7608 * config/h8300/h8300.md (define_constants): Define more
7611 2002-02-17 Philipp Thomas <pthomas@suse.de>
7613 * config/i386/i386.h: Don't mark empty strings for translation.
7615 2002-02-16 H.J. Lu <hjl@gnu.org>
7617 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
7619 2002-02-16 Zack Weinberg <zack@codesourcery.com>
7621 * cppinit.c (merge_include_chains): Check for brack being
7622 NULL before attempting to merge it with qtail.
7624 2002-02-16 Andrew Cagney <ac131313@redhat.com>
7626 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
7629 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
7631 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
7633 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
7635 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
7636 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
7637 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
7639 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7641 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
7642 now only if !TARGET_FIX.
7643 (*movsi_nt_vms_fix): New pattern.
7645 2002-02-16 Douglas B Rupp <rupp@gnat.com>
7647 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
7648 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
7649 (alpha_sa_mask, alpha_sa_size): Reflect above change.
7650 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
7651 (alpha_start_function, alpha_expand_epilogue): Likewise.
7652 (unicosmk_gen_dsib): Likewise.
7654 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7656 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
7658 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
7660 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
7661 check_and_change_labels, s390_final_chunkify): Delete.
7662 (s390_split_branches, s390_chunkify_pool): New functions.
7663 (s390_function_prologue): Call them.
7665 * config/s390/s390.h (S390_REL_MAX): Delete.
7666 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
7668 * config/s390/s390.md (cjump, icjump, jump): Fix length
7669 attribute calculation.
7672 2002-02-15 David Edelsohn <edelsohn@gnu.org>
7674 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
7675 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
7677 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
7679 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
7680 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
7681 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
7683 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
7685 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
7687 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
7689 * reload.c (find_dummy_reload): Check that an output register
7690 is valid for its mode.
7692 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
7694 * combine.c (known_cond): After replacing the REG of a SUBREG, try
7697 * function.c (assign_parms): Demote promoted argument passed by
7698 transparent reference.
7700 2001-02-14 Joel Sherrill <joel@OARcorp.com>
7702 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
7703 -Acpu() and -Amachine() to eliminate warnings.
7705 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
7707 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
7709 2002-02-14 Kazu Hirata <kazu@hxi.com>
7711 * config/h8300/h8300-protos.h: Update the prototype for
7713 * config/h8300/h8300.c (const_costs): Treat SET as a little
7714 more expensive operation.
7715 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
7716 reference to const_costs.
7718 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
7720 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
7722 2002-02-14 Jakub Jelinek <jakub@redhat.com>
7725 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
7726 use arguments from newtype.
7728 2002-02-13 Eric Christopher <echristo@redhat.com>
7730 * config/mips/mips.c (override_options): Add check for march/mipsX
7731 on the same command line. Fix error message in cpu processing.
7732 Remove architecture and ISA checks.
7734 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
7736 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
7738 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
7740 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
7742 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
7744 ("*movv8hi_internal1"): Same.
7745 ("*movv16qi_internal1"): Same.
7746 ("*movv4sf_internal1"): Same.
7748 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
7749 not push_reload for altivec modes.
7751 2002-02-13 Joel Sherrill <joel@OARcorp.com>
7753 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
7754 all RTEMS targets including removal of #includes from config/*/rtems*.h
7755 file and adding them to tm_file setting. Added xm_defines=POSIX to
7757 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
7758 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
7759 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
7760 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
7761 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
7762 config/m68k/rtemself.h: Ditto.
7763 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
7764 config/mips/rtems64.h: Ditto.
7765 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
7766 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
7768 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
7769 config/sparc/rtemself.h: Ditto.
7770 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
7771 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
7772 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
7774 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
7775 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
7776 target made more similar to i386-elf.
7777 * config/i386/t-rtems-i386: Added soft float support and multilibs.
7778 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
7779 be similar to config/m68k/t-m68kelf.
7780 * gthr-rtems.h: Encapsulate with extern "C" for C++.
7782 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
7784 * regmove.c (kill_value): Handle subregs.
7786 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
7788 * i386.md (mul patterns): Allow memory operand to be first;
7789 add expanders where needed; fix constraints.
7790 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
7791 Allow memory operand to be the first.
7793 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
7796 2002-02-13 Jakub Jelinek <jakub@redhat.com>
7799 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
7802 2002-02-13 Jakub Jelinek <jakub@redhat.com>
7804 PR optimization/5547:
7805 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
7806 all valid IA-32 address modes involving non-scaled %ebx and
7807 GOT/GOTOFF as displacement.
7809 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
7811 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
7812 after emitting ltorg insns.
7814 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
7815 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
7816 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
7817 *abssf2): Fix "op_type" attribute.
7819 2002-02-13 Douglas B Rupp <rupp@gnat.com>
7821 * mkconfig.sh: Avoid using a subshell redirect.
7822 ($output.T): Change to $(output)T.
7823 (ENABLE_NLS): Remove unneeded undef.
7825 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
7826 * config/alpha/x-vms (libsubdir): Define.
7828 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
7829 register frame procedures. Optimize retrieving context.
7831 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
7832 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
7833 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
7835 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7837 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
7838 Make same change as for find_base_value.
7840 2002-02-13 Kazu Hirata <kazu@hxi.com>
7842 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
7843 of QImode and SImode.
7845 2002-02-13 Kazu Hirata <kazu@hxi.com>
7847 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
7848 length computation of movsi.
7849 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
7851 2002-02-13 Kazu Hirata <kazu@hxi.com>
7853 * config/h8300/h8300.md (subqi3): Tighten the predicate for
7854 operands[2] to register_operand.
7856 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
7858 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
7860 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
7862 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
7863 for altivec_lvx* and altivec_stvx*.
7864 ("*movv4si_internal"): Add constraint for loading from GPRs.
7865 ("*movv8hi_internal1"): Same.
7866 ("*movv16qi_internal1"): Same.
7867 ("*movv4sf_internal1"): Same.
7869 * config/rs6000/rs6000.c (altivec_register_operand): New.
7871 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
7872 altivec_register_operand.
7874 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
7876 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
7879 2002-02-13 Stan Shebs <shebs@apple.com>
7881 * c-typeck.c (digest_init): Handle vectors.
7882 (really_start_incremental_init): Same.
7883 (pop_init_level): Same.
7884 (process_init_element): Same.
7886 * varasm.c (output_constant): Same.
7888 * expr.c (clear_storage): Same.
7889 (store_constructor): Same.
7891 2002-02-12 Eric Christopher <echristo@redhat.com>
7893 * explow.c (hard_function_value): Add comment explaining
7894 signed/unsigned comparison.
7896 2002-02-12 Jakub Jelinek <jakub@redhat.com>
7898 * jump.c (never_reached_warning): Add finish argument.
7899 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
7900 real insn after end.
7901 * rtl.h (never_reached_warning): Adjust prototype.
7902 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
7903 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
7904 never_reached_warning.
7906 2002-02-12 Graham Stott <grahams@redhat.com>
7908 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
7910 2002-02-12 Kazu Hirata <kazu@hxi.com>
7912 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
7913 logical shifts on H8/300.
7914 (shift_alg_si): Improve several shifts on H8/300.
7915 (get_shift_alg): Likewise.
7917 2002-02-12 Graham Stott <grahams@redhat.com>
7919 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
7921 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7923 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
7924 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
7926 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
7928 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
7929 non-CONST_INT through default_assemble_integer.
7930 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
7931 <case 8>: Abort for CONST_DOUBLE.
7933 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7935 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
7937 * config/pa/pa-linux.h (LIB_SPEC): Delete.
7938 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7940 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
7942 * config/stormy16/stormy16.md (zero_extendqihi2): New.
7944 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
7946 * regrename.c (regrename_optimize): Don't accept a
7947 part-clobbered register if the replaced register is not part
7950 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
7951 take padding into account when computing the argument value.
7953 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
7955 * combine.c (try_combine): Apply substitutions in
7956 CALL_INSN_FUNCTION_USAGE too.
7958 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
7960 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
7961 __builtin_altivec_abs*.
7964 * config/rs6000/rs6000.h (rs6000_builtins): Add
7965 ALTIVEC_BUILTIN_ABS*.
7967 * config/rs6000/altivec.h: Use const char for builtins expecting
7969 (vec_abs): New versions for C and C++.
7972 2002-02-10 Kazu Hirata <kazu@hxi.com>
7974 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
7977 2002-02-10 Kazu Hirata <kazu@hxi.com>
7979 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
7980 constant definition from h8300.md.
7981 (FRAME_POINTER_REGNUM): Likewise.
7982 * config/h8300/h8300.md (define_constants): Add FP_REG.
7984 2002-02-10 Kazu Hirata <kazu@hxi.com>
7986 * config/h8300/h8300.c (print_operand): Remove redundant code.
7988 2002-02-10 Kazu Hirata <kazu@hxi.com>
7990 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
7991 * config/h8300/h8300.c (byte_reg): Make it static.
7993 2002-02-10 Richard Henderson <rth@redhat.com>
7996 * c-typeck.c (incomplete_type_error): Handle flexible array members.
7998 2002-02-10 Richard Henderson <rth@redhat.com>
8001 * tree.c (append_random_chars): Don't abort if main_input_filename
8004 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
8006 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
8008 2002-02-10 Kazu Hirata <kazu@hxi.com>
8010 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
8011 (pushhi1): Likewise.
8013 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
8015 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
8016 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
8018 2002-02-09 David O'Brien <obrien@FreeBSD.org>
8020 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
8022 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
8024 2002-02-09 Kazu Hirata <kazu@hxi.com>
8026 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
8027 a half of an SImode register on H8/300.
8029 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
8031 * i386.md (movdi_2): Add missing '!'.
8033 2002-02-09 Kazu Hirata <kazu@hxi.com>
8035 * config/h8300/h8300.h: Fix formatting. Remove commented-out
8038 2002-02-09 Kazu Hirata <kazu@hxi.com>
8040 * config/h8300/h8300.md (length): Correct the distance valid
8041 for the short branch.
8043 2002-02-09 Kazu Hirata <kazu@hxi.com>
8045 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
8047 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
8049 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
8050 registers in SImode.
8051 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
8054 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
8057 Contribute sh64-elf.
8058 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
8059 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
8060 (sh_cannot_modify_jumps_p): New function.
8061 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
8062 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
8063 (sh_ms_bitfield_layout_p): New function.
8064 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
8065 Zack Weinberg <zack@codesourcery.com>
8066 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
8067 expand_simple_binop instead of expand_binop.
8068 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
8069 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
8070 use of .quad and .uaquad.
8071 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
8072 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
8073 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8074 * config/sh/sh.md (movdi_const, movdi_const_32bit,
8075 movdi_const_16bit): Make sure all CONSTs have modes.
8076 (sym2PIC): Ditto, but by adjusting all callers.
8077 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
8078 if the prologue calls the SHmedia argument decoder or register
8080 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8081 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
8082 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
8083 (sh_expand_epilogue): Don't emit USE of return target register.
8084 (prepare_move_operands): Legitimize DImode PIC addresses.
8085 (sh_media_register_for_return): Skip tr0, used to initialize the
8087 (sh_expand_prologue): Remove explicit USE of return register.
8088 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
8089 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
8090 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
8091 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
8092 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
8094 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
8095 (MOVI_SHORI_BASE_OPERAND_P): New.
8096 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
8097 (EXTRA_CONSTRAINT_T): Define in terms of them.
8098 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
8099 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
8100 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
8101 alternatives supporting TARGET_REGS.
8102 (UNSPEC_GOTPLT): New constant.
8103 (movdi split): Move incrementing of LABEL_NUSES...
8104 (movdi_const, movdi_const_32bit): Here. Use
8105 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
8106 (movdi_const_16bit): New.
8107 (call, call_value) [flag_pic]: Use GOTPLT.
8108 (call_pop, call_value_pop): New expands.
8109 (call_pop_compact, call_pop_rettramp): New insns.
8110 (call_value_pop_compact, call_value_pop_rettramp): New insns.
8111 (sibcall) [flag_pic]: Use GOT.
8112 (builtint_setjmp_receiver): Remove bogus, unused expand.
8113 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
8114 (*pt, *ptb, ptrel): New insns.
8115 (sym2GOT): Handle DImode GOT.
8116 (sym2GOTPLT, symGOTPLT2reg): New expands.
8117 (sym2PIC): New expand.
8118 (shcompact_return_tramp): Use GOTPLT to return trampoline.
8119 (shcompact_return_tramp_i): Use return register explicitly.
8120 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
8121 disable flag_reorder_blocks.
8122 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
8123 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
8124 clobbers, for clarity.
8125 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
8126 restoring of r0 in macl as MAYBE_DEAD.
8127 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
8128 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
8129 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
8130 alter_subreg all over.
8131 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
8132 reload, instead of emitting instructions that would require
8134 (casesi_load_media): Add missing modes.
8135 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
8136 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
8137 as used if the argument decoder is called.
8138 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
8139 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
8140 Pmode, then extend it to DImode if necessary.
8141 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
8142 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
8143 constants in FPU-enabled SHmedia, let them be loaded from memory.
8144 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
8145 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
8146 Adjust whitespace in assembly output templates.
8147 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
8148 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
8149 mode of if_then_else.
8150 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
8151 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
8153 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
8154 Joern Rennecke <amylaar@redhat.com>
8155 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
8156 (SUBTARGET_CPP_PTR_SPEC): New.
8157 (SUBTARGET_CPP_SPEC): Remove.
8158 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
8159 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8160 Fix typo in previous checkin.
8161 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
8162 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
8163 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
8164 Alexandre Oliva <aoliva@redhat.com>
8165 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
8166 what single FP register can hold for SHmedia target.
8167 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
8168 Alexandre Oliva <aoliva@redhat.com>
8169 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8170 Do not split into SUBREG.
8171 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
8172 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
8173 and added new functions as specified in SH5 ABI r9.
8174 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
8175 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
8177 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
8178 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
8179 gen_consttable_4 and gen_consttable_8. Emit multiple labels
8180 and consttable_window_ends.
8181 2001-06-03 Graham Stott <grahams@redhat,com>
8182 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
8183 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
8184 * config/sh/sh.c (print_operand): Handle floating-point pair,
8185 vector and matrix registers.
8186 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
8187 vector modes into account.
8188 * config/sh/sh.md (movv2sf): Split move between registers into
8190 (movv4sf, movv16sf): Introduce insns that get split only after
8192 * config/sh/shmedia.h: Fix Copyright dates.
8193 * config/sh/ushmedia.h: Likewise. Move loop counter
8194 declarations into conditionals that uses them.
8195 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
8197 * config/sh/sshmedia.h: Fix Copyright dates.
8198 (sh_media_PUTCFG): Fix constraints.
8199 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
8200 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
8201 ptrmemfunc_vbit_in_delta for SH5.
8202 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
8203 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
8204 * invoke.texi: Likewise.
8205 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
8206 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
8207 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
8208 GCC_pop_shmedia_regs_nofpu): New global symbols.
8209 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
8210 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
8211 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
8212 compact function with nonlocal labels.
8213 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
8214 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
8215 (initial_elimination_offset): Account for their stack space.
8216 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
8217 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
8218 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
8219 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
8220 least one of the operands to be a register.
8221 (movv2sf): Likewise. Renamed to movv2sf_i.
8222 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
8223 prepare_move_operands() before emitting SHmedia insns.
8224 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
8225 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
8226 Don't save nor initialize r12. Don't mis-align the stack.
8227 Pad the code with a nop.
8228 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
8230 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
8231 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
8232 [__SHMEDIA__]: Implement.
8233 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
8234 * config/sh/sh.md: Set latency of `pt' closer to reality.
8235 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
8236 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
8237 Set move, load and store type attributes.
8238 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
8239 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
8241 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
8242 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
8243 * config/sh/sh.c (sh_media_register_for_return): New function.
8244 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
8245 branch-target register.
8246 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
8247 * config/sh/sh.md (return_media_i): Use any call-clobbered
8248 branch-target register.
8249 (return_media): If r18 wasn't copied in the prologue, copy it
8251 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
8252 Clear class FP0_REGS.
8253 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
8255 2001-03-08 DJ Delorie <dj@redhat.com>
8256 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
8257 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
8258 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
8259 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
8260 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
8261 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
8262 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
8263 return value correctly for call_cookie.
8264 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
8265 * config/sh/crt1.asm (start): Modified so as to call
8266 ___setup_argv_and_call_main.
8267 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
8268 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
8270 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
8271 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
8272 (STRIP_NAME_ENCODING): Use it.
8273 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
8274 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
8275 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
8276 prepare_scc_operands().
8277 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
8278 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
8279 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
8280 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
8281 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
8282 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
8283 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
8284 used in shcompact_incoming_args.
8285 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
8287 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
8289 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
8291 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
8292 Simplify. Adjust. Add sanity check.
8293 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
8295 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
8297 (udivsi3, divsi3): Use them.
8298 (force_mode_for_call): New insn.
8299 (call, call_value, sibcall_value): Emit it before SHcompact
8301 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
8302 * config/sh/sh.md (call, call_value, sibcall): Make sure the
8303 call cookie is non-NULL before taking its value.
8304 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
8305 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
8306 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
8307 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
8309 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
8310 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
8311 temporary for stack adjusts. Use MACL and MACH to pass
8312 arguments to shcompact_incoming_args.
8313 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
8315 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
8316 (nested_trampoline): Load static chain address into r1.
8317 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
8318 2001-01-07 Alexandre Oliva <aoliva@redhat.com
8319 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
8320 fp_arith_reg_operand().
8321 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
8322 * config/sh/sh.md (casesi): Sign-extend the first two operands,
8323 and use signed compares for them.
8324 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
8325 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
8326 ones properly aligned.
8327 (find_barrier): Account for extra alignment needed for 8-byte wide
8329 (machine_dependent_reorg): Require a label for the second 4-byte
8330 constant after an 8-byte one.
8331 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
8333 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
8334 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
8335 last_float when switching float modes.
8336 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
8337 auto-increment for general-purpose registers.
8338 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
8340 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
8342 * config/sh/sh.c (sh_builtin_saveregs): Support using all
8343 registers for varargs.
8344 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
8345 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
8346 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
8347 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
8348 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
8349 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
8350 call_cookie accordingly.
8351 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
8352 (SHCOMPACT_BYREF): Likewise.
8353 (SHCOMPACT_FORCE_ON_STACK): New macro.
8354 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
8355 (sh_builtin_saveregs): Likewise.
8356 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8357 shcompact_incoming_args): Use new shift values. Support
8358 sequences of consecutive and non-consecutive pushes/pops.
8359 * config/sh/sh.md (return): Don't explicitly use PR_REG.
8360 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
8361 * config/sh/sh.h (TEXT_SECTION): Define.
8362 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
8363 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
8364 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
8365 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
8366 return values on FPU-enabled SHmedia.
8367 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
8368 FPU-enabled SHmedia.
8369 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
8370 value is returned in a non-FP reg and is not returned by
8372 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
8374 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
8375 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
8376 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
8377 quad-aligned to be passed by callee-copy reference.
8378 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
8379 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
8380 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
8381 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
8382 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
8383 copying low-numbered FP regs to r7 and r8.
8384 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
8385 FP regs to general-purpose regs only if the copy was passed on the
8387 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
8388 copying FP reg to r9.
8389 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
8390 copy FP regs to general-purpose regs only in outgoing calls.
8391 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
8392 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
8394 * config/sh/sh.h (struct sh_args): Document all fields.
8395 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
8396 passed partially on the stack should not consider making
8398 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
8399 stack_regs only for incoming calls. When passing FP args,
8400 make sure there are FP regs available before modifying
8402 (SHCOMPACT_BYREF): Pass double args in general-purpose
8403 registers by reference.
8404 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
8405 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
8406 attempt to generate sibcalls if the caller got any arguments
8408 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
8409 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
8410 to 8-byte boundaries.
8411 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
8412 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
8413 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
8414 stored in the stack.
8415 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
8416 for the offsets to have the ISA bit set.
8417 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
8418 invocation. Use beq instead of bgt to mark end of sequence of
8420 (shcompact_incoming_args): Fix store of r2. Use beq instead of
8421 bgt to mark end of sequence of stores.
8422 * config/sh/sh.c (arith_operand): Don't check whether
8423 CONST_OK_FOR_J for now.
8424 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
8425 instead of long for conversion.
8426 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
8427 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
8428 before passing it to fprintf.
8429 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
8430 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
8431 Call set_fpscr before reading/writing SR.
8432 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
8434 * config/sh/lib1funcs.asm: Add `.align 2' directives before
8436 (FMOVD_WORKS): Define on SH5 with FPU.
8437 (set_fpscr): Define on SH5. Remove separate _fpscr_values
8439 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
8441 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
8442 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
8444 (ia_main_table): Ditto.
8445 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
8446 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8447 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
8448 the definitions from sh.h.
8449 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
8451 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
8452 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
8453 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8454 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
8455 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
8456 Increment LABEL_NUSES.
8458 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
8460 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
8462 * config/sh/elf.h (SIZE_TYPE): Likewise.
8463 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8464 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8465 shcompact_incoming_args): Load switch table addresses using
8467 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8468 (NO_BUILTIN_SIZE_TYPE): Define.
8469 (SIZE_TYPE): Don't define.
8470 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8471 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
8472 definition of __SH5__=32 for -m5-compact-nofpu.
8473 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
8475 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
8476 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
8477 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
8478 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
8479 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
8480 (INSN_LENGTH_ALIGNMENT): Likewise.
8481 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8482 * config/sh/sh.md (call, call_value, sibcall): Simplify
8483 copying of non-branch-target register.
8484 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8485 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
8486 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
8487 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8488 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
8489 floating-point values as structs.
8490 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
8491 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
8492 general-purpose register.
8493 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
8494 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
8495 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
8496 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
8497 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
8498 (ENCODE_SECTION_INFO): Enclose variables and constants in
8500 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
8501 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
8502 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
8503 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
8504 only for LABEL_REFs. For SYMBOL_REFs, prepend
8505 SH_DATALABEL_ENCODING to the symbol name.
8506 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
8508 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
8509 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
8511 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
8512 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
8513 (DATALABEL_REF_P): Don't require CONST.
8514 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
8516 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
8517 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
8519 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
8520 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
8521 Use shallow_copy_rtx and PUT_MODE to change the mode of
8522 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
8523 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
8524 on SHmedia using GENERAL_REGs.
8525 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8526 bltu_media_i): Fix reversion of conditions.
8527 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
8528 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
8529 * config/sh/sh.c (output_far_jump): Save r13 in macl.
8530 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
8531 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
8532 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
8533 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
8534 (GCC_nested_trampoline): Likewise.
8535 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
8536 * config/sh/sh.c (gen_datalabel_ref): Define.
8537 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
8538 (INITIALIZE_TRAMPOLINE): Likewise.
8539 (TRAMPOLINE_ADJUST_ADDRESS): Define.
8540 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
8541 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
8542 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
8543 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
8544 (ic_invalidate): Adjust for SH5.
8545 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
8546 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
8548 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
8549 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
8550 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
8551 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
8552 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
8553 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
8554 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
8555 * config/sh/sh.c (target_reg_operand): Match only target-branch
8556 registers and pseudos that aren't virtual registers.
8557 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8558 Copy operands that don't match target_reg_operand to pseudos.
8559 (call_media, call_value_media, sibcall_media): Use
8560 target_reg_operand instead of target_operand.
8561 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
8562 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
8563 * config/sh/sh.c (target_reg_operand): Match hardware registers
8564 other than branch-target registers.
8565 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
8566 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
8567 (fpscr_values) [SH5 == 32]: Define.
8568 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
8569 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8570 Handle function addresses coming in SUBREGs.
8571 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
8572 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8573 shcompact_return_trampoline): Use datalabel where appropriate.
8574 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
8575 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
8576 general-purpose register to copy one branch-target register to
8578 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
8579 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
8580 SYMBOL_REFs with VOIDmode.
8581 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8582 bltu_media_i): New insns.
8583 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
8584 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
8585 (INIT_CUMULATIVE_ARGS): Likewise.
8586 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
8587 * machmode.def (V16SFmode): New mode.
8588 * c-common.c (type_for_mode): Support V2SF and V16SF.
8589 * tree.c (build_common_tree_nodes_2): Likewise.
8590 * tree.h (tree_index): Likewise.
8591 * calls.c (emit_call_1): Take args_so_far. Adjust all
8592 callers. Introduce CALL_POPS_ARGS.
8593 * tm.texi (CALL_POPS_ARGS): Document.
8594 * config/sh/crt1.asm: Implement in SHmedia mode.
8595 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
8596 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
8597 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
8598 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
8599 Implement divsi and udivsi in SHmedia mode. Introduce
8600 SHcompact trampolines.
8601 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
8603 (regno_reg_class): Rewrite.
8604 (fp_reg_names): Remove.
8605 (sh_register_names, sh_additional_register_names): New.
8606 (print_operand): Added `u'. Support SUBREGs in addresses.
8607 Add parentheses around shifted CONSTs.
8608 (output_file_start): Output .mode and .abi directives.
8609 (shiftcosts, addsubcosts, multcosts): Adjust.
8610 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
8611 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
8612 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
8613 bytes, not registers. Take into account the need for the
8614 SHcompact incoming args trampoline. Adjust all callers.
8615 (sh_expand_prologue): Take stack_regs into account. Call
8616 incoming args trampoline. Keep stack aligned as per SH5 ABI.
8617 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
8618 stack aligned as per SH5 ABI.
8619 (sh_builtin_saveregs): Support SH5 ABI.
8620 (sh_build_va_list, sh_va_start): Likewise.
8621 (initial_elimination_offset): Take alignment into account.
8622 Compute location of PR according to the SH5 stack frame.
8623 (arith_reg_operand): Reject branch-target registers.
8624 (shmedia_6bit_operand): New.
8625 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
8626 (target_reg_operand): Match DImode only. Accept SUBREGs.
8627 (target_operand): New.
8628 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
8629 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
8630 SIBCALL_REGS for SHmedia.
8631 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
8632 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
8633 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
8634 (TARGET_SWITCHES): New SH5 flags.
8635 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
8636 VALID_REGISTER_P to disable unsupported registers.
8637 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
8638 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
8639 (FUNCTION_ARG_PADDING): Define.
8640 (FASTEST_ALIGNMENT): Adjust.
8641 (SH_REGISTER_NAMES_INITIALIZER): New.
8642 (sh_register_names): Declare.
8643 (DEBUG_REGISTER_NAMES): Define.
8644 (REGISTER_NAMES): Define based on sh_register_names.
8645 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
8646 (sh_additional_register_names): Declare.
8647 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
8648 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
8649 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
8650 (REGISTER_NATURAL_MODE): Define.
8651 (FIRST_PSEUDO_REGISTER): Adjust.
8652 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
8653 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
8654 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
8655 (VECTOR_MODE_SUPPORTED_P): Define.
8656 (REG_CLASS_CONTENTS): Adjust.
8657 (SMALL_REGISTER_CLASSES): Adjust.
8658 (REG_ALLOC_ORDER): Adjust.
8659 (INDEX_REG_CLASS): Adjust.
8660 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
8661 (CONST_OK_FOR_LETTER_P): Adjust.
8662 (PREFERRED_RELOAD_CLASS): Adjust.
8663 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
8664 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
8665 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
8666 (FIRST_FP_PARM_REG): Adjust.
8667 (CALL_POPS_ARGS): Define.
8668 (FUNCTION_ARG_REGNO_P): Adjust.
8669 (struct sh_args): New fields.
8670 (GET_SH_ARG_CLASS): Adjust.
8671 (INIT_CUMULATIVE_ARGS): Adjust.
8672 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
8673 (FUNCTION_ARG_ADVANCE): Adjust.
8674 (FUNCTION_ARG): Adjust.
8675 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
8676 (FUNCTION_ARG_CALLEE_COPIES): Define.
8677 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
8678 (STRICT_ARGUMENT_NAMING): Define.
8679 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
8680 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
8681 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
8682 (SETUP_INCOMING_VARARGS): Adjust.
8683 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
8684 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
8685 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
8686 (SUBREG_OK_FOR_INDEX_P): Adjust.
8687 (EXTRA_CONSTRAINT_S): Update.
8688 (EXTRA_CONSTRAINT_T): New.
8689 (EXTRA_CONSTRAINT): Adjust.
8690 (GO_IF_LEGITIMATE_INDEX): Adjust.
8691 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
8692 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
8694 (MAX_MOVE_MAX): Define.
8696 (CONST_COSTS): Adjust.
8697 (REGISTER_MOVE_COST): Adjust.
8698 (BRANCH_COST): Adjust.
8699 (TEXT_SECTION_ASM_OP): Adjust.
8700 (DBX_REGISTER_NUMBER): Adjust.
8701 (ASM_OUTPUT_DOUBLE_INT): New.
8702 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
8703 (PREDICATE_CODES): Adjust.
8704 (PROMOTE_MODE): Adjust.
8705 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
8706 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
8707 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
8708 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
8709 (DR0_REG, DR2_REG, DR4_REG): Renumber.
8710 (TR0_REG, TR1_REG, TR2_REG): New.
8711 (XD0_REG): Renumber.
8712 (UNSPEC_COMPACT_ARGS): New.
8713 (type): Added pt and ptabs.
8714 (length): Default to 4 on SHmedia. Default pt length to 12
8715 and 20 on SHmedia32 and SHmedia64, respectively.
8716 (pt): New function unit.
8717 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
8718 Add whitespace between operands of SHmedia instructions.
8720 (adddi3_media, addsi3_media): Adjust constraints.
8721 (subsi3) [SHmedia]: Force operand 1 into a register.
8722 (udivsi3_i1_media, udivsi3_i4_media): New.
8723 (udivsi3): Support SHmedia.
8724 (divsi3_i1_media, divsi3_i4_media): New.
8725 (divsi3): Support SHmedia.
8726 (anddi3, iordi3, xordi3): Adjust constraints.
8727 (zero_extendhidi2, zero_extendqidi2): New.
8728 (extendsidi2, extendhidi2, extendqidi2): New.
8729 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
8730 (pop_e, pop_fpul, pop_4): Likewise.
8731 (movsi_media): Support FP and BT registers.
8732 (movsi_media_nofpu): New. Adjust splits to DImode.
8733 (lduw, ldub): Renamed to zero_extend* above.
8734 (movqi_media): Fix typo.
8735 (movdi_media): Support FP and BT registers.
8736 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
8737 (movdi_const_32bit): New.
8738 (shori_media): Require immediate operand. Use `u' for output.
8739 (movdf_media, movsf_media): Simplified.
8740 (movdf_media_nofpu, movsf_media_nofpu): New.
8741 (movdf, movsf): Adjust
8742 (movv2sf, movv2sf, movv16sf): New.
8743 (beq_media, beq_media_i): Adjust constraints. Don't use
8744 scratch BT register.
8745 (bne_media, bne_media_i): Likewise.
8746 (bgt_media, bgt_media_i): Likewise.
8747 (bge_media, bge_media_i): Likewise.
8748 (bgtu_media, bgtu_media_i): Likewise.
8749 (bgeu_media, bgeu_media_i): Likewise.
8750 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
8751 bunordered): Emit jump insn. Force operands to registers when
8753 (jump_media, jump): Simplify.
8754 (call_compact, call_compact_rettramp): New.
8755 (call_value_compact, call_value_compact_rettramp): New.
8756 (call_media, call_value_media): Simplify.
8757 (sibcall_compact, sibcall_media): New.
8758 (call, call_value): Adjust for SHmedia and SHcompact.
8759 (sibcall, sibcall_value, untyped_call): Likewise.
8760 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
8761 (indirect_jump): Adjust for SHmedia.
8762 (casesi_jump_media): New.
8763 (nop): Re-enable for SHmedia.
8764 (call_site): Restrict to SH1.
8765 (casesi): Adjust for SHmedia.
8766 (casesi_shift_media, casesi_load_media): New.
8767 (return): Explicitly use PR register. Call return trampoline
8769 (return_i): Explicitly use PR register.
8770 (shcompact_return_tramp, shcompact_return_tramp_i): New.
8771 (return_media): Adjust.
8772 (shcompact_incoming_args): New.
8774 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8775 (movstrsi): Disable on SH5.
8776 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
8777 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
8778 (subsf3, subsf3_media): Likewise.
8779 (mulsf3, mulsf3_media, mac_media): Likewise.
8780 (divsf3, divsf3_media): Likewise.
8781 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
8782 (floatsisf2, fux_truncsfsi2): Likewise.
8783 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
8785 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
8786 (cmpunsf_media, cmpsf): Likewise.
8787 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
8788 (abssf2, abssf2_media): Likewise.
8789 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
8790 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
8791 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
8792 (floatsidf2, fix_truncdfsi2): Likewise.
8793 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
8795 (cmpeqdf_media, cmpgtdf_media): Likewise.
8796 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
8797 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
8798 (absdf2, absdf2_media): Likewise.
8799 (extendsfdf2, extendsfdf2_media): Likewise.
8800 (truncsfdf2, truncsfdf2_media): Likewise.
8801 * config/sh/sh64.h: New file.
8802 * config/sh/t-sh64: New file.
8803 * config/sh/shmedia.h: New file.
8804 * config/sh/ushmedia.h: New file.
8805 * config/sh/sshmedia.h: New file.
8806 * configure.in: Added sh64-*-elf.
8807 * configure: Rebuilt.
8808 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
8809 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
8810 (reg_class_from_letter): Use `b' for TARGET_REGS.
8811 (print_operand): Support `%M', `%m', `AND' and
8812 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
8813 (andcosts): Adjust for SHmedia.
8814 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
8816 (target_reg_operand): New function.
8817 * config/sh/sh-protos.h (target_reg_operand): Declare.
8818 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
8819 FP registers on SH5.
8820 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
8822 (TARGET_REGISTER_P): New macro.
8823 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
8824 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
8825 (EXTRA_CONSTRAINT_S): New macro.
8826 (EXTRA_CONSTRAINT): Adjust.
8827 (FLOAT_TYPE_SIZE): Define to 32.
8828 (Pmode): DImode on SHmedia.
8829 (CONST_COSTS): Adjust for SHmedia literals.
8830 (PREDICATE_CODES): Added target_reg_operand.
8831 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
8832 * config/sh/sh.md: Remove all attrs from SHmedia insns.
8833 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
8834 (cmpdi): Accept SHmedia.
8835 (movdicc_false, movdicc_true): New insns.
8836 (movdicc): New expand.
8837 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
8839 (addsi3_media): Match `S' constraint.
8840 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
8841 (negdi2): Expand for SHmedia.
8842 (one_cmpldi2): New expand.
8843 (zero_extendsidi2): Change from expand to insn.
8844 (extendsidi2): Add constraints.
8845 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
8846 LD/ST address. Fix SI immediate loading split.
8847 (movhi_media, movqi_media, lduw, ldub): New insns.
8848 (movhi, movqi): Accept SHmedia.
8849 (shori_media, movdi_media): Relax input constraints. Split
8851 (movdf_media, movsf_media): New insn. New split to movdi.
8852 (movdf, movsf): Match on SHmedia.
8853 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
8854 bgeu_media): New insns and splits. New insns with `_i' suffix.
8855 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
8856 (bunordered): New expand.
8857 (jump_compact): Renamed from `jump'.
8858 (jump_media): New insn.
8860 (call_media, call_value_media): New insns.
8861 (call, call_value): Adjust.
8862 (indirect_jump_compact): Renamed from `indirect_jump'.
8863 (indirect_jump_media): New insn.
8864 (indirect_jump): New expand.
8865 (untyped_call, return): Accept SHmedia.
8866 (return_media): New insn.
8867 (prologue, epilogue, blockage): Accept SHmedia.
8868 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8869 (sunordered): New expand.
8870 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
8871 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
8872 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
8873 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
8874 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
8875 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
8876 abssf2_media): New insns.
8877 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
8878 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
8879 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
8880 floatdidf2, floatsidf2_media, fix_truncdfdi2,
8881 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
8882 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
8883 absdf2_media): New insns.
8884 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
8885 (extendsfdf2_media, truncdfsf2_media): New insns.
8886 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
8887 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
8888 * config/sh/sh.h (CONST_OK_FOR_J): Document.
8889 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
8890 * config/sh/sh.md (adddi3): New expand.
8891 (adddi3_media, adddi3z_media): New insns.
8892 (adddi3_compact): Renamed from adddi3.
8893 (addsi3_media): Use add.l r63 to add constant zero.
8894 (subdi3): New expand.
8895 (subdi3_media): New insn.
8896 (subdi3_compact): Renamed from subdi3.
8897 (mulsidi3): New expand.
8898 (mulsidi3_media): New insn.
8899 (mulsidi3_compact): Renamed from mulsidi3.
8900 (umulsidi3): New expand.
8901 (umulsidi3_media): New insn.
8902 (umulsidi3_compact): Renamed from umulsidi3.
8903 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
8904 (ashlsi3, ashrsi3, lshrsi3): Use them.
8905 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
8906 (ashldi3, ashrdi3, lshrdi3): Use them.
8907 (zero_extendsidi2): New expand.
8908 (extendsidi2): New insn.
8909 (movsi_media): New insn. Split to movdi to load constants.
8910 (movsi): Enable for shmedia.
8911 (movdi_media): New insn. Use shori_media to load wide constants.
8912 (short_media): New insn.
8913 (movdi): Enable for shmedia.
8914 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
8915 * config/sh/sh.h (CPP_SPEC): Added `m5'.
8916 (SUBTARGET_CPP_SPEC): Added `!m5'.
8917 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
8918 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
8919 to all other SH variants.
8920 (TARGET_DEFAULT): Set to SH1_BIT.
8921 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
8922 (BITS_PER_WORD): Raise to 64 on shmedia.
8923 (MAX_BITS_PER_WORD): Change to 64.
8924 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
8925 (INT_TYPE_SIZE): Keep as 32.
8926 (UNITS_PER_WORD): Raise to 8 on shmedia.
8927 (MIN_UNITS_PER_WORD): Keep as 4.
8928 (POINTER_SIZE): Raise to 64 on shmedia.
8929 (CONST_OK_FOR_J): New macro.
8930 (CONST_OK_FOR_LETTER_P): Use it.
8931 (processor_type): Add PROCESSOR_SH5.
8932 * config/sh/sh.md: Conditionalize all expands, insns and
8933 splits to TARGET_SH1.
8935 (addsi3_compact): Renamed from...
8936 (addsi3): Now an expand.
8937 (addsi3_media, subsi3_media): New insns.
8938 (subsi3): Don't negate constants with SHmedia.
8940 * hooks.c: New file.
8941 * hooks.h: New file.
8942 * Makefile.in (HOOKS_H): New.
8943 (TARGET_DEF_H): Added $(HOOKS_H).
8944 (OBJS): Added hooks.o.
8945 (cfgcleanup.o, bb-reorder.o): Added target.h.
8946 (hooks.o): Added dependencies.
8947 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
8948 (TARGET_INITIALIZER): this.
8949 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
8950 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
8951 * bb-reorder.c: Include target.h.
8952 (reorder_basic_blocks): Skip if cannot modify jumps.
8953 * cfgcleanup.c: Include target.h.
8954 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
8956 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8958 * config/mips/mips.md (casesi_internal, casesi_internal_di):
8959 Protect jump delay slot instructions with .set noreorder and
8962 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8964 * config/mips/mips.md (casesi_internal_di): Calculate
8965 the index into the target offset table correctly.
8967 2002-02-08 Richard Henderson <rth@redhat.com>
8969 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
8970 * final.c (output_addr_const): Accept and discard SUBREG.
8971 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
8972 mark them unknown instead.
8973 (simplify_subtraction): Handle RTX_UNKNOWN.
8974 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
8976 2002-02-08 David Edelsohn <edelsohn@gnu.org>
8978 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
8980 2002-02-08 Richard Henderson <rth@redhat.com>
8982 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
8984 2002-02-08 Andreas Jaeger <aj@suse.de>
8986 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
8987 * config/i386/t-linux64: New file.
8989 2002-02-08 Jakub Jelinek <jakub@redhat.com>
8991 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
8992 * c-parse.in (compstmt): Clear last_expr_type.
8994 2002-02-07 Richard Henderson <rth@redhat.com>
8996 * loop.c (strength_reduce): Sink final_value when not
8999 2002-02-07 David O'Brien <obrien@FreeBSD.org>
9001 * config/sparc/freebsd.h: Fix mismatched spec {.
9003 2002-02-07 Richard Henderson <rth@redhat.com>
9005 * cfgrtl.c: Include recog.h and insn-config.h.
9006 (keep_with_call_p): Fix general_operand invocation.
9007 * Makefile.in (cfgrtl.o): Update dependencies.
9009 2002-02-07 Kazu Hirata <kazu@hxi.com>
9011 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
9012 comment. Accept HImode only if TARGET_H8300.
9014 2002-02-07 Eric Christopher <echristo@redhat.com>
9016 * config/mips/crtn.asm: Cleanup #ifdefs.
9018 2002-02-07 Eric Christopher <echristo@redhat.com>
9020 * config/mips/crti.asm: Add changes for mips16. mips16 uses
9021 register 7 as RA instead of $31.
9022 * config/mips/crtn.asm: Ditto.
9023 * config/mips/mips.c (mips_move_2words): Add case for
9024 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
9025 (compute_frame_size): Fix typo.
9026 (save_restore_insns): Ditto. Make documentation about using
9027 register $7 as return register more precise.
9028 (mips_expand_epilogue): Fix comment. Add code to work around not
9029 being able to add to the stack pointer directly.
9030 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
9031 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
9034 2002-02-07 Tom Rix <trix@redhat.com>
9036 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
9037 immediates in ldu and stdu DS opcode field.
9038 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
9039 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
9040 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
9042 2002-02-07 Jeff Sturm <jsturm@one-point.com>
9044 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
9045 offset for stack bias.
9047 2002-02-07 H.J. Lu <hjl@gnu.org>
9049 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
9051 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
9053 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
9055 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
9057 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
9058 * i386.c (x86_order_regs_for_local_alloc): New global function.
9059 * i386.h (REG_ALLOC_ORDER): CLeanup.
9060 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
9062 2002-02-07 Richard Henderson <rth@redhat.com>
9064 PR optimization/2463
9065 * alias.c (find_base_value): Recall base values for fixed hard regs.
9066 * loop.c (loop_regs_update): Don't use single_set on non-insns.
9068 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
9070 * config/mips/mips.md (define_delay) [mips16]: Adjust required
9073 2002-02-06 Richard Henderson <rth@redhat.com>
9076 * stmt.c (resolve_operand_name_1): Take more care with mixed
9077 named and unnamed operands.
9079 2002-02-06 Janis Johnson <janis187@us.ibm.com>
9080 Jan Hubicka <jh@suse.cz>
9082 * loop.c (remove_constant_addition): Avoid clobbering a shared
9085 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
9087 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
9088 * config/s390/t-linux64: New file.
9089 * config/s390/libgcc-glibc.ver: New file.
9091 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
9093 * config/s390/linux64.h: Delete file.
9094 * config/s390/s390x.h: New file.
9095 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
9096 as target header file.
9097 * config/s390/linux.h (TARGET_VERSION): Define depending on
9098 DEFAULT_TARGET_64BIT.
9099 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
9100 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
9101 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
9102 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
9103 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
9104 (EXTRA_SPEC): New define.
9105 * config/s390/s390.h (TARGET_VERSION): Define depending on
9106 DEFAULT_TARGET_64BIT.
9107 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
9109 2002-02-06 Jason Merrill <jason@redhat.com>
9111 * c-decl.c (finish_function): Warn about a non-void function with
9112 no return statement and no abnormal exit.
9113 (current_function_returns_abnormally): New variable.
9114 (start_function): Clear it.
9115 (struct c_language_function): Add returns_abnormally.
9116 (push_c_function_context): Save it.
9117 (pop_c_function_context): Restore it.
9118 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
9119 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
9120 an explicit return type.
9121 * c-tree.h: Declare current_function_returns_abnormally.
9122 (C_FUNCTION_IMPLICIT_INT): New macro.
9123 * c-typeck.c (build_function_call): Set it.
9124 (c_expand_return): Set current_function_returns_value even if the
9127 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9130 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
9131 unsafe for reevaluation.
9133 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9136 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
9137 EXPR_STMT, but COMPOUND_STMT, recurse into it.
9139 2002-02-06 Richard Henderson <rth@redhat.com>
9141 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
9142 be a general_operand. Dest for function value must be a pseudo.
9144 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9146 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
9147 as SYMBOL_REFs from the constant pool.
9149 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
9151 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
9152 passed by invisible reference.
9154 2002-02-05 Richard Henderson <rth@redhat.com>
9156 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
9158 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
9160 Implement using "base addresses" in insn operands as default.
9161 * config/mmix/mmix.c (mmix_conditional_register_usage): if
9162 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
9163 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
9164 used to read the rtx value.
9165 (mmix_target_asm_function_epilogue): Fix spacing.
9166 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
9167 (mmix_legitimate_address): Ditto.
9168 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
9169 should be loaded with a GETA insn. Don't allocate needless extra
9170 char for nul termination and fix misleading comment.
9171 (mmix_print_operand_address): Handle constants if
9172 TARGET_BASE_ADDRESSES.
9173 (mmix_output_register_setting): Use base addressing if
9174 TARGET_BASE_ADDRESSES and the number of insns is 3.
9175 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
9176 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
9177 to use R as constraint, add LDA to match s.
9178 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
9179 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
9180 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
9181 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
9182 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
9183 order with other fixed registers.
9184 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
9185 other parameter/call-clobbered registers.
9186 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
9187 -mbase-addresses, -mno-base-addresses.
9188 (MMIX Options): Ditto.
9190 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
9192 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
9194 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
9196 * config/rs6000/altivec.h: Change elem to _S_elem.
9198 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
9200 * config/netbsd.h (WCHAR_TYPE): Define.
9201 (WCHAR_TYPE_SIZE): Ditto.
9203 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
9204 (WCHAR_UNSIGNED): Ditto.
9205 (WCHAR_TYPE_SIZE): Ditto.
9207 * config/arm/netbsd.h: Likewise.
9208 * config/i386/netbsd-elf.h: Likewise.
9209 * config/i386/netbsd.h: Likewise.
9210 * config/m68k/netbsd-elf.h: Likewise.
9211 * config/m68k/netbsd.h: Likewise.
9212 * config/ns32k/netbsd.h: Likewise.
9213 * config/sparc/netbsd.h: Likewise.
9214 * config/vax/netbsd.: Likewise.
9216 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
9218 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
9219 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
9220 (TARGET_INITIALIZER): this.
9221 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
9222 (BITFIELD_NBYTES_LIMITED): Markup fix.
9223 * tree.h (default_ms_bitfield_layout_p): Declare.
9224 (record_layout_info): Added prev_field.
9225 * tree.c (default_ms_bitfield_layout_p): New fn.
9226 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
9227 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
9228 * stor-layout.c: Include target.h.
9229 (start_record_layout): Initialize prev_field.
9230 (place_field): Handle MS bit-field layout, and disregard
9231 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
9232 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
9233 * Makefile.in (stor-layout.o): Adjust dependencies.
9235 2002-02-05 Jason Merrill <jason@redhat.com>
9237 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
9239 2002-02-05 Andreas Jaeger <aj@suse.de>
9241 * crtstuff.c: Fix comments.
9243 2002-02-05 Richard Henderson <rth@redhat.com>
9246 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
9247 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
9250 * config/mips/mips.c (function_arg): Handle TImode.
9251 (function_arg_advance): Likewise.
9253 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9255 * config/rs6000/altivec.h (vec_step_help): Rename to
9258 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9260 * config/rs6000/altivec.h: Fix typos.
9262 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
9264 * config/arm/netbsd.h: Correct a comment.
9266 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9268 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
9269 building void typed builtins.
9271 * config/rs6000/altivec.h (vec_ld*): Fix typos.
9272 (vec_step): Implement for C++.
9274 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9276 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
9278 2002-02-04 Richard Henderson <rth@redhat.com>
9280 * combine.c (nonzero_bits): Re-introduce special case for
9281 sp/fp/ap wrt REGNO_POINTER_ALIGN.
9283 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9285 * doc/extend.texi: Warn about unsupported usage of altivec
9288 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
9289 (altivec_predicate_*): New.
9291 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
9292 Add C++ version of vec_*() functions.
9294 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
9295 (bdesc_2arg): Remove altivec predicates.
9296 (altivec_expand_builtin): Handle predicates.
9297 (altivec_init_builtins): Handle predicates.
9298 (altivec_expand_predicate_builtin): New.
9300 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9302 * pa.c (DO_FRAME_NOTES): Move forward.
9303 (store_reg): Revise handling of frame notes.
9304 (load_reg): Likewise.
9305 (set_reg_plus_d): Likewise.
9306 (hppa_expand_prologue): Likewise.
9307 (hppa_expand_epilogue): Likewise.
9309 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9311 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
9313 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9315 PR c/4475, c++/3780:
9316 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
9317 * c-common.h (SWITCH_TYPE): Define.
9318 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
9319 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
9320 Rename spareness variable to sparseness.
9321 (expand_end_case_type): Renamed from expand_end_case, use orig_type
9322 if non-NULL instead of TREE_TYPE (orig_index).
9323 * tree.h (expand_end_case_type): Renamed from expand_end_case.
9324 (expand_end_case): Define using expand_end_case_type.
9325 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
9326 to expand_end_case_type.
9327 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
9329 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9331 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
9332 (BIGGEST_ALIGNMENT): Change to 128.
9334 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9336 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
9338 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9340 * pa.md (call_internal_reg_64bit): Remove unused variable.
9342 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
9344 * config/arm/arm.h (machine_function): Add uses_anonymous_args
9346 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
9347 * config/arm/arm.c (current_function_anonymous_args): Delete,
9348 replace uses with cfun->machine->uses_anonymous_args.
9349 (arm_reorg): Do not reset uses_anonymous_args.
9351 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
9352 any geenral register.
9354 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
9356 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
9359 2002-02-04 Richard Henderson <rth@redhat.com>
9361 * combine.c (force_to_mode): Remove STACK_BIAS code.
9362 (nonzero_bits): Likewise. Replace sp/fp special case with
9363 REGNO_POINTER_ALIGN.
9365 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
9366 (HARD_FRAME_POINTER_REGNUM): New.
9367 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
9368 (FIXED_REGS, CALL_USED_REGS): Update.
9369 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
9370 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
9371 (HARD_REGNO_NREGS): Update for SFP.
9372 (STACK_POINTER_OFFSET): Include bias here ...
9373 (FIRST_PARM_OFFSET): ... not here.
9374 (STACK_BIAS): Remove.
9375 (INIT_EXPANDERS): New.
9376 (STARTING_FRAME_OFFSET): Do not include bias.
9377 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
9378 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
9379 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
9380 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
9381 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
9382 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
9383 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
9384 (MUST_SAVE_REGISTER): Likewise.
9385 (sparc_flat_function_prologue): Likewise.
9386 (sparc_flat_function_epilogue): Likewise.
9387 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
9388 (sparc_init_modes): SFP is GENERAL_REGS.
9389 (sparc_builtin_saveregs): SFP does not have bias applied.
9391 2002-02-04 Richard Henderson <rth@redhat.com>
9393 * config/alpha/alpha.c (current_function_is_thunk): Don't check
9394 current_function_is_thunk.
9395 (alpha_sa_mask): Distinguish between current_function_is_thunk
9396 called from ASM_OUTPUT_MI_THUNK and not.
9397 (alpha_does_function_need_gp): Thunks always need gp.
9398 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9399 (alpha_output_mi_thunk_osf): New.
9400 * config/alpha/alpha-protos.h: Update.
9401 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
9403 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
9405 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
9406 function types, not when they're taken away.
9408 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
9410 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
9411 CODE_LABEL and jump table when replacing a table jump with a
9414 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9416 * config/s390/s390-protos.h (legitimize_la_operand,
9417 s390_secondary_input_reload_class, s390_plus_operand,
9418 s390_expand_plus_operand): Add prototypes.
9420 config/s390/s390.c (s390_secondary_input_reload_class,
9421 s390_plus_operand, s390_expand_plus_operand): New functions.
9423 (struct s390_address): New member 'pointer'.
9424 (s390_decompose_address): Compute it.
9425 (legitimate_la_operand_p): Use it.
9426 (legitimize_la_operand): New function.
9427 (movti, movdi, movdf splitters): Call it.
9429 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
9430 (PREDICATE_CODES): Add s390_plus_operand.
9432 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
9433 (la_ccclobber): Allow GENERAL_REGS as output operand.
9435 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
9436 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
9437 (*la_64, *la_31, reload_indi, reload_insi): ... these.
9439 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9441 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
9442 register names for regular asm () construct.
9444 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9446 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
9449 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9451 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
9454 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
9456 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
9457 constant pool to be identical by string address and index.
9459 2002-02-04 Anthony Green <green@redhat.com>
9461 * output.h (SECTION_OVERRIDE): Define.
9462 * varasm.c (named_section): Obey SECTION_OVERRIDE.
9464 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
9466 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
9467 by existing arm*-*-netbsd* (a.out) target.
9468 (ns32k-*-netbsdelf*): Likewise.
9469 (sparc-*-netbsdelf*): Likewise.
9470 (vax-*-netbsdelf*): Likewise.
9472 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
9474 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
9475 headers and libobjc headers.
9477 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
9479 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
9480 (_mingw.h): Remove duplicate include.
9482 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
9484 * config.gcc: Set cpu_type to m68k for 68010, as well.
9485 (m68010-*-netbsdelf*): New...
9486 (m68k*-*-netbsdelf*): ...targets.
9487 * config/m68k/netbsd-elf.h: New file.
9489 2002-02-02 Kazu Hirata <kazu@hxi.com>
9491 * config/h8300/h8300.c (hand_list): Move inside function_arg.
9493 2002-02-02 Kazu Hirata <kazu@hxi.com>
9495 * config/h8300/h8300.c (h8_push_ops): Move inside
9497 (h8_pop_ops): Likewise.
9498 (h8_move_ops): Likewise.
9500 2002-02-02 Kazu Hirata <kazu@hxi.com>
9502 * config/h8300/h8300.c (os_task): Make it static.
9503 (monitor): Likewise.
9504 (pragma_saveall): Likewise.
9506 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
9508 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
9509 constant is a valid sign-extension for Pmode.
9511 2002-02-02 Kazu Hirata <kazu@hxi.com>
9513 * config/h8300/h8300.c: Fix formatting.
9515 2002-02-02 Kazu Hirata <kazu@hxi.com>
9517 * config/h8300/h8300.md: Fix formatting.
9519 2002-02-02 Kazu Hirata <kazu@hxi.com>
9521 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
9522 predicates of operands[1]. Split the patterns for each
9525 2002-02-02 Kazu Hirata <kazu@hxi.com>
9527 * config/h8300/h8300.md (xor patterns): Tighten the predicates
9528 of operands[1] to register_operand.
9530 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
9532 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
9533 * cpphash.c (_cpp_init_hashtable): Similarly.
9534 * cppinit.c (cpp_create_reader): Default the signed_char flag.
9535 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
9536 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
9537 (cpp_handle_option): Handle the new options.
9538 * cpplex.c (cpp_interpret_charconst): Use new flag.
9539 * cpplib.h (struct cpp_options): New member signed_char.
9540 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
9541 (cpp_options): Handle -fsigned-char and -funsigned-char.
9542 (static_specs): Remove signed_char_spec.
9543 (do_spec1): Don't handle %c.
9544 * system.h: Poison SIGNED_CHAR_SPEC.
9545 * tradcif.y (yylex): Use flag_signed_char.
9546 * tradcpp.h (flag_signed_char): New.
9547 * tradcpp.c (flag_signed_char): New.
9548 (main): Handle new command-line options.
9549 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
9551 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
9552 * avr/avr.h: Remove old comments.
9553 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
9554 (CC1_SPEC): Pass -fsigned-char if -mic*.
9555 (SIGNED_CHAR_SPEC): Remove.
9557 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
9559 2002-02-01 Eric Christopher <echristo@redhat.com>
9561 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
9562 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
9563 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
9564 (ASM_OUTPUT_REG_POP): Ditto.
9566 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
9568 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
9571 2002-02-02 Jakub Jelinek <jakub@redhat.com>
9573 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
9575 2002-02-02 Jakub Jelinek <jakub@redhat.com>
9578 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
9581 2002-02-01 Janis Johnson <janis187@us.ibm.com>
9583 * cfganal.c: Include tm_p.h.
9584 (keep_with_call_p): Fix the test that determines if a register holds
9585 the return value of a call.
9587 2002-02-01 DJ Delorie <dj@redhat.com>
9589 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
9590 we are given conflicting registers, switch to the other one we
9591 had allocated for us.
9592 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
9593 as TImode so we know when the "other" register is available.
9595 2002-02-01 David O'Brien <obrien@FreeBSD.org>
9597 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
9600 2002-02-01 Janis Johnson <janis187@us.ibm.com>
9602 * cfganal.c (keep_with_call_p): New function.
9603 (flow_call_edges_add): Prevent splitting a block between a call and
9604 a single-set instruction that should be kept in the same block.
9606 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
9608 * doc/install.texi (avr): Update outdated URL.
9610 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
9612 * config/stormy16/stormy16.md (pushqi): New.
9616 (movhi): Remove stack operands.
9618 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
9619 nonimmediate_nonstack_operand.
9620 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
9622 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
9625 2002-01-31 Jason Merrill <jason@redhat.com>
9627 * Makefile.in (c-parse.c): Handle .output file.
9628 * objc/Make-lang.in (objc-parse.c): Likewise.
9630 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
9632 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
9633 the -me[lb] option is given. Don't output the default flag
9636 2002-01-31 Zack Weinberg <zack@codesourcery.com>
9638 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
9639 the primary source file; this has not been done yet.
9640 * c-decl.c (c_expand_body): Reset input_filename from
9641 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
9643 2002-01-31 Kazu Hirata <kazu@hxi.com>
9645 * rtlanal.c (subreg_regno_offset): Do not use
9646 SUBREG_REGNO_OFFSET.
9647 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
9648 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
9650 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
9652 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
9653 version rather than GNATS version in --version output.
9655 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
9657 * ifcvt.c (noce_process_if_block): Make a copy of the destination
9658 when copying back from a temporary.
9660 2002-01-30 Richard Henderson <rth@redhat.com>
9662 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
9663 and new_dest are the same.
9665 2002-01-30 Richard Henderson <rth@redhat.com>
9668 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
9669 * rtl.c (note_insn_name): Update.
9670 * emit-rtl.c (remove_unnecessary_notes): Kill it.
9671 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
9672 to perform loop rotation.
9673 (expand_exit_loop_top_cond): New.
9674 * tree.h (expand_exit_loop_top_cond): Declare it.
9675 * c-semantics.c (genrtl_while_stmt): Use it.
9676 (genrtl_for_stmt): Likewise.
9678 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
9680 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
9681 arguments to 64-bit boundaries on 64-bit ABIs.
9683 2002-01-30 Steve Ellcey <sje@cup.hp.com>
9685 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
9687 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
9689 * c-decl.c (grokdeclarator): Handle type being a typedef for an
9692 2002-01-30 David O'Brien <obrien@FreeBSD.org>
9694 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
9695 * config/sparc/sparc_bi.h: Remove file.
9696 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
9698 2002-01-30 Richard Henderson <rth@redhat.com>
9700 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
9702 2002-01-30 Zack Weinberg <zack@codesourcery.com>
9704 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
9706 2002-01-30 Jason Merrill <jason@redhat.com>
9708 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
9709 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
9710 (reg_save): Use DW_CFA_offset_extended_sf instead.
9712 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
9714 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9716 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
9719 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
9721 * rs6000.md ("*call_value_local32"): Remove constraints.
9722 ("*call_value_local64"): Same.
9723 ("*call_value_indirect_nonlocal_aix32"): Same.
9724 ("*call_value_nonlocal_aix32"): Same.
9725 ("*call_value_indirect_nonlocal_aix64"): Same.
9726 ("*call_value_nonlocal_aix64"): Same.
9727 ("*call_value_nonlocal_sysv"): Same.
9729 2002-01-29 Richard Henderson <rth@redhat.com>
9731 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
9733 2002-01-29 Richard Henderson <rth@redhat.com>
9735 * expr.c (force_operand): Ignore flag_pic for detecting pic
9737 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
9738 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
9739 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
9740 instead of open-coded loop.
9741 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
9742 be fixed when in use.
9744 2002-01-29 Richard Henderson <rth@redhat.com>
9746 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
9747 * sched-rgn.c (propagate_deps): Update them.
9748 * sched-deps.c (sched_analyze_insn): Update them. Flush the
9749 clobbers list when either gets too long.
9751 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9753 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
9754 and INDEX_REGS the same as GENERAL_REGS.
9755 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9757 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
9759 * tree.c (build_nonstandard_integer_type): Correct prototype.
9761 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
9763 * config/s390/s390.md (movstrsico, movstrdix_64,
9764 movstrsix_31): Remove, replace by ...
9765 (movstrdi_short, movstrsi_short, movstrdi_long,
9766 movstrsi_long): ... these. New.
9767 (movstrdi, movstrsi): Adapt.
9769 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
9770 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
9771 Remove unnecessary CC clobber.
9772 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
9773 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
9775 (divmoddi4): Don't partially initialize TImode register.
9777 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
9779 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
9781 2002-01-29 Richard Henderson <rth@redhat.com>
9783 * flow.c (print_rtl_and_abort): Remove.
9784 (print_rtl_and_abort_fcn): Remove.
9785 (verify_local_live_at_start): Use dump_bb instead.
9786 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
9787 (verify_wide_reg_1): Return 2 on mode test failure.
9789 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
9791 PR c/3325, c/3326, c/2511, c/3347
9792 * c-decl.c (enum_decl_context): Remove BITFIELD.
9793 (grokdeclarator): Take bitfield width as an input.
9794 Ensure bitfields are given the correct type. Perform
9795 bitfield width validation with build_bitfield_integer_type
9796 rather than waiting for finish_struct.
9797 (grok_typename, grok_typename_in_parm_context, start_decl,
9798 push_parmdecl, grokfield, start_function): Update calls to
9800 (build_bitfield_integer_type): New function.
9801 (finish_struct): Move bitfield validation to grokdeclarator
9802 and build_bitfield_integer_type.
9803 * tree.c (build_nonstandard_integer_type): New function.
9804 * tree.h (build_nonstandard_integer_type): New prototype.
9806 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
9808 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9811 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
9812 don't ignore unrecognized -W* options.
9813 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
9814 * cpplib.h (cpp_handle_option): Adjust prototype.
9815 * c-decl.c (c_decode_options): Pass 0 as last argument to
9819 * gcc.c (cpp_unique_options): Split from cpp_options.
9820 (cpp_options): Source cpp_unique_options.
9821 (default_compilers): Use cpp_unique_options instead of cpp_options
9822 when used together with cc1_options.
9823 (static_specs): Add cpp_unique_options.
9824 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
9825 when used together with cc1_options.
9827 2002-01-29 Kazu Hirata <kazu@hxi.com>
9829 * config/h8300/h8300-protos.h: Update the prototype of
9831 * config/h8300/h8300.c (output_a_shift): Remove an unused
9832 argument 'insn'. Remove redundant code.
9833 * config/h8300/h8300.md: Adust to the new prototype of
9836 2002-01-29 Kazu Hirata <kazu@hxi.com>
9838 * config/h8300/h8300-protos.h: Update the prototypes of
9839 emit_a_rotate and expand_a_rotate.
9840 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
9841 first argument to 'enum rtx_code'.
9842 (expand_a_rotate): Likewise.
9844 2002-01-28 Kazu Hirata <kazu@hxi.com>
9846 * config/h8300/h8300-protos.h: Update the prototype of
9848 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
9850 * config/h8300/h8300.md: Adjust to the new prototype.
9852 2002-01-28 Kazu Hirata <kazu@hxi.com>
9854 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
9857 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
9859 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
9860 is a fixed register before returning pic_offset_table_rtx.
9861 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
9862 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
9864 2002-01-28 Jason Merrill <jason@redhat.com>
9866 * dwarf2.h: Sync with src version.
9868 2002-01-28 Paul Koning <pkoning@equallogic.com>
9870 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
9872 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
9873 * doc/extend.texi (__builtin_prefetch): Update documentation:
9874 first argument is now const void ptr.
9876 2002-01-28 Kazu Hirata <kazu@hxi.com>
9878 * config/h8300/h8300-protos.h: Remove an unused prototype.
9880 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
9882 * toplev.c (lang_independent_init): Round up identifier size.
9884 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
9886 * config.gcc: Revert previous change.
9888 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
9890 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
9892 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
9894 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
9895 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
9896 other non-elf netbsd config frags.
9897 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
9898 collect2 will does that.
9899 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
9900 shared-lib frobbing will work.
9902 2002-01-28 Kazu Hirata <kazu@hxi.com>
9904 * config/h8300/h8300.h: Fix formatting.
9905 * config/h8300/h8300.md: Likewise.
9907 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
9909 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
9910 the old, removed AAA_standards fix.
9911 * fixinc/fixincl.x: Rebuilt.
9913 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
9915 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
9916 atexit call in crtbegin, hooked in after call to frame_dummy;
9917 register EH before registering __fini__start.
9919 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
9921 * config/rs6000/altivec.h: Remove spurious semicolons.
9923 2002-01-27 Kazu Hirata <kazu@hxi.com>
9925 * config/h8300/h8300.md: Replace dead bit extraction patterns
9926 with ones that work.
9928 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9930 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
9931 if not STRICT_ALIGNMENT.
9932 * rtl.h (MEM_ALIGN): Likewise.
9934 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
9936 * doc/invoke.texi (-fdump-translation-unit): Revert this
9937 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
9939 2002-01-27 Kazu Hirata <kazu@hxi.com>
9941 * config/h8300/h8300.md (define_constants): New.
9942 (anonymous patterns) Use defined constants appropriately.
9944 2002-01-27 Kazu Hirata <kazu@hxi.com>
9946 * config/h8300/h8300.c (function_arg): Remove redundant code.
9948 2002-01-26 Richard Henderson <rth@redhat.com>
9950 * sched-deps.c (reg_pending_uses_head): New.
9951 (reg_pending_barrier): Rename from reg_pending_sets_all.
9952 (find_insn_list): Don't mark inline.
9953 (find_insn_mem_list): Remove.
9954 (add_dependence_list, add_dependence_list_and_free): New.
9955 (flush_pending_lists): Replace only_write param with separate
9956 for_read and for_write parameters. Update all callers. Use
9957 add_dependence_list_and_free.
9958 (sched_analyze_1): Do not add reg dependencies here; just set
9959 the pending bits. Use add_dependence_list.
9960 (sched_analyze_2): Likewise.
9961 (sched_analyze_insn): Replace schedule_barrier_found with
9962 reg_pending_barrier. Add all dependencies for pending reg
9963 uses, sets, and clobbers.
9964 (sched_analyze): Don't add reg dependencies for calls, just
9965 set pending bits. Use regs_invalidated_by_call. Treat
9966 sched_before_next_call as a normal list, not a fake insn.
9967 (init_deps): No funny init for sched_before_next_call.
9968 (free_deps): Free pending mems lists. Don't zero reg_last.
9969 (init_deps_global): Init reg_pending_uses.
9970 (finish_deps_global): Free it.
9971 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
9972 (find_insn_mem_list): Remove.
9973 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
9974 (propagate_deps): Use them. Zero temp mem lists.
9976 2002-01-26 Richard Henderson <rth@redhat.com>
9978 * Makefile.in (CRTSTUFF_CFLAGS): New.
9979 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
9980 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
9981 crtstuff.c instead of alpha assembly version.
9982 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
9983 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
9984 not FORCE_{INIT,FINI}_SECTION_ALIGN.
9985 (__do_global_dtors_aux): Mark used.
9986 (frame_dummy, __do_global_ctors_aux): Mark used.
9987 (fini_dummy, init_dummy): Remove.
9989 * config/alpha/crtbegin.asm: Remove file.
9990 * config/alpha/crtend.asm: Remove file.
9991 * config/alpha/t-crtbe: Remove file.
9992 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
9993 (LINK_EH_SPEC): New.
9995 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
9996 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
9997 calling constructors.
9998 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
10000 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
10001 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
10002 CRT_END_INIT_DUMMY hack.
10003 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
10004 FORCE_{INIT,FINI}_SECTION_ALIGN.
10006 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
10007 FORCE_{INIT,FINI}_SECTION_ALIGN.
10009 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
10010 invocation sequence.
10011 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
10013 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
10014 (FORCE_CODE_SECTION_ALIGN): New.
10016 2002-01-26 Richard Henderson <rth@redhat.com>
10018 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
10020 2002-01-26 Richard Henderson <rth@redhat.com>
10022 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
10023 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
10025 2002-01-26 Kazu Hirata <kazu@hxi.com>
10027 * config/h8300/h8300.md: Remove bit extraction patterns that
10028 cannot be triggered.
10029 Restrict each bit extraction pattern to a variant on which the
10032 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
10034 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
10036 2002-01-26 Kazu Hirata <kazu@hxi.com>
10038 * config/h8300/h8300.md: Remove bit test patterns that cannot
10040 Restrict each bit test pattern to a variant on which the
10043 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10045 * builtins.c (expand_builtin_strncat): Remove redundant check for
10048 2002-01-25 David O'Brien <obrien@FreeBSD.org>
10050 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
10052 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
10055 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
10057 * dbxout.c (dbxout_init): Use assemble_name rather than just
10058 stripping off the first character.
10059 (dbxout_source_file): Likewise.
10061 2002-01-25 DJ Delorie <dj@redhat.com>
10063 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
10064 using rtx_equal_p, not by comparing pointers.
10066 2002-01-25 Steve Ellcey <sje@cup.hp.com>
10068 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
10069 for PIC_OFFSET_TABLE_REGNUM.
10070 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
10072 2002-01-25 David O'Brien <obrien@FreeBSD.org>
10074 * config.gcc (x86_64-*-freebsd*): New target.
10075 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
10077 (i[34567]86-*-freebsd*): Don't include svr4.h.
10078 * config/i386/freebsd64.h: New file.
10080 2002-01-25 Douglas B Rupp <rupp@gnat.com>
10082 * config/alpha/x-vms (version): Make static.
10084 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
10085 in previous checkin.
10087 * Makefile.in (install-headers-cp): New target.
10088 * config.gcc (alpha-dec-*vms*): Install headers with
10091 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
10093 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
10096 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10098 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
10099 of compare_tree_int.
10100 (expand_builtin_strncat): Likewise.
10101 * c-decl.c (finish_struct): Use tree_low_cst.
10102 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
10103 * tree.c (compare_tree_int): Likewise.
10105 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
10107 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
10108 adjustments even if they are implemented by more than two insns.
10110 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
10112 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
10113 * df.h (struct ref): Kill B.
10114 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
10116 * basic-block.h (PROP_EQUAL_NOTES): New flag.
10117 * flow.c (propagate_one_insn): Use it.
10118 (mark_used_regs): Handle NIL.
10120 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
10122 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
10125 2002-01-25 David Edelsohn <edelsohn@gnu.org>
10127 * rs6000.md (prefetch): Make address V4SI mode so that the address
10128 is restricted to legitimate form for instruction.
10130 2002-01-25 Bob Wilson <bob.wilson@acm.org>
10132 * doc/install.texi (xtensa-*-elf): New target.
10133 (xtensa-*-linux*): New target.
10134 * doc/contrib.texi: Add myself.
10136 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
10138 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
10139 purpose register to hold an SImode (or smaller) value.
10141 2002-01-25 Jakub Jelinek <jakub@redhat.com>
10143 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
10145 * crtstuff.c: Likewise.
10147 2002-01-25 Kazu Hirata <kazu@hxi.com>
10149 * config/h8300/h8300.md (negation patterns): Tighten
10150 predicates to register_operand.
10152 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
10154 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
10157 * builtins.c (expand_builtin_prefetch): Same.
10159 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10161 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
10164 2002-01-24 Kazu Hirata <kazu@hxi.com>
10166 * config/h8300/h8300.c (print_operand): Remove support for
10167 operand character 'A'.
10168 * config/h8300/h8300.md (three anonymous patterns): Replace
10169 operand character 'A' with either 'T' or 'S'.
10171 2002-01-24 Kazu Hirata <kazu@hxi.com>
10173 * config/h8300/h8300.c (print_operand): Remove support for
10174 operand character 'U'.
10176 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
10178 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
10180 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
10182 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
10183 values to be assigned to the stack pointer.
10185 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
10187 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
10188 to const_double needs to be done right for big-endian systems.
10190 2002-01-24 Jason Merrill <jason@redhat.com>
10193 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
10194 to can_throw_internal.
10196 2002-01-23 Richard Henderson <rth@redhat.com>
10198 * fold-const.c (fold): Change UINT_MAX test to check vs precision
10199 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
10201 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10203 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
10204 (symGOT2reg): Use them, then set as GOT value as unchanging.
10205 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
10206 as a temporary, if possible.
10207 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
10208 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
10210 2002-01-23 Kazu Hirata <kazu@hxi.com>
10212 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
10213 accept to accept 0x80 as operands[2].
10215 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10217 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
10219 2002-01-23 Richard Henderson <rth@redhat.com>
10221 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
10223 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
10225 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
10226 (parmlist_or_identifiers_1): Verify that only a parmlist follows
10229 2002-01-23 Richard Henderson <rth@redhat.com>
10231 * expr.c (move_by_pieces_1): Extend size before negation.
10233 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
10234 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
10235 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
10236 * config/m68k/t-m68kelf: Likewise.
10238 2002-01-23 Bob Wilson <bob.wilson@acm.org>
10240 * config/xtensa/elf.h: New file.
10241 * config/xtensa/lib1funcs.asm: New file.
10242 * config/xtensa/lib2funcs.S: New file.
10243 * config/xtensa/linux.h: New file.
10244 * config/xtensa/t-xtensa: New file.
10245 * config/xtensa/xtensa-config.h: New file.
10246 * config/xtensa/xtensa-protos.h: New file.
10247 * config/xtensa/xtensa.c: New file.
10248 * config/xtensa/xtensa.h: New file.
10249 * config/xtensa/xtensa.md: New file.
10250 * config.gcc (xtensa-*-elf*): New target.
10251 (xtensa-*-linux*): New target.
10252 * cse.c (canon_hash): Compare rtx pointers instead of register
10253 numbers. This is required for the Xtensa port.
10254 * integrate.c (copy_insn_list): Handle case where the static
10255 chain is in memory and the memory address has to be copied to
10257 * doc/invoke.texi (Option Summary): Add Xtensa options.
10258 (Xtensa Options): New node.
10259 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
10261 2002-01-23 Zack Weinberg <zack@codesourcery.com>
10263 * diagnostic.c (internal_error): Do ICE suppression only
10264 when ENABLE_CHECKING is not defined.
10266 * c-typeck.c (require_complete_type): Return error_mark_node
10267 if type is error_mark_node.
10269 2002-01-23 Janis Johnson <janis187@us.ibm.com>
10271 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
10272 -Os and issue a warning.
10274 2002-01-23 Zack Weinberg <zack@codesourcery.com>
10276 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
10277 current (lack of) need for host configuration by hand.
10279 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
10280 references. Documentation of some target macros moved from
10281 hostconfig.texi to tm.texi.
10283 2002-01-23 Will Cohen <wcohen@redhat.com>
10285 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
10288 2002-01-23 Kazu Hirata <kazu@hxi.com>
10290 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
10293 2002-01-23 Jason Merrill <jason@redhat.com>
10295 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
10297 * function.c (assign_parms): Don't put args of inline functions
10298 into registers when not optimizing.
10300 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
10302 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
10303 (prologue_use): New pattern.
10304 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
10305 preference to gen_rtx_USE.
10306 (thumb_expand_prologue): Use gen_prologue_use in preference to
10308 (thumb_expand_epilogue): Use gen_prologue_use in preference to
10311 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
10313 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
10315 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
10318 * doc/extend.texi: Correct documentation of __alignof__.
10320 2002-01-22 Zack Weinberg <zack@codesourcery.com>
10322 * params.h: Rename arguments of DEFPARAM so that it will be
10323 recognized as a translation keyword.
10325 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10327 * extend.texi: Document altivec functions.
10328 Fix N-bit adjectives in X86 builtin documentation.
10330 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
10332 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
10333 auto_inc_dec values.
10335 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
10337 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
10339 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
10341 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
10343 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
10345 2002-01-22 Richard Henderson <rth@redhat.com>
10347 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
10348 copy_insn not copy_rtx.
10350 2002-01-23 Alan Modra <amodra@bigpond.net.au>
10352 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
10353 "nonzero" as that might add "1" bits. Ensure "constop" is
10354 properly sign extened.
10355 (force_to_mode): Tweak for sign extended constop.
10357 2002-01-22 Richard Henderson <rth@redhat.com>
10359 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
10360 for_each_rtx instead of assuming we're already looking at the MEM.
10361 (split_small_symbolic_mem_operand): Likewise.
10362 * config/alpha/alpha.h (PREDICATE_CODES): Update.
10363 * config/alpha/alpha.md (small symbolic memory splitters): Update.
10365 2002-01-22 Richard Henderson <rth@redhat.com>
10367 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
10368 sequence number for the literal.
10369 (divmoddi_internal_er): Likewise.
10371 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
10374 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
10375 in LIBICONV variable.
10376 * configure: Regenerated.
10378 2002-01-22 Krister Walfridsson <cato@df.lth.se>
10380 * dependence.c (build_def_use): Remove array_idx.
10382 * dwarfout.c (last_filename): Remove.
10383 (output_compile_unit_die): Remove last_filename.
10385 2002-01-22 Roger Sayle <roger@eyesopen.com>
10386 Richard Henderson <rth@redhat.com>
10389 * fold-const.c (fold): Optimize unsigned comparisons against
10390 UINT_MAX (and similar unsigned constants).
10392 2002-01-22 Janis Johnson <janis187@us.ibm.com>
10394 * Makefile.in (loop.o): Depend on OPTABS_H.
10395 * loop.c (emit_prefetch_instructions): Check the prefetch operand
10396 against the predicate.
10399 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
10400 for the address operand.
10402 2002-01-22 Richard Henderson <rth@redhat.com>
10404 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
10406 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
10409 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
10410 preprocessor flags.
10412 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
10414 * config.gcc (x86_64-*-netbsd*): New target.
10415 * config/i386/netbsd64.h: New file.
10417 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10419 * regrename.c (kill_value): Fix typo.
10421 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10423 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
10425 * config/rs6000/rs6000.h: Same.
10427 * function.c (instantiate_virtual_regs): Remove
10428 STARTING_FRAME_PHASE.
10429 (assign_stack_local_1): Same.
10430 Calculate frame phase.
10432 2002-01-22 Nick Clifton <nickc@redhat.com>
10434 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
10435 variable declaration to outer scope in order to simplify
10437 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
10438 arm_hard_regno_mode_ok.
10439 * config/arm/arm-protos.h: Add a prototype for
10440 arm_hard_regno_mode_ok.
10441 * config/arm/arm.c (soft_df_operand): Remove now redundant
10442 check for DImode values using IP_REGNUM.
10443 (nonimmediate_soft_df_operand): Remove now redundant check for
10444 DImode values using IP_REGNUM.
10445 (arm_hard_regno_mode_ok): New function. New check: make sure
10446 that DImode values are not stored in IP_REGNUM.
10448 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
10450 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
10452 2002-01-22 Jason Merrill <jason@redhat.com>
10454 * c-semantics.c (genrtl_compound_stmt): Only check nesting
10455 consistency if this COMPOUND_STMT is scoped.
10457 2002-01-22 Kazu Hirata <kazu@hxi.com>
10459 * predict.c: Fix formatting.
10460 * print-tree.c: Likewise.
10461 * protoize.c: Likewise.
10462 * real.h: Likewise.
10464 * sbitmap.h: Likewise.
10465 * scan.c: Likewise.
10466 * sched-deps.c: Likewise.
10467 * sched-vis.c: Likewise.
10468 * sdbout.c: Likewise.
10469 * sibcall.c: Likewise.
10471 * ssa-ccp.c: Likewise.
10472 * ssa-dce.c: Likewise.
10473 * stmt.c: Likewise.
10474 * stor-layout.c: Likewise.
10475 * system.h: Likewise.
10477 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10479 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
10480 if fits in bounds of base type.
10482 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
10483 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
10484 (add_bound_info, default): If can't find a context, make a
10486 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
10488 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
10490 * c-typeck.c (parser_build_binary_op): If result from
10491 build_binary_op is ERROR_MARK just return error_mark_node without
10492 further processing.
10494 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
10496 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
10497 Split a.out-specific bits into...
10498 * config/netbsd-aout.h: ...this.
10499 * config/netbsd-elf.h: New file.
10500 * config/alpha/netbsd-elf.h: Remove.
10501 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
10502 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
10503 (STARTFILE_SPEC): Remove redundant definition.
10504 (ENDFILE_SPEC): Likewise.
10505 (LINK_SPEC): Likewise.
10506 (CPP_SPEC): Likewise.
10507 (ASM_SPEC): Likewise.
10508 (LIB_SPEC): Likewise.
10509 (SWITCH_TAKES_ARG): Likewise.
10510 (TARGET_MEM_FUNCTIONS): Likewise.
10511 (CPP_PREDEFINES): Redefine.
10512 (ASM_FINAL_SPEC): Remove redefinition.
10513 (ASM_COMMENT_START): Redefine.
10514 (FUNCTION_PROFILER): Define.
10515 (TARGET_VERSION): Redefine.
10516 Comment and formatting cleanup.
10517 * config/i386/netbsd.h: Include <netbsd-aout.h>.
10518 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
10519 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
10520 big- or little-endian.
10521 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
10522 * config.gcc (*-*-netbsd*): Add definitions common to all
10524 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
10525 gnu_ld definitions. Add netbsd-elf.h to and remove
10526 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
10527 tmake_file, and don't lose previous tmake_file contents.
10528 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
10529 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
10530 gnu_ld definitions. Add netbsd-elf.h to tm_file.
10531 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
10532 (mipsel-*-netbsd*): Rename this to...
10533 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
10534 mips/little.h to tm_file for mips*el-*.
10535 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
10536 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
10537 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
10539 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
10541 * pa-protos.h (reg_before_reload_operand): New function prototype.
10542 * pa.c (reg_before_reload_operand): New function implementation.
10543 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
10544 contraints to "*m".
10546 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10548 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
10550 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
10552 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
10553 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
10554 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
10555 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
10556 (ENDFILE_SPEC): Undefine.
10557 (STARTFILE_SPEC): Redefine for PA.
10559 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10561 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
10563 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
10565 * config.gcc: Add entries to supported PowerPC --with-cpu
10568 2002-01-21 Jakub Jelinek <jakub@redhat.com>
10570 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
10571 true for 64-bit mode only SSE registers in 32-bit mode.
10573 2002-01-21 Kazu Hirata <kazu@hxi.com>
10575 * unwind-dw2.c: Fix formatting.
10576 * unwind-dw2-fde.c: Likewise.
10577 * unwind-dw2-fde.h: Likewise.
10578 * unwind-pe.h: Likewise.
10579 * varasm.c: Likewise.
10580 * varray.h: Likewise.
10582 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
10584 Remove workaround for register stack overwrite bug in mmix.
10585 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
10586 support for TARGET_REG_STACK_FILL_BUG.
10587 * config/mmix/mmix.h: Remove member has_call_without_parameters.
10588 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
10590 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
10591 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
10592 -mno-reg-stack-fill-bug-workaround.
10593 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
10594 machine member has_call_without_parameters.
10595 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
10596 -mreg-stack-fill-bug-workaround and
10597 -mno-reg-stack-fill-bug-workaround.
10598 (MMIX Options): Ditto.
10600 2002-01-21 Kazu Hirata <kazu@hxi.com>
10602 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
10604 Remove redundant code.
10606 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
10608 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10609 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10610 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10611 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
10612 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
10613 out target macro definitions and non-target-specific comments
10614 mostly taken from old versions of the manual.
10616 2002-01-20 Kazu Hirata <kazu@hxi.com>
10618 * config/h8300/h8300.h: Fix comment formatting.
10619 * config/ia64/aix.h: Likewise.
10620 * config/ia64/ia64-protos.h: Likewise.
10621 * config/ia64/ia64.c: Likewise.
10622 * config/ia64/ia64.h: Likewise.
10623 * config/ia64/ia64intrin.h: Likewise.
10624 * config/ia64/linux.h: Likewise.
10625 * config/ia64/unwind-aix.c: Likewise.
10626 * config/ia64/unwind-ia64.c: Likewise.
10628 2002-01-20 Kazu Hirata <kazu@hxi.com>
10630 * config/h8300/h8300.c: Revise comments about shift code.
10632 2002-01-20 Kazu Hirata <kazu@hxi.com>
10634 * config/h8300/h8300.c (function_arg): Update a comment.
10636 2002-01-20 Kazu Hirata <kazu@hxi.com>
10638 * config/h8300/h8300.md: Update the comments at the beginning
10641 2002-01-20 Kazu Hirata <kazu@hxi.com>
10643 * config/i370/i370.c: Fix comment formatting.
10644 * config/i370/i370.h: Likewise.
10645 * config/i370/i370.md: Likewise.
10646 * config/i370/linux.h: Likewise.
10648 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10650 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
10652 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
10653 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
10654 in incomplete case.
10656 2002-01-20 Graham Stott <grahams@redhat.com>
10658 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
10660 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
10662 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
10664 2002-01-19 Tom Rix <trix@redhat.com>
10666 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
10668 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
10670 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
10672 * function.c (assign_stack_local_1): Adjust x_frame_offset with
10673 STARTING_FRAME_PHASE.
10674 (STARTING_FRAME_PHASE): New.
10675 (instantiate_virtual_regs): Check saneness of
10676 STARTING_FRAME_PHASE.
10678 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
10680 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
10682 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
10684 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
10686 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
10687 be used for bootstrapping GCC 3.0.
10689 2002-01-18 Kazu Hirata <kazu@hxi.com>
10691 * config/h8300/h8300.md: Fix an insn length.
10693 2002-01-18 Kazu Hirata <kazu@hxi.com>
10695 * bitmap.h: Fix comment formatting.
10696 * combine.c: Likewise.
10697 * cppfiles.c: Likewise.
10698 * c-pragma.h: Likewise.
10699 * c-typeck.c: Likewise.
10701 * dwarf2out.c: Likewise.
10702 * function.c: Likewise.
10704 * genattrtab.c: Likewise.
10705 * gthr-win32.h: Likewise.
10706 * haifa-sched.c: Likewise.
10707 * predict.c: Likewise.
10708 * rtlanal.c: Likewise.
10710 * unwind-dw2-fde.h: Likewise.
10711 * unwind-pe.h: Likewise.
10712 * vmsdbgout.c: Likewise.
10714 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10716 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
10717 if type_required and passed decl.
10719 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
10721 * config.gcc (cpu_type): Include altivec.h in powerpc
10725 * config/rs6000/altivec.h: New.
10727 2002-01-17 David Edelsohn <edelsohn@gnu.org>
10729 * doc/install.texi (*-ibm-aix*): Update assembler and exception
10730 handling information.
10731 * doc/trouble.texi (Interoperation): Add libstdc++ information
10733 (Misunderstandings): Add template instantiation and static template
10734 member information for AIX.
10736 2002-01-17 Jason Merrill <jason@redhat.com>
10738 * dbxout.c (dbxout_type): Support const and volatile.
10740 * except.c (add_partial_entry): Remove backwards compatibility code.
10741 (end_protect_partials): Likewise.
10743 2002-01-17 Jakub Jelinek <jakub@redhat.com>
10745 * config/ia64/ia64.md (prologue_use): New.
10746 * config/ia64/ia64.c (ia64_expand_prologue): Use
10747 gen_prologue_use instead of gen_rtx_USE.
10748 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
10749 as CODE_FOR_pred_rel_mutex.
10750 (ia64_sched_reorder2): Likewise.
10752 2002-01-16 Eric Christopher <echristo@redhat.com>
10754 * config/mips/r3900.h: Reformat.
10755 (SUBTARGET_CPP_SIZE_SPEC): Remove.
10756 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
10757 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
10758 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
10759 * config/mips/t-elf: Remove mips3 multilib.
10761 2002-01-16 H.J. Lu <hjl@gnu.org>
10763 * config/mips/linux.h: Include "mips/abi64.h".
10765 2002-01-16 H.J. Lu <hjl@gnu.org>
10767 * config/mips/t-linux: New.
10769 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
10771 * config/mips/linux.h: Don't include "gofast.h".
10772 (INIT_SUBTARGET_OPTABS): Removed.
10774 2002-01-16 Kazu Hirata <kazu@hxi.com>
10776 * config/h8300/h8300-protos.h: Replace emit_a_shift with
10778 * config/h8300/h8300.c: Likewise.
10779 * config/h8300/h8300.md: Likewise.
10781 2002-01-16 Kazu Hirata <kazu@hxi.com>
10783 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
10784 spaces after an opcode name.
10785 (pushqi1_h8300hs): Likewise.
10786 (pushhi1_h8300hs): Likewise.
10788 2002-01-16 Kazu Hirata <kazu@hxi.com>
10790 * doc/extend.texi: Replace "option" with "attribute"
10793 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10795 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
10796 (and:DI () (const_int -8)).
10797 (split_small_symbolic_mem_operand): Split
10798 (mem (and:DI () (const_int -8)).
10800 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10803 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
10804 same way as TYPE_IMUL.
10805 (ultrasparc_sched_reorder): Likewise.
10806 * config/sparc/sparc.md (type): Add comment to update
10807 ultrasparc_sched_reorder when making changes.
10809 2002-01-16 Kazu Hirata <kazu@hxi.com>
10811 * doc/invoke.texi: Change the dump file name of block
10812 reordering pass from 28.bbro to 29.bbro.
10813 Mention -dk option.
10815 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
10817 * i386.md (minsf splitter): Fix pasto.
10819 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
10821 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
10822 to frame pointer initialisation instruction.
10823 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
10824 initialisation instruction.
10825 (soft_df_operand): Do not accept the IP register.
10826 (nonimmediate_soft_df_operand): Do not accept the IP register.
10828 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10831 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
10832 MASK_V8 being both set.
10834 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
10836 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
10837 insn for GOT register; add REG_MAYBE_DEAD notes instead.
10838 config/s390/s390.md (call, call_value): Add GOT register to
10839 CALL_INSN_FUNCTION_USAGE where needed.
10840 (call_exp, call_value_exp): New.
10842 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
10844 * config/arm/arm.c: General formatting tidy up.
10846 2002-01-16 Graham Stott <grahams@redhat.com>
10848 * calls.c (try_to_integrate): Use "(size_t)" intermediate
10849 cast and when casting an integer literal to "rtx" pointer.
10850 (expand_call): Likewise.
10851 * flow.c (try_pre_increment): Likewise.
10852 (find_use_as_address): Likewise.
10853 * integrate.c (expand_iline_function): Likewise.
10854 * regmove.c (try_auto_increment): Likewise.
10856 2002-01-16 Graham Stott <grahams@redhat.com>
10858 * sched-rgn.c (passed): Use sbitmap_free.
10859 (header): Likewise.
10861 (in_queue): Likewise.
10862 (in_stack): Likewise.
10864 2002-01-15 Eric Christopher <echristo@redhat.com>
10866 * flow.c (propagate_one_insn): Change to use fatal_insn.
10868 2002-01-15 Kazu Hirata <kazu@hxi.com>
10870 * expmed.c (extract_fixed_bit_field): Remove unused code.
10871 * system.h: Poison SLOW_ZERO_EXTEND.
10872 * doc/tm.texi: Remove.
10873 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
10874 * config/arm/arm.h: Likewise.
10875 * config/avr/avr.h: Likewise.
10876 * config/clipper/clipper.h: Likewise.
10877 * config/convex/convex.h: Likewise.
10878 * config/d30v/d30v.h: Likewise.
10879 * config/dsp16xx/dsp16xx.h: Likewise.
10880 * config/elxsi/elxsi.h: Likewise.
10881 * config/fr30/fr30.h: Likewise.
10882 * config/h8300/h8300.h: Likewise.
10883 * config/i370/i370.h: Likewise.
10884 * config/i386/i386.h: Likewise.
10885 * config/m68k/m68k.h: Likewise.
10886 * config/mips/mips.h: Likewise.
10887 * config/ns32k/ns32k.h: Likewise.
10888 * config/pdp11/pdp11.h: Likewise.
10889 * config/pj/pj.h: Likewise.
10890 * config/s390/s390.h: Likewise.
10891 * config/sh/sh.h: Likewise.
10892 * config/stormy16/stormy16.h: Likewise.
10893 * config/v850/v850.h: Likewise.
10894 * config/vax/vax.h: Likewise.
10895 * config/we32k/we32k.h: Likewise.
10897 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
10899 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
10900 (altivec_lvsl): Change constraint to b.
10901 (altivec_lvsr): Same.
10902 (altivec_lvebx): Same.
10903 (altivec_lvehx): Same.
10904 (altivec_lvewx): Same.
10905 (altivec_lvxl): Same.
10906 (altivec_lvx): Same.
10907 (altivec_stvx): Add parallel.
10908 (altivec_stvxl): Same.
10909 (altivec_stvehx): Same.
10910 (altivec_stvebx): Same.
10911 (altivec_stvebx): Same.
10913 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
10915 * config.gcc: Change altivec.h to altivec-defs.h.
10917 * config/rs6000/altivec.h: Delete.
10919 * config/rs6000/altivec-defs.h: Add.
10921 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
10923 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
10926 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
10927 less than or equal to eight bytes.
10929 * vax.md (andsi3): Remove constraints and change SET destination
10930 operand type to nonimmediate_operand.
10931 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
10932 when it is a CONST_INT.
10934 2002-01-15 Jason Merrill <jason@redhat.com>
10936 * c-common.def (FILE_STMT): New code.
10937 * c-common.c (statement_code_p): It's a statement.
10938 * c-common.h (stmt_tree_s): Add x_last_filename.
10939 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
10940 (last_expr_filename): New macro.
10941 * c-semantics.c (begin_stmt_tree): Initialize it.
10942 (add_stmt): If the filename changed, also insert a
10944 (expand_stmt): Handle seeing one.
10946 2002-01-15 Eric Christopher <echristo@redhat.com>
10948 * flow.c (propagate_one_insn): Add error message and print out
10949 insn for debugging.
10951 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
10953 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
10954 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
10955 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
10956 TRAMPOLINE_ALIGNMENT.
10957 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
10959 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
10960 PCC_BITFIELD_TYPE_MATTERS.
10961 * config/interix.h (STDC_VALUE): Remove. Use
10962 STDC_0_IN_SYSTEM_HEADERS.
10963 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
10964 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
10965 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
10967 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
10969 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
10970 not work on this platform currently.
10972 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
10974 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
10975 readonly_warning in _().
10977 2002-01-15 Douglas B Rupp <rupp@gnat.com>
10979 * gcc.c (delete_if_ordinary): Backout previous change.
10981 2002-01-15 Kazu Hirata <kazu@hxi.com>
10983 * config/h8300/h8300.c (print_operand): Remove support for
10984 unused operand characters.
10986 * read-rtl.c: Fix formatting.
10987 * real.c: Likewise.
10988 * recog.c: Likewise.
10989 * regclass.c: Likewise.
10990 * regmove.c: Likewise.
10991 * reg-stack.c: Likewise.
10992 * reload1.c: Likewise.
10993 * rtlanal.c: Likewise.
10995 2002-01-15 Kazu Hirata <kazu@hxi.com>
10997 * config/i386/i386.c: Fix formatting.
10999 2002-01-15 Jakub Jelinek <jakub@redhat.com>
11001 * c-typeck.c (process_init_element): Don't save_expr
11002 COMPOUND_LITERAL_EXPR if just its initializer will be used.
11004 2002-01-15 David Edelsohn <edelsohn@gnu.org>
11006 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
11007 emit optional traceback table if optimize_size or TARGET_ELF.
11008 * config/rs6000/rs6000.md (prefetch): New.
11010 2002-01-15 Andreas Jaeger <aj@suse.de>
11012 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
11014 2002-01-15 Kazu Hirata <kazu@hxi.com>
11016 * mips-tfile.c: Fix formatting.
11018 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
11020 * unroll.c (final_reg_note_copy): Fix previous commit.
11022 2002-01-14 Kazu Hirata <kazu@hxi.com>
11024 * config/h8300/h8300-protos.h: Remove the prototype for
11026 * config/h8300/h8300.c (eq_operator): Remove.
11028 2002-01-14 Richard Henderson <rth@redhat.com>
11030 * config/i386/i386.md (prefetch): Tidy.
11031 (prefetch_3dnow): Fix locality operand.
11033 2002-01-14 Richard Henderson <rth@redhat.com>
11035 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
11036 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
11038 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
11040 * reload1.c (reload_combine): Pass reg_sum replacement through
11041 copy_rtx in loop performing multiple changes.
11043 2002-01-14 Jakub Jelinek <jakub@redhat.com>
11045 * except.c (remove_unreachable_regions): New.
11046 (free_eh_status): Clear exception_handler_labels.
11047 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
11048 (find_exception_handler_labels): Don't add the same label more than
11050 (remove_exception_handler_label): Don't die if
11051 find_exception_handler_labels hasn't been called for the current
11054 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
11056 * toplev.c (rest_of_compilation): Rebuild jump labels after
11059 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
11061 * doc/extend.texi: Move documentation of X86 built-in functions
11063 * doc/invoke.texi: From here.
11064 * doc/sourcebuild.texi: Document location of documentation for
11065 machine built-in functions.
11067 2002-01-13 Christopher Faylor <cgf@redhat.com>
11069 * cppfiles.c (TEST_THRESHOLD): New macro.
11070 (SHOULD_MMAP): Ditto.
11071 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
11074 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
11076 * unroll.c (final_reg_note_copy): Properly handle
11078 (unroll_loops): Fix LOOP_CONDITION heuristics.
11080 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
11082 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
11083 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
11085 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
11087 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
11090 2002-01-14 Tom Rix <trix@redhat.com>
11092 * config/rs6000/rs6000.md: Fix typo with sradi.
11094 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
11096 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
11097 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
11098 (clrstrdi, clrstrsi): Adapt callers.
11100 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
11102 (movti splitter): Never use register 0 as base register.
11104 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
11106 * combine.c (simplify_shift_const): Always generate new rtx
11107 for shift expression instead of reusing given expression.
11109 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11111 * config/alpha/alpha.c (alpha_expand_mov): Don't call
11112 alpha_legitimize_address unless mode is Pmode.
11114 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
11116 * doc/md.texi (Modifiers): Document the '*' constraint for the
11119 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
11120 * doc/extend.texi (Function Attributes): 'interrupt' is valid
11123 2002-01-13 Richard Henderson <rth@redhat.com>
11125 * reload.c (find_reloads): Use a hard reg destination as reload reg
11126 for an input reload of the source.
11128 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11130 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
11133 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
11135 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11136 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11138 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
11140 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11142 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
11144 2002-01-12 Tom Rix <trix@redhat.com>
11146 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
11149 2002-01-12 Richard Henderson <rth@redhat.com>
11151 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
11153 * doc/invoke.texi: Update Alpha options.
11155 * doc/invoke.texi: Update i386 built-in function lists.
11157 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
11159 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
11160 referencing outside.
11162 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11164 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
11165 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
11166 offsets, and change line folding.
11167 * optabs.c (expand_binop): Remove warnings.
11168 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
11170 2002-01-12 Graham Stott <grahams@redhat.com>
11172 * attribs.c (handle_deprecated_attribute): constify WHAT.
11173 * diagnostic.c (warn_deprecated_use): Add braces, fixes
11174 dangling else warning and constify WHAT.
11175 * except.h (struct function, struct inline_remap): Move
11176 struct tag forward defs before all prototypes.
11177 (duplicate_eh_regions): Whitespace.
11179 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
11181 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11182 MODE_BASE_REG_CLASS.
11183 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
11185 2002-01-12 Richard Henderson <rth@redhat.com>
11187 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
11188 (ix86_expand_vector_move): New.
11189 (bdesc_2arg): Remove andps, andnps, orps, xorps.
11190 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
11191 Remove old prefetch builtins. Special case the logicals removed above.
11192 (ix86_expand_builtin): Likewise.
11193 (safe_vector_operand): Use V4SFmode, not TImode.
11194 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
11195 (ix86_expand_timode_binop_builtin): New.
11196 * config/i386/i386-protos.h: Update.
11197 * config/i386/i386.h (enum ix86_builtins): Update.
11198 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
11199 Use ix86_expand_vector_move in vector move expanders.
11200 (movti_internal, movti_rex64): Add xorps alternative.
11201 (sse_clrv4sf): Rename and adjust from sse_clrti.
11202 (prefetch): Don't work so hard.
11203 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
11204 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
11205 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
11207 2002-01-11 Richard Henderson <rth@redhat.com>
11209 * config/i386/mmintrin.h: New file.
11210 * config/i386/xmmintrin.h: New file.
11211 * config.gcc (i?86-*-*): Add extra_headers.
11212 * simplify-rtx.c (simplify_unary_operation): Handle saturating
11214 (simplify_binary_operation): Handle saturating arithmetic codes.
11215 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
11216 not the lowpart subreg.
11217 (ix86_expand_builtin): Return a TImode dummy register instead of 0
11219 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
11221 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11223 * conflict.c (conflict_graph_compute): Free regsets when finished.
11224 * ssa.c (compute_coalesced_reg_partition): Likewise.
11226 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11228 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
11229 every where we allocate a register.
11231 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11233 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
11234 * lcm.c (compute_earliest, compute_farthest): Likewise.
11236 2002-01-11 Janis Johnson <janis187@us.ibm.com>
11238 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
11240 2002-01-11 Janis Johnson <janis187@us.ibm.com>
11242 * doc/rtl.texi (Insns): Fix 2 typos.
11244 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
11246 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
11247 options. Use @table @gcctabopt for MMIX options. Add index
11248 entries for MMIX options. Start new paragraph with first
11249 heading of the machine-dependent options.
11251 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
11254 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
11255 * combine.c (force_to_mode): Same.
11256 * reload1.c (clear_reload_reg_in_use): Same.
11258 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
11260 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
11263 2002-01-11 Andreas Jaeger <aj@suse.de>,
11264 Brad Lucier <lucier@math.purdue.edu>
11266 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
11269 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
11271 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
11272 Protect with IN_LIBGCC.
11273 (LINK_EH_SPEC): Add required trailing space.
11275 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
11277 * c-tree.h: Move function declarations so that they are listed
11278 under the filename which contains them.
11279 (check_identifier, finish_decl_top_level,
11280 lookup_name_current_level_global, shadow_record_fields): Remove.
11282 2002-01-11 Andreas Jaeger <aj@suse.de>
11284 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
11287 2002-01-10 Richard Henderson <rth@redhat.com>
11289 * config/alpha/alpha.c (print_operand): Add 'J'.
11290 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
11291 new operand with the sequence number for the lituse. When splitting
11292 the insns, use gen_movdi_er_high_g and generate a sequence number.
11293 (gen_movdi_er_high_g): Print the sequence number if non-zero.
11295 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
11297 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
11298 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
11300 (altivec_expand_builtin): Same.
11301 (altivec_expand_stv_builtin): New.
11303 * config/rs6000/rs6000.h (rs6000_builtins): Same.
11305 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
11306 ("altivec_lvehx"): New.
11307 ("altivec_lvewx"): New.
11308 ("altivec_lvxl"): New.
11309 ("altivec_lvx"): New.
11310 ("altivec_stvx"): New.
11311 ("altivec_stvebx"): New.
11312 ("altivec_stvehx"): New.
11313 ("altivec_stvewx"): New.
11314 ("altivec_stvxl"): New.
11316 2002-01-10 Richard Henderson <rth@redhat.com>
11318 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
11319 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
11320 care not to delete instructions twice.
11322 2002-01-10 Zack Weinberg <zack@codesourcery.com>
11324 * toplev.c: Don't declare environ (it's not used anywhere).
11325 * configure.in: Don't check for declaration of environ.
11326 * config/i386/xm-mingw32.h: Don't #define environ.
11327 * config.in, configure: Regenerate.
11329 2002-01-10 Zack Weinberg <zack@codesourcery.com>
11331 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
11332 * configure: Regenerate.
11334 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
11335 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
11336 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
11338 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
11339 LIMITS_H_TEST here, not in m68k/x-next.
11340 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
11341 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
11343 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
11344 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
11345 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
11347 * config/i386/x-djgpp: Renamed i386/t-djgpp.
11348 * config/m88k/x-dolph: Renamed m88k/t-dolph.
11349 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
11350 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
11351 replacement of quadlib.asm with quadlib.c.
11353 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
11354 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
11355 config/rs6000/xm-beos.h: Delete file.
11357 * config.gcc: Update to match above changes.
11359 2002-01-10 Kazu Hirata <kazu@hxi.com>
11361 * config/h8300/h8300.h: Fix comment typos.
11362 * config/h8300/h8300.md: Likewise.
11363 * config/h8300/lib1funcs.asm: Likewise.
11365 2002-01-10 Dale Johannesen <dalej@apple.com>
11367 PR optimization/5269
11368 * unroll.c (precondition_loop_p): Make *increment be the correct
11369 sign when n_iterations known, to avoid confusing caller.
11371 2002-01-10 Kazu Hirata <kazu@hxi.com>
11373 * doc/extend.texi (deprecated): Fix a typo.
11375 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
11377 * basic-block.h (update_br_prob_note): Declare.
11378 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
11379 (try_forward_edges): Care negative frequencies and update note.
11380 (outgoing_edges_match): Tweek conditional merging heuristics.
11381 (try_crossjump_to_edge): use update_br_prob_note.
11382 * cfglayout.c (fixup_reorder_chain): Likewise.
11383 * cfrtl.c (update_br_prob_note): New.
11384 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
11386 * i386.c (ix86_decompose_address): Return -1 if address contains
11388 (legitimate_address_p): Require ix86_decompose_address to return 1.
11390 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
11391 (cprop_insn): Likewise.
11393 2002-01-10 Kazu Hirata <kazu@hxi.com>
11395 * toplev.c: Fix formatting.
11396 * tree.c: Likewise.
11397 * tree-dump.c: Likewise.
11398 * unroll.c: Likewise.
11399 * unwind-dw2.c: Likewise.
11400 * unwind-dw2-fde.c: Likewise.
11401 * unwind-dw2-fde-glibc.c: Likewise.
11402 * unwind-sjlj.c: Likewise.
11404 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
11406 * doc/invoke.texi: Document PDP-11 options.
11408 2002-01-10 Kazu Hirata <kazu@hxi.com>
11410 * config/h8300/h8300.h: Fix formatting.
11412 2002-01-10 Ira Ruben <ira@apple.com>
11414 Add __attribute__ ((deprecated)).
11415 * extend.texi: Document __attribute__ ((deprecated)).
11416 * invoke.texi: Document -Wno-deprecated-declarations.
11417 * testsuite/g++.dg/other/deprecated.C: New C++ test.
11418 * testsuite/gcc.dg/deprecated.c: New C test.
11419 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
11420 (c_common_attribute_table): Add "deprecated" entry.
11421 (handle_deprecated_attribute): New function.
11422 * c-decl.c (deprecated_states): New enum.
11423 deprecated_state: State of "deprecated" handling.
11424 (start_decl): Set deprecated_state based on attributes.
11425 (grokdeclarator): Test for deprecated uses, propagate attribute.
11426 * c-typeck.c (build_component_ref): Test for deprecated fields.
11427 (build_external_ref): Test for deprecated primaries.
11428 * diagnostic.c (warn_deprecated_use) New function to issue
11429 warnings about __attribute__ ((depricated)) references.
11430 * flags.h (warn_deprecated_decl): Extern declared for
11431 -W[no-]deprecated-declarations option.
11432 * print-tree.c (print_node): Show deprecated flag status.
11433 * toplev.c (warn_deprecated_decl): Defined.
11434 (W_options): Added "deprecated-declaration".
11435 * toplev.h (warn_deprecated_use): Extern declared.
11436 * tree.h (struct tree_common): Define deprecated_flag.
11437 (TREE_DEPRECATED): New macro to access flag.
11438 * cp/call.c (build_call): Test for deprecated calls.
11439 * cp/class.c (add_implicitly_declared_members): Set global
11440 flag to tell grokdeclarator to not issue deprecated warnings.
11441 * cp/cp-tree.h: Add extern for adding_implicit_members.
11442 * cp/decl.c (deprecated_states): New enum.
11443 (start_decl): Set deprecated_state based on attributes.
11444 (grokdeclarator): Test for deprecated uses, propagate attribute.
11445 * cp/lex.c (do_identifier): Test for deprecated primaries.
11446 * cp/typeck.c (build_component_ref): Test for deprecated fields.
11448 2002-01-10 Ira Ruben <ira@apple.com>
11450 Fix to assign attributes to inline member functions.
11451 * cp/decl.c (start_method): Handle attrlist.
11453 2002-01-10 Kazu Hirata <kazu@hxi.com>
11455 * combine.c (expand_field_assignment): Use subreg_lsb().
11457 2002-01-10 David Edelsohn <edelsohn@gnu.org>
11459 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
11460 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
11461 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
11462 Recurse for any operand of AND as long as constant is non-zero.
11464 2002-01-10 Kazu Hirata <kazu@hxi.com>
11466 * config/h8300/h8300.md: Remove constraints from expanders.
11468 2002-01-10 Kazu Hirata <kazu@hxi.com>
11470 * varasm.c: Fix formatting.
11471 * varray.c: Likewise.
11472 * vmsdbgout.c: Likewise.
11473 * xcoffout.c: Likewise.
11475 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
11477 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
11478 update edge probabilities to match.
11480 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
11482 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
11484 * doc/languages.texi, doc/sourcebuild.texi: New files.
11485 * doc/configfiles.texi: Make a subsubsection. Update.
11486 * doc/configterms.texi: Add @node. Remove warning that this isn't
11487 instructions for building GCC.
11488 * doc/makefile.texi: Make a subsection.
11489 * doc/gccint.texi: Update.
11491 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
11493 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
11495 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
11497 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
11499 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
11501 * optabs.c (expand_fix): Look for wider integer modes first.
11503 * i386.md (mov?f): Avoid the fake const double trick for medium
11505 (min?f*/max?f*): Prohibit memory operands for i387 variant.
11506 (fop_df_4): Disable for SSE compilation.
11508 2002-01-10 Graham Stott <grahams@redhat.com>
11510 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
11511 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
11513 2002-01-10 Richard Henderson <rth@redhat.com>
11515 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
11517 2002-01-10 Richard Henderson <rth@redhat.com>
11519 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
11520 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
11522 2002-01-10 Kazu Hirata <kazu@hxi.com>
11524 * combine.c (can_combine_p): Fix a comment typo.
11526 2002-01-09 Zack Weinberg <zack@codesourcery.com>
11528 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
11529 empty list correctly. Change loop index $t to $f for
11530 consistency with rest of Makefile.
11532 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
11534 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
11535 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11537 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
11538 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
11539 (altivec_init_builtins): Same.
11540 (altivec_expand_unop_builtin): Return NULL_RTX on error.
11541 (altivec_expand_binop_builtin): Same.
11542 (altivec_expand_ternop_builtin): Same.
11545 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
11546 ("altivec_vctuxs"): Fix typo.
11547 ("altivec_vnmsubfp"): Same.
11548 ("altivec_dssall"): New.
11549 ("altivec_mfvscr"): New.
11550 ("altivec_dss"): New.
11551 ("altivec_lvsl"): New.
11552 ("altivec_lvsr"): New.
11553 ("altivec_dstt"): New.
11554 ("altivec_dstst"): New.
11555 ("altivec_dststt"): New.
11556 ("altivec_dst"): New.
11558 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
11559 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11561 2002-01-09 Richard Henderson <rth@redhat.com>
11563 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
11565 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
11567 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
11569 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
11571 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
11573 2002-01-09 Kazu Hirata <kazu@hxi.com>
11575 * read-rtl.c: Fix formatting.
11576 * real.c: Likewise.
11577 * regclass.c: Likewise.
11578 * regrename.c: Likewise.
11579 * reg-stack.c: Likewise.
11580 * reload1.c: Likewise.
11581 * reload.c: Likewise.
11584 2002-01-09 Kazu Hirata <kazu@hxi.com>
11586 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
11587 to extract items in the expr_list chain.
11589 2002-01-09 Richard Henderson <rth@redhat.com>
11591 * config/vax/vax.c (vax_rtx_cost): Never abort.
11593 * config/vax/vax.h (REAL_ARITHMETIC): Define.
11595 2002-01-09 Jan Hubicka <jh@suse.cz>
11597 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
11599 2002-01-09 Richard Henderson <rth@redhat.com>
11601 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
11602 Unify code from various alternatives.
11604 2002-01-09 Richard Henderson <rth@redhat.com>
11606 * regrename.c (copy_value): Ignore the copy if the source register
11607 is present in the value chain with a narrower mode.
11609 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11611 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
11612 for the c4x target. Also improve layout.
11614 2002-01-09 Richard Henderson <rth@redhat.com>
11616 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
11617 * config/m32r/m32r.md (and ior xor splitters): Swap operands
11618 to match insn patterns.
11620 2002-01-09 Richard Henderson <rth@redhat.com>
11622 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
11623 (copyprop_hardreg_forward_1): Likewise.
11625 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
11627 * pa.md (decrement_and_branch_until_zero): Change predicate for
11628 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
11630 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
11632 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
11633 gets undefined. For Darwin.
11635 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11637 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
11639 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11641 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
11643 2002-01-08 Richard Henderson <rth@redhat.com>
11645 * regrename.c (copy_value): Ignore overlapping copies.
11647 2002-01-08 Richard Henderson <rth@redhat.com>
11649 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
11650 as needed to avoid shared structure.
11652 2002-01-08 Kazu Hirata <kazu@hxi.com>
11654 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
11657 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11659 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
11660 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
11661 documentation of obsolete macros.
11662 * system.h: Poison these macros.
11663 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
11664 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
11665 config/c4x/c4x.h, config/clipper/clipper.h,
11666 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
11667 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
11668 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
11669 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
11670 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
11671 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
11672 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11673 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
11674 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
11675 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11676 config/sparc/sparc.h, config/stormy16/stormy16.h,
11677 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
11678 definitions and commented out definitions of obsolete macros.
11679 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
11680 of MAX_INT_TYPE_SIZE.
11682 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
11684 * config/s390/s390.c (s390_preferred_reload_class): Never
11685 return ADDR_REGS if it isn't a subset of the given class.
11686 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
11687 FP_REGS, but all superclasses as well.
11689 * config/s390/s390.c (s390_function_profiler): Fix thinko.
11691 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
11692 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
11693 must not be a const_int.
11695 2002-01-08 Richard Henderson <rth@redhat.com>
11697 * Makefile.in (toplev.o): Depend on options.h.
11698 (gcc.o): Depend on specs.h.
11700 2002-01-08 Jakub Jelinek <jakub@redhat.com>
11702 * expr.c (store_expr): Convert VOIDmode constants back to target's
11705 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11707 * doc/invoke.texi: Markup gcc as @command. Refer to
11708 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
11709 of http://gcc.gnu.org/thanks.html.
11711 2002-01-08 Dale Johannesen <dalej@apple.com>
11713 * config/rs6000/rs6000.md: Add missing int register
11714 target case to movdf_low.
11716 2002-01-08 Zack Weinberg <zack@codesourcery.com>
11718 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
11719 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
11720 (cppinit.o): Depend on except.h.
11721 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
11722 s-specs): New rules.
11724 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
11725 Don't create specs.h/options.h/gencheck.h here. Remove
11726 unnecessary variable settings from last argument of AC_OUTPUT.
11727 * config.in, configure: Regenerate.
11728 * intl.c: Hardcode package name as "gcc".
11730 * cppinit.c: Include except.h.
11731 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
11733 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
11734 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
11735 (!)USING_SJLJ_EXCEPTIONS.
11736 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
11738 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11740 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
11741 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
11742 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
11743 documentation of obsolete macros.
11744 * system.h: Poison these macros.
11745 * config/d30v/d30v.h, config/ns32k/encore.h,
11746 config/stormy16/stormy16.h: Remove definitions and commented out
11747 definitions of obsolete macros.
11749 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
11751 * objc/objc-act.c (handle_class_ref): Mark the declaration of
11752 %sobjc_class_ref_%s as used - to prevent unwanted compiler
11755 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
11757 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
11758 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
11759 to insn adjusting stack/frame pointer.
11760 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
11761 accept operands that cause the insn to be non-splittable.
11763 2002-01-08 Graham Stott <grahams@redhat.com>
11765 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
11766 (C_TYPE_FIELDS_VOLATILE): Likewise.
11767 (C_TYPE_BEING_DEFINED): Likewise.
11768 (C_IS_RESERVED_WORD): Likewise.
11769 (C_TYPE_VARIABLE_SIZE): Likewise.
11770 (C_DECL_VARIABLE_SIZE): Likewise.
11771 (C_MISSING_PROTOTYPE_WARNED): Likewise.
11772 (C_SET_EXP_ORIGINAL_CODE): Likewise.
11773 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
11775 (C_DECL_ANTICIPATED): Likewise.
11776 (c_build_type_variant): Add parenthesis.
11778 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11780 * gcc.c (option_map): Remove --version.
11781 (process_command): Handle -fversion following the GNU Coding
11782 Standards. Partially addresses PR other/704.
11784 2002-01-08 Graham Stott <grahams@redhat.com>
11786 * combine.c (combine_instructions): Fix typo.
11788 2002-01-08 Graham Stott <grahams@redhat.com>
11790 * debug.h: Use "tree" and "rtx" throughout.
11792 * debug.c: Likewise.
11794 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
11796 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
11797 constant pool, use the pool's version of the symbol instead.
11799 2002-01-07 Richard Henderson <rth@redhat.com>
11801 * regrename.c (find_oldest_value_reg): Ignore the value chain if
11802 the original register was copied in a mode with a fewer number of
11803 hard registers than the desired mode.
11804 (copyprop_hardreg_forward_1): Likewise.
11805 (debug_value_data): Fix loop test.
11806 * toplev.c (parse_options_and_default_flags): Reenable
11807 -fcprop-registers at -O1.
11809 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11811 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
11812 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
11814 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
11817 * config/rs6000/rs6000.md: Add altivec predicate patterns.
11819 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
11821 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
11822 (pa_output_function_prologue): Output local label at the beginning of
11823 the prologue when profiling.
11824 (hppa_profile_hook): Use the local label rather than the function label.
11825 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
11827 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11829 * config/rs6000/rs6000.c (print_operand): Remove extra space.
11830 (altivec_expand_unop_builtin): Fix thinko.
11831 (altivec_expand_binop_builtin): Same.
11832 (altivec_expand_ternop_builtin): Same.
11833 (altivec_expand_builtin): Same.
11835 2002-01-07 Richard Henderson <rth@redhat.com>
11837 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
11839 2002-01-07 Jason Merrill <jason@redhat.com>
11841 * unwind-dw2.c (execute_cfa_program): Use < again.
11843 2002-01-07 Jakub Jelinek <jakub@redhat.com>
11845 * predict.c (combine_predictions_for_insn): Avoid division by zero.
11847 2002-01-07 Jakub Jelinek <jakub@redhat.com>
11849 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
11850 Don't allow -1 - x -> ~x simplifications in the first pass.
11852 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11854 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
11856 (altivec_expand_binop_builtin): Same.
11857 (altivec_expand_unop_builtin): Same.
11858 (print_operand): Fix typo.
11859 (bdesc_1arg): Add vupk* variants.
11861 * rs6000.h (rs6000_builtins): Add vupk* enums.
11863 * rs6000.md: Add altivec_vupk* variants.
11865 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
11867 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
11868 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
11869 and last update dates.
11871 2002-01-07 Janis Johnson <janis187@us.ibm.com>
11873 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
11875 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
11877 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
11878 * config/avr/avr.h (CPP_SPEC): Likewise.
11879 (LINK_SPEC): Likewise.
11880 (CRT_BINUTILS_SPECS): Likewise.
11881 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11882 * doc/invoke.texi (AVR Options): Document them.
11884 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
11886 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
11889 2002-01-07 Graham Stott <grahams@redhat.com>
11891 * config/i386/i386.h: Update copyright date.
11892 (HALF_PIC_PTR): Add parenthesis.
11893 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
11894 (CONSTANT_ALIGNMENT): Add parenthesis.
11895 (DATA_ALIGNMENT): Likewise.
11896 (LOCAL_ALIGNMENT): Likewise.
11897 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
11898 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
11899 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
11900 (HARD_REGNO_NREGS): Add paranethesis.
11901 (VALID_SSE_REG_MODE): Whitespace.
11902 (VALID_MMX_REG_MODE): Whitespace.
11903 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
11904 (ix86_hard_regno_mode_ok): Add parenthesis.
11905 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
11906 (RETURN_IN_MEMORY): Whitespace.
11907 (N_REG_CLASSES): Add parenthesis.
11908 (INTEGER_CLASS_P): Add parenthesis and wrap.
11909 (FLOAT_CLASS_P): Likewise.
11910 (SSE_CLASS_P): Likewise.
11911 (MMX_CLASS_P): Likewise.
11912 (MAYBE_INTEGER_CLASS_P): Likewise.
11913 (MAYBE_FLOAT_CLASS_P): Likewise.
11914 (MAYBE_SSE_CLASS_P): Likewise.
11915 (MAYBE_MMX_CLASS_P): Likewise.
11916 (Q_CLASS_P): Likewise.
11917 (GENERAL_REGNO_P): Uppercase macro parameter.
11918 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
11919 (FP_REGNO_P): Likewise.
11920 (ANY_FP_REGNO_P): Uppercase macro parameter.
11921 (SSE_REGNO_P): Likewise.
11922 (SSE_REGNO): Likewise.
11923 (SSE_REG_P): Likewise.
11924 (SSE_FLOAT_MODE_P): Likewise.
11925 (MMX_REGNO_P): Likewise.
11926 (MMX_REG_P):Likewise.
11927 (STACK_REG_P): Likewise.
11928 (NON_STACK_REG_P): Likewise.
11929 (STACK_TOP_P): Likewise.
11930 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
11931 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
11932 (SECONDARY_MEMORY_NEEDED): Likewise.
11933 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
11934 (MD_ASM_CLOBBERS): Whitespace and wrap.
11935 (MUST_PASS_IN_STACK): Whitespace and wrap.
11936 (RETURN_POPS_ARGS): Add parenthesis.
11937 (INIT_CUMULATIVE_ARGS): Likewise.
11938 (FUNCTION_ARG): Likewise.
11939 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
11940 (SETUP_INCOMING_VARARGS): Likewise.
11941 (BUILD_VA_LIST_TYPE): Add parenthesis.
11942 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
11944 (EXPAND_BUILTIN_VA_ARG): Likewise.
11945 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
11946 (INITIALIZE_TRAMPOLINE): Add parenthesis.
11947 (INITIAL_ELIMINATION_OFFSET): Likewise.
11948 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
11949 (REGNO_OK_FOR_BASE_P): Likewise.
11950 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
11951 (REGNO_OK_FOR_DIREG_P): Likewise.
11952 (REG_OK_FOR_INDEX_P): Whitespace.
11953 (REG_OK_FOR_BASE_P): Whitespace.
11954 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
11956 (FIND_BASE_TERM): Fix typo.
11957 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
11958 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
11959 (SYMBOLIC_CONST; Whitespace.
11960 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
11961 (ENCODE_SECTION_INFO): Whitespace.
11962 (FINALIZE_PIC): Remove do { ... } while (0).
11963 (PROMOTE_MODE): Wrap in do { ... } while (0).
11964 (CONST_COSTS): Whitespace.
11965 (RTX_COSTS): Add paramethesis, whitespace and wrap.
11966 (REGISTER_MOVE_COST): Add parenthesis.
11967 (MEMORY_MOVE_COST): Likewise.
11968 (EXTRA_CC_MODES): Whitespace.
11969 (SELECT_CC_MODE): Add parenthesis and whitespace.
11970 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
11971 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
11972 (ASM_OUTPUT_LABEL): Add paramethesis.
11973 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
11974 (ASM_OUTPUT_REG_POP): Likewise.
11975 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
11976 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11978 * config/i386/i386.c: Update copyright.
11979 (CHECK_STACK_LIMIT): Add parenthesis.
11980 (AT_BP): Uppercase macro parameter.
11981 (x86_64_int_parameter_registers): Constify.
11982 (x86_64_int_return_registers): Likewise.
11983 (ix86_compare_op0): Use rtx.
11984 (construct_container): Constify INTREG parameter.
11985 (function_arg): Use rtx.
11987 * diagnostic.h: Update copyright date.
11988 (output_buffer_state): Add parenthesis.
11989 (output_buffer_format_args): Likewise.
11991 * combine.c (combine_instructions): Replace XEXP (links, 0)
11994 2002-01-06 H.J. Lu <hjl@gnu.org>
11996 * cfgcleanup.c (thread_jump): Fix 2 typos.
11998 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
12000 * config.gcc: Add support for --enable-altivec.
12002 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
12004 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
12006 2002-01-06 Jakub Jelinek <jakub@redhat.com>
12008 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
12009 __objc_class_name_*.
12011 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
12013 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
12015 2002-01-06 Richard Henderson <rth@redhat.com>
12017 * reorg.c (emit_delay_sequence): Remove death notes, not merely
12018 nop them out. Increment label reference count for REG_LABEL.
12019 (fill_slots_from_thread): Frob label reference count around
12020 delete_related_insns.
12022 2002-01-05 Richard Henderson <rth@redhat.com>
12024 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
12027 2002-01-05 Richard Henderson <rth@redhat.com>
12029 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
12030 * integrate.c (output_inline_function): Likewise.
12031 * toplev.c (rest_of_compilation): Do it here instead. Move call
12032 to remove_unnecessary_notes after emitting abstract instance.
12033 Force an emitted nested function to have its parent emited as well.
12034 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
12036 (rtl_for_decl_location): Do not look at reload data structures
12037 before reload has run.
12039 2002-01-05 Kazu Hirata <kazu@hxi.com>
12041 * cse.c: Fix formatting.
12042 * dwarf2asm.c: Likewise.
12043 * dwarf2out.c: Likewise.
12044 * explow.c: Likewise.
12045 * expmed.c: Likewise.
12046 * function.c: Likewise.
12047 * gcov.c: Likewise.
12048 * gencheck.c: Likewise.
12049 * genrecog.c: Likewise.
12050 * ggc-common.c: Likewise.
12051 * ggc-page.c: Likewise.
12052 * global.c: Likewise.
12054 2002-01-05 Kazu Hirata <kazu@hxi.com>
12056 * combine.c: Fix formatting.
12058 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
12061 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
12063 2002-01-05 David Edelsohn <edelsohn@gnu.org>
12065 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
12066 as 1 for __powerpc64__ as well.
12068 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
12070 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
12073 2002-01-05 Daniel Berlin <dan@dberlin.org>
12075 * lcm.c: Revert change, due to performance regression it causes on
12076 SPEC because it's slightly more conservative (sigh, I hate
12079 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
12081 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
12083 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
12085 * doc/cppinternals.texi: Update.
12087 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
12089 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
12090 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
12092 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
12093 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
12094 kludge for pre-october-14th mmix versions to handle new-found bug
12095 with PUSHJ/PUSHGO and the register stack.
12096 * config/mmix/mmix.h (struct machine_function): Rename member
12097 has_call_value_without_parameters to has_call_without_parameters.
12098 All referers changed.
12099 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
12100 TARGET_MASK_BRANCH_PREDICT): New macros.
12101 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
12102 -mno-reg-stack-fill-bug-workaround.
12103 * config/mmix/mmix.md ("call"): Set struct machine member
12104 has_call_without_parameters.
12106 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
12108 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
12110 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
12112 * cfgcleanup.c: Include tm_p.h
12113 (mark_effect): Fix handling of hard register; fix handling of SET
12115 2002-01-04 Kazu Hirata <kazu@hxi.com>
12117 * config/h8300/h8300.md (anonymous patterns): Check that
12118 operands are registers before using REGNO on them.
12120 2002-01-03 Roland McGrath <roland@frob.com>
12122 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
12124 2002-01-04 Jakub Jelinek <jakub@redhat.com>
12126 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
12127 * c-common.h (genrtl_expr_stmt_value): Likewise.
12128 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
12129 (expand_expr_stmt_value): Add maybe_last argument.
12130 Don't warn about statement with no effect if it is the last statement
12131 in expression statement.
12132 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
12133 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
12134 expand_expr_stmt_value.
12135 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
12136 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
12137 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
12138 as maybe_last to expand_expr_stmt_value.
12140 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
12142 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
12143 be passed in, do not build it.
12144 (c_begin_if_stmt): New function.
12145 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12146 * c-common.h (c_expand_start_cond): Update prototype.
12147 (c_begin_if_stmt): Prototype new function.
12148 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12149 * c-parse.in (if_prefix): Use c_begin_if_stmt,
12150 c_begin_while_stmt and c_finish_while_stmt_cond.
12152 2002-01-04 William Cohen <wcohen@redhat.com>
12154 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
12155 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12156 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12157 * config/pa/som.h (ASM_FILE_START): Likewise.
12159 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
12161 * lcm.c: Include df.h.
12162 Add available_transfer_function prototype.
12163 (compute_available): Rework to use iterative dataflow framework.
12164 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
12165 with bb_info in df.h
12166 (available_transfer_function): New function.
12168 * Makefile.in (lcm.o): add df.h to dependencies.
12170 2002-01-04 Richard Henderson <rth@redhat.com>
12172 * config/alpha/alpha.c (some_operand): Accept HIGH.
12173 (input_operand): Likewise; accept simple references to globals.
12174 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
12175 (alpha_const_double_ok_for_letter_p): Likewise.
12176 (alpha_extra_constraint): Likewise.
12177 (alpha_preferred_reload_class): Likewise. Do not force
12178 symbolic constants to memory.
12179 (alpha_legitimate_address_p): Accept simple references
12180 to small_symbolic_operand.
12181 (alpha_legitimize_address): New arg scratch. Be prepared to be
12182 called when no_new_pseudos. Emit simple symbolic references.
12183 Split integers into low, high, and rest.
12184 (alpha_expand_mov): Use alpha_legitimize_address.
12185 (some_small_symbolic_mem_operand): New.
12186 (split_small_symbolic_mem_operand): New.
12187 * config/alpha/alpha-protos.h: Update.
12188 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
12189 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
12190 (EXTRA_CONSTRAINT): Likewise.
12191 (PREFERRED_RELOAD_CLASS): Likewise.
12192 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
12193 (PREDICATE_CODES): Update.
12194 * config/alpha/alpha.md: New post-reload splitters to convert
12195 simplfied symbolic operands to the form that references $29.
12196 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
12197 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
12199 2002-01-03 Richard Henderson <rth@redhat.com>
12201 * local-alloc.c (function_invariant_p): Update commentary.
12203 2002-01-04 H.J. Lu <hjl@gnu.org>
12205 * toplev.c (rest_of_compilation): Fix a typo when calling
12208 2002-01-03 Kazu Hirata <kazu@hxi.com>
12210 * c-common.c: Fix formatting.
12211 * diagnostic.c: Likewise.
12212 * doloop.c: Likewise.
12213 * dwarf2out.c: Likewise.
12215 2002-01-03 Kazu Hirata <kazu@hxi.com>
12217 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
12218 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
12220 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
12222 * cpperror.c: Update comments and copyright.
12223 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
12224 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
12226 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
12228 * collect2.c (main): Use strcmp when testing for "-shared".
12230 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
12232 * cppmacro.c: Don't include intl.h. Update comments.
12233 (new_number_token): Allocate enough buffer for 64-bit unsigned
12234 integers; update prototype.
12235 * cppmain.c: Update comments.
12237 2002-01-03 William Cohen <wcohen@redhat.com>
12239 * function.h (struct function): Add profile.
12240 (current_function_profile): New.
12241 doc/extend.texi: Update documentation.
12242 * final.c (final_start_function): Use current_function_profile
12243 instead of profile_flag.
12244 (profile_after_prologue): Likewise.
12245 * function.c (expand_function_start): Likewise.
12246 (expand_function_start): Likewise.
12247 * config/alpha/alpha.c (direct_call_operand):
12248 (alpha_does_function_need_gp): Likewise.
12249 (alpha_expand_prologue): Likewise.
12250 * config/arm/arm.c (arm_expand_prologue): Likewise.
12251 thumb_expand_prologue: Likewise.
12252 * config/d30v/d30v.c (d30v_stack_info): Likewise.
12253 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
12254 (fr30_expand_prologue): Likewise.
12255 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
12256 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
12257 * config/i386/i386.h (FINALIZE_PIC): Likewise.
12258 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
12259 * config/i960/i960.c (i960_output_function_prologue): Likewise.
12260 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12261 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
12262 (m32r_expand_prologue): Likewise.
12263 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
12264 (m88k_expand_prologue): Likewise.
12265 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
12266 * config/mips/mips.c (compute_frame_size): Likewise.
12267 (mips_expand_prologue): Likewise.
12268 (mips_can_use_return_insn): Likewise.
12269 * config/pa/elf.h (ASM_FILE_START): Likewise.
12270 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12271 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12272 * config/pa/som.h (ASM_FILE_START): Likewise.
12273 * config/romp/romp.c (romp_using_r14): Likewise.
12274 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
12275 (rs6000_stack_info): Likewise.
12276 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12277 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12278 * config/v850/v850.c (compute_register_save_size): Likewise.
12280 2002-01-03 Jakub Jelinek <jakub@redhat.com>
12282 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
12283 gen_lowpart_common fails, use gen_lowpart_SUBREG.
12285 2002-01-03 Turly O'Connor <turly@apple.com>
12287 * darwin.c (machopic_output_possible_stub_label): Don't generate
12288 stub routines for pseudo-stubs which we've just defined.
12290 2002-01-03 Kazu Hirata <kazu@hxi.com>
12292 * builtins.c: Fix formatting.
12293 * c-typeck.c: Likewise.
12294 * combine.c: Likewise.
12295 * expr.c: Likewise.
12296 * loop.c: Likewise.
12298 2002-01-03 Andreas Schwab <schwab@suse.de>
12300 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
12301 and return true if _cpp_push_next_buffer pushed a new include
12303 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
12304 _cpp_pop_file_buffer did not push a new file.
12305 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
12307 2002-01-02 Eric Christopher <echristo@redhat.com>
12309 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
12310 FIND_REG_INC_NOTE call. Update copyright.
12311 * loop.c (canonicalize_condition): Ditto.
12312 * reorg.c (delete_scheduled_jump): Ditto.
12314 2002-01-03 Kazu Hirata <kazu@hxi.com>
12316 * gcse.c: Fix formatting.
12318 2002-01-03 Graham Stott <grahams@redhat.com>
12320 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
12321 forward defs for struct tags rtx_def, union_tree, rtvec_def
12322 also output corresponding typedefs for rtx, tree, and rtvec.
12324 * system.h: Move forward defs for struct tags rtx_def, union_tree,
12325 rtvec_def along with corresponding typedefs for rtx, tree, and
12326 rtvec to config.h, hconfig.h, tconfig.h.
12328 2002-01-03 Graham Stott <grahams@redhat.com>
12330 * tree.h: Update copyright date.
12331 (IS_EXPR_CODE_CLASS): Add parenthesis.
12332 (TREE_SET_CODE): Add whitespace.
12333 (TREE_CHECK): Add parenthesis.
12334 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
12335 (CST_OR_CONSTRUCTOR_CHECK):
12336 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
12337 (TREE_SYMBOL_REFERENCED): Whitespace.
12338 (INT_CST_LT): Likewise.
12339 (INT_CST_LT_UNSIGNED): Likewise.
12340 (tree_real_cst): Unwrap comment.
12341 (tree_string): Likewise.
12342 (tree_complex): Likewise.
12343 (IDENTIFIER_POINTER): correct cast.
12344 (SAVE_EXPR_CONTEXT): Whitespace.
12345 (EXPR_WFL_FILENAME_NODE): Likewise.
12346 (EXPR_WFL_FILENAME): Remove parenthesis.
12347 (DECL_ORIGIN): Add parenthesis.
12348 (DECL_FROM_INLINE): Use NULL_TREE.
12349 (build_int_2): Whitespace.
12350 (build_type_variant): Add parenthesis.
12352 * gcc/jcf-parse.c: Update copyright date.
12353 (yyparse): Constify resource_filename.
12355 2002-01-03 Graham Stott <grahams@redhat.com>
12357 * rtl.h: Update copyright date.
12358 (RTL_CHECK1): Wrap long line.
12359 (RTL_CHECK2): Likewise.
12360 (RTL_CHECKC1): Wrap long line and whitespace.
12361 (RTL_CHECKC2): Likewise.
12362 (XWINT): Whitespace.
12368 (XBITMAP): Likewise.
12370 (XBBDEF): Likewise.
12372 (X0WINT): Likewise.
12374 (X0UINT): Likewise.
12378 (X0MODE): Likewise.
12379 (X0BITMAP): Likewise.
12380 (X0TREE): Likewise.
12381 (X0BBDEF): Likewise.
12382 (X0ADVFLAGS): Likewise.
12383 (X0CSELIB): Likewise.
12384 (X0MEMATTR): Likewise.
12385 (XCWINT): Likewise.
12387 (XCUINT): Likewise.
12391 (XCMODE): Likewise.
12392 (XCBITMAP): Likewise.
12393 (XCTREE): Likewise.
12394 (XCBBDEF): Likewise.
12395 (XCADVFLAGS): Likewise.
12396 (XCCSELIB): Likewise.
12397 (XC2EXP): Likewise.
12398 (INSN_UID): Likewise.
12399 (PREV_INSN): Likewise.
12400 (PATTERN): Likewise.
12401 (INSN_CODE): Likewise.
12402 (PUT_REG_NOTE_KIND): Likewise.
12403 (CODE_LABEL_NUMBER): Likewise.
12404 (NOTE_SOURCE_FILE): Likewise.
12405 (NOTE_BLOCK): Likewise.
12406 (NOTE_EH_HANDLER): Likewise.
12407 (NOTE_RANGE_INFO): Likewise.
12408 (NOTE_LIVE_INFO): Likewise.
12409 (NOTE_BASIC_BLOCK): Likewise.
12410 (NOTE_EXPECTED_VALUE): Likewise.
12411 (NOTE_LINE_NUMBER): Likewise.
12412 (LABEL_NAME): Likewise.
12413 (LABEL_NUSES): Likewise.
12414 (LABEL_ALTERNATE_NAME): Likewise.
12415 (ADDRESSOF_DECL): Likewise.
12416 (JUMP_LABEL): Likewise.
12417 (LABEL_NEXTREF): Likewise.
12419 (ORIGINAL_REGNO: Likewise.
12420 (HARD_REGISTER_NUM_P): Add parenthesis.
12421 (SUBREG_REG): Whitespace.
12422 (SUBREG_BYTE): Likewise.
12423 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
12424 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
12425 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
12426 (ASM_OPERANDS_INPUT_VEC): Likewise.
12427 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
12428 (ASM_OPERANDS_INPUT): Likewise.
12429 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
12430 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
12431 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
12432 (ASM_OPERANDS_INPUT_MODE): Likewise.
12433 (ASM_OPERANDS_SOURCE_FILE): Likewise.
12434 (ASM_OPERANDS_SOURCE_LINE): Likewise.
12435 (MEM_SET_IN_STRUCT_P): Minor reformat.
12436 (TRAP_CONDITION): Whitespace.
12437 (TRAP_CODE): Likewise.
12438 (COND_EXEC_TEST): Likewise.
12439 (COND_EXEC_CODE): Likewise.
12440 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
12441 (PHI_NODE_P): Add parenthesis.
12442 (plus_constant): Whitespace and add parenthesis.
12444 2002-01-03 Kazu Hirata <kazu@hxi.com>
12446 * config/avr/avr.c: Fix comment typos.
12447 * config/c4x/c4x.md: Likewise.
12448 * config/dsp16xx/dsp16xx.h: Likewise.
12449 * config/dsp16xx/dsp16xx.md: Likewise.
12450 * config/i386/i386.md: Likewise.
12451 * config/ia64/ia64.c: Likewise.
12452 * config/m32r/m32r.h: Likewise.
12453 * config/m68hc11/m68hc11.md: Likewise.
12454 * config/mmix/mmix.c: Likewise.
12455 * config/mn10200/mn10200.c: Likewise.
12456 * config/romp/romp.c: Likewise.
12457 * config/sh/sh.c: Likewise.
12458 * config/stormy16/stormy16.c: Likewise.
12459 * config/stormy16/stormy16.h: Likewise.
12460 * config/stormy16/stormy16.md: Likewise.
12462 2002-01-03 Graham Stott <grahams@redhat.com>
12464 * loop.h: Update copyright date.
12465 (LOOP_MOVABLES): Fix typo.
12466 (LOOP_REGS): Likewise.
12467 (LOOP_IVS): Likewise.
12469 2002-01-03 Graham Stott <grahams@redhat.com>
12471 * cppinit.c: Update copyright date.
12472 Don't include output.h
12473 * Makefile.in: Update copyright date.
12476 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
12479 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
12480 (-pthread) Add to RS/6000 options.
12482 2002-01-02 Kazu Hirata <kazu@hxi.com>
12484 * except.c: Fix comment typos.
12485 * loop.c: Likewise.
12486 * varasm.c: Likewise.
12487 * doc/tm.texi: Fix a typo.
12489 2002-01-02 Jakub Jelinek <jakub@redhat.com>
12491 * c-typeck.c (output_init_element): Allow initializing static storage
12492 duration objects with compound literals.
12494 2002-01-02 Richard Henderson <rth@redhat.com>
12496 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
12499 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12501 * gcc.c (default_compilers): Const-ify.
12502 * mips-tdump.c (stab_names): Likewise.
12503 * mips-tfile.c (map_coff_types, map_coff_storage,
12504 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
12505 pseudo_ops_t, pseudo_ops): Likewise.
12506 * protoize.c (default_include): Likewise
12508 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
12509 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
12510 Add array size in declaration.
12511 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
12512 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
12513 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
12514 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
12515 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
12516 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
12517 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
12518 emtens, make_nan): Const-ify.
12519 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
12520 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
12522 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
12524 * config.gcc (ia64-*-*): Set extra_headers.
12525 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
12526 * config/alpha/t-osf: Remove.
12527 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
12529 2002-01-02 David Edelsohn <edelsohn@gnu.org>
12531 * config/rs6000/t-aix43: Revert previous change.
12533 2002-01-02 Jason Merrill <jason@redhat.com>
12535 * c-decl.c (c_expand_body): Call outlining_inline_function when
12536 emitting an inline function out of line.
12538 2002-01-02 Richard Henderson <rth@redhat.com>
12540 * dwarf2out.c (limbo_die_node): Add created_for member.
12541 (new_die): New argument created_for. Update all callers.
12542 (mark_limbo_die_list): New.
12543 (dwarf2out_init): Register limbo_die_list as a root.
12544 (dwarf2out_finish): Force insert limbo dies into their function
12547 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
12550 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
12552 2002-01-02 Kazu Hirata <kazu@hxi.com>
12554 * config/h8300/fixunssfsi.c: Update copyright.
12557 * config/h8300/h8300.c: Update copyright.
12558 Eliminate warnings.
12560 2002-01-02 Kazu Hirata <kazu@hxi.com>
12562 * config/romp/romp.c: Fix comment formatting.
12563 * config/romp/romp.h: Likewise.
12564 * config/romp/romp.md: Likewise.
12565 * config/s390/s390.c: Likewise.
12566 * config/stormy16/stormy16.c: Likewise.
12567 * config/stormy16/stormy16.h: Likewise.
12569 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
12571 * c-common.h (genrtl_expr_stmt_value): Declare.
12572 * c-semantics.c (genrtl_goto_stmt): Redirect to...
12573 (genrtl_goto_stmt_value): ... this new function. Pass new
12574 argument down to expand_expr_stmt_value, taking
12575 TREE_ADDRESSABLE into account.
12576 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
12577 STMT_EXPR as addressable, i.e., one whose result we want.
12578 * expr.c (expand_expr): Don't save expression statement value
12579 of labeled_blocks or loop_exprs.
12580 * stmt.c (expand_expr_stmt): Redirect to...
12581 (expand_expr_stmt_value): ... this new function. Use new
12582 argument to tell whether to save expression value.
12583 (expand_end_stmt_expr): Reset last_expr_type and
12584 last_expr_value if we don't have either.
12585 * tree-inline.c (declare_return_variable): Mark its use
12586 statement as addressable.
12587 * tree.h: Document new use of TREE_ADDRESSABLE.
12588 (expand_expr_stmt_value): Declare.
12590 2002-01-01 Tom Rix <trix@redhat.com>
12592 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
12593 rs6000_emit_allocate_stack.
12595 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
12597 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
12598 ${srcdir}/ginclude/ to every entry in extra_headers.
12599 * configure: Regenerate.
12600 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
12601 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
12602 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
12603 * ginclude/proto.h: Rename to config/convex/proto.h.
12605 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12607 * attribs.c (handle_vector_size_attribute): Use host_integerp
12608 and tree_int_cst; remove warnings.
12609 * caller-save.c (insert_restore): Add cast to get rid of warning.
12610 (insert_save): Likewise.
12611 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
12612 * regmove.c (find_matches): Add temporary var to kill a warning.
12614 2002-01-01 Douglas B Rupp <rupp@gnat.com>
12616 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
12617 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
12618 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
12619 (vms-dwarf2eh.o): Add Makefile rule.
12620 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
12621 * config/alpha/vms-dwarf2eh.asm: New file.
12623 * gcc.c (delete_if_ordinary): Delete all versions.
12625 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
12627 * config/mmix/mmix.md: Update FIXME to not mention
12629 (MMIX_rJ_REGNUM): New define_constants constant.
12630 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
12631 "*movdicc_real"): Adjust contraints formatting.
12632 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
12633 for branch prediction.
12634 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
12636 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
12637 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
12638 number. Delete related FIXMEs.
12639 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
12640 from number to MMIX_rJ_REGNUM.
12641 (TARGET_MASK_BRANCH_PREDICT): New.
12642 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
12643 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
12644 value. Add -mbranch-predict and -mno-branch-predict.
12645 (TARGET_VERSION): Drop date.
12646 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
12647 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
12648 for finding out global symbols.
12649 (mmix_asm_output_labelref): Revert condition for global symbol.
12650 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
12651 (mmix_print_operand_punct_valid_p): A '+' is valid.
12653 See ChangeLog.6 for earlier changes.