1 2002-05-03 David S. Miller <davem@redhat.com>
3 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4 * target.h (struct gcc_target): Delete cycle_display member.
6 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
7 (rtx_needs_barrier): Delete reference to cycle_display unspec.
8 (ia64_sched_reorder2): Mention need for cycle display handling
11 2002-05-03 Richard Henderson <rth@redhat.com>
13 * real.c (etoasc): Strip most trailing zeros for clarity.
14 * sched-vis.c: Include real.h.
15 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
16 * Makefile.in (sched-vis.o): Add real.h.
18 2002-05-03 David S. Miller <davem@redhat.com>
20 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
23 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
25 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
26 when we get an out of range literal.
27 (altivec_expand_ternop_builtin): Same.
28 (altivec_expand_unop_builtin): Same.
29 (altivec_expand_builtin): Same, for dss.
30 (altivec_expand_builtin): Use trees instead of rtl when
31 determining literal argument validity.
33 2002-05-03 David S. Miller <davem@redhat.com>
35 Delete cycle display scheduling hook.
36 * config/ia64/ia64.c (ia64_cycle_display,
37 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
38 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
39 and use emit_insn_before instead of ia64_emit_insn_before.
40 * config/ia64/ia64.md (unspec usage): Delete cycle display.
41 (cycle_display): Delete insn pattern.
42 * config/sparc/sparc.md (unspec usage): Delete cycle display.
43 (cycle_display): Delete insn pattern.
44 * config/sparc/sparc.c (sparc_cycle_display,
45 TARGET_SCHED_CYCLE_DISPLAY): Delete.
46 * doc/md.texi (cycle_display): Don't mention.
47 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
49 2002-05-03 Richard Henderson <rth@redhat.com>
51 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
52 * recog.h: Declare them.
54 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
55 * config/sparc/sparc.md: Use store_data_bypass_p instead.
56 * config/sparc/sparc-protos.h: Update.
58 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
60 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
61 -D__arch64__. Add -D_LP64.
62 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
64 (CPP_ARCH64_SPEC): Likewise.
65 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
66 (NO_BUILTIN_SIZE_TYPE): Undef.
68 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
70 * genautomata.c (min_issue_delay_pass_states): Change return type
72 (min_issue_delay_pass_states): Change the algorithm.
73 (min_issue_delay): Set up min_insn_issue_delay for the state.
74 (output_min_issue_delay_table): Interchange the nested loops and
75 and initiate min_insn_issue_delay for states.
77 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
79 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
82 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
84 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
87 2002-05-03 Richard Henderson <rth@redhat.com>
90 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
91 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
92 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
93 code before JUMP, not EARLIEST.
95 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
97 * c-format.c (check_format_info_main): Don't check for presence of
98 parameter for * width until after operand number has been read,
99 and only check for it if format parameters are available.
102 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
104 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
105 (LINK_SPEC): Undef before defining.
107 2002-05-03 Jakub Jelinek <jakub@redhat.com>
110 * tradcpp.c (fixup_newlines): New.
111 (main, finclude): Use it.
113 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
115 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
116 * config/mips/mips.c (mips_unique_section): Strip encoding from
119 2002-05-03 Jakub Jelinek <jakub@redhat.com>
121 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
124 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
126 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
127 (Specific): Removed buildstats references.
128 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
129 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
130 Accomodate Solaris versions beyond 8.
131 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
132 (Specific, *-*-solaris2.8): Removed, obsolete.
134 2002-05-03 Jakub Jelinek <jakub@redhat.com>
137 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
138 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
139 fill leaf_reg_remap with identity.
140 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
142 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
144 * config/h8300/crti.asm: Remove trailing spaces.
145 * config/h8300/h8300.c: Likewise.
146 * config/h8300/lib1funcs.asm: Likewise.
148 2002-05-02 Jason Merrill <jason@redhat.com>
150 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
151 * c-decl.c (c_init_decl_processing): Use it.
152 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
153 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
154 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
156 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
158 * regrename.c: Fix formatting.
161 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
163 * i386.md (attribute memory): Handle compares properly.
165 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
167 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
170 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
172 * function.c: Fix formatting.
174 2002-05-02 Jan Hubicka <jh@suse.cz>
176 * haifa-sched.c (schedule_insn): Print table of instructions and
178 (sched_block): Do not print ready list at verbosity level 1.
179 * sched-vis.c (print_insn): Make global.
180 * sched-ebb.c (ebb_print_insn): Rename from...
181 (print_insn): ... this one.
182 * sched-int.h (print_insn): Declare
184 2002-05-02 Richard Henderson <rth@redhat.com>
186 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
187 emitted by cycle_display.
189 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
191 * doc/install.texi (*-*-freebsd*): Update to latest status.
193 2002-05-02 Jakub Jelinek <jakub@redhat.com>
196 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
197 * config/float-sparc.h: Assume 128-bit long double if
198 __LONG_DOUBLE_128__ is defined.
200 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
202 * genattrtab.c (write_function_unit_info): Add a dummy element
205 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
207 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
208 TYPE_MODE (double_type_node) instead of DFmode.
210 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
212 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
214 * toplev.c (rest_of_compilation): Revert Richard's patch.
216 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
218 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
220 2002-05-02 Catherine Moore <clm@redhat.com>
222 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
224 2002-05-02 Kazu Hirata <kazu@hxi.com>
226 * combine.c: Fix comment typos.
228 * genautomata.c: Likewise.
232 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
234 * doc/install.texi: State GNAT version requirements.
236 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
238 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
239 of the frame pointer or arg pointer register which strict register
240 checking is not enabled.
242 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
244 * gcc.dg/altivec-8.c: New.
246 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
247 PRE_INC and PRE_DEC for altivec modes.
249 2002-05-01 Bruce Korb <bkorb@gnu.org>
251 * fixinc/check.tpl(set-writable): make sure the function exists first
252 * fixinc/inclhack.def(alpha_assert): fix test_text
253 * fixinc/tests/base/assert.h: add in missing result
255 2002-05-01 Jeff Law <law@redhat.com>
257 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
260 2002-05-01 Joel Brobecker <brobecker@gnat.com>
262 * dbxout.c (dbxout_type): Emit size information for range types,
263 as well, but only when using GDB extensions.
265 2002-05-01 Richard Henderson <rth@redhat.com>
267 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
268 target-independent gnu binutils date test.
270 2002-05-01 Richard Henderson <rth@redhat.com>
272 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
273 info before expunging the block.
275 2002-05-01 Jakub Jelinek <jakub@redhat.com>
277 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
278 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
279 -M -or -MM is in effect.
281 2002-05-01 Zack Weinberg <zack@codesourcery.com>
283 * config.gcc: Correct test of --enable-obsolete. Obsolete all
285 * doc/install.texi: Update to match.
287 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
290 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
291 for duplicates. Always loop over whole list.
293 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
295 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
297 2002-05-01 Joel Sherrill <joel@OARcorp.com>
299 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
302 2002-05-01 Joel Sherrill <joel@OARcorp.com>
304 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
306 2002-05-01 David Edelsohn <edelsohn@gnu.org>
308 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
309 (nabs_nopower): Same.
310 (floatdisf2): New pattern.
311 (absdi2): Convert to define_insn_and_split.
316 (fix_trunctfdi2): Same.
317 (fix_trunctfsi2): Same.
319 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
321 * doc/install.texi: Update Texinfo version requirement
324 2002-05-01 Jakub Jelinek <jakub@redhat.com>
326 PR target/6512, PR target/5628
327 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
328 when memory is not aligned.
329 (movdf_insn_v9only_vis): Likewise.
330 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
331 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
332 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
334 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
336 * gcc.dg/altivec-7.c: New.
338 * config/rs6000/altivec.h: Cleanup.
340 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
342 * doc/invoke.texi (Option Summary): Add -mvrsave=.
343 (RS/6000 and PowerPC Options): Document -mvrsave=.
345 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
346 (rs6000_altivec_vrsave_string): Same.
347 (rs6000_override_options): Call rs6000_parse_vrsave_option.
348 (rs6000_parse_vrsave_option): New.
349 (rs6000_stack_info): Only generate vrsave instructions when
350 TARGET_ALTIVEC_VRSAVE.
352 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
353 (rs6000_altivec_vrsave_string): Define extern.
354 (rs6000_altivec_vrsave): Same.
355 (TARGET_ALTIVEC_VRSAVE): New.
357 2002-04-30 Richard Henderson <rth@redhat.com>
360 * toplev.c (rest_of_compilation): Don't run cross-jump before
363 2002-04-30 Tom Rix <trix@redhat.com>
365 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
366 check which_alternative.
368 2002-04-30 Kazu Hirata <kazu@hxi.com>
370 * cpplex.c: Fix comment formatting.
371 * function.c: Likewise.
372 * integrate.c: Likewise.
373 * regrename.c: Likewise.
374 * sibcall.c: Likewise.
375 * simplify-rtx.c: Likewise.
376 * tree-inline.c: Likewise.
378 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
380 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
381 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
382 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
383 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
384 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
385 * pa/x-ada: New file. Define ADA_CFLAGS.
387 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
389 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
390 from MMIX_LAST_REGISTER_FILE_REGNUM.
391 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
392 (struct machine_function): New member highest_saved_stack_register
393 previously static variable in mmix.c.
394 (MACHINE_DEPENDENT_REORG): Define.
395 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
396 (MMIX_OUTPUT_REGNO): New.
397 (mmix_target_asm_function_prologue): Move calculation of last used
398 saved-stack-register into...
399 (mmix_machine_dependent_reorg): New function. Update to also handle
401 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
402 register names, simplify somewhat by new variable regno.
403 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
405 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
406 emitting register names.
407 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
408 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
410 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
413 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
415 2002-04-30 Richard Henderson <rth@redhat.com>
417 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
418 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
419 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
420 emit_tfmode_cvt): New.
421 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
422 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
423 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
424 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
425 * config/sparc/sparc-protos.h: Update.
427 2002-04-30 Janis Johnson <janis187@us.ibm.com>
429 * install.texi (Final install): Add to the list of info to include
430 in a report of a successful bootstrap, and add link to 3.1 list.
432 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
434 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
435 (mode): Add vector modes
436 (i387): Kill attribute.
437 (unit): New attribute.
438 (length_immediate): Grok new types.
439 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
441 (memory): Handle MMX/SSE properly.
442 (scheduling descriptions): Kill uses of fop1.
443 (sse, mmx, fp patterns): Set type and mode properly.
445 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
447 * pa.c (override_options): Default to PA8000 scheduling.
448 * doc/invoke.texi (HP-PA options): Mention newly added 7300
449 scheduling parameter.
451 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
452 handling of double precision multiplies.
454 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
455 fpdiv and fpsqrt instructions.
456 (7200 & 7300 scheduling): Fix typo in handling of
457 store-load and store-store penalties.
459 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
461 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
462 mips. Add two missing commas.
464 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
466 * doc/contrib.texi (Contributors): Update Paolo Carlini's
467 and Benjamin Kosnik's entries.
469 2002-04-29 David S. Miller <davem@redhat.com>
471 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
472 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
473 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
474 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
476 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
478 * combine.c (find_split_point): Use gen_int_mode.
480 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
482 Merging code from dfa-branch:
484 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
486 * genautomata.c (output_reserv_sets): Fix typo.
488 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
490 * genautomata.c (output_reserv_sets): Remove
491 next_cycle_output_flag.
493 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
495 * sched-rgn.c (init_ready_list): Make the DFA code handle
496 USE/CLOBBER insns in the same way as the traditional
498 (new_ready): Similarly..
500 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
502 * haifa-sched.c (schedule_block): Change the DFA state only after
505 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
507 * pa.c (hppa_use_dfa_pipeline_interface): New function.
508 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
509 (override_options): Add PA7300 scheduling support.
510 (pa_adjust_cost): Update various comments. Properly
511 handle anti and output dependencies when using the
513 (pa_issue_rate): Add PA7300 scheduling support.
514 (pa_can_combine_p): Call extract_insn before calling
515 constrain_operands (taken from mainline tree).
516 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
517 * pa.md (cpu attr): Add 7300. Rewrite pipeline
518 descriptions using DFA descriptions. Add PA7300
521 2002-03-30 David S. Miller <davem@redhat.com>
523 Add UltraSPARC-III DFA scheduling support.
524 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
525 Update FP conditional move on register insn patterns to use it, as
527 (define_attr cpu): Add ultrasparc3.
528 (define_attr us3load_type): New, update integer load patterns to
529 set it, as appropriate.
530 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
531 (rest): Add UltraSPARC3 scheduling description.
532 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
533 (PROCESSOR_ULTRASPARC3): New.
534 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
535 ({ASM,CPP}_CPU_SPEC): Likewise.
536 (REGISTER_MOVE_COST): Likewise.
537 (RTX_COSTS): Likewise.
538 * config/sparc/sparc.c (sparc_override_options,
539 sparc_initialize_trampoline, sparc64_initialize_trampoline,
540 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
541 sparc_issue_rate): Likewise.
542 * config/sparc/sol2.h: Likewise.
543 * config/sparc/sol2-sld-64.h: Likewise.
544 * config/sparc/linux64.h: Likewise.
546 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
548 * doc/md.texi: Add comments about usage the latency time for the
549 different dependencies and about case when two or more conditions
550 in different define_insn_reservations returns TRUE for an insn.
552 * doc/md.texi: Add reference for automaton based pipeline
555 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
557 * doc/passes.texi: Add missed information about genattrtab.
559 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
561 * genautomata.c (output_automata_list_transition_code): Check
562 automata_list on NULL.
564 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
566 * genautomata.c (output_insn_code_cases,
567 output_automata_list_min_issue_delay_code,
568 output_automata_list_transition_code,
569 output_automata_list_state_alts_code): Comment the functions.
571 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
573 * genautomata.c (automata_list_el_t): New typedef.
574 (get_free_automata_list_el,free_automata_list_el,
575 free_automata_list, automata_list_hash, automata_list_eq_p,
576 initiate_automata_lists, automata_list_start, automata_list_add,
577 automata_list_finish, finish_automata_lists,
578 output_insn_code_cases, output_automata_list_min_issue_delay_code,
579 output_automata_list_transition_code,
580 output_automata_list_state_alts_code, add_automaton_state,
581 form_important_insn_automata_lists): New functions and prototypes.
582 (insn_reserv_decl): Add members important_automata_list and
584 (ainsn): Add members important_p.
585 (automata_list_el): New structure.
586 (first_free_automata_list_el, current_automata_list,
587 automata_list_table): New global variables.
588 (create_ainsns): Initiate member important_p.
589 (output_internal_min_issue_delay_func): Generate the switch and
590 call output_insn_code_cases.
591 (output_internal_trans_func, output_internal_state_alts_func):
593 (generate): Call initiate_automata_lists.
594 (automaton_states): New global variable.
595 (expand_automata): Call form_important_insn_automata_lists.
596 (write_automata): Call finish_automata_lists.
598 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
600 * genautomata.c (add_excls, add_presence_absence): Check that
601 cpu units in the sets belong the same automaton.
603 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
604 about that cpu units in the sets belong the same automaton.
606 * doc/md.texi: Ditto.
608 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
609 Nitin Gupta <niting@noida.hcltech.com>
611 * config/sh/sh.c (sh_use_dfa_interface): New function.
613 (sh_issue_rate): New Function.
614 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
615 TARGET_SCHED_ISSUE_RATE: define.
617 * config/sh/sh.md: Add DFA based pipeline description for SH4.
619 (define_attr insn_class): New attribute used for DFA
621 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
622 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
623 cmpeqdi_t): Likewise.
625 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
626 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
628 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
630 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
632 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
635 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
637 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
638 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
640 (output_dfa_start_func): Initiate new variable insn_codes_length,
641 (write_automata): Output definition of the new variable.
643 2001-10-02 David S. Miller <davem@redhat.com>
645 * haifa-sched.c (advance_one_cycle): New function.
646 (schedule_block): Use it.
647 (queue_to_ready): Use it, and also make sure to advance the DFA
648 state on all stall cycles, not just those where insn_queue links
651 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
653 * haifa-sched.c (max_issue): Remove last_p argument. Only return
654 non-zero if the highest-priority instruction could be scheduled.
655 (choose_ready): Remove last argument from max_issue call.
657 2001-09-28 David S. Miller <davem@redhat.com>
659 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
660 ultrasparc and 3 for other multi-issue sparcs.
662 2001-09-27 David S. Miller <davem@redhat.com>
664 * config/sparc/sparc.md (cycle_display): New pattern.
665 * config/sparc/sparc.c (sparc_cycle_display): New.
666 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
668 2001-09-25 David S. Miller <davem@redhat.com>
670 Convert all of Sparc scheduling to DFA
671 * config/sparc/sparc.md: Kill all define_function_unit
672 directives and replace with DFA equivalent.
673 * config/sparc/sparc.c (ultrasparc_adjust_cost,
674 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
675 ultra_fpmode_conflict_exists, ultra_find_type,
676 ultra_build_types_avail, ultra_flush_pipeline,
677 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
678 ultrasparc_variable_issue, ultrasparc_sched_init,
679 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
680 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
681 ultra_cur_hist, ultra_cycles_elapsed): Kill.
682 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
683 ultrasparc_store_bypass_p): New.
684 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
687 2001-09-24 David S. Miller <davem@redhat.com>
689 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
690 ready->vec[foo] not ready[foo].
692 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
694 * doc/md.texi: Correct examples for define_insn_reservations
697 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
699 * genautomata.c (create_automata): Print message about creation of
701 (generate): Remove printing meease about creation of
704 2001-09-05 David S. Miller <davem@redhat.com>
706 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
707 * config/sparc/linux64.h: Likewise.
709 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
711 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
712 schedule_block, sched_init, sched_finish): Add missed calls of
713 use_dfa_pipeline_interface.
715 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
718 * sched-vis.c (get_visual_tbl_length): Ditto.
720 2001-08-27 Richard Henderson <rth@redhat.com>
722 * genattr.c (main): Emit state_t even when not doing scheduling.
724 2001-08-27 Richard Henderson <rth@redhat.com>
726 * genautomata.c (expand_automata): Always create a description.
728 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
730 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
731 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
732 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
735 * genattr.c (main): New variable num_insn_reservations. Increase
736 it if there is DEFINE_INSN_RESERVATION. Output automaton based
737 pipeline hazard recognizer interface.
739 * genattrtab.h: New file.
741 * genattrtab.c: Include genattrtab.h.
742 (attr_printf, check_attr_test, make_internal_attr,
743 make_numeric_value): Move protypes into genattrtab.h. Define them
745 (num_dfa_decls): New global variable.
746 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
747 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
748 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
749 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
751 * genautomata.c: New file.
753 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
755 * sched-int.h: (curr_state): Add the external definition for
756 automaton pipeline interface.
757 (haifa_insn_data): Add comments for members blockage and units.
759 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
760 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
761 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
762 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
763 TARGET_SCHED_DFA_POST_CYCLE_INSN,
764 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
765 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
767 (TARGET_SCHED): Use the new macros.
769 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
770 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
771 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
772 dfa_bubble): New members in gcc_target.sched.
774 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
775 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
776 (insn_queue): Redefine it as pointer to array.
777 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
779 (max_insn_queue_index_macro_value): New variable.
780 (curr_state, dfa_state_size, ready_try): New varaibles for
782 (ready_element, ready_remove, max_issue): New function prototypes
783 for automaton interface.
784 (choose_ready): New function prototype.
785 (insn_unit, blockage_range): Add comments.
786 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
787 FUNCTION_UNITS_SIZE == 0.
788 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
789 actual_hazard, potential_hazard): Add comments.
790 (insn_cost): Use cost -1 as undefined value. Remove
791 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
793 (ready_element, ready_remove): New functions for automaton
795 (schedule_insn): Add new code for automaton pipeline interface.
796 (queue_to_ready): Add new code for automaton pipeline interface.
797 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
798 (debug_ready_list): Print newline when the queue is empty.
799 (max_issue): New function for automaton pipeline interface.
800 (choose_ready): New function.
801 (schedule_block): Add new code for automaton pipeline interface.
802 Print ready list before scheduling each insn.
803 (sched_init): Add new code for automaton pipeline interface.
804 Initiate insn cost by -1.
805 (sched_finish): Free the current automaton state and finalize
806 automaton pipeline interface.
808 * sched-rgn.c: Include target.h.
809 (init_ready_list, new_ready, debug_dependencies): Add new code for
810 automaton pipeline interface.
812 * sched-vis.c: Include target.h.
813 (get_visual_tbl_length): Add code for automaton interface.
814 (target_units, print_block_visualization): Add comments.
816 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
817 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
818 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
819 (getruntime.o, genautomata.o): New entries.
820 (genattrtab.o): Add new dependency file genattrtab.h.
821 (genattrtab): Add new dependencies. Link it with `libm.a'.
822 (getruntime.o, hashtab.o): New entries for canadian cross.
824 * doc/md.texi: Description of automaton based model.
826 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
828 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
829 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
830 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
831 TARGET_SCHED_DFA_POST_CYCLE_INSN,
832 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
833 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
834 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
836 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
837 MAX_DFA_ISSUE_RATE): New macro descriptions.
839 * doc/contrib.texi: Add dfa based scheduler contribution.
841 * doc/gcc.texi: Add more information about genattrtab.
843 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
845 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
846 adjust_address_nv call.
848 2002-04-29 Janis Johnson <janis187@us.ibm.com>
850 * doc/install.texi (Testing): Provide additional information, and
851 a stronger encouragement, for running the testsuites.
853 2002-04-29 DJ Delorie <dj@redhat.com>
855 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
858 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
860 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
861 Solaris 2 <widec.h> if missing.
862 * fixinc/fixincl.x: Regenerate.
863 * fixinc/tests/base/widec.h: New file.
865 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
867 * toplev.c (f_options): Add "profile" switch so that
868 -fno-profile can be used to disable -p.
870 2002-04-29 Bernd Schmidt <bernds@redhat.com>
872 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
874 * tree.c (build_common_tree_nodes_2): Likewise.
875 * tree.h (enum tree_index): Likewise.
876 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
878 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
880 (init_mmx_sse_builtins): Initialize SSE2 builtins.
881 (ix86_expand_builtin): Add support for SSE2 builtins.
882 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
883 (VALID_SSE_REG_MODE): Use it.
884 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
885 (enum ix86_builtins): Add SSE2 builtins.
886 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
887 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
888 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
889 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
890 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
891 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
892 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
893 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
894 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
895 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
896 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
897 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
898 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
899 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
900 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
901 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
902 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
903 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
904 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
905 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
906 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
907 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
908 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
909 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
910 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
911 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
912 lfence_insn): New patterns.
913 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
914 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
916 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
918 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
920 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
922 * doc/contrib.texi (Contributors): Add Paolo Carlini and
924 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
925 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
926 and CPU instead of cpu.
928 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
930 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
932 (lang_independent_options): Add -fif-conversion, -fif-conversion2
933 (rest_of_compilation): Do if conversion only when asked for.
934 (parse_options_and_default_flags): Set new variables to 1 for -O1
935 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
937 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
939 * i386.c (dbx64_register_map): Fix typo.
941 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
943 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
944 real_one_half, real_bb_freq_max): New static variables.
945 (debug_profile_bbauxs): Kill.
946 (process_note_predictions): Kill unused variable.
947 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
949 (propagate_freq): Use REAL_ARITHMETICS.
950 (estimate_bb_frequencies): Likevise; init new static variables.
951 * Makefile.in (predict.o): Add dependency on real.h
953 2002-04-28 David S. Miller <davem@redhat.com>
956 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
957 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
958 several {reads,writes} instead.
959 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
962 2002-04-27 David S. Miller <davem@redhat.com>
965 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
968 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
969 including signal.h and sys/ucontext.h, not needed.
971 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
973 * varasm.c (output_constant_def): Correct test for not calling
974 ENCODE_SECTION_INFO for INTEGER_CST.
976 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
978 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
979 keep most cases as function eval_token.
980 (eval_token): New function.
981 (_cpp_parse_expr): Read token here for improved diagnostics.
982 Don't use op_as_text. Detect bad ':' here.
983 (reduce): Don't detect bad ':' here.
984 (op_as_text): Remove.
985 * cpphash.h (_cpp_test_assertion): Change prototype.
986 * cpplib.c (_cpp_test_assertion): Change prototype.
988 2002-04-28 Richard Henderson <rth@redhat.com>
991 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
992 (ggc_mark_rtx_children): New.
994 2002-04-28 Jakub Jelinek <jakub@redhat.com>
997 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
998 after call peepholes for UltraSPARC.
999 (call + jump 64-bit peepholes): Remove.
1001 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1004 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
1005 result as temporary value.
1007 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1010 * toplev.c (rest_of_compilation): Only run regrename and copy
1011 propagation if optimizing.
1013 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1015 PR optimization/6475
1016 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
1017 register of REGNO_DECL (i).
1018 * Makefile.in (reload1.o): Add $(TREE_H).
1020 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
1022 * cppexp.c (lex): Update to use state.skip_eval.
1023 (struct op): Remove prio and flags members.
1024 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
1025 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
1026 (LEFT_ASSOC): New macro.
1027 (optab): New table of operator priorities and flags.
1029 (_cpp_parse_expr): Clean up logic. Return bool. Use a
1030 malloc-ed parser stack.
1031 (reduce): New; reduce the operator stack.
1032 (_cpp_expand_op_stack): Expand the operator stack as necessary.
1033 * cpphash.h (struct op): Predeclare.
1034 (struct cpp_reader): New members op_stack, op_limit.
1035 (struct lexer_state): New member skip_eval.
1036 (_cpp_parse_expr): Update.
1037 (_cpp_expand_op_stack): New.
1038 * cpplib.c (do_if): Update.
1039 * cppinit.c (cpp_create_reader): Create op stack.
1040 (cpp_destroy): And destroy it.
1041 * cpplib.h (CPP_LAST_CPP_OP): Correct.
1042 (TTYPE_TABLE): Correct.
1044 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1047 * c-decl.c (duplicate_decls): Call merge_weak.
1048 * c-pragma.c (apply_pragma_weak): Warn about misuse.
1049 * output.h (merge_weak): Prototype merge_weak.
1050 * varasm.c (merge_weak): New function.
1051 (declare_weak): Make sure we don't give an error on VAR_DECLs.
1052 Mark RTL with SYMBOL_REF_WEAK.
1054 2002-04-27 Kurt Garloff <garloff@suse.de>
1056 * tree-inline.c (inlinable_function_p): Improve heuristics
1057 by using a smoother function to cut down allowable inlinable size.
1058 * param.def: Add parameters max-inline-insns-single,
1059 max-inline-slope, min-inline-insns that determine the exact
1060 shape of the above function.
1061 * param.h: Likewise.
1063 2002-04-26 Richard Henderson <rth@redhat.com>
1065 * c-parse.in (malloced_yyss, malloced_yyvs): New.
1066 (yyoverflow): Re-add. Set them.
1067 (free_parser_stacks): New.
1068 * c-common.h: Declare it.
1069 * c-lex.c (c_common_parse_file): Call it.
1071 2002-04-26 Richard Henderson <rth@redhat.com>
1073 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
1074 for fallthru search.
1076 2002-04-26 Eric Christopher <echristo@redhat.com>
1078 PR optimization/3700
1079 * config/mips/mips.c (mips_issue_rate): Define. New function.
1080 (TARGET_SCHED_ISSUE_RATE): Use.
1082 2002-04-25 David S. Miller <davem@redhat.com>
1085 * reorg.c (optimize_skip): Do not allow exception causing
1086 instructions to be considered for delay slots.
1087 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
1088 (relax_delay_slots): Do not try to consider exception causing
1089 instructions as redundant.
1091 2002-04-26 Richard Henderson <rth@redhat.com>
1094 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
1096 2002-04-26 Mark Mitchell <mark@codesourcery.com>
1099 * config/i386/i386.md (untyped_call): Return the value in a float
1100 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
1103 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
1105 * tree.c (tree_int_cst_lt): Compare constants whose types differ
1106 in unsigned-ness correctly.
1108 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1110 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
1111 portable runtime model.
1113 2002-04-26 Richard Henderson <rth@redhat.com>
1115 * c-parse.in (yyoverflow): Revert.
1117 2002-04-26 David Edelsohn <edelsohn@gnu.org>
1118 Richard Henderson <rth@redhat.com>
1120 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
1121 result as temporary value.
1123 2002-04-26 Richard Henderson <rth@redhat.com>
1126 * c-common.c (fix_string_type): Split out of ...
1127 (combine_strings): ... here. Take a varray, not a tree list.
1128 (c_expand_builtin_printf): Use fix_string_type.
1129 * c-common.h: Update decls.
1130 * c-parse.in (string): Remove. Update all uses to use STRING
1131 instead, and not call combine_strings.
1134 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
1135 (build_asm_stmt): Likewise.
1136 * objc/objc-act.c (my_build_string): Use fix_string_type.
1137 (build_objc_string_object): Build varray for combine_strings.
1139 2002-04-26 Bo Thorsen <bo@suse.co.uk>
1141 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
1144 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
1146 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
1147 (HAVE_NO_R_OPERAND): Remove.
1148 (HAVE_VALUE): Remove.
1149 (op_to_prio): Update.
1150 (UNARY): Don't alter flags.
1151 (_cpp_parse_expr): want_value used to indicate whether
1152 a number or unary operator is expected next. Distinguish
1153 unary and binary +/-.
1154 (op_as_text): Update for unary operators.
1156 2002-04-25 Richard Henderson <rth@redhat.com>
1159 * c-parse.in (yyoverflow): New.
1161 2002-04-25 Richard Henderson <rth@redhat.com>
1164 * c-common.c (shorten_compare): Simplfy conditions leading to
1165 the generation of a warning.
1167 2002-04-25 Richard Henderson <rth@redhat.com>
1170 * expmed.c (extract_bit_field): Fall through to generic code rather
1171 than aborting on subreg special case.
1173 2002-04-25 David S. Miller <davem@redhat.com>
1175 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
1176 for DECL being NULL.
1178 2002-04-25 Steve Christiansen <smc@us.ibm.com>
1180 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
1182 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
1184 * c-decl.c (grokdeclarator): Remove outdated ??? note
1185 on invalid declaration of flexible array members.
1187 2002-04-25 Richard Henderson <rth@redhat.com>
1189 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
1191 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
1193 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
1194 needed by the compiler, even if they are used as global regs.
1196 2002-04-25 Matt Hiller <hiller@redhat.com>
1198 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
1200 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
1201 of the corresponding functions.
1202 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
1205 2002-04-25 Matt Hiller <hiller@redhat.com>
1207 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
1209 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
1210 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
1211 registers, adjust comment accordingly.
1212 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
1213 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
1214 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
1215 for coprocessor registers.
1216 (ADDITIONAL_REGISTER_NAMES): Include
1217 ALL_COP_ADDITIONAL_REGISTER_NAMES.
1219 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
1220 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
1221 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
1222 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
1223 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
1225 (mips_char_to_class): Adjust comment to include coprocessor
1228 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
1230 (mips_reg_names, mips_regno_to_class): Include coprocessor
1232 (mips_sw_reg_names): Ditto, make non-static.
1233 (mips_move_1word): Handle moves to and from coprocessor registers.
1234 (mips_move_2words): Handle moves to and from coprocessor
1236 (mips_class_max_nregs, mips_register_move_cost): Handle
1237 coprocessor register classes.
1238 (override_options): Initialize mips_char_to_class and
1239 mips_hard_regno_mode_ok properly for coprocessor registers.
1241 * config/mips/mips.md (movdi_internal, movdi_internal2,
1242 movsi_internal1, movsi_internal2): Add constraint-sets for
1243 coprocessor registers.
1244 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
1245 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
1247 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
1248 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
1250 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
1251 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
1253 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
1254 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
1257 * doc/tm.texi: Document feature.
1259 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
1261 * integrate.c (function_attribute_inlinable_p): Simplify.
1262 Check the table pointer is not NULL.
1264 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
1266 * doc/c-tree.texi: Fix typo in introduction.
1268 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
1270 * c-common.h (c_common_parse_file): Update.
1271 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1272 * c-lex.c (YYDEBUG): Get from c-lex.h.
1273 (c_common_parse_file): Update.
1274 * c-lex.h (YYDEBUG, yydebug): New.
1275 * c-parse.in (YYDEBUG): Get from c-lex.h.
1276 (c_set_yydebug): Remove.
1277 * c-tree.h (c_set_yydebug): Remove.
1278 * langhooks-def.h (lhd_do_nothing_i): New.
1279 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
1280 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
1281 * langhooks.c (lhd_do_nothing_i): New.
1282 (lhd_set_yydebug): Remove.
1283 * langhooks.h (struct lang_hooks): Update.
1284 * toplev.c (set_yydebug): New.
1285 (compile_file): Update call to parse_file hook.
1286 (decode_d_option): Update.
1288 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1290 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
1292 * loop.c (load_mems): Don't change the interface of called functions.
1294 * calls.c (expand_call): Take current_function_pretend_args_size
1295 into account when setting argblock for sibcalls.
1297 2002-04-24 Matt Hiller <hiller@redhat.com>
1299 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
1302 * cpplex.c (skip_line_comment): Process comment one multibyte
1303 character at a time rather than one char at a time, if
1305 (parse_string): Process string one multibyte character at a time
1306 rather than one char at a time, if appropriate.
1307 * c-lex.c (lex_string): Lex and copy multibyte strings
1309 * cpplib.h (cppchar_t): Change to unsigned.
1311 2002-04-24 Richard Henderson <rth@redhat.com>
1314 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
1317 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
1319 * sh.c (sh_va_arg): If argument was passed by reference,
1320 dereference the pointer.
1322 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
1324 * sh.md (divsi3_i4_media): Use match_operand for input values
1325 rather than hard registers.
1326 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1327 unnecessarily through hard registers. Keep copies of pseudo
1328 registers outside of the libcall sequence.
1330 * sh.md (casesi_shift_media): Add modes.
1332 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
1335 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
1337 * attribs.c (c_common_attribute_table): Move table and handlers
1339 (format_attribute_table, lang_attribute_table,
1340 lang_attribute_common): Remove.
1341 (init_attributes): Replace NULL pointers with pointers to the
1343 (handle_packed_attribute, handle_nocommon_attribute,
1344 handle_common_attribute, handle_noreturn_attribute,
1345 handle_noinline_attribute, handle_always_inline_attribute,
1346 handle_used_attribute, handle_unused_attribute,
1347 handle_const_attribute, handle_transparent_union_attribute,
1348 handle_constructor_attribute, handle_destructor_attribute,
1349 handle_mode_attribute, handle_section_attribute,
1350 handle_aligned_attribute, handle_weak_attribute,
1351 handle_alias_attribute, handle_visibility_attribute,
1352 handle_no_instrument_function_attribute, handle_malloc_attribute,
1353 handle_no_limit_stack_attribute, handle_pure_attribute,
1354 handle_deprecated_attribute, handle_vector_size_attribute,
1355 vector_size_helper): Move to c-common.c.
1356 * c-common.c (c_common_attribute_table,
1357 handle_packed_attribute, handle_nocommon_attribute,
1358 handle_common_attribute, handle_noreturn_attribute,
1359 handle_noinline_attribute, handle_always_inline_attribute,
1360 handle_used_attribute, handle_unused_attribute,
1361 handle_const_attribute, handle_transparent_union_attribute,
1362 handle_constructor_attribute, handle_destructor_attribute,
1363 handle_mode_attribute, handle_section_attribute,
1364 handle_aligned_attribute, handle_weak_attribute,
1365 handle_alias_attribute, handle_visibility_attribute,
1366 handle_no_instrument_function_attribute, handle_malloc_attribute,
1367 handle_no_limit_stack_attribute, handle_pure_attribute,
1368 handle_deprecated_attribute, handle_vector_size_attribute,
1369 vector_size_helper): Move from attribs.c.
1370 * c-common.h (c_common_attribute_table,
1371 c_common_format_attribute_table): New.
1372 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1373 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1374 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
1375 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
1376 (LANG_HOOKS_INITIALIZER): Update.
1377 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
1378 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
1379 * target.h: Update comment.
1380 * tree.c (default_target_attribute_table): Remove.
1381 * tree.h (default_target_attribute_table, format_attribute_table,
1382 lang_attribute_table, lang_attribute_common): Remove.
1384 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1385 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1387 2002-04-24 Jason Merrill <jason@redhat.com>
1389 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
1390 * dwarf2out.c (dwarf_attr_name): Support it.
1391 (gen_array_type_die): Emit it.
1392 (lookup_type_die): No special handling for VECTOR_TYPE.
1393 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
1395 2002-04-24 Richard Henderson <rth@redhat.com>
1397 * config/mips/mips.md (movdi_usd): Renumber.
1399 2002-04-24 David S. Miller <davem@redhat.com>
1402 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
1403 32-bit Sparc and current_function_returns_struct is true.
1405 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
1407 * loop.c (canonicalize_condition): Use gen_int_mode.
1409 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
1411 * config/rs6000/altivec.h: Cleanup file. Add non individual
1433 (vec_vcmpequb): New.
1434 (vec_vcmpequh): New.
1435 (vec_vcmpequw): New.
1436 (vec_vcmpeqfp): New.
1437 (vec_vcmpgefp): New.
1438 (vec_vcmpgtub): New.
1439 (vec_vcmpgtsb): New.
1440 (vec_vcmpgtuh): New.
1441 (vec_vcmpgtsh): New.
1442 (vec_vcmpgtuw): New.
1443 (vec_vcmpgtsw): New.
1444 (vec_vcmpgtfp): New.
1445 (vec_vcmpgefp): New.
1450 (vec_vexptefp): New.
1455 (vec_lde): Add vector float variant.
1460 (vec_vmhaddshs): New.
1482 (vec_vmladduhm): New.
1483 (vec_vmhraddshs): New.
1485 (vec_vmsummbm): New.
1486 (vec_vmsumuhm): New.
1487 (vec_vmsumshm): New.
1488 (vec_vmsumuhs): New.
1489 (vec_vmsumshs): New.
1498 (vec_vnmsubfp): New.
1516 (vec_vrsqrtefp): New.
1527 (vec_vspltisb): New.
1528 (vec_vspltish): New.
1529 (vec_vspltisw): New.
1554 (vec_vsum4ubs): New.
1555 (vec_vsum4sbs): New.
1556 (vec_vsum4shs): New.
1557 (vec_vsum2sws): New.
1568 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
1571 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
1572 added literals from substracted literals.
1573 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
1574 (fold) [associate]: Preserve MINUS_EXPR if needed.
1576 2002-04-23 Zack Weinberg <zack@codesourcery.com>
1578 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
1581 2002-04-23 Tom Tromey <tromey@redhat.com>
1583 * gcc.c: Added --resource. For PR java/6314.
1585 2002-04-23 David O'Brien <obrien@FreeBSD.org>
1587 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
1588 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
1591 2002-04-23 David O'Brien <obrien@FreeBSD.org>
1593 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
1595 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
1597 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
1599 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
1600 (ix86_expand_clrstr): Fix typo.
1601 * loop.c (gen_load_of_final_value): New.
1602 (loop_givs_rescan, strength_reduce, check_dbra_loop):
1605 2002-04-23 Roger Sayle <roger@eyesopen.com>
1607 * builtins.c (builtin_memset_gen_str): New function.
1608 (expand_builtin_memset): Optimize the case of constant length, but
1611 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
1613 * config/rs6000/altivec.h (vec_step): Remove extraneous
1615 (vec_ctu): Cast return.
1617 2002-04-23 Alan Modra <amodra@bigpond.net.au>
1620 * function.h: (struct function): Add profile_label_no field.
1621 (current_function_profile_label_no): Define.
1622 * function.c: (profile_label_no): New static var.
1623 (expand_function_start): Increment it, and copy to
1624 current_function_profile_label_no.
1625 * output.h (profile_label_no): Delete.
1626 * final.c (profile_label_no): Delete.
1627 (profile_function): Use current_function_profile_label_no.
1628 (final_end_function): Don't increment profile_label_no here.
1629 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
1630 profile_label_no with current_function_profile_label_no.
1631 * config/pa/pa.c (current_function_number): Delete.
1632 (pa_output_function_prologue): Don't output profile label here.
1633 (hppa_profile_hook): Use label_no param rather than
1634 current_function_number.
1635 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
1636 * config/pa/pa.h: .. here.
1637 (FUNCTION_PROFILER): Output profile label here.
1639 2002-04-22 Eric Christopher <echristo@redhat.com>
1641 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
1642 patch of 2002-04-09 due to binutils issues.
1643 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
1645 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
1647 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
1648 constraint to 'o' for m=r and r=m alternatives.
1649 ("*movv8hi_internal1"): Same.
1650 ("*movv16qi_internal1"): Same.
1651 ("*movv4sf_internal1"): Same.
1653 2002-04-22 Janis Johnson <janis187@us.ibm.com>
1655 * rtl.h (RTX_FLAG): New macro.
1656 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
1657 * final.c (alter_subreg): Use macro to access rtx flag.
1658 * integrate.c (copy_rtx_and_substitute): Use new access macro.
1659 * print-rtl.c (print_rtx): Use new access macro.
1661 * cse.c (insert): Check rtx code before accessing flag.
1663 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
1664 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
1665 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
1666 convert_const_symbol_ref, make_canonical, make_alternative_compare,
1667 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
1668 simplify_test_exp, optimize_attrs, simplify_by_exploding,
1669 find_and_mark_used_attributes, unmark_used_attributes,
1670 add_values_to_cover, simplify_with_current_value,
1671 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
1672 copy_rtx_unchanging, main): Use new access macros.
1674 2002-04-22 Tom Rix <trix@redhat.com>
1676 * expmed.c (init_expmed): Generate shifted constant once.
1678 2002-04-22 Zack Weinberg <zack@codesourcery.com>
1680 * c-lex.c (lex_charconst): Call convert to get constant in
1681 proper type; don't just smash the type field.
1684 * config.gcc: Add list of obsolete configurations. Disallow
1685 building these without --enable-obsolete.
1686 * doc/install.texi: Document --enable-obsolete and obsoletion
1687 policy. Mention obsoletion of individual targets in
1690 2002-04-22 Richard Henderson <rth@redhat.com>
1692 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
1694 2002-04-22 Mark Mitchell <mark@codesourcery.com>
1697 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
1698 (walk_fixup_memory_subreg): Likewise.
1699 (fixup_var_refs_insn): Adjust accordingly.
1700 (fixup_var_refs_1): Likewise.
1702 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
1704 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
1705 LIBPATH_ARCH64_SPEC): Define.
1706 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
1707 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
1708 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
1709 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
1711 2002-04-22 Joel Sherrill <joel@OARcorp.com>
1713 * gthr-rtems.h: Correct prototypes to remove warnings.
1715 2002-04-22 Richard Henderson <rth@redhat.com>
1718 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
1720 * gcse.c (free_insn_expr_list_list): New.
1721 (clear_modify_mem_tables): Use it. Fix bit set usage.
1722 (canon_list_insert): Use EXPR_LISTs for expressions.
1723 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
1725 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
1727 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
1728 file change and include code to _cpp_pop_buffer.
1729 * cpphash.h (struct pending_option): Predeclare.
1730 (struct cpp_reader): New member next_include_file.
1731 (_cpp_pop_file_buffer): Update.
1732 (_cpp_push_next_buffer): Update, rename.
1733 * cppinit.c (cpp_destroy): Free include chain and pending here.
1734 (cpp_finish_options): Simplify.
1735 (_cpp_push_next_buffer): Rename and clean up.
1736 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
1738 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
1740 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
1742 * config/rs6000/altivec.h (vec_xor): Add variant for both args
1743 being vector signed int.
1745 (vec_xor): Add variant for both args being vector signed char.
1746 Remove redundant variant.
1749 2002-04-21 David S. Miller <davem@redhat.com>
1751 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
1752 compare mode in output RTL.
1754 2002-04-22 David Edelsohn <edelsohn@gnu.org>
1756 * config/rs6000/rs6000.c (rs6000_override_options): Correct
1757 style and formatting of previous patch.
1759 2002-04-22 Alan Modra <amodra@bigpond.net.au>
1761 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
1762 flag_pic for ABI_AIX.
1764 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
1766 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
1767 * cppfiles.c (read_include_file): Similarly.
1768 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
1769 uxstrdup ustrchr, ufputs): Similarly.
1770 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
1771 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
1772 cpp_ideq, parse_identifier, parse_number): Similarly.
1773 * cpplib.c (struct directive, dequote_string, D, run_directive,
1774 cpp_push_buffer): Similarly.
1775 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
1776 _cpp_create_definition, check_trad_stringification,
1777 cpp_macro_definition): Similarly.
1779 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
1781 * cppmacro.c (funlike_invocation_p): Don't step back
1784 2002-04-21 David Edelsohn <edelsohn@gnu.org>
1786 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
1789 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
1791 * doc/invoke.texi: Remove Chill references.
1792 * doc/gcc.texi: Update last modified date.
1794 2002-04-20 Kazu Hirata <kazu@hxi.com>
1796 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
1797 push and pop. Replace add.l with add.w.
1799 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1801 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
1802 multiply instructions for H8/300H case.
1804 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1806 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
1807 Bum three instructions from each routine.
1809 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
1811 * Makefile.in: Update.
1812 * decl.c (push_c_function_context, pop_c_function_context,
1813 mark_c_function_context): Rename for consistency.
1814 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
1815 * c-tree.h (push_c_function_context, pop_c_function_context,
1816 mark_c_function_context): Rename for consistency.
1817 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1818 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1819 * function.c (init_lang_status, save_lang_status,
1820 restore_lang_status, mark_lang_status, free_lang_status):
1821 Move to langhooks.h.
1822 (push_function_context_to, pop_function_context_from,
1823 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
1825 * function.h (init_lang_status, save_lang_status,
1826 restore_lang_status, mark_lang_status, free_lang_status):
1827 Move to langhooks.h.
1828 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
1829 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
1830 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
1831 LANG_HOOKS_FUNCTION_INITIALIZER): New.
1832 (LANG_HOOKS_INITIALIZER): Update.
1833 (lhd_do_nothing_f): New.
1834 * langhooks.h (struct lang_hooks_for_functions): New.
1835 (struct lang_hooks): New hooks.
1836 * langhooks.c (lhd_do_nothing_f): New.
1838 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1839 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1841 2002-04-19 David S. Miller <davem@redhat.com>
1843 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
1844 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
1846 2002-04-19 Jakub Jelinek <jakub@redhat.com>
1848 PR optimization/3756
1849 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
1850 x = ((int) y < 0) ? cst1 : cst2.
1852 2002-04-19 Jakub Jelinek <jakub@redhat.com>
1855 * function.c: Reapply patch for c/6358.
1856 (expand_function_end): Copy decl_rtl's mode, not
1857 current_function_return_rtx mode.
1859 2002-04-19 Joel Sherrill <joel@OARcorp.com>
1861 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
1864 2002-04-19 Tom Tromey <tromey@redhat.com>
1866 * doc/install.texi (Specific): Update status of Solaris 2.8.
1869 2002-04-19 Andreas Schwab <schwab@suse.de>
1871 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
1872 (PUT_REAL): Restore old definition.
1874 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
1875 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1877 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
1878 binutils 2.11.2 and higher generate smaller binaries than Sun's
1881 2002-04-19 Mark Mitchell <mark@codesourcery.com>
1884 * toplev.c (rest_of_compilation): Do not defer functions for which
1885 TREE_SYMBOL_REFERENCED has already been set.
1887 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
1889 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
1892 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
1894 * builtins.c: Include langhooks.h.
1895 (lang_type_promotes_to): Remove.
1896 (expand_builtin_va_arg): Use new hook.
1897 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
1898 (simple_type_promotes_to): Move to c-typeck.c.
1899 * c-common.h (simple_type_promotes_to): Remove.
1900 * c-decl.c (duplicate_decls, grokdeclarator): Update.
1901 * c-format.c: Include langhooks.h.
1902 (check_format_types): Update.
1903 * c-tree.h (c_type_promotes_to): New.
1904 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
1905 (type_lists_compatible_p): Update.
1906 * langhooks-def.h (lhd_type_promotes_to): New.
1907 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
1908 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1909 * langhooks.c (lhd_type_promotes_to): New.
1910 * langhooks.h (struct lang_hooks_for_types): New hook.
1911 * tree.h (lang_type_promotes_to): Remove.
1913 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
1915 2002-04-18 Richard Henderson <rth@redhat.com>
1917 * function.c: Revert patch for c/6358.
1919 2002-04-18 Richard Henderson <rth@redhat.com>
1921 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
1922 blocks. Handle multiple references to the TRAP block. Handle
1923 non-adjacent THEN and OTHER blocks.
1925 2002-04-18 Richard Henderson <rth@redhat.com>
1927 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
1928 crash with no type for by-mode libcalls.
1930 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
1932 2002-04-18 Bob Wilson <bob.wilson@acm.org>
1934 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
1935 __xtensa_nonlocal_goto): Use a syscall instructions to flush
1936 the register windows.
1938 2002-04-18 Zack Weinberg <zack@codesourcery.com>
1940 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
1941 appropriate. Document need for extended precision even when
1942 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
1943 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
1944 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
1945 instead of relying on later syntax error when REAL_WIDTH > 5.
1946 * real.c: Define NE based only on whether or not we have a
1947 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
1948 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
1949 define GET_REAL and PUT_REAL as simple memcpy operations; no
1950 need to byteswap or round.
1951 Use #error instead of #ifdef-ing out the entire file, for
1952 prompt error detection.
1954 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
1956 2002-04-18 David S. Miller <davem@redhat.com>
1958 * config/sparc/sparc.h (BRANCH_COST): Define.
1960 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
1963 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
1965 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
1966 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
1967 propagate_block calls after relaxation loop using new variable
1968 stabilized_prop_flags.
1970 2002-04-18 Richard Henderson <rth@redhat.com>
1972 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
1973 (ia64_va_arg): Expect variable sized types by reference.
1974 * config/ia64/ia64-protos.h: Update.
1975 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
1976 ia64_function_arg_pass_by_reference.
1978 2002-04-18 Richard Henderson <rth@redhat.com>
1980 * ifcvt.c: Include except.h.
1981 (block_has_only_trap): Break out from find_cond_trap.
1982 (find_cond_trap): Use it. Always delete the trap block.
1983 (merge_if_block): Allow then block null. Be less simplistic about
1984 what insns can end a block.
1985 * Makefile.in (ifcvt.o): Depend on except.h.
1987 * config/ia64/ia64.md (trap, conditional_trap): New.
1989 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1992 * function.c (assign_parms): Assign hard current_function_return_rtx
1994 (expand_function_end): ...not here.
1996 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
1998 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1999 * c-tree.h (c_incomplete_type_error): New.
2000 * c-typeck.c (require_complete_type, build_component_ref): Update.
2001 (incomplete_type_error): Rename.
2002 * langhooks-def.h (lhd_incomplete_type_error): New.
2003 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
2004 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
2005 * langhooks.c (lhd_incomplete_type_error): New.
2006 * langhooks.h (struct lang_hooks_for_types): New hook.
2007 * tree.c (size_in_bytes): Use new hook.
2008 * tree.h (incomplete_type_error): Remove.
2010 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
2012 2002-04-18 Zack Weinberg <zack@codesourcery.com>
2014 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
2015 TARGET_FLOAT_FORMAT blocks.
2017 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2019 * doc/install.texi (Downloading the source): Do not mention Chill
2020 any longer, but mention Ada.
2021 (Configuration): Do not mention Chill any longer.
2023 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
2025 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
2027 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
2029 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
2032 2002-04-18 Jakub Jelinek <jakub@redhat.com>
2034 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
2035 instead of unsigned_type.
2037 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
2039 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
2040 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
2043 2002-04-18 Bernd Schmidt <bernds@redhat.com>
2045 * attribs.c (vector_type_node_list): New static variable.
2046 (handle_vector_size_attribute): Use it to avoid generating a
2047 new type node each time we are called.
2049 * combine.c (subst): Avoid trying to make a vector mode subreg of
2050 an integer constant.
2051 (gen_lowpart_for_combine): Likewise.
2053 2002-04-18 Roger Sayle <roger@eyesopen.com>
2054 Jakub Jelinek <jakub@redhat.com>
2056 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
2057 for integer constant c (if x has unsigned type or sign bit is not
2058 set in c). This folds the zero/sign extension into the bit-wise and
2061 2002-04-18 Jakub Jelinek <jakub@redhat.com>
2064 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
2067 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
2069 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
2071 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
2073 * gcc.c (read_specs): Detect and fail if an attempt is made to
2074 rename a spec string to an already existing string.
2076 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2078 * config/s390/s390.c (legitimize_pic_address): Do not generate
2079 illegal address constant without CONST.
2081 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2083 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
2084 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
2086 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2088 PR optimization/6305
2089 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
2090 to make sure previous reloads are taken into account. Generate
2091 better code if one operand is an in-range immediate constant.
2093 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
2095 * doc/install.texi (Building): libgcj requires GNU make.
2097 2002-04-17 Jakub Jelinek <jakub@redhat.com>
2100 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
2101 even if hard quad and register is not floating.
2102 (movtf reg<-mem split): Disallow splitting if hard quad and
2103 register is floating.
2104 (movtf mem<-reg split): Likewise.
2105 * config/sparc/sparc.c (fp_register_operand): New predicate.
2106 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
2108 2002-04-17 Zack Weinberg <zack@codesourcery.com>
2110 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
2111 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
2112 (unprotoize.o): Ditto. Build from protoize.c. Define
2113 UNPROTOIZE on command line.
2114 * protoize.c: Include cppdefault.h. Delete include_defaults.
2115 (in_system_include_dir): Use cpp_include_defaults (defined in
2117 * unprotoize.c: Delete file.
2119 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
2121 * config/rs6000/altivec.h (vec_ld): Add array variants.
2125 2002-04-17 Alan Matsuoka <alanm@redhat.com>
2126 Aldy Hernandez <aldyh@redhat.com>
2128 * config/rs6000/altivec.h: Define __ALTIVEC__.
2135 Add parentheses to all macro arguments.
2137 2002-04-16 Richard Henderson <rth@redhat.com>
2140 * except.c (remove_eh_handler): Insert inner regions at beginning
2141 of sibling chain. Refactor expressions.
2143 2002-04-16 Richard Henderson <rth@redhat.com>
2145 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
2146 * config/sparc/sol2-gas-bi.h: New file.
2147 * config.gcc (sparc*-solaris): Add it as needed.
2148 * configure.in (AS_SPARC64_FLAG): Remove check.
2149 * config.in, configure: Regenerate.
2151 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
2153 2002-04-16 Richard Henderson <rth@redhat.com>
2155 * config/mips/mips.c (override_options): Don't override N32 for
2159 * config/mips/mips.md (can_delay): Split out of existing define_delays.
2160 (HILO_delay): Set can_delay false.
2162 2002-04-16 Dale Johannesen <dalej@apple.com>
2164 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
2165 instruction addresses.
2166 (rs6000_output_function_epilogue): Likewise.
2168 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
2170 * c-parse.in (poplevel, compstmt_start,
2171 compstmt_primary_start): Add ending ';', in accordance
2174 2002-04-16 Richard Henderson <rth@redhat.com>
2176 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
2177 Adjust tm_file order to get TARGET_DEFAULT set properly.
2178 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
2179 * doc/install.texi (sparc-solaris): Update.
2181 2002-04-16 Dale Johannesen <dalej@apple.com>
2183 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
2184 comparison operands do not match each other or if modes of
2185 conditions do not match result.
2187 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
2190 * config/s390/s390.md (mulsidi3): Set both subregs of the
2193 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
2195 * config/rs6000/altivec.h (vec_addc): Type check.
2197 2002-04-16 Jakub Jelinek <jakub@redhat.com>
2200 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
2202 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
2204 2002-04-15 Richard Henderson <rth@redhat.com>
2206 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
2207 call_really_used_regs too.
2209 2002-04-15 Richard Henderson <rth@redhat.com>
2211 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
2213 2002-04-15 David S. Miller <davem@redhat.com>
2215 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
2218 2002-04-16 Jakub Jelinek <jakub@redhat.com>
2221 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
2222 CONST_VECTOR is { 0, ... 0 }.
2224 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
2226 * doc/install.texi (Installing GCC: Configuration): Clarify
2227 the only supported ways to configure gcc.
2229 2002-04-15 Roland McGrath <roland@frob.com>
2231 * config.gcc (alpha*-*-gnu*): New target configuration.
2232 * config/alpha/gnu.h: New file for it.
2233 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
2235 2002-04-16 Mark Mitchell <mark@codesourcery.com>
2237 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
2238 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
2239 * tree.h (expand_start_stmt_expr): Update prototype.
2240 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
2241 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
2242 on the STMT_EXPR created for the inline function.
2244 2002-04-15 Richard Henderson <rth@redhat.com>
2246 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
2247 config/i386/linux-aout.h, config/i386/linux-oldld.h,
2248 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
2249 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
2250 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
2251 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
2252 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
2253 Define __gnu_linux__, not gnu_linux.
2254 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
2256 2002-04-15 Mark Mitchell <mark@codesourcery.com>
2258 Remove Chill front end.
2259 * gcc.c (default_compilers): Remove Chill entries.
2260 * ch: Remove directory.
2261 * doc/frontends.texi: Remove information about Chill.
2262 * doc/sourcebuild.texi: Likewise.
2263 * doc/standards.texi: Likewise.
2265 2002-04-15 Douglas B Rupp <rupp@gnat.com>
2267 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
2268 (LONGLONG_STANDALONE): Define.
2270 2002-04-15 David S. Miller <davem@redhat.com>
2272 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
2273 Call emit_library_call with LCT_NORMAL.
2274 (sparc_initialize_trampoline): Use LCT_foo instead of
2275 magic constant in emit_library_call invocations.
2276 (sparc64_initialize_trampoline): Likewise.
2277 (sparc_profile_hook): Likewise.
2278 * config/sparc/sparc.md: Likewise.
2280 * config/sparc/sparc.c (sparc_extra_constraint_check):
2281 Fix type of argument 'c'.
2282 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
2285 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
2287 * diagnostic.h (output_buffer_state): Redefine.
2288 (output_format_decoder): New macro.
2289 (output_prefixing_rule): Likewise.
2290 (output_line_cutoff): Likewise.
2291 (diagnostic_format_decoder): Adjust.
2292 (diagnostic_prefixing_rule): Likewise.
2293 (diagnostic_line_cutoff): Likewise.
2294 (diagnostic_state): Likewise.
2295 (diagnostic_kind_count): Likewise.
2296 (diagnostic_buffer): Now a macro.
2298 * diagnostic.c (diagnostic_buffer): Remove definition.
2299 (output_is_line_wrapping): Adjust.
2300 (set_real_maximum_length): Likewise.
2301 (output_set_maximum_length): Likewise.
2302 (init_output_buffer): Likewise.
2303 (lhd_print_error_function): Likewise.
2304 (output_do_verbatim): Likewise.
2306 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
2308 * cpperror.c (print_location): Don't print include chain
2310 (cpp_begin_message): Update to use DL_ macros.
2311 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2312 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2313 cpp_notice, cpp_notice_from_errno): Remove.
2314 (cpp_error, cpp_error_with_line): Update to take a diagnostic
2317 * cppexp.c (CPP_ICE): Remove.
2318 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
2319 lex, integer_overflow, _cpp_parse_expr): Update.
2320 * cppfiles.c (read_include_file, find_include_file,
2321 handle_missing_header, _cpp_read_file, remap_filename): Update.
2322 * cpphash.h (enum error_type): Remove.
2323 (_cpp_begin_message): Update.
2324 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
2325 cpp_handle_option, cpp_post_options): Update.
2326 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
2327 skip_whitespace, parse_identifier, parse_slow, parse_string,
2328 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
2329 cpp_interpret_charconst): Update.
2330 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
2331 lex_macro_node, do_undef, glue_header_name, parse_include,
2332 do_include_common, read_flag, do_line, do_linemarker, do_ident,
2333 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
2334 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
2335 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
2336 _cpp_pop_buffer, do_diagnostic): Update.
2337 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
2338 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
2339 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2340 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2341 cpp_notice, cpp_notice_from_errno): Remove.
2342 (cpp_error, cpp_error_with_line): Update to take a diagnostic
2345 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
2346 collect_args, enter_macro_context, save_parameter, parse_params,
2347 _cpp_create_definition, check_trad_stringification,
2348 cpp_macro_definition): Update.
2349 * cppmain.c (cpp_preprocess_file): Update.
2350 * fix-header.c (read_scan_file): Update.
2352 2002-04-14 Andreas Schwab <schwab@suse.de>
2354 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
2356 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
2358 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
2360 2002-04-13 Mark Mitchell <mark@codesourcery.com>
2362 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
2365 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
2367 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
2369 2002-04-13 Joel Sherrill <joel@OARcorp.com>
2371 * config/sparc/t-elf: Enable v8 multilibs. Impacts
2372 sparc-elf and sparc-rtems targets.
2374 2002-04-13 Mark Mitchell <mark@codesourcery.com>
2376 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
2377 defined, and __gnu_hurd__ wherever __GNU__ is defined.
2378 * arm/linux-elf.h: Likewise.
2379 * cris/aout.h: Likewise.
2380 * cris/linux.h: Likewise.
2381 * i370/linux.h: Likewise.
2382 * i386/gnu.h: Likewise.
2383 * i386/linux-aout.h: Likewise.
2384 * i386/linux-oldld.h: Likewise.
2385 * i386/linux.h: Likewise.
2386 * i386/linux64.h: Likewise.
2387 * ia64/linux.h: Likewise.
2388 * m68k/linux-aout.h: Likewise.
2389 * m68k/linux.h: Likewise.
2390 * mips/linux.h: Likewise.
2391 * pa/pa-linux.h: Likewise.
2392 * pj/linux.h: Likewise.
2393 * rs6000/sysv4.h: Likewise.
2394 * s390/linux.h: Likewise.
2395 * sh/linux.h: Likewise.
2396 * sparc/linux-aout.h: Likewise.
2397 * sparc/linux.h: Likewise.
2398 * sparc/linux64.h: Likewise.
2399 * xtensa/linux.h: Likewise.
2401 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
2403 * stmt.c (check_unique_operand_names): Expect operand names to
2404 be strings rather than identifiers. Use simple_cst_equal to
2406 (resolve_operand_name_1): Make same identifier to string change here.
2407 * c-parse.in (asm_operand): Convert a named operand into a string.
2408 * cp/parse.y (asm_operand): Likewise.
2410 2002-04-13 Andreas Schwab <schwab@suse.de>
2412 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
2414 2002-04-12 Mark Mitchell <mark@codesourcery.com>
2416 Revert these changes:
2418 2002-04-06 Mark Mitchell <mark@codesourcery.com>
2421 * stor-layout.c (layout_decl): Reset the RTL for the decl.
2423 2002-04-12 Richard Henderson <rth@redhat.com>
2425 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
2426 (sparc*-*-solaris): Clean up header files.
2427 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
2428 and plan on generating 64-bit code.
2429 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
2430 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
2431 * config/sparc/sol2-sld-64.h: Rename ...
2432 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
2433 for AS_SPARC64_FLAG not defined.
2434 * config/sparc/sol2-gld-bi.h: New.
2435 * config/sparc/sol2-sld.h: Remove.
2436 * config/sparc/sol26-sld.h: New.
2437 * config/sparc/sol2.h: Tidy comments.
2438 * doc/install.texi: Document sparc-solaris configury changes.
2440 2002-04-12 Richard Henderson <rth@redhat.com>
2442 * recog.c (offsettable_address_p): Match the logic in adjust_address.
2444 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
2445 in 64-bit mode only. Use only for 32-bit or MEDLOW.
2447 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2449 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
2451 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
2453 * pa.c (pa_can_combine_p): Call extract_insn before calling
2456 2002-04-12 Douglas B Rupp <rupp@gnat.com>
2458 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
2459 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
2460 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2461 (CPP_PREDEFINES): Handle __declspec.
2462 * config/i386/t-interix (USER_H): Remove.
2464 2002-04-12 DJ Delorie <dj@redhat.com>
2466 * integrate.c (compare_blocks): Make comparisons safe for when
2467 sizeof(int) < sizeof(char *).
2468 (find_block): Likewise.
2470 2002-04-12 Jan Hubicka <jh@suse.cz>
2471 David Edelsohn <edelsohn@gnu.org>
2473 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
2475 (symbol_ref_operand): New.
2476 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
2477 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
2479 2002-04-12 Andreas Schwab <schwab@suse.de>
2481 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
2482 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
2483 overrides the definition in config/svr4.h.
2485 2002-04-12 Eric Norum <eric.norum@usask.ca>
2487 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
2488 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
2489 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
2490 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
2491 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
2492 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
2493 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
2494 definitions to config/rtems.h and make the targets more similar.
2496 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2498 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
2499 POINTERS_EXTEND_UNSIGNED.
2500 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
2501 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
2503 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
2506 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
2508 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
2509 depends on TARGET_SHMEDIA, not TARGET_SH5.
2511 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
2513 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
2514 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
2516 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
2518 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
2521 2002-04-12 Andreas Schwab <schwab@suse.de>
2523 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
2525 2002-04-12 Richard Henderson <rth@redhat.com>
2528 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
2530 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
2531 modes spanning multiple hard regs.
2533 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
2535 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2537 * pa.c (pa_output_function_prologue): Don't accumulate the total
2538 number of code bytes when using TARGET_64BIT, or gas, SOM and not
2539 the portable runtime.
2540 (output_deferred_plabels): Handle 64bit plabels.
2541 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
2542 generating pic code using the GAS assembler for object formats that
2543 are not SOM (ie., ELF32 and ELF64).
2544 (output_millicode_call): Check attribute type if attribute length is 28.
2545 Likewise use $PIC_pcrel$0. Only call get_attr_length and
2546 dbr_sequence_length once.
2547 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
2548 dbr_sequence_length once.
2549 * pa.h (TARGET_SOM): Define if not defined.
2550 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
2551 with GAS and not SOM.
2552 (jump, call_internal_reg, call_value_internal_reg): Likewise.
2553 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
2555 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2557 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
2558 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
2559 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
2560 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
2561 elfos.h and dbxelf.h values are fine now.
2562 * config/i386/freebsd.h, config/alpha/freebsd.h
2563 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
2565 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2567 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
2568 or set Acpu or Amachine. Reformat.
2569 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2571 (LINK_SPEC): Do not need to undef.
2572 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
2573 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
2574 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2576 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
2577 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
2578 (LINK_SPEC): Do not need to undef.
2579 (DONT_USE_BUILTIN_SETJMP): Do not define.
2580 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
2581 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
2582 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
2583 Remove trailing spaces.
2584 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
2585 __ELF__, or set Acpu or Amachine. Reformat.
2586 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2589 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2591 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
2592 all other *-*-freebsd* targets.
2594 2002-04-11 Richard Henderson <rth@redhat.com>
2596 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
2598 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2600 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
2601 Include {cpu}/{cpu}.h thru tm_file.
2602 (alpha*-*-linux*ecoff): Remove target.
2603 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
2604 (LINK_SPEC): Remove, is not OS independent.
2605 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
2606 (LINK_SPEC): Do not need to #undef any longer.
2607 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
2609 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
2611 (LINK_SPEC): Moved here from alpha/elf.h.
2612 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
2614 * config/alpha/linux-ecoff.h: Remove.
2615 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
2616 (CPP_SPEC): Define _POSIX_SOURCE as needed.
2617 (CPP_SUBTARGET_SPEC): Do not define.
2618 (LINK_SPEC): Do not need to #undef any longer.
2619 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
2620 * config/alpha/vms.h: Likewise.
2622 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
2624 * doc/extend.texi: Remove old claim that typedefs cannot have
2625 an alignment attribute.
2627 2002-04-11 Jakub Jelinek <jakub@redhat.com>
2629 PR optimization/6177
2630 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
2631 bitpos is 0 and bitsize CONCAT size.
2633 2002-04-11 Jakub Jelinek <jakub@redhat.com>
2636 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
2638 2002-04-10 David O'Brien <obrien@FreeBSD.org>
2640 * config/alpha/freebsd.h: Minor reformatting.
2641 (CPP_SPEC): Define ELF and add cpp_subtarget.
2642 (ASM_SPEC): No longer needed.
2644 2002-04-11 Richard Henderson <rth@redhat.com>
2646 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
2647 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
2648 (dimode mem/zero splitter): New.
2650 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
2652 * config/cris/cris.c (cris_override_options): Tweak error message
2653 for PIC not implemented.
2655 * config/cris/cris.h: Tweak comments related to parameter-passing.
2657 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
2659 2002-04-10 Richard Henderson <rth@redhat.com>
2661 * except.c (add_ehl_entry): Allow duplicates after landing pad
2664 2002-04-10 David Edelsohn <edelsohn@gnu.org>
2666 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
2668 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
2670 * c-decl.c (c_init_decl_processing): Move generation of
2671 decls for g77_integer_type_node and friends from here ...
2672 * c-common.c (c_common_nodes_and_builtins): ... to here.
2674 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
2676 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
2677 is only used as frame pointer when frame_pointer_needed is true.
2679 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
2682 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
2683 for the fact that the pool entry uses two words.
2684 (movdf_hard_insn): Similarly. Also, ADR instruction can span
2686 (movdf_soft_insn): Similarly.
2687 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
2688 for the fact that the pool entry uses three words.
2690 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
2692 * config/mips/mips.c (mips_va_arg): When using the struct version
2693 of the EABI va_list, allow arguments in the register save area to
2694 take up less room than a stack argument.
2696 2002-04-10 Richard Henderson <rth@redhat.com>
2698 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
2699 if EXPAND_INITIALIZER.
2701 2002-04-09 Richard Henderson <rth@redhat.com>
2703 * config/alpha/alpha.md (movdi_er_maybe_g): New.
2704 * config/alpha/alpha.c (alpha_expand_mov): Use it.
2706 2002-04-10 Alan Modra <amodra@bigpond.net.au>
2708 PR optimization/6233
2709 * rtlanal.c (pure_call_p): New function.
2710 * rtl.h (pure_call_p): Declare.
2711 * loop.c (prescan_loop): Use it to set has_nonconst_call.
2712 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
2714 2002-04-09 Eric Christopher <echristo@redhat.com>
2716 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
2717 information to .comm directive.
2719 2002-04-09 Richard Henderson <rth@redhat.com>
2722 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
2724 2002-04-09 Richard Henderson <rth@redhat.com>
2726 * basic-block.h (flow_delete_block_noexpunge): Declare.
2727 (expunge_block_nocompact): Declare.
2728 * cfg.c (expunge_block_nocompact): Split out from ...
2729 (expunge_block): ... here.
2730 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
2731 (flow_delete_block_noexpunge): Split out from ...
2732 (flow_delete_block): ... here.
2733 * cfgcleanup.c (delete_unreachable_blocks): Compact while
2734 removing dead blocks.
2735 * except.c (exception_handler_labels): Remove.
2736 (exception_handler_label_map): New.
2737 (struct eh_region): Add aka member.
2738 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
2739 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
2740 (for_each_eh_label, for_each_eh_label_1): New.
2741 (init_eh): Register exception_handler_label_map.
2742 (free_eh_status): Use free_region.
2743 (find_exception_handler_labels): Use the map, not the list.
2744 (remove_exception_handler_label): Likewise.
2745 (maybe_remove_eh_handler): Likewise.
2746 (remove_eh_handler): Use the region aka bitmap.
2747 * except.h (exception_handler_labels): Remove.
2748 (for_each_eh_label): Declare.
2749 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
2750 * loop.c (invalidate_loops_containing_label): New.
2751 (find_and_verify_loops): Use it. Use for_each_eh_label.
2752 * sched-rgn.c (is_cfg_nonregular): Use
2753 current_function_has_exception_handlers.
2755 2002-04-09 Richard Henderson <rth@redhat.com>
2757 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
2758 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
2759 Do not return changed status.
2760 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
2761 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
2762 New functions that do return changed status.
2763 * sbitmap.h: Update decls.
2764 * gcse.c, lcm.c: Use _cg functions as needed.
2766 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2768 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
2769 (sh64-*-elf*, sh-*-rtemself*): Likewise.
2770 * config/sh/embed_bb.c: New file.
2771 * config/sh/embed-elf.h: New file.
2772 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
2773 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
2774 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2776 (SUBTARGET_CPP_PTR_SPEC): Don't define.
2777 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
2778 Add subtarget_asm_endian_spec.
2779 (ASM_SPEC): Use subtarget_asm_endian_spec.
2780 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
2781 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
2782 (WCHAR_UNSIGNED): Define.
2783 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
2784 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2785 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
2787 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
2788 (sh_adjust_cost): Likewise.
2789 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2791 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
2792 (WCHAR_TYPE_SIZE): Likewise.
2793 (ASM_SPEC): Use subtarget_asm_endian_spec.
2794 (SH_ELF_WCHAR_TYPE): #undef/ #define.
2795 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
2796 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
2797 (MAX_WCHAR_TYPE_SIZE): Don't #define .
2798 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
2799 (USER_LABEL_PREFIX): Don't #undef /#define .
2800 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2801 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
2802 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
2803 (ASM_SPEC): Likewise.
2804 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
2805 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
2806 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
2807 (LIB2FUNCS_EXTRA): Define.
2808 * t-sh64 (LIB2FUNCS_EXTRA): Define.
2809 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
2810 (LIB1ASMFUNCS_CACHE): Define.
2811 (LIB2FUNCS_EXTRA): Redefine empty.
2813 2002-04-08 Richard Henderson <rth@redhat.com>
2815 * reorg.c (get_branch_condition): Use reversed_comparison_code.
2817 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2819 * config/m68hc11/larith.asm (__map_data_section): Fix condition
2820 and optimize for size.
2821 (__do_global_ctors): Fix pointer comparison.
2822 (__do_global_dtors): Likewise.
2824 2002-04-09 David S. Miller <davem@redhat.com>
2826 * config/sparc/sparc.c (sparc_extra_constraint_check): New
2827 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
2828 allow reloading pseudos.
2829 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
2830 * config/sparc/sparc-protos.h: Declare it.
2832 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
2833 unsigned comparison warning.
2834 (output_restore_regs): Mark leaf_function as unused.
2836 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2838 * expr.c (is_aligning_offset): New function.
2839 (expand_expr, case COMPONENT_EXPR): Call it.
2841 2002-04-08 David S. Miller <davem@redhat.com>
2844 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
2846 Make init_priority work on Sparc when using GNU ld.
2847 * config/sparc/linux.h, config/sparc/linux64.h,
2848 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
2849 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
2850 * config/sparc/sol2-gld.h: New file to do the same.
2851 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
2852 sparc/sol2-gld.h to tm_file.
2854 PR optimization/4328
2855 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
2856 * doc/md.texi: Document it.
2857 * config/sparc/sparc.md (movdi_insn_sp64_novis,
2858 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
2859 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
2860 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
2861 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
2863 2002-04-08 Andreas Jaeger <aj@suse.de>
2865 * stmt.c (expand_asm_operands): Revert last patch from Richard
2868 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2870 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
2871 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
2873 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2875 * doc/contrib.texi (Contributors): Add David O'Brien.
2877 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2879 * configure.in (auto-build.h): Use target_alias and build_alias
2880 when running configure.
2881 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
2882 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
2883 * configure: Regenerate.
2885 2002-04-07 David S. Miller <davem@redhat.com>
2887 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
2889 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
2892 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
2893 generating 32-bit pic code.
2895 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
2897 * cppinit.c (cpp_create_reader): Initialize
2898 discard_comments_in_macro_exp.
2899 (COMMAND_LINE_OPTIONS): Add "-CC" option.
2900 (cpp_handle_option): Handle "-CC" option.
2901 * cpplex.c (save_comment): If saving a C++ comment in
2902 a directive, convert it to a C comment.
2903 (_cpp_lex_direct): Pass second comment start character to
2904 save_comment to indicate comment type.
2905 * cpplib.c (_cpp_handle_directive): If processing
2906 a "#define" directive and discard_comments_in_macro_exp
2907 is false, re-enable saving of comments.
2908 (lex_macro_node): If discard_comments_in_macro_exp is false,
2909 discard any comments before the macro identifier.
2910 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
2912 * cppmacro.c (cpp_get_token): If expanding a macro while
2913 processing a directive, discard any comments we might encounter.
2914 (parse_params): If discard_comments_in_macro_exp is false,
2915 ignore comments in the macro parameter list.
2916 * gcc.c (cpp_unique_options): Add "-CC" option.
2917 (option_map): Map "--comments-in-macros" to "-CC".
2918 * doc/cppopts.texi: Document "-CC" option.
2919 * f/lang-specs.h: Add "-CC" option.
2920 * testsuite/gcc.dg/cpp/maccom1.c: New test.
2921 * testsuite/gcc.dg/cpp/maccom2.c: New test.
2922 * testsuite/gcc.dg/cpp/maccom3.c: New test.
2923 * testsuite/gcc.dg/cpp/maccom4.c: New test.
2924 * testsuite/gcc.dg/cpp/maccom5.c: New test.
2925 * testsuite/gcc.dg/cpp/maccom6.c: New test.
2927 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2930 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
2932 2002-04-06 Mark Mitchell <mark@codesourcery.com>
2935 * stor-layout.c (layout_decl): Reset the RTL for the decl.
2938 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
2939 RTX_UNCHANGING_P for the functions arguments when a tail call
2942 2002-04-06 Jason Merrill <jason@redhat.com>
2944 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
2945 (parse_options_and_default_flags): Set them appropriately.
2946 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
2948 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
2950 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
2953 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
2956 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
2957 types come in by-reference. Fix typo in comment.
2959 2002-04-05 David S. Miller <davem@redhat.com>
2961 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
2962 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
2963 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
2964 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
2966 2002-04-05 David S. Miller <davem@redhat.com>
2968 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
2969 are not going to emit return instructions, emit at least a nop
2970 for the sake of sane backtraces.
2972 2002-04-05 Richard Henderson <rth@redhat.com>
2974 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
2976 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
2978 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
2980 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
2982 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
2983 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
2984 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
2986 2002-04-05 Andreas Schwab <schwab@suse.de>
2988 * c-convert.c: Include c-common.h.
2989 * Makefile.in (c-convert.o): Updated.
2991 2002-04-05 Jakub Jelinek <jakub@redhat.com>
2993 * mklibgcc.in: Use separate libgcc.map for each multilib.
2994 * Makefile.in (distclean): Don't remove libgcc.map here.
2996 2002-04-05 Jakub Jelinek <jakub@redhat.com>
2998 * Makefile.in (s-mlib): Handle --disable-multilib by separate
2999 genmultilib invocation.
3001 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
3003 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
3004 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
3005 to num_gprs for symmetry.
3006 * config/mips/mips.c: Adjust accordingly.
3008 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
3010 * c-common.c (truthvalue_conversion): Rename, update.
3011 * c-common.h (c_common_truthvalue_conversion): New.
3012 * c-convert.c (convert): Update.
3013 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3014 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
3015 * c-typeck.c (build_binary_op, build_unary_op,
3016 build_conditional_expr): Update.
3017 * fold-const.c (constant_boolean_node, fold): Use langhook.
3018 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
3019 * langhooks.h (struct lang_hooks): New hook.
3020 * stmt.c (expand_decl_cleanup): Use langhook.
3021 * tree.h (truthvalue_conversion): Remove.
3023 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3025 2002-04-05 Alan Modra <amodra@bigpond.net.au>
3027 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
3028 Add rules to make null object file.
3030 2002-04-04 Jim Blandy <jimb@redhat.com>
3032 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
3033 macro formal parameter names.
3035 2002-04-04 David S. Miller <davem@redhat.com>
3037 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
3039 2002-04-04 Richard Henderson <rth@redhat.com>
3042 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
3043 Support copies into and out of memory. Don't accept allows_reg
3044 and allows_mem as gospel.
3046 2002-04-04 Richard Henderson <rth@redhat.com>
3049 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
3050 (write_dependence_p): Likewise.
3052 2002-04-04 Richard Henderson <rth@redhat.com>
3054 * predict.c (estimate_bb_frequencies): Do frequency calculation
3055 with a volatile temporary.
3057 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
3059 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
3061 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3064 * final.c (final_start_function): Don't bump profile_label_no here...
3065 (final_end_function): ...but here.
3067 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3069 * config/sparc/sparc.md (pic): New attribute.
3070 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
3072 (split after do_builtin_setjmp_setup): New.
3074 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3077 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
3080 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3082 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
3083 UNITS_PER_WORD for zero sized aggregates.
3085 2002-04-03 David S. Miller <davem@redhat.com>
3087 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
3088 one-character spec for this, just use %(link_gcc_c_sequence).
3090 2002-04-03 David S. Miller <davem@redhat.com>
3092 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
3095 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
3097 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
3098 (DWARF_FRAME_RETURN_COLUMN): Move.
3099 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3100 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
3101 * pa.c (except.h, predict.h): Include.
3103 (store_reg_modify, set_reg_plus_d): Revise prototypes.
3104 (output_ascii): Add cast.
3105 (store_reg_modify): Revise to add frame notes.
3106 (set_reg_plus_d): Likewise.
3107 (compute_frame_size): Include space for eh data registers in frame if
3108 the current function calls eh_return.
3109 (hppa_expand_prologue): Ensure register %r2 is saved if the current
3110 function calls eh_return. Save eh data registers if the current
3111 function calls eh_return. Fix code to add frame notes. Emit
3112 blockage to prevent insns with frame notes being scheduled in the
3113 delay slot of calls.
3114 (hppa_expand_epilogue): Restore eh data registers and do final stack
3115 adjustment if the current function calls eh_return. Don't add frame
3117 (output_call): Revise for change in length of call insn. Don't do
3118 return pointer adjustment for an unconditional jump in the delay slot
3119 of a call when using frame notes.
3120 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
3121 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
3122 (ARG_POINTER_CFA_OFFSET): Define.
3123 * pa.md (return_external_pic): New pattern.
3124 (prologue): Correct formatting. Use return_external_pic if current
3125 function calls eh_return.
3126 (call_internal_symref, call_value_internal_symref,
3127 sibcall_internal_symref, sibcall_value_internal_symref): Change default
3128 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
3130 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
3132 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
3133 list of targets to check using "nop" insn.
3134 * configure: Rebuilt.
3136 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3138 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
3140 2002-04-03 David S. Miller <davem@redhat.com>
3142 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
3143 library sequence passed to the linker.
3144 (LINK_COMMAND_SPEC): Use it.
3145 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
3146 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
3147 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3149 2002-04-03 Jason Merrill <jason@redhat.com>
3151 * except.c (struct eh_status): Remove protect_list.
3152 (begin_protect_partials, end_protect_partials): Remove.
3153 (add_partial_entry): Remove.
3154 * except.h: Remove prototypes.
3156 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
3157 expand_decl_cleanup_eh.
3160 * tree.h (CLEANUP_EH_ONLY): New macro.
3161 * stmt.c (expand_decl_cleanup_eh): New fn.
3162 (expand_cleanups): Check CLEANUP_EH_ONLY.
3163 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
3164 Use expand_decl_cleanup_eh.
3165 (expand_stmt): Adjust.
3166 * c-common.h: Adjust prototype.
3168 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
3170 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
3171 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
3172 (cris_target_asm_function_epilogue): Ditto.
3173 (cris_initial_frame_pointer_offset): Ditto.
3174 (cris_simple_epilogue): Ditto.
3175 (cris_expand_builtin_va_arg): Variable-size types come in
3178 2002-04-03 David S. Miller <davem@redhat.com>
3180 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
3182 (set_fast_math): Correct 'fsr' type.
3184 2002-04-03 Richard Henderson <rth@redhat.com>
3187 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
3188 * toplev.c (check_global_declarations): Use it.
3189 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
3190 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3191 (LANG_HOOKS_DECLS): Add it.
3192 * langhooks.c (lhd_warn_unused_global_decl): New.
3193 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3194 * c-objc-common.c (c_warn_unused_global_decl): New.
3195 * c-tree.h (c_warn_unused_global_decl): Declare.
3196 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3198 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
3200 * langhooks-def.h (lhd_set_decl_assembler_name,
3201 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
3202 (LANG_HOOKS_INITIALIZER): Update.
3203 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
3204 * langhooks.h (struct lang_hooks): New hook.
3205 * tree.c (set_decl_assembler_name): Move to langhooks.c.
3206 (lang_set_decl_assembler_name): Remove.
3207 (init_obstacks): Don't set hook.
3208 (decl_assembler_name): New function.
3209 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
3210 (decl_assembler_name): New.
3211 (lang_set_decl_assembler_name): Remove.
3213 2002-04-03 Jakub Jelinek <jakub@redhat.com>
3215 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
3216 works properly with .hidden symbols.
3217 * configure: Rebuilt.
3218 * config.in: Rebuilt.
3219 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
3220 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
3221 properly with .hidden symbols.
3223 2002-04-03 Jakub Jelinek <jakub@redhat.com>
3226 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
3229 2002-04-03 Richard Henderson <rth@redhat.com>
3232 * sched-rgn.c (sets_likely_spilled): New.
3233 (sets_likely_spilled_1): New.
3234 (add_branch_dependences): Use it.
3236 2002-04-02 Richard Henderson <rth@redhat.com>
3239 * loop.h (LOOP_FIRST_PASS): New.
3240 * loop.c (strength_reduce): Mind it when deciding to unroll.
3241 * toplev.c (rest_of_compilation): Set it.
3243 2002-04-02 David S. Miller <davem@redhat.com>
3245 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
3246 mems_ok_for_ldd_peep when the order of the loads being examined
3248 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
3249 existing comment to increase comprehension of this situation.
3251 2002-04-02 Zack Weinberg <zack@codesourcery.com>
3253 * config/sh/sh.md: Don't use union real_extract.
3255 2002-04-02 Richard Henderson <rth@redhat.com>
3257 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
3259 2002-04-02 David O'Brien <obrien@FreeBSD.org>
3261 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
3262 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
3263 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
3264 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
3265 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
3266 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
3267 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
3268 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
3269 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
3270 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
3271 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
3272 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
3273 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
3274 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
3275 Include as many configury headers via tm_file as possible. This
3276 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
3277 * config/openbsd-oldgas.h: New file.
3278 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
3279 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
3280 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
3281 config/i386/i386-coff.h, config/i386/i386-interix.h,
3282 config/i386/iscdbx.h, config/i386/linux-aout.h,
3283 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
3284 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
3285 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
3286 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
3287 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
3288 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
3289 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
3290 config/i386/vxi386.h: Do not directly include configury headers.
3291 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
3292 Directly include configury headers that are no longer automatically
3293 included by the above headers.
3294 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
3295 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
3296 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
3297 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
3298 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
3299 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
3300 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
3301 (TARGET_VERSION): Define.
3302 * config/i386/beos-elf.h, config/i386/freebsd.h,
3303 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
3304 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
3305 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
3306 config/i386/sco5.h, config/i386/sysv4.h
3307 (TARGET_VERSION): Do not need to protect.
3308 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
3309 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
3310 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
3311 config/i386/i386-interix.h, config/i386/linux-aout.h,
3312 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
3313 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
3314 (YES_UNDERSCORES): Do not define - not needed.
3315 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
3316 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3317 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
3318 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
3319 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3320 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
3321 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
3322 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
3324 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
3325 Richard Henderson <rth@redhat.com>
3328 * function.c (assign_temp): Accept either type or decl argument.
3329 Detect variables whose size is too large to fit into an integer.
3330 * stmt.c (expand_decl): Pass the decl, not the type.
3332 2002-04-02 David O'Brien <obrien@FreeBSD.org>
3334 * protoize.c: Match include directory usage with cppdefault.c.
3336 2002-04-03 Jeffrey A Law (law@redhat.com)
3337 Hans-Peter Nilsson <hp@bitrange.com>
3339 * combine.c (simplify_comparison): Avoid narrowing a comparison
3340 with a paradoxical subreg when doing so would drop signficant bits.
3342 2002-04-02 Steve Ellcey <sje@cup.hp.com>
3344 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
3345 if POINTERS_EXTEND_UNSIGNED is defined.
3347 2002-04-02 Richard Henderson <rth@redhat.com>
3350 * local-alloc.c (contains_replace_regs): LO_SUM may contain
3353 2002-04-02 Richard Henderson <rth@redhat.com>
3355 * doc/standards.texi: Document required freestanding libc entry points.
3357 2002-04-02 Alan Modra <amodra@bigpond.net.au>
3359 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
3360 associated splitter. Remove MQ constraint.
3361 (ctrdi_internal4): Correct CCmode clobber.
3363 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
3365 * milli64.S ($$dyncall): New function.
3366 * t-linux (LIB1ASMFUNCS): Revise module list.
3367 (LIB1ASMSRC): Use pa/milli64.S.
3369 2002-04-02 Richard Henderson <rth@redhat.com>
3371 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
3372 rename solaris_sys_varargs_h.
3374 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3376 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
3377 the same mode as its component.
3379 2002-04-02 Richard Henderson <rth@redhat.com>
3382 * final.c (this_is_asm_operands): Export.
3383 * output.h (this_is_asm_operands): Declare.
3384 * config/i386/i386.c (print_operand): Error odd asm operands.
3386 2002-04-02 Richard Henderson <rth@redhat.com>
3389 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
3391 2002-04-01 Richard Henderson <rth@redhat.com>
3394 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
3395 * fixinc/fixincl.x: Rebuild.
3397 2002-04-01 Richard Henderson <rth@redhat.com>
3399 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
3400 (atomic_alloc, atomic_free): New.
3401 (SIZE, MASK_FOR, PTR_IN): New.
3402 (emergency_reg_state, emergency_reg_state_free): New.
3403 (emergency_labeled_state, emergency_labeled_state_free): New.
3404 (reg_state_alloced, labeled_state_alloced): New.
3405 (alloc_reg_state, free_reg_state): New.
3406 (alloc_label_state, free_label_state, free_label_states): New.
3407 (push, pop, dup_state_stack, free_state_stack): Use them.
3408 (desc_label_state): Likewise.
3409 (uw_frame_state_for): Free label states and state stack.
3410 (uw_update_reg_address): Eliminate warnings.
3412 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
3414 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
3415 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
3417 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3419 * c-decl.c (grokdeclarator): Update.
3420 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3421 * c-tree.h (c_mark_addressable): New.
3422 * c-typeck.c (default_function_array_conversion, build_unary_op,
3423 build_array_ref, convert_for_assignment): Update.
3424 (mark_addressable): Rename.
3425 * calls.c (try_to_integrate, expand_call): Use langhook.
3426 * expr.c (expand_expr): Use langhook.
3427 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
3428 * langhooks.h (struct lang_hooks): New hook.
3429 * stmt.c (expand_asm_operands): Use langhook.
3430 * tree.h (mark_addressable): Remove.
3432 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3434 2002-04-01 Bob Wilson <bob.wilson@acm.org>
3436 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
3439 2002-04-01 Bob Wilson <bob.wilson@acm.org>
3441 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
3442 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
3444 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3446 * c-common.c (unsigned_conversion_warning, convert_and_check,
3447 unsigned_type, signed_type, shorten_compare,
3448 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
3449 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
3450 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
3452 * c-decl.c (grokdeclarator): Update.
3453 * c-format.c (check_format_types): Update.
3454 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3455 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3456 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
3457 * convert.c (convert_to_integer): Use new hooks.
3458 * expmed.c (make_tree): Use new hooks.
3459 * expr.c (store_expr): Use new hooks.
3460 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
3461 all_ones_mask_p, unextend, fold): Use new hooks.
3462 * langhooks.h (struct lang_hooks_for_types): New hooks.
3463 * tree.h (signed_or_unsigned_type, signed_type,
3464 unsigned_type): Remove.
3466 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3467 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3469 2002-03-31 Richard Henderson <rth@redhat.com>
3471 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
3472 (desc_frgr_mem): Fix reference to f16-f31.
3474 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3476 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
3477 RTVEC_ELT): Const-ify.
3478 * varray.h (VARRAY_CHECK): Const-ify.
3479 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
3480 ggc_mark_rtvec, ggc_mark): Const-ify.
3482 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3484 * diagnostic.c: Include langhooks-def.h.
3485 * Makefile.in (diagnostic.o): Update.
3487 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
3489 * c-common.c (c_unsafe_for_reeval): Rename.
3490 * c-common.h (c_unsafe_for_reeval): Rename.
3491 * c-decl.c (finish_incomplete_decl): Rename.
3492 (c_init_decl_processing): Don't set langhook.
3493 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3494 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3495 * c-objc-common.c (c_objc_common_init): Don't set langhook.
3496 * c-tree.h (finish_incomplete_decl): Rename.
3497 * langhooks-def.h (lhd_unsafe_for_reeval): New.
3498 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
3499 (LANG_HOOKS_INITIALIZER): Update.
3500 * langhooks.c (lhd_unsafe_For_reeval): New.
3501 * langhooks.h (struct langhooks): New hooks.
3502 * toplev.c (incomplete_decl_finalize_hook): Remove.
3503 (wrapup_global_declarations): Update.
3504 * tree.c (lang_unsafe_for_reeval): Remove.
3505 (unsafe_for_reeval): Update.
3506 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
3509 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3510 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3512 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
3514 * diagnostic.c (print_error_function): Remove.
3515 (default_print_error_function): Rename.
3516 (report_error_function): Update.
3517 * diagnostic.h (print_error_function): Remove.
3518 (default_print_error_function): Remove.
3519 * langhooks-def.h (struct diagnostic_context): Predeclare.
3520 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
3521 (LANG_HOOKS_INITIALIZER): Update.
3522 * langhooks.h (struct diagnostic context): Predeclare.
3523 (struct lang_hooks): New hook.
3525 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3527 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
3528 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
3530 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
3531 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
3532 of PIC_OFFSET_TABLE_REGNUM thruout.
3533 * config/rs6000/rs6000.md: Likewise.
3534 * config/rs6000/darwin.h: Likewise.
3536 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3538 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
3539 unsigned HOST_WIDE_INT, not unsigned int.
3541 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3543 PR middle-end/6096, middle-end/6098, middle-end/6099
3544 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
3546 (fill_slots_from_thread): Likewise.
3548 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3550 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
3551 floating fields in float regs.
3552 (function_arg_record_value_2): Likewise.
3554 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
3556 * config/mmix/mmix.md (define_constants): Remove misleading
3557 FIXME. Add MMIX_fp_rO_OFFSET.
3558 ("nonlocal_goto_receiver"): Don't have stack-frame address of
3559 saved rO as part of the pattern. Remove FIXME.
3560 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
3561 here, at output-time.
3563 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3566 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
3568 (output_v9branch): Likewise.
3570 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
3572 * gcc.c: Revert previous patch for now.
3573 * config/i386/djgpp.h: Likewise.
3575 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
3577 * config/mmix/crti.asm (_init): Register _fini with atexit.
3578 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
3580 2002-03-31 Richard Henderson <rth@redhat.com>
3583 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
3584 (ASM_OUTPUT_DEF_FROM_DECLS): New.
3586 2002-03-31 Richard Henderson <rth@redhat.com>
3588 * libgcc2.c (__bb_exit_func): Make static.
3590 * config/alpha/alpha.md (trap): New.
3592 2002-03-31 Richard Henderson <rth@redhat.com>
3594 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
3595 promoted argument types; build trap.
3596 (expand_builtin_trap): New.
3597 (expand_builtin): Use it.
3598 * stmt.c (expand_nl_goto_receivers): Likewise.
3599 * expr.h (expand_builtin_trap): Declare.
3600 * libfuncs.h (LTI_abort, abort_libfunc): New.
3601 * optabs.c (init_optabs): Init abort_libfunc.
3603 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
3605 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
3606 (LINK_COMMAND_SPEC): ... from here.
3607 (init_gcc_specs): Duplicate it here too, omitting
3608 shared_name in the second copy.
3609 (init_spec): Test for duplicate
3610 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
3612 2002-03-30 David S. Miller <davem@redhat.com>
3614 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3615 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
3617 2002-03-30 Roger Sayle <roger@eyesopen.com>
3618 Richard Henderson <rth@redhat.com>
3620 * regmove.c (combine_stack_adjustments_for_block): Avoid
3621 emitting a stack adjustment of zero bytes. Let delete_insn
3624 2002-03-30 Richard Henderson <rth@redhat.com>
3626 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
3627 (sparc_emitting_epilogue): New.
3628 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
3629 * config/sparc/sparc-protos.h: Update.
3630 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
3631 (TARGET_SWITCHES): Update.
3632 * config/sparc/sparc.md (return): Remove.
3633 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
3634 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
3635 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
3636 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3637 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
3638 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
3639 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
3640 Remove MASK_EPILOGUE.
3641 * doc/invoke.texi: Update.
3643 2002-03-30 Daniel Berlin <dan@dberlin.org>
3645 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
3646 CPP will start the file for us.
3648 2002-03-30 Richard Henderson <rth@redhat.com>
3651 * config/ia64/ia64.c (group_barrier_needed_p): Special case
3652 prologue_allocate_stack.
3653 (ia64_single_set): Use insn codes for recognition of special
3654 cases, not rtl matching.
3655 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
3657 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
3659 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
3661 2002-03-30 Richard Henderson <rth@redhat.com>
3664 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
3665 or -fomit-frame-pointer with profiling.
3666 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3667 (FUNCTION_PROFILER): Do nothing.
3668 (PROFILE_HOOK): New.
3669 * config/sparc/sparc.c (sparc_override_options): Don't check
3670 code models for profiling.
3671 (sparc_function_profiler): Remove.
3672 (sparc_profile_hook): New.
3673 * config/sparc/sparc-protos.h: Update.
3675 2002-03-30 Jakub Jelinek <jakub@redhat.com>
3677 PR optimization/6086
3678 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
3679 of SUBREG of volatile MEM or because the MEM was mode dependent,
3680 return CLOBBER instead of unmodified SUBREG.
3682 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
3684 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
3685 when not optimizing.
3687 * toplev.c (rest_of_compilation): Cann mark_constant_function
3688 only when optimizing.
3690 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
3693 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
3694 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
3695 (try_optimize_cfg): clear all AUX fields.
3697 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
3698 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
3699 (ix86_address_cost): Be prepared for SUBREGed registers.
3700 (legitimate_address_p): Accept SUBREGed registers.
3702 2002-03-29 Richard Henderson <rth@redhat.com>
3705 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
3707 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3709 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
3710 for aggregate and TFmode types.
3712 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
3714 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
3716 2002-03-29 Richard Henderson <rth@redhat.com>
3719 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
3720 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
3722 2002-03-29 Richard Henderson <rth@redhat.com>
3725 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
3726 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
3727 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
3728 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
3730 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
3732 2002-03-29 Dale Johannesen <dalej@apple.com>
3734 * loop.c (combine_movables): Do allow combination of pseudos.
3736 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
3738 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
3739 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
3740 No functional change except ...
3741 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
3742 * doc/install.texi (*-*-freebsd*): Document port configuration.
3744 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
3746 * Makefile.in (convert.o, calls.o, expmed.o): Update.
3747 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
3749 * builtin-types.def (BT_PTRMODE): Update.
3750 * c-common.c (type_for_size): Rename c_common_type_for_size.
3751 (type_for_mode): Similarly.
3752 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
3754 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
3755 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
3756 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
3758 * c-typeck.c (common_type, comptypes, default_conversion):
3760 * calls.c: Include langhooks.h.
3761 (emit_library_call_value_1): Use new hooks. Avoid redundant
3763 * convert.c: Include langhooks.h
3764 (convert_to_pointer, convert_to_integer): Use new hooks.
3765 * except.c (init_eh): Similarly.
3766 * expmed.c: Include langhooks.h.
3767 (expand_mult_add): Use new hooks.
3768 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
3769 try_casesi): Similarly.
3770 * fold-const.c (optimize_bit_field_compare, make_range,
3771 decode_field_reference, fold_truthop, fold): Similarly.
3772 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
3773 put_var_into_stack): Similarly.
3774 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
3775 LANG_HOOKS_TYPE_FOR_SIZE): New.
3776 (LANG_HOOKS_TYPES_INITIALIZER): Update.
3777 * langhooks.h (lang_hooks_for_types): New hooks.
3778 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
3779 * tree.c (get_unwidened, get_narrower): Similarly.
3780 * tree.h (type_for_mode, type_for_size): Remove.
3781 * varasm.c (force_const_mem): Use new hooks.
3782 * utils2.c (nonbinary_modular_operation): Update.
3784 * objc-act.c (handle_impent): Update.
3785 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
3788 2002-03-29 Steve Ellcey <sje@cup.hp.com>
3790 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
3791 * config/ia64/ia64.c (basereg_operand): New.
3792 * config/ia64/ia64-protos.h (basereg_operand): Declare.
3793 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
3795 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
3797 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
3798 unwind information when frame_pointer_needed.
3799 (mmix_assemble_integer): Tweak wording in comment.
3801 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
3803 * Makefile.in (except.o): Update.
3804 * except.c: Include langhooks.h.
3805 (init_eh): Use langhook.
3806 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
3807 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
3808 (LANG_HOOKS_INITIALIZER): Update.
3809 * langhooks.h (lang_hooks_for_types): New.
3810 (struct lang_hooks): Add it.
3811 * tree.c (make_lang_type_fn, make_lang_type): Remove.
3812 * tree.h (make_lang_type_fn, make_lang_type): Remove.
3814 * alpha/alpha.c: Include langhooks.h.
3815 (alpha_build_va_list): Use langhook.
3816 * d30v/d30v.c: Include langhooks.h.
3817 (d30v_build_va_list): Use langhook.
3818 * i386/i386.c: Include langhooks.h.
3819 (ix86_build_va_list): Use langhook.
3820 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
3821 * s390/s390.c: Include langhooks.h.
3822 (s390_build_va_list): Use langhook.
3823 * stormy16/stormy16.c: Include langhooks.h.
3824 (stormy16_build_va_list): Use langhook.
3826 2002-03-29 Jakub Jelinek <jakub@redhat.com>
3829 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
3831 (length): Compute variable length for branches/calls/jumps here.
3832 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
3833 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
3834 define branch_type attribute.
3835 (divsi3_sp32): Maximum length is 6 not 7.
3836 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
3837 call_address_untyped_struct_value_sp32,
3838 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
3839 * config/sparc/sparc.c (empty_delay_slot): New function.
3840 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
3841 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
3843 2002-03-29 Jakub Jelinek <jakub@redhat.com>
3845 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
3846 nonzero_bits if not needed.
3847 (nonzero_bits) [XOR]: Likewise.
3848 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
3849 reg_last_set_mode and mode are both MODE_INT, but not equal.
3850 (record_value_for_reg): Compute reg_last_set_nonzero_bits
3851 in nonzero_bits_mode for MODE_INT modes.
3853 2002-03-28 Richard Henderson <rth@redhat.com>
3856 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
3857 to GAS. Correct drift between alternatives.
3859 2002-03-28 Richard Henderson <rth@redhat.com>
3862 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
3864 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
3866 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
3867 emulation to the linker.
3869 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
3871 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
3872 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3874 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
3876 * combine.c (simplify_and_const_int): Make sure to apply mask
3877 when force_to_mode returns a constant integer. PR3311.
3879 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3881 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
3883 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3885 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
3886 and Objective-C Dialect Options.
3888 2002-03-28 Richard Henderson <rth@redhat.com>
3890 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
3891 comparison should be done vs !=0 not >0 return code. Tidy cases.
3893 2002-03-28 Richard Henderson <rth@redhat.com>
3895 * c-decl.c (finish_function): New arg can_defer_p. Pass it
3896 on to c_expand_body.
3897 * c-tree.h (finish_function): Update decl.
3898 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
3900 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
3902 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
3904 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
3906 * rtlanal.c: Include flags.h
3907 (may_trap_p): Do not mark FP operations if trapping
3908 if !flag_trapping_math
3909 * Makefile.in (rtlanal.o): Add dependency on flag.h
3910 * ifcvt.c (noce_operand_ok): Avoid the lameness.
3912 2002-03-27 Zack Weinberg <zack@codesourcery.com>
3914 * mips.md: Use dconst1, not 1.0, as first argument of
3915 REAL_VALUE_LDEXP. Don't use union real_extract.
3917 2002-03-28 Alan Modra <amodra@bigpond.net.au>
3919 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
3920 rather than $target. Heed program_prefix and
3921 program_transform_name. Search for gas in cross-compiler case too.
3922 "test -x" rather than "test -f".
3923 (gcc_cv_ld): Likewise.
3924 (gcc_cv_nm): Heed program_prefix and program_transform_name.
3925 (gcc_cv_objdump): Likewise.
3926 * configure: Regenerate.
3928 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3930 * Makefile.in (attribs.o): Update.
3931 * attribs.c: Include langhooks.h.
3932 (decl_attributes): Use langhook.
3933 * c-decl.c (insert_default_attributes): Rename.
3934 * c-tree.h (c_insert_default_attributes): New.
3935 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
3936 (LANG_HOOKS_INITIALIZER): Update.
3937 * langhooks.h (struct lang_hooks): New hook.
3938 * tree.h (insert_default_attributes): Remove.
3940 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
3942 2002-03-27 Andreas Schwab <schwab@suse.de>
3944 * config/i386/i386.c (classify_argument): Also check for
3947 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3949 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
3952 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
3954 * i960.md (ret): Set PC.
3955 (nonlocal_goto): Fix expander.
3956 * builtins.c (epxand_builin_longjmp): Check that we've emitted
3959 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
3961 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
3964 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3966 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
3967 assigning to BLOCK_FOR_INSN directly.
3969 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
3971 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
3973 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3975 * c-common.c (c_expand_expr): Fix prototype.
3976 * c-common.h (c_expand_expr): Always declare, update.
3977 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3978 * c-objc-common.c (c_objc_common_init): No global hook.
3979 * expr.c (expand_expr): Use langhook.
3980 * expr.h (enum expand_modifier): Conditionally declare.
3981 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
3982 (LANG_HOOKS_INITIALIZER): Update.
3983 * langhooks.c (lhd_expand_expr): New.
3984 * langhooks.h (struct lang_hooks): New hook.
3985 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
3986 (lang_independent_init): Don't default hook.
3988 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3990 2002-03-27 Richard Henderson <rth@redhat.com>
3993 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
3994 TARGET_CONST_GP. Simplify conditions.
3996 2002-03-27 Richard Henderson <rth@redhat.com>
3998 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3999 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
4000 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
4002 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
4004 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
4005 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
4006 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
4007 Remove unnecessary masks.
4008 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
4009 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
4010 -mwindows, -mdll switches and their negations.
4012 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
4014 * gcc-common.c (lang_mark_false_label_stack): Remove.
4015 * ggc.h (lang_mark_false_label_stack): Similarly.
4017 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
4019 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
4021 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
4022 or __rtems_ is defined.
4024 2002-03-26 Richard Henderson <rth@redhat.com>
4026 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
4027 if a non-trivial load was emitted.
4028 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
4029 in high+extra+low case.
4031 2002-03-26 Richard Henderson <rth@redhat.com>
4033 * config.gcc (sparc*-solaris): Use float_format=sparc.
4035 2002-03-26 Richard Henderson <rth@redhat.com>
4037 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
4038 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
4039 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
4040 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
4041 (WINT_TYPE_SIZE): Fix at 32.
4043 2002-03-26 Richard Henderson <rth@redhat.com>
4045 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
4046 until after eh landing pad generation.
4047 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
4048 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
4050 2002-03-26 Richard Henderson <rth@redhat.com>
4052 * expr.h (ADD_PARM_SIZE): One more convert for INC.
4054 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
4056 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
4057 and warning switches.
4058 (cc1_options): Likewise.
4060 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
4062 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
4063 Restore more of the signal context. Set no_reg_stack_frame.
4064 * config/ia64/unwind-ia64.c (unw_state_record):
4065 Add no_reg_stack_frame, comments.
4066 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
4067 (uw_update_context): Adjust bsp when unwinding from leaf,
4068 but not signal frame.
4070 2002-03-26 David Edelsohn <edelsohn@gnu.org>
4072 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
4074 2002-03-26 Bob Wilson <bob.wilson@acm.org>
4076 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
4078 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
4081 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
4082 "Add a pool_range attribute", which was lost during the ARM/Thumb
4085 2002-03-26 Bob Wilson <bob.wilson@acm.org>
4087 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
4088 a register into the MAC16 accumulator.
4090 2002-03-26 Andrew Cagney <ac131313@redhat.com>
4092 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
4093 (Warning Options): Document -Wswitch-enum.
4094 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
4096 (warn_switch_enum): Define variables.
4097 * flags.h (warn_switch_enum): Declare variables.
4098 * stmt.c (expand_end_case_type): When warn_switch_enum /
4099 -Wswitch-enum, perform switch checks.
4102 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
4104 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
4105 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
4106 (reload_muladdsi_compare0_scratch): Delete.
4108 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
4110 * doc/install.texi (*-*-freebsd*): Update.
4112 2002-03-26 Richard Henderson <rth@redhat.com>
4114 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
4115 (SUB_PARM_SIZE): Cast DEC to ssizetype.
4117 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
4118 types from the normal argument frame.
4120 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
4121 variable sized objects by reference.
4122 (sparc_va_arg): Receive them by reference too.
4124 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
4126 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
4127 code to not restoring global registers.
4129 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
4131 * Makefile.in (ggc-common.o): Update.
4132 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
4133 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4134 * c-tree.h (c_mark_tree): New.
4135 * ggc-common.c: Include langhooks.h.
4136 (gcc_mark_trees): Use new langhook.
4137 * ggc-callbacks.c: Delete file.
4138 * ggc.h (lang_mark_tree): Remove.
4139 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
4140 (LANG_HOOKS_INITIALIZER): Update.
4141 * langhooks.h (struct lang_hooks): New hook.
4143 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4145 2002-03-25 Zack Weinberg <zack@codesourcery.com>
4147 * doc/cpp.texi: Exclude entire Top node from printed manual.
4148 Move option index after directive index. Insert page breaks
4149 before GFDL and concept index. Index environment variables
4150 with command line options.
4151 * doc/cppenv.texi: Use @vtable for environment variable list.
4152 Add paragraph explaining semantics of empty elements in path
4153 variables. Exclude a cross-reference to Fishkill from the
4154 manpage. Remove an unnecessary cross-reference of the entry
4155 right above the referer. Don't use @anchor in text that goes
4157 * doc/cppopts.texi: Cross-reference the environment variables
4158 section, not the specific environment variable, for consistency.
4160 2002-03-25 Richard Henderson <rth@redhat.com>
4162 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
4163 anywhere in the block. Don't refer to insns that have been
4164 removed from the chain. Iterate backward through the new insns.
4165 Don't refer to edges that have been removed.
4167 2002-03-26 Alan Modra <amodra@bigpond.net.au>
4169 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
4170 test for overflow of constant.
4172 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
4175 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
4176 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
4177 these patterns on arm_archv4.
4179 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
4181 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
4184 2002-03-25 Zack Weinberg <zack@codesourcery.com>
4186 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
4187 float_handled, float_handler, float_signal, set_float_handler,
4188 and do_float_handler. Set handler for SIGFPE to crash_signal.
4189 * toplev.h: Don't prototype do_float_handler.
4191 * c-lex.c: Fold parse_float into lex_number. Make warning
4192 about portability of hex float constants more informative, and
4193 don't issue it on top of a syntax error.
4194 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
4196 * real.h: Define REAL_VALUE_ABS here...
4197 * simplify-rtx.c: ... not here. Fold check_fold_consts,
4198 simplify_unary_real, simplify_binary_real, and
4199 simplify_binary_is2orm1 into their callers.
4200 * tree.c: Fold build_real_from_int_cst_1 into caller.
4202 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
4204 * tsystem.h: Include float.h here...
4205 * libgcc2.c: ... not here.
4207 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
4209 Fixes for: PR bootstrap/3591, target/5676
4210 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
4211 defined. Do not disable exceptions or rtti.
4212 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
4213 mcore.h. Disable exceptions and rtti, since they are not
4216 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
4218 * c-decl.c (maybe_build_cleanup): Remove.
4219 * expr.c (expand_expr): Use langhook.
4220 * langhooks-def.h (lhd_return_null_tree,
4221 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
4222 (LANGHOOKS_INITIALIZER): Update.
4223 * langhooks.c (lhd_return_null_tree): New.
4224 * langhooks.h (struct lang_hooks): New hook.
4225 * tree-inline.c (initialize_inlined_parameters): Use langhook.
4226 * tree.h (maybe_build_cleanup): Remove.
4228 2002-03-25 Jakub Jelinek <jakub@redhat.com>
4230 * regrename.c (build_def_use): Move recog_memoized
4231 before extract_insn.
4233 2002-03-25 Jakub Jelinek <jakub@redhat.com>
4236 * expr.c (emit_group_store): Handle storing into CONCAT.
4238 2002-03-25 Jakub Jelinek <jakub@redhat.com>
4240 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
4241 corresponding MATCH_DUP.
4243 2002-03-24 Richard Henderson <rth@redhat.com>
4245 * unroll.c (unroll_loop): Zero label_map.
4247 * gcse.c: Include except.h.
4248 * Makefile.in (gcse.o): Update.
4250 2002-03-24 Richard Henderson <rth@redhat.com>
4252 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
4253 Do resolve_unique_section before shared data clause.
4255 2002-03-24 Richard Henderson <rth@redhat.com>
4257 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
4259 2002-03-24 Richard Henderson <rth@redhat.com>
4261 * recog.c (peephole2_optimize): Split blocks when EH insns are
4262 generated in the middle of a block. Do global life update if
4265 2002-03-24 Richard Henderson <rth@redhat.com>
4267 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
4269 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
4272 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
4273 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
4274 (init_dependency_output): Don't make no_output decision here.
4276 2002-03-24 Andrew Cagney <ac131313@redhat.com>
4278 * stmt.c (check_for_full_enumeration_handling): Remove tests of
4279 warn_switch. Update description.
4280 (expand_end_case_type): Call check_for_full_enumeration_handling
4283 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4285 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
4286 (m68hc11_split_move): Call it to see if the source and destination
4287 operands use the same direction auto inc/dec mode, otherwise make the
4288 source an offsetable memory operand and generate an add.
4290 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4292 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
4293 register for operand 2.
4294 ("*subsi3_zero_extendqi"): Likewise.
4295 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
4296 bits so that it is compatible with a pop.
4297 ("*andhi3_gen"): Likewise.
4298 ("xorhi3"): Likewise.
4300 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
4302 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
4304 (cpp_post_options): ... not here.
4306 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
4307 Aldy Hernandez <aldyh@redhat.com>
4309 Removal of separate preprocessor cpp0.
4311 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
4312 cpp0, install-common): Update.
4313 * c-common.c (flag_preprocess_only): New.
4314 (c_common_init): Preprocess for -E.
4315 * c-common.h (flag_preprocess_only): New.
4316 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
4317 * c-objc-common.c (c_init_decl_processing): Exit quickly
4318 for NULL return from c_common_init.
4319 * cpplib.h (cpp_preprocess_file): New.
4320 * cppmain.c (main, general_init, pfile, progname): Remove.
4321 (do_preprocessing): Rename cpp_preprocess_file, don't call
4322 cpp_finish. Don't close stdout here.
4323 (setup_callbacks): Update prototype.
4324 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
4326 * tradcpp.c (main): Ignore -quiet.
4328 * lang-specs.h (default_compilers): Preprocess with cc1obj.
4330 2002-03-24 Richard Henderson <rth@redhat.com>
4332 PR optimization/5742
4333 * machmode.def: Add inner mode field to complex modes.
4334 * config/mips/mips.c (mips_function_value): Always define. Add
4335 new argument to handle libcalls.
4336 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
4337 (FUNCTION_VALUE): Likewise.
4338 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
4339 * config/mips/mips-protos.h: Update.
4341 2002-03-23 Richard Henderson <rth@redhat.com>
4343 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
4344 * config/sparc/sparc-protos.h: Update.
4345 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
4347 2002-03-23 Richard Henderson <rth@redhat.com>
4349 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
4350 _start or _init begins the text segment.
4352 2002-03-23 David Edelsohn <edelsohn@gnu.org>
4354 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
4355 not HOST_WIDEST_INT.
4356 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
4358 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
4361 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
4362 operand argument to output_return_instruction.
4363 * arm.c (arm_print_operand, case 'd'): If the operand is
4364 const_true_rtx then just return.
4365 (arm_print_operand, case 'D'): If the operand is const_true_rtx
4368 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4370 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
4371 (Warning Options): Document -Wswitch-default.
4372 * toplev.c (W_options): Add -Wswitch-default. Update comment on
4374 (warn_switch_default): Define variable.
4375 (warn_switch): Update comment.
4376 * flags.h (warn_switch_default): Declare variable.
4377 (warn_switch): Update comment.
4378 * stmt.c (expand_end_case): Check for and, when
4379 warn_switch_no_default, warn of a missing default case.
4381 2002-03-23 Alan Modra <amodra@bigpond.net.au>
4383 * real.h (N): Special case 128 bit doubles.
4385 * combine.c (simplify_comparison): When widening modes, ignore
4386 sign extension on CONST_INTs.
4388 2002-03-22 Bob Wilson <bob.wilson@acm.org>
4390 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
4391 passed to adjust_address. Fix comment formatting.
4394 2002-03-22 Zack Weinberg <zack@codesourcery.com>
4396 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
4397 Always make REAL_VALUE_TYPE a struct containing an array of
4398 HOST_WIDE_INT, not a double. Tidy up the code deciding how
4399 big it is. Don't declare or use union real_extract.
4401 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
4402 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
4403 (print_operand), config/arm/arm.c (output_move_double),
4404 config/arm/arm.md (consttable_4, consttable_8),
4405 config/romp/romp.c (output_fpops), config/s390/s390.h
4406 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
4407 (xtensa_output_literal): Don't use union real_extract.
4409 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
4410 (sfmode_constant_to_ulong), config/ns32k/merlin.h
4411 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
4412 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
4413 (PRINT_OPERAND): Don't use local version of union
4416 * config/convex/convex.c (check_float_value), config/vax/vax.c
4417 (vax_float_literal), config/m88k/m88k.md (divdf3),
4418 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
4419 config/pdp11/pdp11.c (output_move_quad): Don't do host
4420 arithmetic on target floating point quantities.
4422 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
4423 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
4425 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
4426 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
4428 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
4429 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
4431 * print-rtl.c (print_rtx): Disable code which needs
4432 floating-point emulator.
4433 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
4434 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
4435 depending on HOST_FLOAT_FORMAT to be defined properly.
4437 * config/1750a/1750a.c (get_double, float_label): Delete.
4438 (print_operand): Delete huge commented-out chunk. Use
4439 REAL_VALUE_TO_DECIMAL.
4440 * config/1750a/1750a-protos.h: Delete prototypes of deleted
4442 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
4444 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
4445 Use REAL_VALUE_TO_DECIMAL as ELF version does.
4446 * config/m88k/m88k.c (real_power_of_2_operand,
4447 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
4448 real_extract out of the union; run the input through
4449 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
4450 from that into the union.
4451 * config/pdp11/pdp11.c (output_move_double): Rearrange
4452 parentheses to make automatic indenter happy.
4454 * doc/tm.texi (Cross-compilation): Rename node to "Floating
4455 Point" and rewrite to describe current situation. Also adjust
4456 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
4458 * doc/rtl.texi: Adjust cross reference.
4460 2002-03-22 Bob Wilson <bob.wilson@acm.org>
4462 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
4463 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
4464 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
4465 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
4466 prevent use of sp as a reload register.
4467 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
4468 non_acc_reg_operand.
4469 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
4470 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
4471 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
4472 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
4474 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
4476 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
4477 * cpplex.c (unterminated): Delete.
4478 (parse_string): No string literal may extend over multiple
4479 lines. Suppress the error when preprocessing assembly.
4480 * cppmain.c (scan_translation_unit): Strings are single-line.
4482 * doc/cpp.texi: Update to match.
4484 2002-03-22 Jakub Jelinek <jakub@redhat.com>
4486 PR optimization/5854
4487 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
4489 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
4490 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
4491 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
4492 const0 if scratch register was not allocated.
4493 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
4494 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
4496 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
4497 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
4498 with GEN_INT (...) everywhere. Remove constraints in define_split
4500 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
4501 require scratch register for setting 0 into regs/non-pushable memory.
4503 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
4505 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
4506 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
4508 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
4510 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
4511 * cppinit.c (cpp_create_reader): On by default.
4512 (cpp_handle_option): Handle -W[no-]endif-labels.
4513 (cpp_post_options): Also enable if -pedantic.
4514 * cpplib.c (do_else): Use it.
4515 (do_endif): Likewise.
4516 * doc/cppopts.texi: Document new option.
4517 * doc/invoke.texi: Document new option.
4519 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
4521 * config/i386/i386.c, config/i386/i386.md: Change all occurences
4522 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
4524 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
4526 * flow.c (calculate_global_regs_live): Clear aux fields of
4529 2002-03-22 Jakub Jelinek <jakub@redhat.com>
4531 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
4532 REG or MEM subregs, pass rtx * instead of rtx to it.
4533 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
4534 rtx * instead of rtx to alter_subreg.
4535 * config/m32r/m32r.c (gen_split_move_double): Likewise.
4536 * config/pj/pj.c (pj_output_rval): Likewise.
4538 2002-03-22 Richard Henderson <rth@redhat.com>
4541 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
4542 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
4543 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
4544 (ia64_expand_prologue): Look at int_regs, not words, for number
4545 of incomming int regs.
4547 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
4549 * expr.c (expand_expr): A RESULT_DECL is part of a call.
4551 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
4553 * toplev.c (flag_loop_optimize, flag_crossjumping):
4554 New static variables.
4555 (rest_of_compilation): Conditionalize crossjumping and
4557 (parse_options_and_default_flags): Default loop_optimize and
4559 (lang_independent_options): Add -fcrossjumping and -floop-optimize
4560 * invoke.texi (crossjumping, loop-optimize): Document.
4562 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4564 * real.c (eiisneg): Move outside #ifdef NANS.
4566 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
4568 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
4569 frequencies match; avoid match on different loop depths.
4570 (try_crossjump_to_bb): Kill tests that no longer brings time
4572 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
4574 (split_edge): Likewise.
4576 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
4579 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
4580 * cfgrtl.c: Include insn-config.h
4581 (split_block) Dirtify block in presence of conditional execution
4583 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4585 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
4586 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
4587 (function_arg): Constify CUMULATIVE_ARGS.
4588 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
4589 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
4590 (UNITS_PER_DOUBLE): New macro.
4591 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
4592 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
4593 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
4594 fp_regs and stack_words.
4595 (EABI_FLOAT_VARARGS_P): New macro.
4596 * config/mips/mips.c (struct mips_arg_info): New.
4597 (mips_arg_info): New function.
4598 (function_arg_advance): Use it. Add adjustment instructions here
4599 rather than in function_arg.
4600 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
4601 for VOIDmode at the beginning of the function.
4602 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
4603 (function_arg_pass_by_reference): Likewise.
4604 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
4605 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
4606 (mips_va_start): Likewise. Use the new stack_words field of
4607 CUMULATIVE_ARGS to set up overflow area. Reformat.
4608 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
4609 doubles and other types, aligning the overflow pointer for non-doubles
4610 too. Remove some code duplication. Replace hard-coded constants.
4612 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4614 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
4615 (CLASS_UNITS): Undefine.
4616 (CLASS_MAX_NREGS): Use FP_INC.
4617 * config/mips/mips.c (compute_frame_size): Likewise.
4618 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
4620 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
4622 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
4623 prototype, and handle lexing numbers and identifiers.
4624 (parse_identifier): Update to new form of parse_slow.
4625 (parse_number): Fast path only, use parse_slow otherwise.
4626 (_cpp_lex_direct): Update calls to parse_number.
4628 2002-03-21 DJ Delorie <dj@redhat.com>
4630 * bb-reorder.c (make_reorder_chain_1): Protect against
4631 when redundant edges are omitted.
4632 * predict.c (dump_prediction): Likewise.
4634 2002-03-21 Richard Henderson <rth@redhat.com>
4637 * fixinc/inclhack.def (solaris_stdio_tag): New.
4638 * fixinc/fixincl.x: Regenerate.
4640 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
4643 * c-typeck.c (process_init_element): Flag non-static
4644 initialization of a flexible array member as illegal.
4646 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4648 * config/rs6000/t-linux64: New.
4649 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
4650 t-ppccomm. Use t-rs6000 and t-linux64.
4651 (powerpc64-*-gnu* <tmake_file>): Likewise.
4652 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
4653 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
4654 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
4656 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
4658 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
4659 flag_really_no_inline instead of optimize == 0.
4661 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
4663 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
4665 * flags.h (flag_really_no_inline): New.
4667 * c-common.c (c_common_post_options): Initialize
4668 flag_really_no_inline.
4670 * toplev.c (flag_really_no_inline): New.
4672 2002-03-21 Jakub Jelinek <jakub@redhat.com>
4674 * config/avr/avr.md (length): Fix length computation for
4675 conditional branches.
4677 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
4679 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
4680 sdbout.o, profile.o): Update.
4681 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
4683 * c-common.h (gettags): Move here from tree.h.
4684 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
4685 insert_block, getdecls, kept_level_p, global_bindings_p): New.
4686 * dbxout.c (dbxout_init): Use getdecls langhook.
4687 * expr.c (expand_expr): Use insert_block langhook.
4688 * fold-const.c: Include langhooks.h.
4689 (fold_range_test, fold_binary_op_with_conditional_arg,
4690 fold): Use global_bindings_p langhook.
4691 * integrate.c (expand_inline_function): Use insert_block langhook.
4692 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
4693 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
4694 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
4695 LANG_HOOKS_GETDECLS): New.
4696 (LANG_HOOKS_INITIALIZER): Update.
4697 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
4699 * langhooks.h (struct lang_hooks_for_decls): New.
4700 (struct lang_hooks): Update.
4701 * profile.c: Include langhooks.h.
4702 (output_func_start_profiler): Use new langhooks.
4703 * sdbout.c: Include langhooks.h.
4704 (sdbout_init, sdbout_finish): Use getdecls langhook.
4705 * stmt.c: Include langhooks.h.
4706 (expand_fixup, fixup_gotos): Use new langhooks.
4707 * stor-layout.c: Include langhooks.h.
4708 (variable_size): Use global_bindings_p langhook.
4709 * toplev.c (compile_file): Use getdecls langhook.
4710 * tree-inline.c (remap_block): Use insert_block langhook.
4711 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
4712 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
4714 2002-03-21 Richard Henderson <rth@redhat.com>
4716 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
4717 constants in .data when -fpic.
4719 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4721 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
4724 2002-03-21 Tom Tromey <tromey@redhat.com>
4726 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
4728 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4730 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
4732 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
4734 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
4735 Richard Henderson <rth@redhat.com>
4738 * c-common.c (c_expand_expr): Preserve result of a statement
4739 expression if needed.
4741 2002-03-21 Jakub Jelinek <jakub@redhat.com>
4744 * genrecog.c (maybe_both_true_mode): Remove.
4745 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
4746 * machmode.def (Pmode): Likewise.
4748 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
4750 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
4751 (nonlocal_mentioned_p_1): New function.
4752 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
4753 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
4754 (mark_constant_function): Recognize pure functions.
4755 * rtl.h (global_reg_mentioned_p): New prototype.
4756 * rtlanal.c (global_reg_mentioned_p,
4757 global_reg_mentioned_p_1): New function.
4759 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4761 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
4763 * fixinc/fixincl.x: Regenerate.
4765 2002-03-20 Jason Merrill <jason@redhat.com>
4767 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
4769 2002-03-20 Michael Meissner <meissner@redhat.com>
4771 * doc/invoke.texi (Optimize Options): Document that -O2 sets
4774 2002-03-20 Bob Wilson <bob.wilson@acm.org>
4776 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
4777 ".literal_position" directive before the constant pool.
4779 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4781 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
4782 Add Craig Rodrigues.
4783 Add Brad Lucier to testers.
4785 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4788 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
4790 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
4791 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
4792 instead of insn_extract.
4794 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4797 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
4799 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
4800 stmt if some case has been output.
4802 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4805 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
4806 movsfcc_1, movdfcc_1): Add %O2.
4807 * config/i386/i386.c (print_operand): Handle %ON.
4808 Print . before float condition codes in Sun as cmov syntax.
4809 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
4810 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
4813 2002-03-20 Philip Blundell <pb@nexus.co.uk>
4815 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
4816 return instruction if PC was popped.
4818 2002-03-20 Bob Wilson <bob.wilson@acm.org>
4820 * config/xtensa/xtensa.md: Remove unused type attributes.
4821 (adddi_carry, subddi_carry): Change type attribute to "multi".
4823 2002-03-19 Dale Johannesen <dalej@apple.com>
4825 PR optimization/5999, middle-end/5731
4826 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
4827 multiplications by reciprocals.
4829 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
4831 * Makefile.in: Update.
4832 * c-common.c: Include langhooks.h.
4833 (inline_forbidden_p): Use new hook.
4834 * diagnostic.c: Include langhooks.h.
4835 (format_with_decl, announce_function,
4836 default_print_error_function): Use new hook.
4837 * dwarf2out.c (dwarf2_name): Use new hook.
4838 * function.c: Include langhooks.h.
4839 (init_function_start): Use new hook.
4840 * langhooks-def.h (lhd_decl_printable_name): New.
4841 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
4842 (LANGHOOKS_INITIALIZER): Update.
4843 * langhooks.c (lhd_decl_printable_name): New.
4844 * langhooks.h (struct lang_hooks): New hook.
4845 * toplev.c (decl_name, decl_printable_name): Remove.
4846 (open_dump_file): Use new hook.
4847 (process_options): Remove old hook.
4848 * tree.h (decl_printable_name): Remove.
4850 * objc-act.c (objc_init): Remove old hook.
4851 (objc_printable_name): Export.
4852 * objc-act.h (objc_printable_name): New.
4853 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
4855 2002-03-19 Jim Blandy <jimb@redhat.com>
4857 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
4858 the start_source_file debug hook, not the current line number.
4860 2002-03-19 Richard Henderson <rth@redhat.com>
4862 * flow.c (EH_USES): Provide default.
4863 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
4864 * doc/tm.texi (EH_USES): New.
4866 * config/ia64/ia64.c (ia64_eh_uses): New.
4867 * config/ia64/ia64-protos.h: Update.
4868 * config/ia64/ia64.h (EH_USES): New.
4870 2002-03-19 Richard Henderson <rth@redhat.com>
4872 * varasm.c (output_constant_def): Fix stupid typo.
4874 2002-03-19 Richard Henderson <rth@redhat.com>
4877 * except.c (current_function_has_exception_handlers): New.
4878 * except.h: Declare it.
4879 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
4880 Combine tests that disable all sibcalls for the function.
4882 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
4884 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
4887 2002-03-19 Richard Henderson <rth@redhat.com>
4890 * config/ia64/ia64.c: Revert 2002-03-01 patch.
4891 * config/ia64/ia64.h (INIT_EXPANDERS): New.
4893 2002-03-19 Jim Blandy <jimb@redhat.com>
4895 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
4896 name, even if the replacement list contains no tokens, as required
4899 2002-03-19 Jason Merrill <jason@redhat.com>
4901 * varasm.c (globalize_decl): Get the name from the RTL, not
4902 DECL_ASSEMBLER_NAME.
4904 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
4906 2002-03-19 Bob Wilson <bob.wilson@acm.org>
4908 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
4909 subdi_carry): Define.
4911 2002-03-19 David Edelsohn <edelsohn@gnu.org>
4913 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
4914 about -fpic/-fPIC if extra_warnings set.
4916 2002-03-19 David Edelsohn <edelsohn@gnu.org>
4918 * expr.c (expand_expr): Sign-extend CONST_INT generated from
4919 TREE_STRING_POINTER.
4920 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
4922 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4924 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
4925 in favor of SP if FRAME_POINTER_REQUIRED is false.
4927 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
4929 * emit-rtl.c (gen_int_mode): New function.
4930 * rtl.h: Prototype for it.
4931 * combine.c (make_extraction, simplify_comparison), expmed.c
4932 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
4933 (convert_modes, store_field), optabs.c (expand_fix),
4934 simplify-rtx.c (neg_const_int, simplify_unary_real),
4936 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
4937 Use it instead of GEN_INT (trunc_int_for_mode (...)).
4939 2002-03-19 Jakub Jelinek <jakub@redhat.com>
4942 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
4943 convert_parm_for_inlining.
4944 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
4946 * langhooks-def.h: Likewise.
4947 * objc/objc-lang.c: Likewise.
4948 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
4950 * tree-inline.c (initialize_inlined_parameters):
4951 Call convert_parm_for_inlining lang hook if needed.
4952 * c-typeck.c (c_convert_parm_for_inlining): New function.
4953 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
4955 2002-03-18 Mark Mitchell <mark@codesourcery.com>
4957 * calls.c (precompute_arguments): Do not assume that temporaries
4958 can be destroyed after expanding the argument.
4959 (expand_call): Likewise.
4961 2002-03-15 Eric Christopher <echristo@redhat.com>
4963 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
4964 Fix register preference on last change.
4965 * config/mips/mips.c (mips_return_in_memory): New function.
4966 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
4967 * config/mips/mips-protos.h: Declare.
4968 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
4969 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
4971 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4973 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
4975 (anddi3, iorsi3): Likewise.
4977 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
4978 use %gprel for symbols that are going to be placed in linkonce
4981 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
4982 RETURN_ADDRESS_POINTER_REGNUM to $ra.
4983 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
4984 not needed. Disregard leaf_function_p().
4985 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
4986 mips16 frame pointer.
4987 * config/mips/mips.md (store ra): Only to small SP offsets.
4988 2001-08-22 Graham Stott <grahams@redhat.com>
4989 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
4990 return a REG rtx for the return address register.
4992 2002-03-18 Bob Wilson <bob.wilson@acm.org>
4994 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
4995 constant-pool addresses as "mode-dependent".
4996 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
4998 2002-03-18 Jakub Jelinek <jakub@redhat.com>
5001 * expr.c (emit_group_load): Use extract_bit_field if
5002 needed for CONCAT arguments.
5004 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
5007 * arm.md (tablejump): Make this a define_expand. For PIC add the
5008 offset to the base of the table.
5009 (thumb_tablejump): Matcher for Thumb tablejump insn.
5010 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
5011 as the difference of two labels.
5012 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5013 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
5015 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
5016 * arm.c (get_jump_table_size): If the table is not in the text
5017 section, return zero.
5019 2002-03-18 Bernd Schmidt <bernds@redhat.com>
5021 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
5023 (arm_reload_out_hi): Use gen_lowpart instead of
5024 gen_rtx_SUBREG to access QImode components.
5025 * config/arm/arm.md: Disable zero_extend split for QImode
5026 subregs in BIG_ENDIAN mode.
5027 (storehi_bigend): Match use of least significant byte.
5028 (storeinthi): Remove extraneous SUBREG.
5029 Add missing construction of operands[2].
5030 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
5031 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
5032 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
5034 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
5036 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
5039 2002-03-17 Richard Henderson <rth@redhat.com>
5041 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
5044 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
5046 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
5047 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
5049 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5051 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
5053 * predict.c (estimate_bb_frequencies): Delete unused variables.
5055 2002-03-17 Richard Henderson <rth@redhat.com>
5057 * config/ia64/ia64.c (ia64_attribute_table): Move before
5058 targetm definition. Make static.
5060 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
5062 * c-common.h (yyparse, c_common_parse_file): New.
5063 * c-lang.c: Include c-common.h.
5064 (LANG_HOOKS_PARSE_FILE): Redefine.
5065 * c-lex.c: Include c-common.h.
5066 (yyparse): Rename c_common_parse_file. Call yyparse.
5067 * c-parse.in (yyparse): Remove macro.
5068 * c-tree.h (yyparse_1): Remove.
5069 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
5070 (LANG_HOOKS_INITIALIZER): Update.
5071 * langhooks.h (struct lang_hoooks): New hook parse_file.
5072 * toplev.c (compile_file): Use parse_file hook.
5073 * tree.h (yyparse): Remove.
5074 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
5076 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
5078 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
5079 float_truncate, not fix.
5080 ("*truncdfsf2_real"): Ditto.
5081 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
5083 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
5085 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
5087 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
5088 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
5089 where appropriate. Make the second reference to
5090 leaf_function_p a function call, as intended. Reindented.
5092 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
5093 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
5095 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
5096 add register to non-constant into sp.
5098 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
5099 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
5100 (mips16_gp_pseudo_rtx): Lose.
5101 (INIT_EXPANDERS): Deleted.
5102 * config/mips/mips.c (mips_init_machine_status): New.
5103 (mips_free_machine_status): New.
5104 (mips_mark_machine_status): New.
5105 (override_options): Set them.
5106 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
5107 (struct machine_function): ... new. Replaced all references.
5108 (mips_add_gc_roots): Don't mark them.
5109 (embedded_pic_fnaddr_reg): New, extracted from...
5110 (embedded_pic_offset): ... here.
5111 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
5114 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
5116 * cppinit.c: Revert -MD removal.
5118 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5120 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
5121 soft registers by default for 68HC12.
5122 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
5123 when compiling with -fomit-frame-pointer.
5124 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
5125 (expand_epilogue): Likewise.
5126 (m68hc11_gen_rotate): Use exg when rotating by 8.
5128 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5130 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
5131 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
5132 (splits): Remove unused add splits.
5133 ("*addhi3_68hc12"): Tune constraints.
5134 ("addhi_sp"): Try to use X instead of Y in all cases and if the
5135 constant fits in 8-bits and D is dead use abx/aby instructions.
5136 ("*addhi3"): Remove extern declaration of ix_reg.
5137 ("*subsi3"): Optimize and provide new split.
5138 ("subhi3"): Cleanup.
5139 ("*subhi3_sp"): Avoid saving X if we know it is dead.
5140 (arith splits): For 68hc12 save the address register on the stack
5141 and do the arithmetic operation with a pop.
5143 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5145 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
5146 allocating QImode in address registers.
5147 ("*movqi_m68hc11"): Likewise.
5149 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
5151 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
5153 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
5155 * cppinit.c (print_help): Display -MD and -MMD.
5156 Don't display usage string. Update assertion syntax and
5158 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
5159 (cpp_handle_option): Update.
5161 2002-03-15 Chris Demetriou <cgd@broadcom.com>
5163 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
5164 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
5165 and define it so that regardless of target CPU size,
5166 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
5167 of "int" rather than "long."
5169 2002-03-15 Richard Henderson <rth@redhat.com>
5171 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
5174 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5176 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
5177 ("tstqi" split): Avoid using memory for tstqi on address register.
5178 (splits): Remove constraints.
5179 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
5180 ("cmpdf", "cmpsf"): Remove since not used.
5181 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
5182 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
5184 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5186 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
5187 ("neghi2"): Tighten constraints.
5188 ("one_cmplsi2"): Optimize and simplify split.
5189 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
5191 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5193 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
5194 and split of AND operation to clear the upper bits.
5195 ("*logicalsi3_zextqi"): Likewise.
5196 ("*logicallhi3_zexthi_ashift8"): Likewise.
5197 ("*logicalsi3_silshr16"): Likewise.
5198 ("logicalsi3_silshl16"): Likewise.
5199 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
5201 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5203 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
5204 (m68hc11_indirect_p): New function.
5205 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
5206 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
5208 (asm_print_register): Likewise.
5209 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
5210 (m68hc11_indirect_p): Declare.
5211 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
5212 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
5213 (TARGET_SWITCHES): New option -mrelax.
5214 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
5216 ("iorsi3", "xorsi3"): Likewise.
5217 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
5218 ("*andhi3_mem"): New to handle destination in memory with bclr
5219 and a scratch register.
5220 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
5221 ("*andhi3_const"): New when operand2 is constant.
5222 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
5223 ("*andhi3_gen"): Cleanup of the old "andhi3".
5224 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
5225 ("xorqi3"): Update constraints.
5227 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5229 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
5230 for reg_equiv_memory_loc when the operand is a register that does
5231 not get a hard register (stack location).
5232 (tst_operand): After reload, accept all memory operand.
5233 (symbolic_memory_operand): Fix detection of symbolic references.
5234 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
5235 accept symbols and any constant.
5237 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5239 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
5240 note on the insn that sets the soft frame register.
5241 (must_parenthesize): ix and iy are also reserved names.
5242 (print_operand_address): One more place where parenthesis are required
5243 to avoid confusion with register names.
5244 (m68hc11_gen_movhi): Allow push of stack pointer.
5245 (m68hc11_check_z_replacement): Fix handling of parallel with a
5247 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
5248 the replacement register is.
5249 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
5250 and D8_REGS classes.
5251 (MODES_TIEABLE_P): All modes are tieable except QImode.
5253 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5255 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
5256 (___subdi3): Likewise.
5257 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
5258 (__map_data_section): Optimize 68hc11 case.
5260 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5262 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
5263 than a shift to avoid adding a register with itself.
5264 (m68hc11_memory_move_cost): Take into account NO_REGS.
5265 (m68hc11_register_move_cost): Update and use memory move cost
5267 (m68hc11_address_cost): Make cost of valid offset not 0 so that
5268 it gives more opportunities to cse to optimize.
5269 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
5270 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
5272 2002-03-15 Mark Mitchell <mark@codesourcery.com>
5274 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
5275 * c-common.def (CLEANUP_STMT): New tree node.
5276 * c-common.h (CLEANUP_DECL): New macro.
5277 (CLEANUP_EXPR): Likewise.
5278 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
5279 * expr.c (expand_expr): Tidy.
5280 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
5281 * tree-inline.c (initialize_inlined_parameters): Clean up
5282 new local variables.
5284 2002-03-15 Jakub Jelinek <jakub@redhat.com>
5287 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
5288 before movrXX only, use reg_overlap_mentioned_p.
5289 Only special case NE if just one insn can be generated.
5291 2002-03-15 Jason Merrill <jason@redhat.com>
5293 * varasm.c (assemble_variable): Call resolve_unique_section before
5294 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
5297 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
5300 * arm.md (split pattern for thumb shiftable immediates): Add comment
5301 explaining non-obvious test.
5303 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
5306 * arm.md (movaddr, movaddr_insn): Delete.
5308 2002-03-15 Jason Merrill <jason@redhat.com>
5310 * toplev.c (wrapup_global_declarations): Clarify variable handling.
5311 -fkeep-static-consts doesn't apply to comdats.
5313 2002-03-14 Richard Henderson <rth@redhat.com>
5315 * c-decl.c: Include c-pragma.h.
5316 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
5317 (finish_function): Tidy.
5318 * c-pragma.c: Include c-common.h.
5319 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
5320 (handle_pragma_weak): Use them.
5321 (init_pragma): Register pending_weaks.
5322 * c-pragma.h (maybe_apply_pragma_weak): Declare.
5323 * print-tree.c (print_node): Print DECL_WEAK.
5324 * varasm.c (mark_weak_decls): Remove.
5325 (remove_from_pending_weak_list): Remove.
5327 (asm_emit_uninitialised): Call globalize_decl for weak commons.
5328 (weak_decls): Make a tree_list.
5329 (declare_weak): Cons weak_decls directly.
5330 (globalize_decl): Remove weak_decls elements directly.
5331 (weak_finish): Simplify weak_decls walk. Don't weaken unused
5332 symbols. Don't pretend to handle aliases.
5333 (init_varasm_once): Update weak_decls registry.
5334 * Makefile.in: Update dependencies.
5336 2002-03-14 Richard Henderson <rth@redhat.com>
5339 * config/ia64/ia64.c: Include tm_p.h last.
5340 (gen_nop_type): Remove duplicate definition.
5341 (cycle_end_fill_slots): Set sched_data for second L slot.
5342 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
5343 (nop_cycles_until): Fix typos.
5345 2002-03-15 Jakub Jelinek <jakub@redhat.com>
5347 PR optimization/5891
5348 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
5350 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
5352 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
5353 descriptors correctly.
5355 2002-03-14 Michael Meissner <meissner@redhat.com>
5357 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
5358 100, allowing MAX_UNROLLED_INSNS to be overridden.
5360 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
5363 * unroll.c (params.h): Include.
5364 (MAX_UNROLLED_INSNS): Delete, now in params.h.
5366 * doc/invoke.texi (--param max-unroll-insns): Document.
5368 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
5370 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
5372 * arm.md: Fix warnings about constraints in peepholes and splits.
5374 2002-03-14 Zack Weinberg <zack@codesourcery.com>
5376 * cpphash.h (struct lexer_state): Remove line_extension member.
5377 * cpplib.c (dequote_string, do_linemarker): New functions.
5378 (linemarker_dir): New data object.
5379 (DIRECTIVE_TABLE): No longer need to interpret #line in
5380 preprocessed source. Delete obsolete comment about return
5382 (end_directive, directive_diagnostics, _cpp_handle_directive):
5383 Don't muck with line_extension.
5384 (directive_diagnostics): No need to issue warnings for
5386 (_cpp_handle_directive): Issue warnings for linemarkers here,
5387 when appropriate. Dispatch linemarkers to do_linemarker, not
5389 (do_line): Code to handle linemarkers split out to do_linemarker.
5390 Convert escape sequences in filename argument, both places.
5392 * cppmacro.c (quote_string): Rename cpp_quote_string and
5393 export. All callers changed.
5394 * cpplib.h (cpp_quote_string): Prototype.
5395 * cppmain.c (print_line): Call cpp_quote_string on to_file
5398 * doc/cpp.texi: Document that escapes are now interpreted in
5399 #line and in linemarkers, and that non-printing characters are
5400 converted to octal escapes when linemarkers are generated.
5402 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
5404 * emit-rtl.c (try_split): Use delete_insns.
5405 * recog.c (split_all_insns): Fix terminating condition.
5407 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
5408 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5411 * arm.c (arm_output_epilogue): Fix floating-point register save
5412 adjustment when using a frame pointer.
5414 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
5416 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
5417 * config/mips/mips.c (compute_frame_size): Retrofit them here.
5418 (save_restore_insns, mips_expand_epilogue): And here.
5419 (build_mips16_call_stub): And here.
5420 (mips_function_value): Use the new macros to decide whether a single
5421 or complex float can be returned in floating-point registers. Return
5422 a parallel rtx in the complex case.
5424 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
5426 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
5427 call after liveness analysis.
5429 * recog.c (split_insn): Use delete_insn_and_edges.
5431 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
5432 instructions to have branch prediction notes.
5433 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
5435 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
5437 * configure.in: Don't pass -Wno-long-long to a ADA compiler
5438 that doesn't support it.
5439 * configure: Regenerate.
5441 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5444 * config/sparc/sparc.md (normal_branch, inverted_branch,
5445 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
5446 inverted_fp_branch): Adjust calls to output_cbranch.
5447 Set length attribute.
5448 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
5449 output_v9branch. Set length attribute.
5450 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
5452 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
5453 (output_cbranch): Likewise. Handle far branches.
5454 (output_v9branch): Handle far branches.
5455 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
5457 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
5458 noov_compare64_op predicates.
5460 2002-03-13 Jason Merrill <jason@redhat.com>
5462 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
5463 into the function and constify it.
5464 * gthr-dce.h, gthr-solaris.h: Likewise.
5466 2002-03-13 David Edelsohn <edelsohn@gnu.org>
5468 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
5469 * config/rs6000/rs6000.c (rs6000_va_arg): Use
5470 std_expand_builtin_va_arg if not ABI_V4.
5472 2002-03-13 Jason Merrill <jason@redhat.com>
5474 * varasm.c (globalize_decl): New fn.
5475 (assemble_start_function): Use it.
5476 (asm_emit_uninitialized): Use it.
5477 (assemble_alias): Use it.
5478 (assemble_variable): Use it.
5480 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
5482 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
5483 2002-03-12 internal visibility change.
5484 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
5485 visibility into SYMBOL_REF_FLAG.
5487 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
5489 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
5490 VOIDmode operand. Add compile-time optimization for constant results.
5492 2002-03-12 Jason Merrill <jason@redhat.com>
5494 * c-typeck.c (convert_for_assignment): Don't allow conversions
5495 between pointers and references. Only allow lvalues to convert to
5498 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
5500 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
5501 before prologue, to avoid scheduling problems.
5503 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5505 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
5506 (ELIMINABLE_REGS): Add sfp->sp.
5507 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
5509 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5511 PR optimization/5892
5512 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
5514 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5516 * loop.c (basic_induction_var): Don't call convert_modes if mode
5517 classes are different.
5519 2002-03-12 Richard Henderson <rth@redhat.com>
5521 PR optimization/5901
5522 * function.c (reposition_prologue_and_epilogue_notes): Position
5523 the markers after/before the last/first insn not deleted.
5525 2002-03-12 Richard Henderson <rth@redhat.com>
5527 PR optimization/5878
5528 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
5529 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
5530 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5532 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
5533 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
5534 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
5536 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
5537 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
5538 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
5539 also. Don't set it if not flag_pic.
5540 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
5541 to be INVALID_REGNUM when not used.
5543 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
5545 * expmed.c (store_bit_field): Reset alias set for memory.
5546 (extract_bit_field): Same.
5548 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5550 * c-common.c (c_tree_code_type, c_tree_code_length,
5551 c_tree_code_name, add_c_tree_codes): Delete.
5552 * c-common.h (add_c_tree_codes): Delete.
5553 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
5555 * c-objc-common.c (c_objc_common_init): Don't call
5556 add_c_tree_codes, instead set lang_unsafe_for_reeval.
5557 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
5558 objc_tree_code_name, add_objc_tree_codes): Delete.
5559 (objc_init): Don't call add_objc_tree_codes.
5560 * objc/objc-lang.c (tree_code_type, tree_code_length,
5561 tree_code_name): Define.
5562 * toplev.c (lang_independent_init): Don't set
5563 tree_code_length[IDENTIFIER_NODE].
5564 * tree.c (tree_code_type, tree_code_length, tree_code_name):
5565 Delete definitions, moved to language front-ends.
5566 * tree.def (IDENTIFIER_NODE): Hardwire the length.
5567 * tree.h (tree_code_type, tree_code_length, tree_code_name):
5569 (tree_code_length): Change type to unsigned char.
5571 2002-03-12 Richard Henderson <rth@redhat.com>
5573 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
5574 internal visibility change.
5576 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5578 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
5579 validize_mem() instead of change_address to avoid clobbering
5582 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
5584 * c-lex.h (position_after_whitespace): Remove.
5586 2002-03-12 Jakub Jelinek <jakub@redhat.com>
5588 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
5589 (lex_string): Use unsigned char pointers.
5591 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
5593 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
5594 is not a valid memory_operand.
5596 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5598 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
5599 * config/xtensa/lib1funcs.asm: Fix copyright to include
5600 special case for libgcc files.
5601 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
5602 (__divsi3): Likewise.
5603 (__umodsi3): Likewise.
5604 (__modsi3): Likewise.
5605 * config/xtensa/lib2funcs.S: Fix copyright to include
5606 special case for libgcc files.
5608 2002-03-12 Tom Rix <trix@redhat.com>
5610 * collect2.c (resolve_lib_name): Move outside of
5611 OBJECT_FORMAT_COFF ifdef.
5612 (ignore_library): Same.
5614 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5616 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
5618 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5620 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
5621 to function_section before writing out the constant pool.
5623 2002-03-12 David Edelsohn <edelsohn@gnu.org>
5625 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
5627 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
5629 2002-03-12 Alan Modra <amodra@bigpond.net.au>
5631 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
5635 (cmpsi splitter): Likewise.
5636 (modsi3): Fail if <= 0.
5637 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
5638 redundant test when HOST_BITS_PER_WIDE_INT != 32.
5639 (reg_or_sub_cint64_operand): Likewise.
5640 (num_insns_constant_wide): Optimize sign extension.
5641 (rs6000_legitimize_address): Likewise.
5643 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
5645 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5646 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5648 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
5650 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
5651 address calculation.
5653 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
5655 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
5656 scratch register to DImode / TImode.
5657 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
5658 register used does not overlap the target.
5660 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5662 * Makefile.in (debug.o): Depend on debug.h.
5663 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
5664 * debug.c (do_nothing_debug_hooks): Likewise.
5665 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
5666 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
5667 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
5668 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5669 * dwarfout.c (dwarf_debug_hooks): Likewise.
5670 * integrate.c (output_inline_function): Likewise.
5671 * objc/objc-act.c (synth_module_prologue): Likewise.
5672 * sdbout.c (sdb_debug_hooks): Likewise.
5673 * toplev.c (debug_hooks): Likewise.
5674 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5676 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5678 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
5679 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
5680 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
5681 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
5682 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
5683 * defaults.h (POINTER_SIZE): Define.
5684 * doc/tm.texi (POINTER_SIZE): Document default.
5686 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5688 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
5690 2002-03-11 Richard Henderson <rth@redhat.com>
5692 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
5693 if rebuild_label_notes_after_reload.
5695 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
5697 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
5698 emit pic register load if "internal" visibility.
5699 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
5700 (cris_expand_builtin_va_arg): Do all computations on trees.
5702 2002-03-11 Richard Henderson <rth@redhat.com>
5704 * rtlanal.c: Include recog.h.
5705 (keep_with_call_p): Fix thinko.
5706 * Makefile.in (rtlanal.o): Update dependencies.
5708 2002-03-11 Chris Meyer <cmeyer@gatan.com>
5710 * genflags.c (gen_insn): Use IS_VSPACE.
5711 * genoutput.c (output_insn_data): Likewise.
5712 (process_template): Likewise.
5714 2002-03-11 Richard Henderson <rth@redhat.com>
5716 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
5718 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
5720 * Makefile.in: Update.
5721 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
5722 Update documentation.
5723 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
5724 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
5726 2002-03-11 Zack Weinberg <zack@codesourcery.com>
5728 * Makefile.in: Give texi2pod its input file as a command line
5729 argument, not on stdin.
5731 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
5732 Daniel Berlin <dan@dberlin.org>
5734 C++ alias analysis improvement.
5735 * alias.c (record_component_aliases): Record aliases for base
5738 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
5740 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
5742 2002-03-11 Douglas B Rupp <rupp@gnat.com>
5744 * toplev.c (vms_fopen): Remove, not needed.
5746 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
5748 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
5750 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
5751 for FP, already done later.
5753 * toplev.c (debug_args): Add entry for VMS_DEBUG.
5754 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
5756 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
5758 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
5759 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
5760 LARGEST_EXPONENT_IS_NORMAL for the given mode.
5761 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
5762 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
5763 (ediv, emul, eldexp, esqrt): Likewise.
5764 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
5765 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
5766 (saturate): New function.
5767 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
5768 (make_nan): Use a saturation value instead of a NaN if
5769 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
5770 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
5771 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
5772 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
5773 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
5774 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
5775 !ROUND_TOWARDS_ZERO.
5776 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
5777 (ROUND_TOWARDS_ZERO): Document.
5779 2002-03-11 Andreas Jaeger <aj@suse.de>
5781 * cfg.c (dump_flow_info): Remove unused variable.
5783 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
5785 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
5786 computations on trees.
5788 2002-03-10 Richard Henderson <rth@redhat.com>
5791 * reload.c (copy_replacements_1): New.
5792 (copy_replacements): Use it to recurse through the rtx.
5794 2002-03-10 Richard Henderson <rth@redhat.com>
5796 * loop.c (strength_reduce): Compute number of iterations as
5797 unsigned HOST_WIDE_INT.
5799 2002-03-10 Richard Henderson <rth@redhat.com>
5801 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
5802 to move away from the end of the block.
5804 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
5806 PR preprocessor/5899
5807 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
5809 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5811 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
5813 * attribs.c (decl_attributes): Fix signed/unsigned warning.
5815 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
5817 * config/mmix/mmix.c: Improve comments.
5818 (mmix_target_asm_function_prologue): Drop variable
5819 empty_stack_frame. Don't allocate unused slot above fp.
5820 (mmix_target_asm_function_epilogue): Mirror prologue changes.
5821 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
5822 brace in first column.
5823 (enum reg_class): Ditto.
5824 (FIRST_PARM_OFFSET): Now 0.
5825 (USER_LABEL_PREFIX): Remove #if 0:d definition.
5827 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5829 * combine.c (make_extraction): Fix error in last change.
5831 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5833 * c4x.c (c4x_fp_reglist): Const-ify.
5834 * cris.c (cris_print_operand): Likewise.
5835 * i386.c (ix86_va_arg): Likewise.
5836 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
5837 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
5838 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
5839 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
5840 * mcore.h (regno_reg_class): Likewise.
5841 * mips.c (gen_int_relational): Likewise.
5842 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
5843 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
5844 * pdp11.c (move_costs): Likewise.
5845 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
5846 * s390.c (s390_branch_condition_mnemonic, regclass_map):
5848 * s390.h (regclass_map): Likewise.
5849 * sh.c (shift_amounts): Likewise.
5850 * sh.md (rotlsi3): Likewise.
5852 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
5854 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
5855 (ne0+5): Use new clobber to generate proper shift pattern.
5856 Patch by Michael Matz <matz@kde.org>.
5858 2002-03-09 Andreas Schwab <schwab@suse.de>
5860 * gcc.c (validate_all_switches): Also handle `%W{...}'.
5862 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
5864 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
5866 2002-03-09 Jakub Jelinek <jakub@redhat.com>
5869 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
5870 even for non-representable constants.
5872 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5874 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
5875 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
5876 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
5877 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
5878 (pop_function_context): Compute MAY_SHARE parameter for
5880 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
5881 (gen_mem_addressof): Call fixup_var_refs with new parm.
5883 * combine.c (make_extraction): Don't make extension of CONST_INT.
5885 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
5887 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
5888 in o32 and o64 ABIs.
5889 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
5890 but getting fixed-size structs passed in registers regardless of
5891 padding in o32 and o64 ABIs.
5893 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
5894 offset before loading address of argument passed by transparent
5897 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
5899 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
5901 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
5903 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
5904 marker such that registers after it are saved.
5906 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5908 * sparc.c (arith_4096_operand): Fix error in last change.
5910 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
5912 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
5915 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
5917 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
5920 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
5922 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
5924 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
5926 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
5927 removed; fix return value.
5928 * combine.c (combine_instructions): Dirtify blocks where we failed to
5929 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
5930 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
5932 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5934 * gcse.c (insert_insn_end_bb): Fix typo in last change.
5936 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
5938 * recog.c (peephole2_optimize): Re-distribute EH edges.
5940 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
5942 * expr.c (expand_expr): Use unsave lang hook.
5943 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
5944 (LANG_HOOKS_INITIALIZER): Update.
5945 * langhooks.h (struct lang_hooks): New hook unsave.
5946 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
5947 (unsave_expr_1): Remove unused lang_unsave_expr_now.
5948 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
5949 (unsave_expr_now): Remove.
5950 * tree.h (unsave_expr_now, lang_unsave,
5951 lang_unsave_expr_now): Remove.
5954 2002-03-08 Andreas Jaeger <aj@suse.de>
5956 * flow.c (propagate_block_delete_insn): Remove unused variable.
5958 2002-03-08 Kazu Hirata <kazu@hxi.com>
5960 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
5961 insn length for memory load/store.
5963 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
5965 * doc/install.texi (--with-libiconv-prefix): Document.
5967 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
5969 * doc/sourcebuild.texi: Fix typo.
5971 2002-03-08 Jakub Jelinek <jakub@redhat.com>
5974 * builtins.c (std_expand_builtin_va_arg): Do all computations on
5977 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5979 * rtl.c (copy_most_rtx): Move from here ...
5980 * emit-rtl.c (copy_most_rtx): ... to here.
5982 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
5984 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
5985 SUBTARGET_CPP_SIZE_SPEC.
5986 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
5988 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
5990 2002-03-07 Matt Hiller <hiller@redhat.com>
5992 * gensupport.c (first_dir_md_include): Renamed from include;
5993 change all references.
5994 (last_dir_md_include): Renamed from last_include; change all
5996 (init_md_reader): Unconditionally initialize base_dir whether or
5997 not filename is a relative path.
5999 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
6001 * config/fp-bit.c (_unord_f2): Compile it in even if
6002 US_SOFTWARE_GOFAST is enabled.
6004 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
6005 NULL_RTX. Set all HFmode operations as NULL_RTX.
6006 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
6007 NULL_RTX, try reversing the comparison and the operands.
6009 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
6011 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
6012 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
6015 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
6017 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
6019 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
6021 * basic-block.h (fixup_abnormal_edges): Declare.
6022 * reload1.c (fixup_abnormal_edges): New function.
6023 * reg-stack.c (convert_regs): Use it.
6025 * gcse.c (insert_insn_end_bb): Handle trapping insns.
6027 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
6029 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
6031 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
6032 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
6033 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
6034 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
6035 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
6036 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
6037 unless x and y could be infinite.
6038 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
6039 Check that the common type of both arguments is a real, even for
6040 targets without unordered comparisons. Allow an integer argument
6041 to be compared against a real.
6042 (expand_tree_builtin): Use expand_unordered_cmp.
6043 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
6044 * cse.c (fold_rtx): Likewise. Fix indentation.
6045 * fold-const.c (fold_real_zero_addition_p): New.
6046 (fold): Use it, and the new HONOR_... macros.
6047 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
6048 * jump.c (reversed_comparison_code_parts): After searching for
6049 the true comparison mode, use HONOR_NANS to decide whether it
6050 can be safely reversed.
6051 (reverse_condition_maybe_unordered): Remove IEEE check.
6052 * simplify-rtx.c (simplify_binary_operation): Use the new macros
6053 to decide which simplifications are valid. Allow the following
6054 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
6055 and (a - -b) to (a + b).
6056 (simplify_relational_operation): Use HONOR_NANS.
6057 * doc/tm.texi: Document the MODE_HAS_... macros.
6059 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
6061 * combine.c (simplify_comparison): If simplifying a logical shift
6062 right and compare with constant, force the comparison to unsigned.
6064 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
6066 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
6068 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
6070 (alt_reg_names): Remove % for vrsave.
6072 2002-03-06 Richard Henderson <rth@redhat.com>
6074 PR optimization/5844
6075 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
6076 if used indicates we've already emitted one copy of an operand.
6077 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
6078 (gen_split): Supply a non-null used.
6080 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
6082 * reload1.c (reload): Unshare all rtl after reload is done.
6084 * simplify-rtx.c (simplify_plus_minus): Do not abort,
6085 but simply fail if the expression is too complex to simplify.
6086 (simplify_gen_binary): Handle simplify_plus_minus failures.
6088 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
6090 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
6091 consistently call delete_trivially_dead_insns after CSE and GCSE;
6092 fix DFI_life dumping; do jump threading after liveness; do crossjumping
6093 after liveness2; update comment in last crossjumping.
6094 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
6096 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
6098 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
6099 after completing fast dead code elimination.
6101 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
6104 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
6106 * version.c: Fix misplaced leading blanks on first line.
6108 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
6110 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
6112 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
6114 * cfgcleanup.c (mentions_nonequal_regs): New function.
6115 (thread_jump): Use it.
6116 * toplev.c (rest_of_compilation): Run jump threading after
6119 2002-03-06 Jakub Jelinek <jakub@redhat.com>
6121 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
6124 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
6126 * predict.c (estimate_bb_frequencies): Do not reload the
6127 frequencies from notes.
6129 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
6131 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
6132 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
6134 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
6135 delete_noop_moves): Return indeger.
6136 * flow.c (ndead): New variable.
6137 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
6138 BB argument; update callers.
6139 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
6140 (life_analysis): Do not call purge_all_dead_edges.
6141 (update_life_info): Return number of deleted insns; print statistics.
6142 (update_life_info_in_dirty_blocks): likewise.
6143 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
6144 return number of insns deleted.
6146 * cse.c: Include timevar.h
6147 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
6148 iterate until stabilizes; print statistics; return number of killed
6150 * Makefile.in: (cse.o): Add timevar.h dependency
6151 * rtl.h (delete_trivially_dead_insns): New.
6152 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
6153 * toplev.c (rest_of_compilation): Update callers.
6155 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
6156 (try_optimize_cfg): Do not update liveness.
6157 (cleanup-cfg): Loop until try_optimize_cfg and dead code
6158 removal stabilizes; use delete_trivially_dead_insns.
6160 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
6162 2002-03-05 Zack Weinberg <zack@codesourcery.com>
6164 * cppmain.c (setup_callbacks): Disable #pragma and #ident
6165 callbacks when processing assembly language.
6167 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
6169 * pa.h (ASM_FILE_END): Define.
6170 * som.h (ASM_FILE_END): Delete.
6172 * pa.c (function_arg): Don't pass floats in general registers in
6173 indirect calls if TARGET_ELF32.
6175 2002-03-05 Richard Henderson <rth@redhat.com>
6177 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
6179 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
6181 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
6183 2002-03-05 Jakub Jelinek <jakub@redhat.com>
6185 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
6186 -r command line. Don't hide any symbols if not building
6189 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
6191 * cfg.c (dump_flow_info): Warn about profile mismatches.
6192 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
6193 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
6195 2002-03-05 Jakub Jelinek <jakub@redhat.com>
6197 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
6198 wide volatile memory by parts.
6200 2002-03-05 Jakub Jelinek <jakub@redhat.com>
6202 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
6205 2002-03-05 Richard Henderson <rth@redhat.com>
6207 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
6209 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
6211 * toplev.c (documented_lang_options): Document more
6212 language-specific options.
6213 * doc/invoke.texi (Warning Options): Correct documentation for
6214 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
6215 * c-decl.c (c_decode_option): Use a table to handle warning options.
6217 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
6219 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
6220 parameter to mmix_encode_section_info.
6221 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
6222 relocatably. Always produce ELF, not mmo if linking relocatably.
6223 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
6224 first is non-zero, don't add symbol prefix.
6225 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
6226 prototype accordingly.
6228 2002-03-04 Krister Walfridsson <cato@df.lth.se>
6230 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
6232 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
6234 * configure.in: Increase required makeinfo version to 4.1.
6235 * configure: Regenerate.
6237 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
6239 * .cvsignore: Remove *.info* and genrtl*; these files are generated
6242 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
6244 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
6245 * doc/invoke.texi: Fix @math uses.
6247 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
6249 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
6252 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
6254 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
6255 (powerpc-*-eabisimaltivec*): Same.
6257 * config/rs6000/t-ppcendian: New.
6259 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6261 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
6262 nonimmediate_src_operand and nonimmediate_lsrc_operand to
6263 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
6265 2002-03-03 Richard Henderson <rth@redhat.com>
6267 * toplev.c (rest_of_decl_compilation): Revert last two changes.
6269 2002-03-03 Zack Weinberg <zack@codesourcery.com>
6271 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
6272 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
6273 tree.c, config/m68k/m68k.c:
6274 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
6275 REAL_ARITHMETIC blocks unconditional. Delete some further
6276 #ifdef blocks predicated on REAL_ARITHMETIC.
6277 * flags.h, toplev.c: Delete remaining references to
6280 * doc/invoke.texi: Remove documentation of -fpretend-float.
6281 * doc/tm.texi: Describe the various REAL_* macros as provided by
6282 real.h, not by the target configuration files.
6284 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
6285 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
6286 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
6287 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
6288 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
6289 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
6290 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
6291 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
6292 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
6293 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
6294 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
6295 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6296 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
6297 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
6298 config/xtensa/xtensa.h:
6299 Do not define, undefine, or mention in comments any of
6300 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
6301 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
6302 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
6303 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
6304 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
6305 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
6306 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
6307 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
6308 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
6310 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6312 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
6313 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
6314 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
6315 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
6316 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
6317 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
6319 * defaults.h (BITS_PER_WORD): Define.
6320 * doc/tm.texi (BITS_PER_WORD): Document default value.
6322 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
6323 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
6324 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
6326 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6328 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
6329 lieu of explicit sizeof/sizeof.
6330 * i386.c (override_options, ix86_init_mmx_sse_builtins,
6331 ix86_expand_builtin): Likewise.
6332 * mips.c (mips_add_gc_roots): Likewise.
6333 * mmix.c (mmix_output_condition): Likewise.
6334 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
6335 altivec_init_builtins): Likewise.
6336 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
6337 * cppexp.c (Nsuff, parse_number): Likewise.
6338 * cppinit.c (builtin_array_end): Likewise.
6339 * gcc.c (n_default_compilers, process_command): Likewise.
6340 * genpreds.c (output_predicate_decls): Likewise.
6341 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
6342 * lcm.c (N_ENTITIES): Likewise.
6343 * stor-layout.c (set_sizetype): Likewise.
6345 2002-03-03 Richard Henderson <rth@redhat.com>
6347 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
6348 for types or labels.
6350 2002-03-03 Richard Henderson <rth@redhat.com>
6352 * c-decl.c (start_decl): Initialized variables are not common.
6354 2002-03-02 Per Bothner <per@bothner.com>
6356 * gcc.c (option_map): Suport new --bootclasspath option.
6357 --CLASSPATH is now just an alias for --classpath.
6359 2002-03-02 Richard Henderson <rth@redhat.com>
6361 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
6362 load if "internal" visibility.
6363 * doc/extend.texi: Document visibility meanings.
6365 2002-03-02 Richard Henderson <rth@redhat.com>
6367 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
6368 to functions as well.
6370 2002-03-02 Richard Henderson <rth@redhat.com>
6372 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
6373 (handle_visibility_attribute): Don't call assemble_visibility.
6374 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
6375 without asmspec. Invoke assemble_alias when needed.
6376 * varasm.c (maybe_assemble_visibility): New.
6377 (assemble_start_function, assemble_variable, assemble_alias): Use it.
6379 2002-03-02 Richard Henderson <rth@redhat.com>
6381 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
6382 invoke ENCODE_SECTION_INFO with first call flag.
6384 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6385 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6386 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
6387 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
6388 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6389 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
6390 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
6391 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
6392 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
6393 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
6394 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
6395 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
6396 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6397 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
6398 config/mcore/mcore-protos.h, config/mcore/mcore.c,
6399 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
6400 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
6401 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
6402 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
6403 config/sh/sh.h, config/sparc/sparc.h,
6404 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
6405 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
6406 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
6407 FIRST argument. As needed, examine it and do nothing.
6409 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
6410 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
6411 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
6413 * config/arm/t-pe (pe.o): Add dependencies.
6415 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6417 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
6418 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
6419 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
6420 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
6421 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
6422 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
6423 * defaults.h (BITS_PER_UNIT): Define.
6424 * doc/tm.texi (BITS_PER_UNIT): Document default value.
6426 2002-03-02 Kazu Hirata <kazu@hxi.com>
6428 * config/h8300/h8300-protos.h: Add a prototype for
6429 compute_a_shift_length.
6430 * config/h8300/h8300.c (h8300_asm_insn_count): New.
6431 (compute_a_shift_length): Likewise.
6432 (h8300_adjust_insn_length): Do not adjust insn length of shift
6434 * config/h8300/h8300.md (anonymous shift patterns): Use
6435 compute_a_shift_length.
6437 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6439 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
6442 * emit-rtl.c (offset_address): Call update_temp_slot_address.
6444 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6446 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
6447 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
6448 * flags.h (flag_zero_initialized_in_bss): Declare.
6449 * toplev.c (flag_zero_initialized_in_bss): New flag.
6450 (lang_independent_options): Add flag_zero_initialized_in_bss.
6451 * tree.c (initializer_zerop): New function.
6452 * tree.h (initializer_zerop): Declare.
6453 * varasm.c (assemble_variable): If we can emit bss, put zero
6454 initializers in the bss section.
6456 2002-03-02 Alan Modra <amodra@bigpond.net.au>
6458 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
6459 like more than one symbol per .weak directive.
6461 2002-03-01 Richard Henderson <rth@redhat.com>
6463 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
6464 adjust argument_pointer by pretend_args_size.
6465 (ia64_va_start): Adjust va_start address by -pretend_args_size.
6467 2002-03-01 Kazu Hirata <kazu@hxi.com>
6469 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
6471 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
6473 * toplev.c (rest_of_compilation): Delete dead jumptables before
6475 * flow.c (delete_dead_jumptables): Make global.
6476 * rtl.h (delete_dead_jumptables): Declare.
6478 2002-03-01 David Edelsohn <edelsohn@gnu.org>
6480 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
6481 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
6482 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
6484 2002-03-01 Kazu Hirata <kazu@hxi.com>
6486 * config/h8300/h8300-protos.h: Fix formatting.
6487 * config/h8300/h8300.c: Likewise.
6488 * config/h8300/h8300.h: Likewise.
6490 2002-03-01 Kazu Hirata <kazu@hxi.com>
6492 * config/h8300/h8300.c (print_operand): Support 16-bit
6494 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
6496 2002-02-28 Richard Henderson <rth@redhat.com>
6498 * expmed.c (store_bit_field): Prevent generation of CONCATs;
6499 pun complex values as integers; use gen_lowpart instead of
6501 (extract_bit_field): Likewise.
6503 2002-03-01 Alan Modra <amodra@bigpond.net.au>
6504 David Edelsohn <edelsohn@gnu.org>
6506 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
6507 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
6508 (SUPPORTS_WEAK): Likewise.
6509 * output.h (add_weak): Add tree param.
6510 * varasm.c (add_weak): Likewise. Save decl.
6511 (struct weak_syms): Add decl field.
6512 (mark_weak_decls): New function.
6513 (init_varasm_once): ggc_add_root mark_weak_decls.
6514 (assemble_start_function): Use ASM_WEAKEN_DECL.
6515 (assemble_variable): Likewise.
6516 (assemble_alias): Likewise.
6517 (declare_weak): Pass decl to add_weak.
6518 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
6519 (remove_from_pending_weak_list): Declare and define for
6521 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
6522 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
6523 * defaults.h (SUPPORTS_WEAK): Likewise.
6524 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6525 .weak for code sym. Do emit .size for descriptor sym.
6526 (ASM_DECLARE_FUNCTION_SIZE): Define.
6527 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
6528 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
6529 .lglobl unless TARGET_XCOFF. Formatting fixes.
6530 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6532 (HANDLE_PRAGMA_WEAK): Remove.
6533 (ASM_WEAKEN_LABEL): Remove.
6534 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
6536 2002-03-01 Jason Merrill <jason@redhat.com>
6538 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
6539 (TARGET_EXPR_CLEANUP): New macro.
6541 2002-02-28 Steve Ellcey <sje@cup.hp.com>
6543 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
6544 to take ptr_extend into account as third type of extension.
6545 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
6546 fields used by SUBREG_PROMOTED_UNSIGNED_P.
6547 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
6548 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
6549 * calls.c (precompute_arguments): Use new macro.
6550 (expand_call): Ditto.
6551 * combine.c (nonzero_bits): Ditto.
6552 (record_promoted_value): Ditto.
6553 * expr.c (store_expr): Ditto.
6554 (expand_expr): Ditto.
6555 * function.c (assign_parms): Ditto.
6557 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
6559 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
6560 override -shared and -shared-libgcc.
6562 2002-02-28 David O'Brien <obrien@FreeBSD.org>
6564 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
6566 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
6569 2002-02-28 Richard Henderson <rth@redhat.com>
6571 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
6572 4 cycle latency from MM producers.
6573 (ia64_internal_sched_reorder): Likewise with pipeline flush.
6575 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6577 * mklibgcc.in: Don't use GNU make extension.
6579 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
6581 * c-parse.in (STATIC): New terminal.
6582 (scspec): New non-terminal. Update productions accordingly.
6583 (program): Remove bogus ifc / end ifc.
6584 (array_declarator): Simplify production using STATIC.
6586 2002-02-28 Jim Meyering <meyering@lucent.com>
6588 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
6589 \a still means TARGET_BELL.
6591 2002-02-28 Richard Henderson <rth@redhat.com>
6593 * haifa-sched.c (sched_emit_insn): New.
6594 (schedule_block): Use last_scheduled_insn to track last insn.
6595 * sched-int.h (sched_emit_insn): Prototype.
6596 * config/ia64/ia64.c (last_issued): Remove.
6597 (ia64_variable_issue): Don't set it.
6598 (nop_cycles_until): Use sched_emit_insn.
6600 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
6602 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
6605 2002-02-28 Kazu Hirata <kazu@hxi.com>
6607 * config/h8300/h8300.c: Fix formatting.
6608 * config/h8300/h8300.h: Likewise.
6610 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
6612 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
6613 which may overwrite the high byte of the frame pointer.
6615 2002-02-28 Bo Thorsen <bo@suse.de>
6617 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
6618 (STARTFILE_SPEC): Add 64 bit files.
6619 (ENDFILE_SPEC): Likewise.
6621 2002-02-28 Jason Merrill <jason@redhat.com>
6623 * c-decl.c (finish_function): Only warn about missing return
6624 statement with -Wreturn-type.
6626 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
6628 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
6630 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
6631 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
6633 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
6635 * basic-block.h (BB_REACHABLE): Renumber.
6636 (BB_DIRTY, BB_NEW): New flags.
6637 (clear_bb_flags): Declare.
6638 (update_life_info_in_dirty_blocks): Declare.
6639 * cfg.c (clear_bb_flags): New function.
6640 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
6641 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
6642 reorder_insns, emit_insn_after): Mark block as dirty.
6643 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
6644 (update_life_info_in_dirty_blocks): New function.
6645 * recog.c (apply_change_group): Dirtify block.
6647 * cse.c (cse_insn): Reorder emitting of jump insn to keep
6649 * gcse.c (delete_null_pointer_checks): Likewise.
6651 * toplev.c (dump_file_index): Move cse2 after bp,
6653 (dump_file_info): Similary.
6654 (rest_of_compilation): Avoid most of CFG rebuilds;
6655 do first if converision after null pointer checks, do cse2
6656 after branch prediction; avoid full liveness rebuild after
6657 initializing subregs.
6658 * invoke.texi (-d options): Document -du, renumber.
6660 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
6661 (notice_new_block): Do not set BB_UPDATE_LIFE.
6662 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
6663 merge_blocks_move_successor_nojumps, merge_blocks,
6664 try_crossjump_to_edge): Likewise.
6665 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
6666 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
6667 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
6668 (merge_of_block): Do not use life_data_ok.
6669 (find_if_case_1): Do not use SET_UPDATE_LIFE.
6670 (if_convert): Use BB_DIRTY mechanizm to update life.
6671 * lcm.c (optimize_mode_switching): Update
6672 update_life_info_in_dirty_blocks
6674 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
6676 * Makefile.in (integrate.o): Update.
6677 * c-decl.c (copy_lang_decl): Rename.
6678 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6679 * integrate.c: Include langhooks.h.
6680 (copy_decl_for_inlining): Update to use langhook.
6681 * langhooks-def.h (lhd_do_nothing_t,
6682 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
6683 (LANG_HOOKS_INITIALIZER): Update.
6684 * langhooks.c (lhd_do_nothing_t): New.
6685 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
6686 * tree.h (copy_lang_decl): Remove.
6688 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6690 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
6692 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
6693 POST_DEC, and POST_MODIFY.
6695 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6697 * c-typeck.c (digest_init): Remove unused parameter; all
6700 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
6702 * expmed.c (expand_shift): Correctly test for low part of a
6705 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
6707 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
6708 insn UIDs with insn addresses.
6710 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6712 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
6713 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
6714 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
6715 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
6716 gcc.c, toplev.c: Delete code implementing -traditional mode.
6718 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
6719 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
6720 Document removal of -traditional mode for compilation, and
6721 remove documentation only relevant to that mode.
6723 * config/nextstep.h, config/ptx4.h, config/svr4.h,
6724 config/convex/convex.h, config/d30v/d30v.h,
6725 config/i386/dgux.h, config/i386/osf1elf.h,
6726 config/i386/osfelf.h, config/i386/osfrose.h,
6727 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
6728 config/m68k/hp310.h, config/m88k/dgux.h,
6729 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
6730 config/m88k/m88k.h, config/m88k/openbsd.h,
6731 config/mips/abi64.h, config/mips/osfrose.h,
6732 config/mips/svr4-5.h, config/mips/svr4-t.h,
6733 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6734 config/stormy16/stormy16.h: Remove all references to
6735 -traditional from target specs. Delete all mention of the
6736 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
6737 delete a couple of commented-out definitions of
6738 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
6741 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
6742 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
6744 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6746 * mklibgcc.in: Don't use \n in a line subject to
6747 interpretation by echo.
6749 2002-02-27 Graham Stott <grahams@redhat.com>
6751 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
6754 * loop.c (prescan_loop): Handle PARALLEL.
6756 * unroll.c (loop_iterations): Return 0 if the add_val for
6759 * final.c (output_operand_lossage): Constify PFX_STR.
6761 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
6763 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
6765 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
6766 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
6768 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
6770 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6772 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
6774 * cpplex.c (_cpp_lex_token): Handle directives in macro
6776 * cpplib.c (_cpp_handle_directive): Save and restore state
6777 if parsing macro args when entering a directive.
6778 * cppmacro.c (collect_args): No need to handle directives
6780 (enter_macro_context, replace_args): Use the original macro
6781 definition in case it was redefined whilst collecting arguments.
6785 2002-02-26 David Edelsohn <edelsohn@gnu.org>
6787 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
6788 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
6789 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
6791 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
6792 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
6793 (load_toc_v4_PIC_2): Same.
6795 2002-02-26 Alan Modra <amodra@bigpond.net.au>
6797 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
6799 2002-02-26 Richard Henderson <rth@redhat.com>
6801 * config/alpha/alpha.md (ashldi_se): Re-enable.
6803 2002-02-26 Richard Henderson <rth@redhat.com>
6805 * config/alpha/alpha.c (alpha_encode_section_info): Examine
6806 MODULE_LOCAL_P; improve commentary.
6808 2002-02-26 Zack Weinberg <zack@codesourcery.com>
6810 * doc/cpp.texi: Clarify documentation of relationship between
6813 2002-02-26 Kazu Hirata <kazu@hxi.com>
6815 * config/h8300/h8300-protos.h: Update the prototype for
6816 compute_logical_op_length. Add the prototype for
6817 compute_logical_op_cc.
6818 * config/h8300/h8300.c (compute_logical_op_length): Figure out
6820 (compute_logical_op_cc): New.
6821 * config/h8300/h8300.md: Combine all the logical op patterns
6822 in HImode and SImode. Use compute_logical_op_cc.
6824 2002-02-26 Kelley Cook <kelleycook@comcast.net>
6826 * config/i386/i386.c (print_operand): Don't append ATT-style
6827 length suffixs to x87 opcodes when in Intel mode.
6829 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
6831 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
6832 (init_emit_once): Update calls.
6833 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
6834 (init_syntax_once): Prototype.
6836 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
6838 * pa-linux.h (LIB_SPEC): Update definition.
6839 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6841 2002-02-26 Richard Henderson <rth@redhat.com>
6843 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
6844 if we emitted a stop bit.
6846 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6848 * configure.in (libgcc_visibility): Substitute.
6849 * configure: Rebuilt.
6850 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
6851 defined symbols .hidden.
6853 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6855 * attribs.c (c_common_attribute_table): Add visibility.
6856 (handle_visibility_attribute): New function.
6857 * varasm.c (assemble_visibility): New function.
6858 * output.h (assemble_visibility): Add prototype.
6859 * tree.h (MODULE_LOCAL_P): Define.
6860 * crtstuff.c (__dso_handle): Use visibility attribute.
6861 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
6862 for MODULE_LOCAL_P symbols too.
6863 * config/ia64/ia64.c (ia64_encode_section_info): Handle
6864 MODULE_LOCAL_P symbols the same way as local symbols.
6865 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
6866 into .sdata/.sbss by the user.
6867 * doc/extend.texi (Function Attributes): Document visibility
6870 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6873 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
6874 STRING_CST initializer spanning the whole variable without
6876 If expand_expr returned MEM, don't use it.
6878 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
6880 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
6881 generate a die for the lexical block.
6883 2002-02-26 Kazu Hirata <kazu@hxi.com>
6885 * config/h8300/h8300-protos.h: Add a prototype for
6886 compute_logical_op_length.
6887 * config/h8300/h8300.c (compute_logical_op_length): New.
6888 * config/h8300/h8300.md (anonymous logical patterns): Use
6889 compute_logical_op_length for length.
6891 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6893 * dwarf2out.c (modified_type_die): Do not call type_main_variant
6895 (gen_type_die): Same.
6897 * attribs.c (handle_vector_size_attribute): Set debug information.
6899 2002-02-26 Daniel Egger <degger@fhm.edu>
6901 * config/rs6000/rs6000.md: Swap define_insn attributes to
6902 fix incorrect generation of merge high instructions instead
6905 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6907 * c-typeck.c (really_start_incremental_init): Use
6908 bitsize_zero_node for vectors.
6910 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6912 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
6913 ("*set_vrsave_internal"): Same.
6915 2002-02-25 Richard Henderson <rth@redhat.com>
6917 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
6918 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
6920 2002-02-25 Jakub Jelinek <jakub@redhat.com>
6923 * config/i386/i386.c (ix86_return_pops_args): Only pop
6924 fake structure return argument if it was passed on the stack.
6926 2002-02-25 Jason Merrill <jason@redhat.com>
6928 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
6931 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
6933 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
6934 link with shared_name only.
6935 * doc/invoke.texi (Link Options): Document new behavior.
6937 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
6939 * c-typeck.c (push_init_level): Handle vectors.
6941 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
6943 * config/sparc/sparc.c (const64_high_operand): Zero-extend
6944 operands of SPARC_SETHI_P.
6945 (input_operand): Likewise.
6946 (sparc_emit_set_const32): Likewise.
6947 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
6948 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
6949 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
6950 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
6951 (movdi_insn_sp64_vis): Likewise.
6952 (movdi split, movdf split): Use SETHI32.
6953 * doc/md.texi: Document SPARC constraints L, M and N.
6955 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
6957 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
6958 ("*set_vrsave_internal"): use mfspr for Darwin.
6960 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
6961 gen_get_vrsave_internal.
6963 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6965 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
6967 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
6969 * cpplex.c (cpp_interpret_charconst): Get signedness or
6970 otherwise of wide character constants correct.
6971 * cppexp.c (lex): Get signedness of wide charconsts correct.
6973 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6975 * optabs.c (widen_operand): Only call convert_modes for
6976 promoted SUBREG if signedness matches.
6977 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
6979 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6981 * cpplib.c (glue_header_name): Use local buffer to build up
6984 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6986 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
6988 2002-02-23 Kazu Hirata <kazu@hxi.com>
6990 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
6991 H8/300[HS] separately.
6992 * config/h8300/h8300.md: Remove the early clobber constraint
6993 from bit field patterns.
6995 2002-02-23 Kazu Hirata <kazu@hxi.com>
6997 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
6999 (mulhisi3): Likewise.
7000 (umulqisi3): Likewise.
7001 (umulhisi3): Likewise.
7003 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
7005 * cppinit.c (output_deps): Correct test for stdout output.
7006 (init_dependency_output): Cure warning.
7008 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7010 * expr.c (store_expr): When converting expression to promoted
7011 equivalent type, allow using SUBREG_REG of TARGET as the target
7012 of the expansion of EXP.
7013 * loop.c (basic_induction_var, case SUBREG): Always look inside.
7014 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
7015 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
7016 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
7017 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
7019 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
7021 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
7022 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
7023 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
7025 2002-02-23 Jakub Jelinek <jakub@redhat.com>
7027 PR optimization/5747
7028 * loop.c (scan_loop): Update reg info if move_movables created new
7031 2002-02-23 David Edelsohn <edelsohn@gnu.org>
7033 * gcc.c (init_gcc_spec): Revert last change.
7035 2002-02-23 David Edelsohn <edelsohn@gnu.org>
7037 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
7038 gpc_reg_operand constraint.
7040 2002-02-23 Alan Modra <amodra@bigpond.net.au>
7042 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
7043 Simplify comparison of `low'.
7044 (add_operand): Fix formatting.
7045 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
7046 (mask_operand): Disallow mask to wrap in 64-bit mode.
7047 (rs6000_stack_info): Remove redundant test setting push_p.
7048 (output_toc): Fix formatting.
7049 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
7050 cc_reg_not_cr0_operand constraint.
7051 (booldi3, boolcdi3 splitters): Same.
7053 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
7055 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
7057 2002-02-22 David Edelsohn <edelsohn@gnu.org>
7059 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
7060 gcc invoked with -shared-libgcc.
7062 2002-02-22 Jakub Jelinek <jakub@redhat.com>
7065 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
7066 decl if any of elements was TREE_USED.
7068 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
7070 * config/sparc/sol2.h: Don't include sys/mman.h.
7071 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
7072 (arith_4096_operand): Don't throw high bits away.
7073 (const64_operand): Take sign extension of CONST_INTs into account.
7074 (const64_high_operand, sparc_emit_set_const32): Likewise.
7075 (GEN_HIGHINT64): Likewise.
7076 (sparc_emit_set_const64_quick1): Likewise.
7077 (const64_is_2insns): Likewise.
7078 (print_operand): Use trunc_int_for_mode for sign extension.
7079 * config/sparc/sparc.h (SMALL_INT32): Likewise.
7080 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
7081 chars. Assume CONST_INT is already properly sign-extended.
7082 (movdi split): Sign-extend each SImode part.
7083 (andsi3 split): Don't mask high bits off, so that result
7084 remains properly sign-extend.
7085 (iorsi3 split): Likewise.
7086 (xorsi3 split): Likewise.
7088 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
7090 * fold-const.c (fold): Fix typo in comments.
7092 2002-02-21 Diego Novillo <dnovillo@redhat.com>
7094 * Makefile.in (langhooks.o): Update dependencies.
7096 2002-02-21 Diego Novillo <dnovillo@redhat.com>
7098 * langhooks.c: Include flags.h.
7100 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
7102 * testsuite/gcc.dg/attr-alwaysinline.c: New.
7104 * c-common.c (c_common_post_options): Set inline trees by
7107 * doc/extend.texi (Function Attributes): Document always_inline
7109 Update documentation about inlining when not optimizing.
7111 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
7113 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
7114 unless DECL_ALWAYS_INLINE.
7116 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
7117 unless DECL_ALWAYS_INLINE.
7118 (c_disregard_inline_limits): Disregard if always_inline set.
7120 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
7121 Disregard if always_inline set.
7122 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
7123 unless DECL_ALWAYS_INLINE.
7125 * attribs.c (handle_always_inline_attribute): New.
7126 (c_common_attribute_table): Add always_inline.
7128 * config/rs6000/altivec.h: Add prototypes for builtins
7129 requiring the always_inline attribute.
7131 2002-02-21 Eric Christopher <echristo@redhat.com>
7133 * expmed.c (store_bit_field): Try to simplify the subreg
7134 before generating a new one when when the mode size of
7135 value is less than maxmode.
7137 2002-02-21 Richard Henderson <rth@redhat.com>
7139 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
7140 than gen_rtx_PLUS to form the sum.
7141 * explow.c (force_reg): Rearrange to not allocate new pseudo
7142 when force_operand returns a register.
7143 * expr.c (expand_assignment): Allow offset_rtx expansion to
7144 return a sum. Do not force addresses into registers.
7145 (expand_expr): Likewise.
7146 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
7147 to canonicalize arithmetic that didn't simpify.
7148 (simplify_plus_minus): New argument force; update
7149 all callers. Don't split CONST unless we can do something with it,
7150 and wouldn't lose the constness of the operands.
7152 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
7153 that we generated earlier.
7155 2002-02-21 Tom Tromey <tromey@redhat.com>
7157 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7158 (output_line_info): Use constant `1', with a long explanatory
7160 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
7162 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
7164 * jump.c (redirect_jump): If old label has no UID, don't try to
7167 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
7169 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
7170 If input is constant, do shifts at compile time.
7172 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
7174 * doc/extend.texi: Fix some more overfull hboxes.
7176 2002-02-21 Jakub Jelinek <jakub@redhat.com>
7178 PR optimization/4994
7179 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
7182 2002-02-21 Jakub Jelinek <jakub@redhat.com>
7185 * expr.h (expand_and): Add mode argument.
7186 * expmed.c (expand_and): Add mode argument.
7187 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
7188 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
7189 * except.c (expand_builtin_extract_return_addr): Likewise.
7190 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
7191 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
7192 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
7193 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
7194 * config/c4x/c4x.md: Use GEN_INT (x) instead of
7195 gen_rtx (CONST_INT, VOIDmode, x).
7197 2002-02-21 Jakub Jelinek <jakub@redhat.com>
7200 * stmt.c (warn_if_unused_value): Move side effects test once more.
7202 2002-02-20 Torbjorn Granlund <tege@swox.com>
7204 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
7205 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
7207 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
7209 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
7210 SUBREG or ZERO_EXTEND.
7212 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
7214 * sh.h (current_function_anonymous_args): Remove.
7215 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
7216 of current_function_varargs and current_function_stdarg is set.
7217 * sh.c (sh_expand_prologue): Check current_function_varargs /
7218 current_function_stdarg / TARGET_SH5 instead of
7219 current_function_anonymous_args.
7221 * sh64.h (TARGET_VERSION): Define.
7223 2002-02-20 David Edelsohn <edelsohn@gnu.org>
7225 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
7226 VRSAVE_REGNO on TARGET_ALTIVEC.
7228 2002-02-20 Alan Modra <amodra@bigpond.net.au>
7230 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
7231 bits of SImode const_int.
7232 (includes_rshift_p): Likewise.
7233 (print_operand): Call mask_operand and mask64_operand with correct
7235 (rs6000_output_function_epilogue): Pad traceback table to word.
7236 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
7237 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
7238 mask64_operand with correct mode.
7239 (FUNCTION_ARG_REGNO_P): Correct parentheses.
7241 2002-02-20 Jakub Jelinek <jakub@redhat.com>
7244 * varasm.c (get_pool_constant_mark): New.
7245 * rtl.h (get_pool_constant_mark): Add prototype.
7246 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
7247 be represented if it has not been output.
7249 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
7251 * combine.c (do_SUBST): Sanity check substitutions of
7252 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
7253 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
7254 CONST_INT into its operand.
7255 (known_cond): Likewise, for ZERO_EXTEND.
7256 * simplify-rtx.c (simplify_unary_operation): Fix condition to
7257 allow for simplification of wide modes. Reject CONST_INTs in
7258 ZERO_EXTEND when their actual mode is not given.
7260 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
7262 * c-decl.c (pushdecl): If no global declaration is found for an
7263 extern declaration in block scope, try a limbo one.
7265 2002-02-20 Jakub Jelinek <jakub@redhat.com>
7268 * c-common.c (pointer_int_sum): Moved from...
7269 * c-typeck.c (pointer_int_sum): ...here.
7270 * c-common.h (pointer_int_sum): Add prototype.
7272 2002-02-20 Jakub Jelinek <jakub@redhat.com>
7275 * c-decl.c (duplicate_decls): Return 0 if issued error about
7278 2002-02-20 Roger Sayle <roger@eyesopen.com>
7279 Jakub Jelinek <jakub@redhat.com>
7282 * tree.c (host_integerp): Ensure that the constant integer is
7283 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
7284 when pos is zero or non-zero respectively. Clarify comment.
7285 * c-format.c (check_format_info_recurse): Fix host_integerp
7286 usage; the pos argument should be zero when assigning to a
7287 signed HOST_WIDE_INT.
7289 2002-02-20 Richard Henderson <rth@redhat.com>
7291 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
7292 of the operand, rather than assuming TImode.
7293 (ix86_expand_binop_builtin): Cope with commutative patterns
7294 using nonimmediate_operand for both operands.
7295 (ix86_expand_timode_binop_builtin): Likewise.
7296 (ix86_expand_store_builtin): Validate operand 1.
7297 (ix86_expand_unop1_builtin): Likewise.
7299 2002-02-20 Philip Blundell <philb@gnu.org>
7302 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
7304 2002-02-20 Richard Henderson <rth@redhat.com>
7307 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
7309 2002-02-20 Tom Tromey <tromey@redhat.com>
7311 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7312 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7313 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7314 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7315 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
7318 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
7320 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
7321 for (const_int 0) in X not just INTVAL.
7323 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
7325 * doc/extend.texi: Avoid or reduce overfull hboxes.
7327 2002-02-20 Diego Novillo <dnovillo@redhat.com>
7329 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
7330 operations if the field does not start at a mode boundary.
7332 2001-02-20 Joel Sherrill <joel@OARcorp.com>
7334 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
7335 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
7336 Also done for -Acpu and -Amachine.
7338 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
7340 * cppinit.c (init_dependency_output): Take deps output file
7341 from -o if none given with -MF. Suppress normal output.
7342 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
7343 * doc/cpp.texi, doc/invoke.texi: Update.
7345 2002-02-19 Zack Weinberg <zack@codesourcery.com>
7347 * toplev.c (output_quoted_string): Write unprintable
7348 characters with octal escapes.
7350 2002-02-19 David Edelsohn <edelsohn@gnu.org>
7352 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
7353 really_call_used[VRSAVE_REGNO] if not Altivec.
7355 2002-02-19 Alan Modra <amodra@bigpond.net.au>
7357 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
7359 (constant_pool_expr_1): Fix formatting.
7360 (rs6000_legitimize_reload_address): Likewise.
7362 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7364 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
7365 now that we have one.
7367 2002-02-19 Zack Weinberg <zack@codesourcery.com>
7369 * tree.h (struct tree_common): Remove aux. Add unused_0 at
7370 end of first block of bitfields (which was only seven bits);
7371 rename dummy to unused_1; remove comment which is no longer true.
7373 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
7375 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
7377 2002-02-19 Philip Blundell <pb@nexus.co.uk>
7380 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
7384 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
7385 arm_is_longcall_p rather than inspecting call-type cookie
7387 (call_value_insn) [TARGET_THUMB]: Likewise.
7389 2002-02-19 Graham Stott <grahams@redhat.com>
7391 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
7393 2002-02-19 David Edelsohn <edelsohn@gnu.org>
7395 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
7396 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
7397 (FP_SAVE_INLINE): Delete.
7399 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
7400 * config/rs6000/eabi.asm: Remove ABI save restore routines.
7401 * config/rs6000/t-ppccomm: Build crtsavres.o.
7402 * config/rs6000/crtsavres.asm: New file.
7404 2002-02-19 Philip Blundell <philb@gnu.org>
7406 * config/arm/arm.c (use_return_insn): Don't reject interrupt
7408 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
7409 (output_return_instruction): Allow interrupt functions to return with
7410 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
7411 (arm_expand_prologue): Subtract 4 before stacking LR in an
7414 2002-02-19 Philip Blundell <pb@nexus.co.uk>
7416 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
7417 decl, not just FUNCTION_DECL.
7418 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
7419 (arm_assemble_integer): Likewise.
7420 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
7423 2002-02-19 matthew green <mrg@eterna.com.au>
7425 * config.gcc (sparc-*-netbsdelf*): Enable target.
7426 (sparc64-*-netbsd*): New target.
7427 * config/sparc/netbsd-elf.h: New file.
7428 * config/sparc/t-netbsd64: New file.
7430 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
7432 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
7434 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
7436 * doc/invoke.texi: explicitly list the style guidelines that
7437 -Weffc++ checks for.
7439 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
7441 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
7443 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
7446 * gcc.c (cpp_unique_options): Treat -o as indicating object file
7447 only if not -E. If -E, pass -o through to the preprocessor.
7449 2002-02-19 Kazu Hirata <kazu@hxi.com>
7451 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
7452 register number with an appropriate macro.
7454 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
7456 * doc/rtl.texi (Constants): Close @code tag.
7458 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
7460 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
7461 ("mmx_uavgv4hi3"): Same.
7462 ("pmulhrwv4hi3"): Same.
7464 * tree-inline.c (walk_tree): Handle vectors.
7466 * c-common.c (constant_expression_warning): Handle vectors.
7467 (overflow_warning): Same.
7469 * sched-deps.c (sched_analyze_2): Handle vectors.
7471 * rtlanal.c (rtx_unstable_p): Handle vectors.
7472 (rtx_varies_p): Same.
7473 (count_occurrences): Same.
7474 (regs_set_between_p): Same.
7475 (modified_between_p): Same.
7476 (modified_in_p): Same.
7477 (volatile_insn_p): Same.
7478 (volatile_refs_p): Same.
7479 (side_effects_p): Same.
7481 (inequality_comparisons_p): Same.
7482 (replace_regs): Same.
7483 (computed_jump_p_1): Same.
7485 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
7487 (inner_mode_array): New.
7488 (copy_rtx): Handle vectors.
7489 (copy_most_rtx): Same.
7490 (rtx_equal_p): Same.
7491 (get_mode_alignment): Adjust for vectors.
7493 * resource.c (mark_referenced_resources): Handle vectors.
7494 (mark_set_resources): Same.
7496 * reload1.c (eliminate_regs): Handle vectors.
7497 (elimination_effects): Same.
7498 (scan_paradoxical_subregs): Same.
7500 * reload.c (subst_reg_equivs): Handle vectors.
7502 * regrename.c (scan_rtx): Handle vectors.
7504 * regclass.c (reg_scan_mark_refs): Handle vectors.
7506 * recog.c (find_single_use_1): Handle vectors.
7508 * local-alloc.c (equiv_init_varies_p): Handle vectors.
7509 (contains_replace_regs): Same.
7510 (memref_referenced_p): Same.
7512 * integrate.c (copy_rtx_and_substitute): Handle vectors.
7513 (subst_constants): Same.
7515 * genattrtab.c (attr_copy_rtx): Handle vectors.
7516 (encode_units_mask): Same.
7517 (clear_struct_flag): Same.
7518 (count_sub_rtxs): Same.
7520 * gcse.c (want_to_gcse_p): Handle vectors.
7521 (oprs_unchanged_p): Same.
7522 (hash_expr_1): Same.
7523 (oprs_not_set_p): Same.
7524 (expr_killed_p): Same.
7525 (compute_transp): Same.
7526 (store_ops_ok): Same.
7528 * function.c (purge_addressof_1): Do not allow paradoxical subregs
7530 (fixup_var_refs_1): Same.
7531 (instantiate_virtual_regs_1): Same.
7533 * fold-const.c (operand_equal_p): Handle vectors.
7535 (rtl_expr_nonnegative_p): Same.
7537 * flow.c (mark_used_regs): Handle vectors.
7539 * df.c (df_uses_record): Handle vectors.
7541 * cselib.c (cselib_subst_to_values): Handle vectors.
7542 (cselib_mem_conflict_p): Same.
7545 * cse.c (canon_reg): Handle vectors.
7547 (cse_process_notes): Same.
7548 (count_reg_usage): Same.
7551 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
7553 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
7555 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
7556 (gen_rtx): Handle CONST_VECTOR.
7557 (gen_const_vector_0): New.
7558 (copy_rtx_if_shared): CONST_VECTORs can be shared.
7559 (reset_used_flags): Same.
7560 (copy_insn_1): Same.
7561 (initializer_constant_valid_p): Handle VECTOR_CST.
7563 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
7565 * doc/rtl.texi (Constants): Document const_vector.
7566 (CONST0_RTX): Update for vectors.
7567 (RTL sharing): Same.
7569 * print-tree.c (print_node): Add case for VECTOR_CST.
7571 * tree.h (TREE_VECTOR_CST_ELTS): New.
7572 (struct tree_vector): New.
7573 (union tree_node): Add vector node.
7574 (build_vector): Add prototype.
7576 * tree.def (VECTOR_CST): New.
7578 * tree.c (build_vector): New.
7580 * expmed.c (make_tree): Handle CONST_VECTOR.
7582 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
7583 (CONST_VECTOR_ELT): New.
7584 (CONST_VECTOR_NUNITS): New.
7586 * machmode.h (GET_MODE_INNER): New.
7587 (DEF_MACHMODE): Accept 8th arg.
7589 * machmode.def: Add 8th argument for vector inner mode.
7590 Add inner vector modes for vectors.
7592 * rtl.def (VEC_CONST): Remove.
7593 (CONST_VECTOR): New.
7595 * expr.c (clear_storage): Allow vectors.
7596 (is_zeros_p): Handle VECTOR_CST.
7598 * varasm.c (output_constant_pool): Handle vectors.
7599 (rtx_const): Add veclo and vechi fields.
7600 (kind): Add RTX_VECTOR.
7601 (decode_rtx_const): Add case for vector.
7603 * config/rs6000/rs6000-protos.h: Add zero_constant.
7605 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
7606 constants. Force easy vector constants into memory.
7607 (easy_vector_constant): New.
7608 (emit_easy_vector_constant): New.
7609 (rs6000_legitimize_reload_address): Do not generate bad reloads on
7612 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
7614 ("altivec_lvxl"): Same.
7615 (altivec_lvebx): Same.
7616 (altivec_lvehx): Same.
7617 (altivec_lvewx): Same.
7618 ("*movv4si_const0"): New.
7619 ("*movv4sf_const0"): New.
7620 ("*movv8hi_const0"): New.
7621 ("*movv16qi_const0"): New.
7623 2002-02-18 Kazu Hirata <kazu@hxi.com>
7625 * config/h8300/h8300.c (notice_update_cc): Use
7628 2002-02-18 Kazu Hirata <kazu@hxi.com>
7630 * config/h8300/h8300.md (divmod patterns): Change the
7631 constraints for operands[1] to register_operand.
7633 2002-02-18 Kazu Hirata <kazu@hxi.com>
7635 * config/h8300/h8300-protos.h: Remove the prototype for
7637 * config/h8300/h8300.c (p_operand): Remove.
7638 * config/h8300/h8300.md: Replace p_operand with
7641 2002-02-18 Philip Blundell <pb@nexus.co.uk>
7643 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
7645 (output_return_instruction): Allow use of LDR to unstack
7646 return addresss even for interrupt handlers or when
7647 interworking. If compiling for ARMv5, use interworking-safe
7648 return instructions by default. Remove duplicated code and
7649 lengthy "strcat" sequences.
7651 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7653 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
7654 (LINK_EH_SPEC): Define.
7655 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
7657 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
7659 * config/s390/s390.c (s390_emit_prologue): Do not set the
7660 frame_related flag for call-clobbered registers.
7662 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
7664 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
7665 (construct_container): Fix handling of SSE operands.
7666 (ix86_expand_builtin): Fix handling of 64bit pointers.
7667 (mmx_maskmovq_rex): New pattern.
7669 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
7671 * regrename.c (kill_set_value): Handle subregs properly.
7673 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
7675 * objc/objc-act.c (handle_impent): Remove leading '*'
7676 from objc_class_name.
7678 2002-02-17 Richard Henderson <rth@redhat.com>
7680 * config/alpha/alpha.c (some_small_symbolic_operand,
7681 some_small_symbolic_operand_1, split_small_symbolic_operand,
7682 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
7683 Handle small SYMBOL_REFs anywhere, not just inside memories.
7684 * config/alpha/alpha-protos.h: Update.
7685 * config/alpha/alpha.h (PREDICATE_CODES): Update.
7686 * config/alpha/alpha.md (small symbolic operand splitter): Update.
7688 2002-02-17 Roland McGrath <roland@frob.com>
7690 * config.gcc (powerpc-*-gnu-gnualtivec*,
7691 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
7692 * config/rs6000/gnu.h: New file.
7693 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
7694 Grok "gnu" in rs6000_abi_name.
7695 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
7696 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
7697 Grok -mcall-gnu analogous to -mcall-linux et al.
7698 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7699 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
7700 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
7702 2002-02-17 Jakub Jelinek <jakub@redhat.com>
7705 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
7708 2002-02-17 Philipp Thomas <pthomas@suse.de>
7710 * config/cris/cris.h: Undefine STARTFILE_SPEC and
7711 ENDFILE_SPEC before (re)defining them.
7713 2002-02-17 Kazu Hirata <kazu@hxi.com>
7715 * config/h8300/h8300.c: Fix formatting.
7716 * config/h8300/h8300.h: Likewise.
7718 2002-02-17 Philipp Thomas <pthomas@suse.de>
7720 * doc/tm.texi: Explain why empty strings should not be
7721 marked for translation.
7723 2002-02-17 Philipp Thomas <pthomas@suse.de>
7725 * final.c (output_operand_lossage): Changed to accept
7726 printf style arguments. Change calls where necessary.
7727 * output.h (output_operand_lossage): Change declaration
7728 accordingly. Update copyright.
7729 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
7730 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
7731 Update copyright date where necessary.
7733 * config/i386/i386.c (print_operand): Likewise. Remove use of
7736 * config/cris/cris.c (cris_operand_lossage): Likewise.
7737 Rename parameter so that exgettext recognizes it as
7738 translatable message.
7739 (LOSE_AND_RETURN): Rename parameter to msgid.
7741 2002-02-17 Kazu Hirata <kazu@hxi.com>
7743 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
7744 hard coded register number with an appropriate macro.
7745 (HARD_REGNO_MODE_OK): Likewise.
7746 (ARG_POINTER_REGNUM): Likewise.
7747 (STATIC_CHAIN_REGNUM): Likewise.
7748 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
7749 * config/h8300/h8300.md (define_constants): Define more
7752 2002-02-17 Philipp Thomas <pthomas@suse.de>
7754 * config/i386/i386.h: Don't mark empty strings for translation.
7756 2002-02-16 H.J. Lu <hjl@gnu.org>
7758 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
7760 2002-02-16 Zack Weinberg <zack@codesourcery.com>
7762 * cppinit.c (merge_include_chains): Check for brack being
7763 NULL before attempting to merge it with qtail.
7765 2002-02-16 Andrew Cagney <ac131313@redhat.com>
7767 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
7770 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
7772 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
7774 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
7776 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
7777 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
7778 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
7780 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7782 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
7783 now only if !TARGET_FIX.
7784 (*movsi_nt_vms_fix): New pattern.
7786 2002-02-16 Douglas B Rupp <rupp@gnat.com>
7788 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
7789 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
7790 (alpha_sa_mask, alpha_sa_size): Reflect above change.
7791 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
7792 (alpha_start_function, alpha_expand_epilogue): Likewise.
7793 (unicosmk_gen_dsib): Likewise.
7795 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7797 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
7799 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
7801 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
7802 check_and_change_labels, s390_final_chunkify): Delete.
7803 (s390_split_branches, s390_chunkify_pool): New functions.
7804 (s390_function_prologue): Call them.
7806 * config/s390/s390.h (S390_REL_MAX): Delete.
7807 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
7809 * config/s390/s390.md (cjump, icjump, jump): Fix length
7810 attribute calculation.
7813 2002-02-15 David Edelsohn <edelsohn@gnu.org>
7815 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
7816 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
7818 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
7820 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
7821 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
7822 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
7824 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
7826 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
7828 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
7830 * reload.c (find_dummy_reload): Check that an output register
7831 is valid for its mode.
7833 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
7835 * combine.c (known_cond): After replacing the REG of a SUBREG, try
7838 * function.c (assign_parms): Demote promoted argument passed by
7839 transparent reference.
7841 2001-02-14 Joel Sherrill <joel@OARcorp.com>
7843 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
7844 -Acpu() and -Amachine() to eliminate warnings.
7846 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
7848 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
7850 2002-02-14 Kazu Hirata <kazu@hxi.com>
7852 * config/h8300/h8300-protos.h: Update the prototype for
7854 * config/h8300/h8300.c (const_costs): Treat SET as a little
7855 more expensive operation.
7856 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
7857 reference to const_costs.
7859 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
7861 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
7863 2002-02-14 Jakub Jelinek <jakub@redhat.com>
7866 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
7867 use arguments from newtype.
7869 2002-02-13 Eric Christopher <echristo@redhat.com>
7871 * config/mips/mips.c (override_options): Add check for march/mipsX
7872 on the same command line. Fix error message in cpu processing.
7873 Remove architecture and ISA checks.
7875 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
7877 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
7879 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
7881 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
7883 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
7885 ("*movv8hi_internal1"): Same.
7886 ("*movv16qi_internal1"): Same.
7887 ("*movv4sf_internal1"): Same.
7889 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
7890 not push_reload for altivec modes.
7892 2002-02-13 Joel Sherrill <joel@OARcorp.com>
7894 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
7895 all RTEMS targets including removal of #includes from config/*/rtems*.h
7896 file and adding them to tm_file setting. Added xm_defines=POSIX to
7898 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
7899 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
7900 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
7901 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
7902 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
7903 config/m68k/rtemself.h: Ditto.
7904 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
7905 config/mips/rtems64.h: Ditto.
7906 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
7907 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
7909 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
7910 config/sparc/rtemself.h: Ditto.
7911 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
7912 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
7913 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
7915 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
7916 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
7917 target made more similar to i386-elf.
7918 * config/i386/t-rtems-i386: Added soft float support and multilibs.
7919 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
7920 be similar to config/m68k/t-m68kelf.
7921 * gthr-rtems.h: Encapsulate with extern "C" for C++.
7923 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
7925 * regmove.c (kill_value): Handle subregs.
7927 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
7929 * i386.md (mul patterns): Allow memory operand to be first;
7930 add expanders where needed; fix constraints.
7931 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
7932 Allow memory operand to be the first.
7934 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
7937 2002-02-13 Jakub Jelinek <jakub@redhat.com>
7940 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
7943 2002-02-13 Jakub Jelinek <jakub@redhat.com>
7945 PR optimization/5547:
7946 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
7947 all valid IA-32 address modes involving non-scaled %ebx and
7948 GOT/GOTOFF as displacement.
7950 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
7952 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
7953 after emitting ltorg insns.
7955 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
7956 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
7957 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
7958 *abssf2): Fix "op_type" attribute.
7960 2002-02-13 Douglas B Rupp <rupp@gnat.com>
7962 * mkconfig.sh: Avoid using a subshell redirect.
7963 ($output.T): Change to $(output)T.
7964 (ENABLE_NLS): Remove unneeded undef.
7966 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
7967 * config/alpha/x-vms (libsubdir): Define.
7969 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
7970 register frame procedures. Optimize retrieving context.
7972 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
7973 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
7974 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
7976 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7978 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
7979 Make same change as for find_base_value.
7981 2002-02-13 Kazu Hirata <kazu@hxi.com>
7983 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
7984 of QImode and SImode.
7986 2002-02-13 Kazu Hirata <kazu@hxi.com>
7988 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
7989 length computation of movsi.
7990 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
7992 2002-02-13 Kazu Hirata <kazu@hxi.com>
7994 * config/h8300/h8300.md (subqi3): Tighten the predicate for
7995 operands[2] to register_operand.
7997 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
7999 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
8001 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
8003 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
8004 for altivec_lvx* and altivec_stvx*.
8005 ("*movv4si_internal"): Add constraint for loading from GPRs.
8006 ("*movv8hi_internal1"): Same.
8007 ("*movv16qi_internal1"): Same.
8008 ("*movv4sf_internal1"): Same.
8010 * config/rs6000/rs6000.c (altivec_register_operand): New.
8012 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
8013 altivec_register_operand.
8015 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
8017 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
8020 2002-02-13 Stan Shebs <shebs@apple.com>
8022 * c-typeck.c (digest_init): Handle vectors.
8023 (really_start_incremental_init): Same.
8024 (pop_init_level): Same.
8025 (process_init_element): Same.
8027 * varasm.c (output_constant): Same.
8029 * expr.c (clear_storage): Same.
8030 (store_constructor): Same.
8032 2002-02-12 Eric Christopher <echristo@redhat.com>
8034 * explow.c (hard_function_value): Add comment explaining
8035 signed/unsigned comparison.
8037 2002-02-12 Jakub Jelinek <jakub@redhat.com>
8039 * jump.c (never_reached_warning): Add finish argument.
8040 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
8041 real insn after end.
8042 * rtl.h (never_reached_warning): Adjust prototype.
8043 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
8044 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
8045 never_reached_warning.
8047 2002-02-12 Graham Stott <grahams@redhat.com>
8049 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
8051 2002-02-12 Kazu Hirata <kazu@hxi.com>
8053 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
8054 logical shifts on H8/300.
8055 (shift_alg_si): Improve several shifts on H8/300.
8056 (get_shift_alg): Likewise.
8058 2002-02-12 Graham Stott <grahams@redhat.com>
8060 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
8062 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8064 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
8065 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
8067 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
8069 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
8070 non-CONST_INT through default_assemble_integer.
8071 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
8072 <case 8>: Abort for CONST_DOUBLE.
8074 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
8076 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
8078 * config/pa/pa-linux.h (LIB_SPEC): Delete.
8079 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8081 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
8083 * config/stormy16/stormy16.md (zero_extendqihi2): New.
8085 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
8087 * regrename.c (regrename_optimize): Don't accept a
8088 part-clobbered register if the replaced register is not part
8091 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
8092 take padding into account when computing the argument value.
8094 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
8096 * combine.c (try_combine): Apply substitutions in
8097 CALL_INSN_FUNCTION_USAGE too.
8099 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
8101 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
8102 __builtin_altivec_abs*.
8105 * config/rs6000/rs6000.h (rs6000_builtins): Add
8106 ALTIVEC_BUILTIN_ABS*.
8108 * config/rs6000/altivec.h: Use const char for builtins expecting
8110 (vec_abs): New versions for C and C++.
8113 2002-02-10 Kazu Hirata <kazu@hxi.com>
8115 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
8118 2002-02-10 Kazu Hirata <kazu@hxi.com>
8120 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
8121 constant definition from h8300.md.
8122 (FRAME_POINTER_REGNUM): Likewise.
8123 * config/h8300/h8300.md (define_constants): Add FP_REG.
8125 2002-02-10 Kazu Hirata <kazu@hxi.com>
8127 * config/h8300/h8300.c (print_operand): Remove redundant code.
8129 2002-02-10 Kazu Hirata <kazu@hxi.com>
8131 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
8132 * config/h8300/h8300.c (byte_reg): Make it static.
8134 2002-02-10 Richard Henderson <rth@redhat.com>
8137 * c-typeck.c (incomplete_type_error): Handle flexible array members.
8139 2002-02-10 Richard Henderson <rth@redhat.com>
8142 * tree.c (append_random_chars): Don't abort if main_input_filename
8145 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
8147 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
8149 2002-02-10 Kazu Hirata <kazu@hxi.com>
8151 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
8152 (pushhi1): Likewise.
8154 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
8156 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
8157 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
8159 2002-02-09 David O'Brien <obrien@FreeBSD.org>
8161 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
8163 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
8165 2002-02-09 Kazu Hirata <kazu@hxi.com>
8167 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
8168 a half of an SImode register on H8/300.
8170 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
8172 * i386.md (movdi_2): Add missing '!'.
8174 2002-02-09 Kazu Hirata <kazu@hxi.com>
8176 * config/h8300/h8300.h: Fix formatting. Remove commented-out
8179 2002-02-09 Kazu Hirata <kazu@hxi.com>
8181 * config/h8300/h8300.md (length): Correct the distance valid
8182 for the short branch.
8184 2002-02-09 Kazu Hirata <kazu@hxi.com>
8186 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
8188 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
8190 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
8191 registers in SImode.
8192 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
8195 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
8198 Contribute sh64-elf.
8199 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
8200 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
8201 (sh_cannot_modify_jumps_p): New function.
8202 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
8203 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
8204 (sh_ms_bitfield_layout_p): New function.
8205 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
8206 Zack Weinberg <zack@codesourcery.com>
8207 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
8208 expand_simple_binop instead of expand_binop.
8209 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
8210 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
8211 use of .quad and .uaquad.
8212 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
8213 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
8214 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8215 * config/sh/sh.md (movdi_const, movdi_const_32bit,
8216 movdi_const_16bit): Make sure all CONSTs have modes.
8217 (sym2PIC): Ditto, but by adjusting all callers.
8218 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
8219 if the prologue calls the SHmedia argument decoder or register
8221 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8222 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
8223 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
8224 (sh_expand_epilogue): Don't emit USE of return target register.
8225 (prepare_move_operands): Legitimize DImode PIC addresses.
8226 (sh_media_register_for_return): Skip tr0, used to initialize the
8228 (sh_expand_prologue): Remove explicit USE of return register.
8229 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
8230 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
8231 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
8232 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
8233 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
8235 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
8236 (MOVI_SHORI_BASE_OPERAND_P): New.
8237 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
8238 (EXTRA_CONSTRAINT_T): Define in terms of them.
8239 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
8240 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
8241 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
8242 alternatives supporting TARGET_REGS.
8243 (UNSPEC_GOTPLT): New constant.
8244 (movdi split): Move incrementing of LABEL_NUSES...
8245 (movdi_const, movdi_const_32bit): Here. Use
8246 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
8247 (movdi_const_16bit): New.
8248 (call, call_value) [flag_pic]: Use GOTPLT.
8249 (call_pop, call_value_pop): New expands.
8250 (call_pop_compact, call_pop_rettramp): New insns.
8251 (call_value_pop_compact, call_value_pop_rettramp): New insns.
8252 (sibcall) [flag_pic]: Use GOT.
8253 (builtint_setjmp_receiver): Remove bogus, unused expand.
8254 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
8255 (*pt, *ptb, ptrel): New insns.
8256 (sym2GOT): Handle DImode GOT.
8257 (sym2GOTPLT, symGOTPLT2reg): New expands.
8258 (sym2PIC): New expand.
8259 (shcompact_return_tramp): Use GOTPLT to return trampoline.
8260 (shcompact_return_tramp_i): Use return register explicitly.
8261 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
8262 disable flag_reorder_blocks.
8263 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
8264 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
8265 clobbers, for clarity.
8266 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
8267 restoring of r0 in macl as MAYBE_DEAD.
8268 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
8269 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
8270 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
8271 alter_subreg all over.
8272 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
8273 reload, instead of emitting instructions that would require
8275 (casesi_load_media): Add missing modes.
8276 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
8277 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
8278 as used if the argument decoder is called.
8279 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
8280 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
8281 Pmode, then extend it to DImode if necessary.
8282 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
8283 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
8284 constants in FPU-enabled SHmedia, let them be loaded from memory.
8285 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
8286 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
8287 Adjust whitespace in assembly output templates.
8288 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
8289 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
8290 mode of if_then_else.
8291 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
8292 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
8294 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
8295 Joern Rennecke <amylaar@redhat.com>
8296 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
8297 (SUBTARGET_CPP_PTR_SPEC): New.
8298 (SUBTARGET_CPP_SPEC): Remove.
8299 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
8300 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8301 Fix typo in previous checkin.
8302 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
8303 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
8304 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
8305 Alexandre Oliva <aoliva@redhat.com>
8306 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
8307 what single FP register can hold for SHmedia target.
8308 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
8309 Alexandre Oliva <aoliva@redhat.com>
8310 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8311 Do not split into SUBREG.
8312 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
8313 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
8314 and added new functions as specified in SH5 ABI r9.
8315 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
8316 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
8318 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
8319 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
8320 gen_consttable_4 and gen_consttable_8. Emit multiple labels
8321 and consttable_window_ends.
8322 2001-06-03 Graham Stott <grahams@redhat,com>
8323 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
8324 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
8325 * config/sh/sh.c (print_operand): Handle floating-point pair,
8326 vector and matrix registers.
8327 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
8328 vector modes into account.
8329 * config/sh/sh.md (movv2sf): Split move between registers into
8331 (movv4sf, movv16sf): Introduce insns that get split only after
8333 * config/sh/shmedia.h: Fix Copyright dates.
8334 * config/sh/ushmedia.h: Likewise. Move loop counter
8335 declarations into conditionals that uses them.
8336 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
8338 * config/sh/sshmedia.h: Fix Copyright dates.
8339 (sh_media_PUTCFG): Fix constraints.
8340 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
8341 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
8342 ptrmemfunc_vbit_in_delta for SH5.
8343 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
8344 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
8345 * invoke.texi: Likewise.
8346 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
8347 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
8348 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
8349 GCC_pop_shmedia_regs_nofpu): New global symbols.
8350 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
8351 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
8352 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
8353 compact function with nonlocal labels.
8354 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
8355 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
8356 (initial_elimination_offset): Account for their stack space.
8357 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
8358 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
8359 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
8360 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
8361 least one of the operands to be a register.
8362 (movv2sf): Likewise. Renamed to movv2sf_i.
8363 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
8364 prepare_move_operands() before emitting SHmedia insns.
8365 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
8366 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
8367 Don't save nor initialize r12. Don't mis-align the stack.
8368 Pad the code with a nop.
8369 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
8371 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
8372 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
8373 [__SHMEDIA__]: Implement.
8374 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
8375 * config/sh/sh.md: Set latency of `pt' closer to reality.
8376 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
8377 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
8378 Set move, load and store type attributes.
8379 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
8380 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
8382 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
8383 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
8384 * config/sh/sh.c (sh_media_register_for_return): New function.
8385 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
8386 branch-target register.
8387 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
8388 * config/sh/sh.md (return_media_i): Use any call-clobbered
8389 branch-target register.
8390 (return_media): If r18 wasn't copied in the prologue, copy it
8392 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
8393 Clear class FP0_REGS.
8394 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
8396 2001-03-08 DJ Delorie <dj@redhat.com>
8397 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
8398 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
8399 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
8400 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
8401 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
8402 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
8403 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
8404 return value correctly for call_cookie.
8405 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
8406 * config/sh/crt1.asm (start): Modified so as to call
8407 ___setup_argv_and_call_main.
8408 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
8409 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
8411 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
8412 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
8413 (STRIP_NAME_ENCODING): Use it.
8414 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
8415 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
8416 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
8417 prepare_scc_operands().
8418 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
8419 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
8420 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
8421 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
8422 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
8423 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
8424 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
8425 used in shcompact_incoming_args.
8426 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
8428 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
8430 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
8432 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
8433 Simplify. Adjust. Add sanity check.
8434 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
8436 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
8438 (udivsi3, divsi3): Use them.
8439 (force_mode_for_call): New insn.
8440 (call, call_value, sibcall_value): Emit it before SHcompact
8442 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
8443 * config/sh/sh.md (call, call_value, sibcall): Make sure the
8444 call cookie is non-NULL before taking its value.
8445 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
8446 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
8447 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
8448 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
8450 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
8451 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
8452 temporary for stack adjusts. Use MACL and MACH to pass
8453 arguments to shcompact_incoming_args.
8454 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
8456 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
8457 (nested_trampoline): Load static chain address into r1.
8458 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
8459 2001-01-07 Alexandre Oliva <aoliva@redhat.com
8460 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
8461 fp_arith_reg_operand().
8462 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
8463 * config/sh/sh.md (casesi): Sign-extend the first two operands,
8464 and use signed compares for them.
8465 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
8466 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
8467 ones properly aligned.
8468 (find_barrier): Account for extra alignment needed for 8-byte wide
8470 (machine_dependent_reorg): Require a label for the second 4-byte
8471 constant after an 8-byte one.
8472 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
8474 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
8475 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
8476 last_float when switching float modes.
8477 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
8478 auto-increment for general-purpose registers.
8479 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
8481 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
8483 * config/sh/sh.c (sh_builtin_saveregs): Support using all
8484 registers for varargs.
8485 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
8486 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
8487 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
8488 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
8489 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
8490 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
8491 call_cookie accordingly.
8492 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
8493 (SHCOMPACT_BYREF): Likewise.
8494 (SHCOMPACT_FORCE_ON_STACK): New macro.
8495 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
8496 (sh_builtin_saveregs): Likewise.
8497 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8498 shcompact_incoming_args): Use new shift values. Support
8499 sequences of consecutive and non-consecutive pushes/pops.
8500 * config/sh/sh.md (return): Don't explicitly use PR_REG.
8501 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
8502 * config/sh/sh.h (TEXT_SECTION): Define.
8503 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
8504 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
8505 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
8506 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
8507 return values on FPU-enabled SHmedia.
8508 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
8509 FPU-enabled SHmedia.
8510 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
8511 value is returned in a non-FP reg and is not returned by
8513 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
8515 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
8516 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
8517 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
8518 quad-aligned to be passed by callee-copy reference.
8519 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
8520 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
8521 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
8522 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
8523 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
8524 copying low-numbered FP regs to r7 and r8.
8525 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
8526 FP regs to general-purpose regs only if the copy was passed on the
8528 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
8529 copying FP reg to r9.
8530 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
8531 copy FP regs to general-purpose regs only in outgoing calls.
8532 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
8533 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
8535 * config/sh/sh.h (struct sh_args): Document all fields.
8536 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
8537 passed partially on the stack should not consider making
8539 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
8540 stack_regs only for incoming calls. When passing FP args,
8541 make sure there are FP regs available before modifying
8543 (SHCOMPACT_BYREF): Pass double args in general-purpose
8544 registers by reference.
8545 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
8546 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
8547 attempt to generate sibcalls if the caller got any arguments
8549 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
8550 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
8551 to 8-byte boundaries.
8552 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
8553 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
8554 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
8555 stored in the stack.
8556 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
8557 for the offsets to have the ISA bit set.
8558 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
8559 invocation. Use beq instead of bgt to mark end of sequence of
8561 (shcompact_incoming_args): Fix store of r2. Use beq instead of
8562 bgt to mark end of sequence of stores.
8563 * config/sh/sh.c (arith_operand): Don't check whether
8564 CONST_OK_FOR_J for now.
8565 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
8566 instead of long for conversion.
8567 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
8568 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
8569 before passing it to fprintf.
8570 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
8571 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
8572 Call set_fpscr before reading/writing SR.
8573 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
8575 * config/sh/lib1funcs.asm: Add `.align 2' directives before
8577 (FMOVD_WORKS): Define on SH5 with FPU.
8578 (set_fpscr): Define on SH5. Remove separate _fpscr_values
8580 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
8582 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
8583 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
8585 (ia_main_table): Ditto.
8586 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
8587 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8588 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
8589 the definitions from sh.h.
8590 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
8592 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
8593 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
8594 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8595 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
8596 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
8597 Increment LABEL_NUSES.
8599 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
8601 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
8603 * config/sh/elf.h (SIZE_TYPE): Likewise.
8604 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8605 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8606 shcompact_incoming_args): Load switch table addresses using
8608 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8609 (NO_BUILTIN_SIZE_TYPE): Define.
8610 (SIZE_TYPE): Don't define.
8611 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8612 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
8613 definition of __SH5__=32 for -m5-compact-nofpu.
8614 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
8616 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
8617 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
8618 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
8619 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
8620 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
8621 (INSN_LENGTH_ALIGNMENT): Likewise.
8622 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8623 * config/sh/sh.md (call, call_value, sibcall): Simplify
8624 copying of non-branch-target register.
8625 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8626 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
8627 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
8628 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8629 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
8630 floating-point values as structs.
8631 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
8632 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
8633 general-purpose register.
8634 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
8635 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
8636 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
8637 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
8638 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
8639 (ENCODE_SECTION_INFO): Enclose variables and constants in
8641 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
8642 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
8643 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
8644 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
8645 only for LABEL_REFs. For SYMBOL_REFs, prepend
8646 SH_DATALABEL_ENCODING to the symbol name.
8647 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
8649 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
8650 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
8652 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
8653 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
8654 (DATALABEL_REF_P): Don't require CONST.
8655 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
8657 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
8658 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
8660 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
8661 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
8662 Use shallow_copy_rtx and PUT_MODE to change the mode of
8663 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
8664 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
8665 on SHmedia using GENERAL_REGs.
8666 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8667 bltu_media_i): Fix reversion of conditions.
8668 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
8669 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
8670 * config/sh/sh.c (output_far_jump): Save r13 in macl.
8671 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
8672 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
8673 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
8674 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
8675 (GCC_nested_trampoline): Likewise.
8676 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
8677 * config/sh/sh.c (gen_datalabel_ref): Define.
8678 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
8679 (INITIALIZE_TRAMPOLINE): Likewise.
8680 (TRAMPOLINE_ADJUST_ADDRESS): Define.
8681 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
8682 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
8683 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
8684 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
8685 (ic_invalidate): Adjust for SH5.
8686 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
8687 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
8689 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
8690 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
8691 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
8692 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
8693 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
8694 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
8695 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
8696 * config/sh/sh.c (target_reg_operand): Match only target-branch
8697 registers and pseudos that aren't virtual registers.
8698 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8699 Copy operands that don't match target_reg_operand to pseudos.
8700 (call_media, call_value_media, sibcall_media): Use
8701 target_reg_operand instead of target_operand.
8702 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
8703 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
8704 * config/sh/sh.c (target_reg_operand): Match hardware registers
8705 other than branch-target registers.
8706 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
8707 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
8708 (fpscr_values) [SH5 == 32]: Define.
8709 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
8710 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8711 Handle function addresses coming in SUBREGs.
8712 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
8713 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8714 shcompact_return_trampoline): Use datalabel where appropriate.
8715 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
8716 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
8717 general-purpose register to copy one branch-target register to
8719 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
8720 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
8721 SYMBOL_REFs with VOIDmode.
8722 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8723 bltu_media_i): New insns.
8724 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
8725 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
8726 (INIT_CUMULATIVE_ARGS): Likewise.
8727 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
8728 * machmode.def (V16SFmode): New mode.
8729 * c-common.c (type_for_mode): Support V2SF and V16SF.
8730 * tree.c (build_common_tree_nodes_2): Likewise.
8731 * tree.h (tree_index): Likewise.
8732 * calls.c (emit_call_1): Take args_so_far. Adjust all
8733 callers. Introduce CALL_POPS_ARGS.
8734 * tm.texi (CALL_POPS_ARGS): Document.
8735 * config/sh/crt1.asm: Implement in SHmedia mode.
8736 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
8737 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
8738 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
8739 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
8740 Implement divsi and udivsi in SHmedia mode. Introduce
8741 SHcompact trampolines.
8742 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
8744 (regno_reg_class): Rewrite.
8745 (fp_reg_names): Remove.
8746 (sh_register_names, sh_additional_register_names): New.
8747 (print_operand): Added `u'. Support SUBREGs in addresses.
8748 Add parentheses around shifted CONSTs.
8749 (output_file_start): Output .mode and .abi directives.
8750 (shiftcosts, addsubcosts, multcosts): Adjust.
8751 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
8752 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
8753 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
8754 bytes, not registers. Take into account the need for the
8755 SHcompact incoming args trampoline. Adjust all callers.
8756 (sh_expand_prologue): Take stack_regs into account. Call
8757 incoming args trampoline. Keep stack aligned as per SH5 ABI.
8758 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
8759 stack aligned as per SH5 ABI.
8760 (sh_builtin_saveregs): Support SH5 ABI.
8761 (sh_build_va_list, sh_va_start): Likewise.
8762 (initial_elimination_offset): Take alignment into account.
8763 Compute location of PR according to the SH5 stack frame.
8764 (arith_reg_operand): Reject branch-target registers.
8765 (shmedia_6bit_operand): New.
8766 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
8767 (target_reg_operand): Match DImode only. Accept SUBREGs.
8768 (target_operand): New.
8769 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
8770 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
8771 SIBCALL_REGS for SHmedia.
8772 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
8773 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
8774 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
8775 (TARGET_SWITCHES): New SH5 flags.
8776 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
8777 VALID_REGISTER_P to disable unsupported registers.
8778 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
8779 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
8780 (FUNCTION_ARG_PADDING): Define.
8781 (FASTEST_ALIGNMENT): Adjust.
8782 (SH_REGISTER_NAMES_INITIALIZER): New.
8783 (sh_register_names): Declare.
8784 (DEBUG_REGISTER_NAMES): Define.
8785 (REGISTER_NAMES): Define based on sh_register_names.
8786 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
8787 (sh_additional_register_names): Declare.
8788 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
8789 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
8790 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
8791 (REGISTER_NATURAL_MODE): Define.
8792 (FIRST_PSEUDO_REGISTER): Adjust.
8793 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
8794 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
8795 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
8796 (VECTOR_MODE_SUPPORTED_P): Define.
8797 (REG_CLASS_CONTENTS): Adjust.
8798 (SMALL_REGISTER_CLASSES): Adjust.
8799 (REG_ALLOC_ORDER): Adjust.
8800 (INDEX_REG_CLASS): Adjust.
8801 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
8802 (CONST_OK_FOR_LETTER_P): Adjust.
8803 (PREFERRED_RELOAD_CLASS): Adjust.
8804 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
8805 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
8806 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
8807 (FIRST_FP_PARM_REG): Adjust.
8808 (CALL_POPS_ARGS): Define.
8809 (FUNCTION_ARG_REGNO_P): Adjust.
8810 (struct sh_args): New fields.
8811 (GET_SH_ARG_CLASS): Adjust.
8812 (INIT_CUMULATIVE_ARGS): Adjust.
8813 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
8814 (FUNCTION_ARG_ADVANCE): Adjust.
8815 (FUNCTION_ARG): Adjust.
8816 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
8817 (FUNCTION_ARG_CALLEE_COPIES): Define.
8818 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
8819 (STRICT_ARGUMENT_NAMING): Define.
8820 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
8821 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
8822 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
8823 (SETUP_INCOMING_VARARGS): Adjust.
8824 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
8825 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
8826 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
8827 (SUBREG_OK_FOR_INDEX_P): Adjust.
8828 (EXTRA_CONSTRAINT_S): Update.
8829 (EXTRA_CONSTRAINT_T): New.
8830 (EXTRA_CONSTRAINT): Adjust.
8831 (GO_IF_LEGITIMATE_INDEX): Adjust.
8832 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
8833 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
8835 (MAX_MOVE_MAX): Define.
8837 (CONST_COSTS): Adjust.
8838 (REGISTER_MOVE_COST): Adjust.
8839 (BRANCH_COST): Adjust.
8840 (TEXT_SECTION_ASM_OP): Adjust.
8841 (DBX_REGISTER_NUMBER): Adjust.
8842 (ASM_OUTPUT_DOUBLE_INT): New.
8843 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
8844 (PREDICATE_CODES): Adjust.
8845 (PROMOTE_MODE): Adjust.
8846 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
8847 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
8848 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
8849 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
8850 (DR0_REG, DR2_REG, DR4_REG): Renumber.
8851 (TR0_REG, TR1_REG, TR2_REG): New.
8852 (XD0_REG): Renumber.
8853 (UNSPEC_COMPACT_ARGS): New.
8854 (type): Added pt and ptabs.
8855 (length): Default to 4 on SHmedia. Default pt length to 12
8856 and 20 on SHmedia32 and SHmedia64, respectively.
8857 (pt): New function unit.
8858 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
8859 Add whitespace between operands of SHmedia instructions.
8861 (adddi3_media, addsi3_media): Adjust constraints.
8862 (subsi3) [SHmedia]: Force operand 1 into a register.
8863 (udivsi3_i1_media, udivsi3_i4_media): New.
8864 (udivsi3): Support SHmedia.
8865 (divsi3_i1_media, divsi3_i4_media): New.
8866 (divsi3): Support SHmedia.
8867 (anddi3, iordi3, xordi3): Adjust constraints.
8868 (zero_extendhidi2, zero_extendqidi2): New.
8869 (extendsidi2, extendhidi2, extendqidi2): New.
8870 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
8871 (pop_e, pop_fpul, pop_4): Likewise.
8872 (movsi_media): Support FP and BT registers.
8873 (movsi_media_nofpu): New. Adjust splits to DImode.
8874 (lduw, ldub): Renamed to zero_extend* above.
8875 (movqi_media): Fix typo.
8876 (movdi_media): Support FP and BT registers.
8877 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
8878 (movdi_const_32bit): New.
8879 (shori_media): Require immediate operand. Use `u' for output.
8880 (movdf_media, movsf_media): Simplified.
8881 (movdf_media_nofpu, movsf_media_nofpu): New.
8882 (movdf, movsf): Adjust
8883 (movv2sf, movv2sf, movv16sf): New.
8884 (beq_media, beq_media_i): Adjust constraints. Don't use
8885 scratch BT register.
8886 (bne_media, bne_media_i): Likewise.
8887 (bgt_media, bgt_media_i): Likewise.
8888 (bge_media, bge_media_i): Likewise.
8889 (bgtu_media, bgtu_media_i): Likewise.
8890 (bgeu_media, bgeu_media_i): Likewise.
8891 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
8892 bunordered): Emit jump insn. Force operands to registers when
8894 (jump_media, jump): Simplify.
8895 (call_compact, call_compact_rettramp): New.
8896 (call_value_compact, call_value_compact_rettramp): New.
8897 (call_media, call_value_media): Simplify.
8898 (sibcall_compact, sibcall_media): New.
8899 (call, call_value): Adjust for SHmedia and SHcompact.
8900 (sibcall, sibcall_value, untyped_call): Likewise.
8901 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
8902 (indirect_jump): Adjust for SHmedia.
8903 (casesi_jump_media): New.
8904 (nop): Re-enable for SHmedia.
8905 (call_site): Restrict to SH1.
8906 (casesi): Adjust for SHmedia.
8907 (casesi_shift_media, casesi_load_media): New.
8908 (return): Explicitly use PR register. Call return trampoline
8910 (return_i): Explicitly use PR register.
8911 (shcompact_return_tramp, shcompact_return_tramp_i): New.
8912 (return_media): Adjust.
8913 (shcompact_incoming_args): New.
8915 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8916 (movstrsi): Disable on SH5.
8917 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
8918 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
8919 (subsf3, subsf3_media): Likewise.
8920 (mulsf3, mulsf3_media, mac_media): Likewise.
8921 (divsf3, divsf3_media): Likewise.
8922 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
8923 (floatsisf2, fux_truncsfsi2): Likewise.
8924 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
8926 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
8927 (cmpunsf_media, cmpsf): Likewise.
8928 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
8929 (abssf2, abssf2_media): Likewise.
8930 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
8931 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
8932 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
8933 (floatsidf2, fix_truncdfsi2): Likewise.
8934 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
8936 (cmpeqdf_media, cmpgtdf_media): Likewise.
8937 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
8938 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
8939 (absdf2, absdf2_media): Likewise.
8940 (extendsfdf2, extendsfdf2_media): Likewise.
8941 (truncsfdf2, truncsfdf2_media): Likewise.
8942 * config/sh/sh64.h: New file.
8943 * config/sh/t-sh64: New file.
8944 * config/sh/shmedia.h: New file.
8945 * config/sh/ushmedia.h: New file.
8946 * config/sh/sshmedia.h: New file.
8947 * configure.in: Added sh64-*-elf.
8948 * configure: Rebuilt.
8949 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
8950 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
8951 (reg_class_from_letter): Use `b' for TARGET_REGS.
8952 (print_operand): Support `%M', `%m', `AND' and
8953 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
8954 (andcosts): Adjust for SHmedia.
8955 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
8957 (target_reg_operand): New function.
8958 * config/sh/sh-protos.h (target_reg_operand): Declare.
8959 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
8960 FP registers on SH5.
8961 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
8963 (TARGET_REGISTER_P): New macro.
8964 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
8965 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
8966 (EXTRA_CONSTRAINT_S): New macro.
8967 (EXTRA_CONSTRAINT): Adjust.
8968 (FLOAT_TYPE_SIZE): Define to 32.
8969 (Pmode): DImode on SHmedia.
8970 (CONST_COSTS): Adjust for SHmedia literals.
8971 (PREDICATE_CODES): Added target_reg_operand.
8972 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
8973 * config/sh/sh.md: Remove all attrs from SHmedia insns.
8974 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
8975 (cmpdi): Accept SHmedia.
8976 (movdicc_false, movdicc_true): New insns.
8977 (movdicc): New expand.
8978 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
8980 (addsi3_media): Match `S' constraint.
8981 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
8982 (negdi2): Expand for SHmedia.
8983 (one_cmpldi2): New expand.
8984 (zero_extendsidi2): Change from expand to insn.
8985 (extendsidi2): Add constraints.
8986 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
8987 LD/ST address. Fix SI immediate loading split.
8988 (movhi_media, movqi_media, lduw, ldub): New insns.
8989 (movhi, movqi): Accept SHmedia.
8990 (shori_media, movdi_media): Relax input constraints. Split
8992 (movdf_media, movsf_media): New insn. New split to movdi.
8993 (movdf, movsf): Match on SHmedia.
8994 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
8995 bgeu_media): New insns and splits. New insns with `_i' suffix.
8996 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
8997 (bunordered): New expand.
8998 (jump_compact): Renamed from `jump'.
8999 (jump_media): New insn.
9001 (call_media, call_value_media): New insns.
9002 (call, call_value): Adjust.
9003 (indirect_jump_compact): Renamed from `indirect_jump'.
9004 (indirect_jump_media): New insn.
9005 (indirect_jump): New expand.
9006 (untyped_call, return): Accept SHmedia.
9007 (return_media): New insn.
9008 (prologue, epilogue, blockage): Accept SHmedia.
9009 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
9010 (sunordered): New expand.
9011 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
9012 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
9013 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
9014 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
9015 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
9016 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
9017 abssf2_media): New insns.
9018 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
9019 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
9020 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
9021 floatdidf2, floatsidf2_media, fix_truncdfdi2,
9022 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
9023 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
9024 absdf2_media): New insns.
9025 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
9026 (extendsfdf2_media, truncdfsf2_media): New insns.
9027 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
9028 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
9029 * config/sh/sh.h (CONST_OK_FOR_J): Document.
9030 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
9031 * config/sh/sh.md (adddi3): New expand.
9032 (adddi3_media, adddi3z_media): New insns.
9033 (adddi3_compact): Renamed from adddi3.
9034 (addsi3_media): Use add.l r63 to add constant zero.
9035 (subdi3): New expand.
9036 (subdi3_media): New insn.
9037 (subdi3_compact): Renamed from subdi3.
9038 (mulsidi3): New expand.
9039 (mulsidi3_media): New insn.
9040 (mulsidi3_compact): Renamed from mulsidi3.
9041 (umulsidi3): New expand.
9042 (umulsidi3_media): New insn.
9043 (umulsidi3_compact): Renamed from umulsidi3.
9044 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
9045 (ashlsi3, ashrsi3, lshrsi3): Use them.
9046 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
9047 (ashldi3, ashrdi3, lshrdi3): Use them.
9048 (zero_extendsidi2): New expand.
9049 (extendsidi2): New insn.
9050 (movsi_media): New insn. Split to movdi to load constants.
9051 (movsi): Enable for shmedia.
9052 (movdi_media): New insn. Use shori_media to load wide constants.
9053 (short_media): New insn.
9054 (movdi): Enable for shmedia.
9055 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
9056 * config/sh/sh.h (CPP_SPEC): Added `m5'.
9057 (SUBTARGET_CPP_SPEC): Added `!m5'.
9058 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
9059 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
9060 to all other SH variants.
9061 (TARGET_DEFAULT): Set to SH1_BIT.
9062 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
9063 (BITS_PER_WORD): Raise to 64 on shmedia.
9064 (MAX_BITS_PER_WORD): Change to 64.
9065 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
9066 (INT_TYPE_SIZE): Keep as 32.
9067 (UNITS_PER_WORD): Raise to 8 on shmedia.
9068 (MIN_UNITS_PER_WORD): Keep as 4.
9069 (POINTER_SIZE): Raise to 64 on shmedia.
9070 (CONST_OK_FOR_J): New macro.
9071 (CONST_OK_FOR_LETTER_P): Use it.
9072 (processor_type): Add PROCESSOR_SH5.
9073 * config/sh/sh.md: Conditionalize all expands, insns and
9074 splits to TARGET_SH1.
9076 (addsi3_compact): Renamed from...
9077 (addsi3): Now an expand.
9078 (addsi3_media, subsi3_media): New insns.
9079 (subsi3): Don't negate constants with SHmedia.
9081 * hooks.c: New file.
9082 * hooks.h: New file.
9083 * Makefile.in (HOOKS_H): New.
9084 (TARGET_DEF_H): Added $(HOOKS_H).
9085 (OBJS): Added hooks.o.
9086 (cfgcleanup.o, bb-reorder.o): Added target.h.
9087 (hooks.o): Added dependencies.
9088 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
9089 (TARGET_INITIALIZER): this.
9090 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
9091 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
9092 * bb-reorder.c: Include target.h.
9093 (reorder_basic_blocks): Skip if cannot modify jumps.
9094 * cfgcleanup.c: Include target.h.
9095 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
9097 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9099 * config/mips/mips.md (casesi_internal, casesi_internal_di):
9100 Protect jump delay slot instructions with .set noreorder and
9103 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9105 * config/mips/mips.md (casesi_internal_di): Calculate
9106 the index into the target offset table correctly.
9108 2002-02-08 Richard Henderson <rth@redhat.com>
9110 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
9111 * final.c (output_addr_const): Accept and discard SUBREG.
9112 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
9113 mark them unknown instead.
9114 (simplify_subtraction): Handle RTX_UNKNOWN.
9115 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
9117 2002-02-08 David Edelsohn <edelsohn@gnu.org>
9119 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
9121 2002-02-08 Richard Henderson <rth@redhat.com>
9123 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
9125 2002-02-08 Andreas Jaeger <aj@suse.de>
9127 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
9128 * config/i386/t-linux64: New file.
9130 2002-02-08 Jakub Jelinek <jakub@redhat.com>
9132 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
9133 * c-parse.in (compstmt): Clear last_expr_type.
9135 2002-02-07 Richard Henderson <rth@redhat.com>
9137 * loop.c (strength_reduce): Sink final_value when not
9140 2002-02-07 David O'Brien <obrien@FreeBSD.org>
9142 * config/sparc/freebsd.h: Fix mismatched spec {.
9144 2002-02-07 Richard Henderson <rth@redhat.com>
9146 * cfgrtl.c: Include recog.h and insn-config.h.
9147 (keep_with_call_p): Fix general_operand invocation.
9148 * Makefile.in (cfgrtl.o): Update dependencies.
9150 2002-02-07 Kazu Hirata <kazu@hxi.com>
9152 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
9153 comment. Accept HImode only if TARGET_H8300.
9155 2002-02-07 Eric Christopher <echristo@redhat.com>
9157 * config/mips/crtn.asm: Cleanup #ifdefs.
9159 2002-02-07 Eric Christopher <echristo@redhat.com>
9161 * config/mips/crti.asm: Add changes for mips16. mips16 uses
9162 register 7 as RA instead of $31.
9163 * config/mips/crtn.asm: Ditto.
9164 * config/mips/mips.c (mips_move_2words): Add case for
9165 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
9166 (compute_frame_size): Fix typo.
9167 (save_restore_insns): Ditto. Make documentation about using
9168 register $7 as return register more precise.
9169 (mips_expand_epilogue): Fix comment. Add code to work around not
9170 being able to add to the stack pointer directly.
9171 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
9172 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
9175 2002-02-07 Tom Rix <trix@redhat.com>
9177 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
9178 immediates in ldu and stdu DS opcode field.
9179 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
9180 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
9181 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
9183 2002-02-07 Jeff Sturm <jsturm@one-point.com>
9185 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
9186 offset for stack bias.
9188 2002-02-07 H.J. Lu <hjl@gnu.org>
9190 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
9192 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
9194 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
9196 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
9198 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
9199 * i386.c (x86_order_regs_for_local_alloc): New global function.
9200 * i386.h (REG_ALLOC_ORDER): CLeanup.
9201 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
9203 2002-02-07 Richard Henderson <rth@redhat.com>
9205 PR optimization/2463
9206 * alias.c (find_base_value): Recall base values for fixed hard regs.
9207 * loop.c (loop_regs_update): Don't use single_set on non-insns.
9209 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
9211 * config/mips/mips.md (define_delay) [mips16]: Adjust required
9214 2002-02-06 Richard Henderson <rth@redhat.com>
9217 * stmt.c (resolve_operand_name_1): Take more care with mixed
9218 named and unnamed operands.
9220 2002-02-06 Janis Johnson <janis187@us.ibm.com>
9221 Jan Hubicka <jh@suse.cz>
9223 * loop.c (remove_constant_addition): Avoid clobbering a shared
9226 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
9228 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
9229 * config/s390/t-linux64: New file.
9230 * config/s390/libgcc-glibc.ver: New file.
9232 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
9234 * config/s390/linux64.h: Delete file.
9235 * config/s390/s390x.h: New file.
9236 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
9237 as target header file.
9238 * config/s390/linux.h (TARGET_VERSION): Define depending on
9239 DEFAULT_TARGET_64BIT.
9240 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
9241 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
9242 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
9243 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
9244 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
9245 (EXTRA_SPEC): New define.
9246 * config/s390/s390.h (TARGET_VERSION): Define depending on
9247 DEFAULT_TARGET_64BIT.
9248 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
9250 2002-02-06 Jason Merrill <jason@redhat.com>
9252 * c-decl.c (finish_function): Warn about a non-void function with
9253 no return statement and no abnormal exit.
9254 (current_function_returns_abnormally): New variable.
9255 (start_function): Clear it.
9256 (struct c_language_function): Add returns_abnormally.
9257 (push_c_function_context): Save it.
9258 (pop_c_function_context): Restore it.
9259 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
9260 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
9261 an explicit return type.
9262 * c-tree.h: Declare current_function_returns_abnormally.
9263 (C_FUNCTION_IMPLICIT_INT): New macro.
9264 * c-typeck.c (build_function_call): Set it.
9265 (c_expand_return): Set current_function_returns_value even if the
9268 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9271 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
9272 unsafe for reevaluation.
9274 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9277 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
9278 EXPR_STMT, but COMPOUND_STMT, recurse into it.
9280 2002-02-06 Richard Henderson <rth@redhat.com>
9282 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
9283 be a general_operand. Dest for function value must be a pseudo.
9285 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9287 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
9288 as SYMBOL_REFs from the constant pool.
9290 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
9292 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
9293 passed by invisible reference.
9295 2002-02-05 Richard Henderson <rth@redhat.com>
9297 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
9299 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
9301 Implement using "base addresses" in insn operands as default.
9302 * config/mmix/mmix.c (mmix_conditional_register_usage): if
9303 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
9304 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
9305 used to read the rtx value.
9306 (mmix_target_asm_function_epilogue): Fix spacing.
9307 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
9308 (mmix_legitimate_address): Ditto.
9309 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
9310 should be loaded with a GETA insn. Don't allocate needless extra
9311 char for nul termination and fix misleading comment.
9312 (mmix_print_operand_address): Handle constants if
9313 TARGET_BASE_ADDRESSES.
9314 (mmix_output_register_setting): Use base addressing if
9315 TARGET_BASE_ADDRESSES and the number of insns is 3.
9316 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
9317 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
9318 to use R as constraint, add LDA to match s.
9319 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
9320 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
9321 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
9322 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
9323 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
9324 order with other fixed registers.
9325 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
9326 other parameter/call-clobbered registers.
9327 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
9328 -mbase-addresses, -mno-base-addresses.
9329 (MMIX Options): Ditto.
9331 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
9333 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
9335 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
9337 * config/rs6000/altivec.h: Change elem to _S_elem.
9339 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
9341 * config/netbsd.h (WCHAR_TYPE): Define.
9342 (WCHAR_TYPE_SIZE): Ditto.
9344 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
9345 (WCHAR_UNSIGNED): Ditto.
9346 (WCHAR_TYPE_SIZE): Ditto.
9348 * config/arm/netbsd.h: Likewise.
9349 * config/i386/netbsd-elf.h: Likewise.
9350 * config/i386/netbsd.h: Likewise.
9351 * config/m68k/netbsd-elf.h: Likewise.
9352 * config/m68k/netbsd.h: Likewise.
9353 * config/ns32k/netbsd.h: Likewise.
9354 * config/sparc/netbsd.h: Likewise.
9355 * config/vax/netbsd.: Likewise.
9357 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
9359 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
9360 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
9361 (TARGET_INITIALIZER): this.
9362 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
9363 (BITFIELD_NBYTES_LIMITED): Markup fix.
9364 * tree.h (default_ms_bitfield_layout_p): Declare.
9365 (record_layout_info): Added prev_field.
9366 * tree.c (default_ms_bitfield_layout_p): New fn.
9367 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
9368 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
9369 * stor-layout.c: Include target.h.
9370 (start_record_layout): Initialize prev_field.
9371 (place_field): Handle MS bit-field layout, and disregard
9372 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
9373 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
9374 * Makefile.in (stor-layout.o): Adjust dependencies.
9376 2002-02-05 Jason Merrill <jason@redhat.com>
9378 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
9380 2002-02-05 Andreas Jaeger <aj@suse.de>
9382 * crtstuff.c: Fix comments.
9384 2002-02-05 Richard Henderson <rth@redhat.com>
9387 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
9388 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
9391 * config/mips/mips.c (function_arg): Handle TImode.
9392 (function_arg_advance): Likewise.
9394 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9396 * config/rs6000/altivec.h (vec_step_help): Rename to
9399 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9401 * config/rs6000/altivec.h: Fix typos.
9403 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
9405 * config/arm/netbsd.h: Correct a comment.
9407 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9409 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
9410 building void typed builtins.
9412 * config/rs6000/altivec.h (vec_ld*): Fix typos.
9413 (vec_step): Implement for C++.
9415 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9417 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
9419 2002-02-04 Richard Henderson <rth@redhat.com>
9421 * combine.c (nonzero_bits): Re-introduce special case for
9422 sp/fp/ap wrt REGNO_POINTER_ALIGN.
9424 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9426 * doc/extend.texi: Warn about unsupported usage of altivec
9429 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
9430 (altivec_predicate_*): New.
9432 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
9433 Add C++ version of vec_*() functions.
9435 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
9436 (bdesc_2arg): Remove altivec predicates.
9437 (altivec_expand_builtin): Handle predicates.
9438 (altivec_init_builtins): Handle predicates.
9439 (altivec_expand_predicate_builtin): New.
9441 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9443 * pa.c (DO_FRAME_NOTES): Move forward.
9444 (store_reg): Revise handling of frame notes.
9445 (load_reg): Likewise.
9446 (set_reg_plus_d): Likewise.
9447 (hppa_expand_prologue): Likewise.
9448 (hppa_expand_epilogue): Likewise.
9450 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9452 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
9454 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9456 PR c/4475, c++/3780:
9457 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
9458 * c-common.h (SWITCH_TYPE): Define.
9459 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
9460 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
9461 Rename spareness variable to sparseness.
9462 (expand_end_case_type): Renamed from expand_end_case, use orig_type
9463 if non-NULL instead of TREE_TYPE (orig_index).
9464 * tree.h (expand_end_case_type): Renamed from expand_end_case.
9465 (expand_end_case): Define using expand_end_case_type.
9466 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
9467 to expand_end_case_type.
9468 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
9470 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9472 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
9473 (BIGGEST_ALIGNMENT): Change to 128.
9475 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9477 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
9479 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9481 * pa.md (call_internal_reg_64bit): Remove unused variable.
9483 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
9485 * config/arm/arm.h (machine_function): Add uses_anonymous_args
9487 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
9488 * config/arm/arm.c (current_function_anonymous_args): Delete,
9489 replace uses with cfun->machine->uses_anonymous_args.
9490 (arm_reorg): Do not reset uses_anonymous_args.
9492 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
9493 any geenral register.
9495 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
9497 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
9500 2002-02-04 Richard Henderson <rth@redhat.com>
9502 * combine.c (force_to_mode): Remove STACK_BIAS code.
9503 (nonzero_bits): Likewise. Replace sp/fp special case with
9504 REGNO_POINTER_ALIGN.
9506 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
9507 (HARD_FRAME_POINTER_REGNUM): New.
9508 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
9509 (FIXED_REGS, CALL_USED_REGS): Update.
9510 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
9511 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
9512 (HARD_REGNO_NREGS): Update for SFP.
9513 (STACK_POINTER_OFFSET): Include bias here ...
9514 (FIRST_PARM_OFFSET): ... not here.
9515 (STACK_BIAS): Remove.
9516 (INIT_EXPANDERS): New.
9517 (STARTING_FRAME_OFFSET): Do not include bias.
9518 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
9519 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
9520 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
9521 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
9522 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
9523 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
9524 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
9525 (MUST_SAVE_REGISTER): Likewise.
9526 (sparc_flat_function_prologue): Likewise.
9527 (sparc_flat_function_epilogue): Likewise.
9528 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
9529 (sparc_init_modes): SFP is GENERAL_REGS.
9530 (sparc_builtin_saveregs): SFP does not have bias applied.
9532 2002-02-04 Richard Henderson <rth@redhat.com>
9534 * config/alpha/alpha.c (current_function_is_thunk): Don't check
9535 current_function_is_thunk.
9536 (alpha_sa_mask): Distinguish between current_function_is_thunk
9537 called from ASM_OUTPUT_MI_THUNK and not.
9538 (alpha_does_function_need_gp): Thunks always need gp.
9539 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9540 (alpha_output_mi_thunk_osf): New.
9541 * config/alpha/alpha-protos.h: Update.
9542 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
9544 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
9546 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
9547 function types, not when they're taken away.
9549 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
9551 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
9552 CODE_LABEL and jump table when replacing a table jump with a
9555 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9557 * config/s390/s390-protos.h (legitimize_la_operand,
9558 s390_secondary_input_reload_class, s390_plus_operand,
9559 s390_expand_plus_operand): Add prototypes.
9561 config/s390/s390.c (s390_secondary_input_reload_class,
9562 s390_plus_operand, s390_expand_plus_operand): New functions.
9564 (struct s390_address): New member 'pointer'.
9565 (s390_decompose_address): Compute it.
9566 (legitimate_la_operand_p): Use it.
9567 (legitimize_la_operand): New function.
9568 (movti, movdi, movdf splitters): Call it.
9570 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
9571 (PREDICATE_CODES): Add s390_plus_operand.
9573 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
9574 (la_ccclobber): Allow GENERAL_REGS as output operand.
9576 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
9577 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
9578 (*la_64, *la_31, reload_indi, reload_insi): ... these.
9580 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9582 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
9583 register names for regular asm () construct.
9585 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9587 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
9590 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9592 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
9595 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
9597 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
9598 constant pool to be identical by string address and index.
9600 2002-02-04 Anthony Green <green@redhat.com>
9602 * output.h (SECTION_OVERRIDE): Define.
9603 * varasm.c (named_section): Obey SECTION_OVERRIDE.
9605 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
9607 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
9608 by existing arm*-*-netbsd* (a.out) target.
9609 (ns32k-*-netbsdelf*): Likewise.
9610 (sparc-*-netbsdelf*): Likewise.
9611 (vax-*-netbsdelf*): Likewise.
9613 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
9615 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
9616 headers and libobjc headers.
9618 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
9620 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
9621 (_mingw.h): Remove duplicate include.
9623 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
9625 * config.gcc: Set cpu_type to m68k for 68010, as well.
9626 (m68010-*-netbsdelf*): New...
9627 (m68k*-*-netbsdelf*): ...targets.
9628 * config/m68k/netbsd-elf.h: New file.
9630 2002-02-02 Kazu Hirata <kazu@hxi.com>
9632 * config/h8300/h8300.c (hand_list): Move inside function_arg.
9634 2002-02-02 Kazu Hirata <kazu@hxi.com>
9636 * config/h8300/h8300.c (h8_push_ops): Move inside
9638 (h8_pop_ops): Likewise.
9639 (h8_move_ops): Likewise.
9641 2002-02-02 Kazu Hirata <kazu@hxi.com>
9643 * config/h8300/h8300.c (os_task): Make it static.
9644 (monitor): Likewise.
9645 (pragma_saveall): Likewise.
9647 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
9649 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
9650 constant is a valid sign-extension for Pmode.
9652 2002-02-02 Kazu Hirata <kazu@hxi.com>
9654 * config/h8300/h8300.c: Fix formatting.
9656 2002-02-02 Kazu Hirata <kazu@hxi.com>
9658 * config/h8300/h8300.md: Fix formatting.
9660 2002-02-02 Kazu Hirata <kazu@hxi.com>
9662 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
9663 predicates of operands[1]. Split the patterns for each
9666 2002-02-02 Kazu Hirata <kazu@hxi.com>
9668 * config/h8300/h8300.md (xor patterns): Tighten the predicates
9669 of operands[1] to register_operand.
9671 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
9673 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
9674 * cpphash.c (_cpp_init_hashtable): Similarly.
9675 * cppinit.c (cpp_create_reader): Default the signed_char flag.
9676 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
9677 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
9678 (cpp_handle_option): Handle the new options.
9679 * cpplex.c (cpp_interpret_charconst): Use new flag.
9680 * cpplib.h (struct cpp_options): New member signed_char.
9681 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
9682 (cpp_options): Handle -fsigned-char and -funsigned-char.
9683 (static_specs): Remove signed_char_spec.
9684 (do_spec1): Don't handle %c.
9685 * system.h: Poison SIGNED_CHAR_SPEC.
9686 * tradcif.y (yylex): Use flag_signed_char.
9687 * tradcpp.h (flag_signed_char): New.
9688 * tradcpp.c (flag_signed_char): New.
9689 (main): Handle new command-line options.
9690 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
9692 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
9693 * avr/avr.h: Remove old comments.
9694 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
9695 (CC1_SPEC): Pass -fsigned-char if -mic*.
9696 (SIGNED_CHAR_SPEC): Remove.
9698 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
9700 2002-02-01 Eric Christopher <echristo@redhat.com>
9702 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
9703 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
9704 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
9705 (ASM_OUTPUT_REG_POP): Ditto.
9707 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
9709 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
9712 2002-02-02 Jakub Jelinek <jakub@redhat.com>
9714 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
9716 2002-02-02 Jakub Jelinek <jakub@redhat.com>
9719 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
9722 2002-02-01 Janis Johnson <janis187@us.ibm.com>
9724 * cfganal.c: Include tm_p.h.
9725 (keep_with_call_p): Fix the test that determines if a register holds
9726 the return value of a call.
9728 2002-02-01 DJ Delorie <dj@redhat.com>
9730 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
9731 we are given conflicting registers, switch to the other one we
9732 had allocated for us.
9733 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
9734 as TImode so we know when the "other" register is available.
9736 2002-02-01 David O'Brien <obrien@FreeBSD.org>
9738 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
9741 2002-02-01 Janis Johnson <janis187@us.ibm.com>
9743 * cfganal.c (keep_with_call_p): New function.
9744 (flow_call_edges_add): Prevent splitting a block between a call and
9745 a single-set instruction that should be kept in the same block.
9747 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
9749 * doc/install.texi (avr): Update outdated URL.
9751 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
9753 * config/stormy16/stormy16.md (pushqi): New.
9757 (movhi): Remove stack operands.
9759 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
9760 nonimmediate_nonstack_operand.
9761 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
9763 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
9766 2002-01-31 Jason Merrill <jason@redhat.com>
9768 * Makefile.in (c-parse.c): Handle .output file.
9769 * objc/Make-lang.in (objc-parse.c): Likewise.
9771 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
9773 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
9774 the -me[lb] option is given. Don't output the default flag
9777 2002-01-31 Zack Weinberg <zack@codesourcery.com>
9779 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
9780 the primary source file; this has not been done yet.
9781 * c-decl.c (c_expand_body): Reset input_filename from
9782 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
9784 2002-01-31 Kazu Hirata <kazu@hxi.com>
9786 * rtlanal.c (subreg_regno_offset): Do not use
9787 SUBREG_REGNO_OFFSET.
9788 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
9789 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
9791 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
9793 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
9794 version rather than GNATS version in --version output.
9796 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
9798 * ifcvt.c (noce_process_if_block): Make a copy of the destination
9799 when copying back from a temporary.
9801 2002-01-30 Richard Henderson <rth@redhat.com>
9803 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
9804 and new_dest are the same.
9806 2002-01-30 Richard Henderson <rth@redhat.com>
9809 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
9810 * rtl.c (note_insn_name): Update.
9811 * emit-rtl.c (remove_unnecessary_notes): Kill it.
9812 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
9813 to perform loop rotation.
9814 (expand_exit_loop_top_cond): New.
9815 * tree.h (expand_exit_loop_top_cond): Declare it.
9816 * c-semantics.c (genrtl_while_stmt): Use it.
9817 (genrtl_for_stmt): Likewise.
9819 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
9821 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
9822 arguments to 64-bit boundaries on 64-bit ABIs.
9824 2002-01-30 Steve Ellcey <sje@cup.hp.com>
9826 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
9828 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
9830 * c-decl.c (grokdeclarator): Handle type being a typedef for an
9833 2002-01-30 David O'Brien <obrien@FreeBSD.org>
9835 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
9836 * config/sparc/sparc_bi.h: Remove file.
9837 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
9839 2002-01-30 Richard Henderson <rth@redhat.com>
9841 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
9843 2002-01-30 Zack Weinberg <zack@codesourcery.com>
9845 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
9847 2002-01-30 Jason Merrill <jason@redhat.com>
9849 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
9850 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
9851 (reg_save): Use DW_CFA_offset_extended_sf instead.
9853 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
9855 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9857 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
9860 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
9862 * rs6000.md ("*call_value_local32"): Remove constraints.
9863 ("*call_value_local64"): Same.
9864 ("*call_value_indirect_nonlocal_aix32"): Same.
9865 ("*call_value_nonlocal_aix32"): Same.
9866 ("*call_value_indirect_nonlocal_aix64"): Same.
9867 ("*call_value_nonlocal_aix64"): Same.
9868 ("*call_value_nonlocal_sysv"): Same.
9870 2002-01-29 Richard Henderson <rth@redhat.com>
9872 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
9874 2002-01-29 Richard Henderson <rth@redhat.com>
9876 * expr.c (force_operand): Ignore flag_pic for detecting pic
9878 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
9879 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
9880 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
9881 instead of open-coded loop.
9882 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
9883 be fixed when in use.
9885 2002-01-29 Richard Henderson <rth@redhat.com>
9887 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
9888 * sched-rgn.c (propagate_deps): Update them.
9889 * sched-deps.c (sched_analyze_insn): Update them. Flush the
9890 clobbers list when either gets too long.
9892 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9894 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
9895 and INDEX_REGS the same as GENERAL_REGS.
9896 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9898 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
9900 * tree.c (build_nonstandard_integer_type): Correct prototype.
9902 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
9904 * config/s390/s390.md (movstrsico, movstrdix_64,
9905 movstrsix_31): Remove, replace by ...
9906 (movstrdi_short, movstrsi_short, movstrdi_long,
9907 movstrsi_long): ... these. New.
9908 (movstrdi, movstrsi): Adapt.
9910 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
9911 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
9912 Remove unnecessary CC clobber.
9913 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
9914 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
9916 (divmoddi4): Don't partially initialize TImode register.
9918 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
9920 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
9922 2002-01-29 Richard Henderson <rth@redhat.com>
9924 * flow.c (print_rtl_and_abort): Remove.
9925 (print_rtl_and_abort_fcn): Remove.
9926 (verify_local_live_at_start): Use dump_bb instead.
9927 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
9928 (verify_wide_reg_1): Return 2 on mode test failure.
9930 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
9932 PR c/3325, c/3326, c/2511, c/3347
9933 * c-decl.c (enum_decl_context): Remove BITFIELD.
9934 (grokdeclarator): Take bitfield width as an input.
9935 Ensure bitfields are given the correct type. Perform
9936 bitfield width validation with build_bitfield_integer_type
9937 rather than waiting for finish_struct.
9938 (grok_typename, grok_typename_in_parm_context, start_decl,
9939 push_parmdecl, grokfield, start_function): Update calls to
9941 (build_bitfield_integer_type): New function.
9942 (finish_struct): Move bitfield validation to grokdeclarator
9943 and build_bitfield_integer_type.
9944 * tree.c (build_nonstandard_integer_type): New function.
9945 * tree.h (build_nonstandard_integer_type): New prototype.
9947 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
9949 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9952 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
9953 don't ignore unrecognized -W* options.
9954 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
9955 * cpplib.h (cpp_handle_option): Adjust prototype.
9956 * c-decl.c (c_decode_options): Pass 0 as last argument to
9960 * gcc.c (cpp_unique_options): Split from cpp_options.
9961 (cpp_options): Source cpp_unique_options.
9962 (default_compilers): Use cpp_unique_options instead of cpp_options
9963 when used together with cc1_options.
9964 (static_specs): Add cpp_unique_options.
9965 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
9966 when used together with cc1_options.
9968 2002-01-29 Kazu Hirata <kazu@hxi.com>
9970 * config/h8300/h8300-protos.h: Update the prototype of
9972 * config/h8300/h8300.c (output_a_shift): Remove an unused
9973 argument 'insn'. Remove redundant code.
9974 * config/h8300/h8300.md: Adust to the new prototype of
9977 2002-01-29 Kazu Hirata <kazu@hxi.com>
9979 * config/h8300/h8300-protos.h: Update the prototypes of
9980 emit_a_rotate and expand_a_rotate.
9981 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
9982 first argument to 'enum rtx_code'.
9983 (expand_a_rotate): Likewise.
9985 2002-01-28 Kazu Hirata <kazu@hxi.com>
9987 * config/h8300/h8300-protos.h: Update the prototype of
9989 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
9991 * config/h8300/h8300.md: Adjust to the new prototype.
9993 2002-01-28 Kazu Hirata <kazu@hxi.com>
9995 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
9998 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
10000 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
10001 is a fixed register before returning pic_offset_table_rtx.
10002 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
10003 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
10005 2002-01-28 Jason Merrill <jason@redhat.com>
10007 * dwarf2.h: Sync with src version.
10009 2002-01-28 Paul Koning <pkoning@equallogic.com>
10011 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
10012 BT_FN_VOID_PTR_VAR.
10013 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
10014 * doc/extend.texi (__builtin_prefetch): Update documentation:
10015 first argument is now const void ptr.
10017 2002-01-28 Kazu Hirata <kazu@hxi.com>
10019 * config/h8300/h8300-protos.h: Remove an unused prototype.
10021 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
10023 * toplev.c (lang_independent_init): Round up identifier size.
10025 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
10027 * config.gcc: Revert previous change.
10029 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
10031 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
10033 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
10035 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
10036 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
10037 other non-elf netbsd config frags.
10038 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
10039 collect2 will does that.
10040 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
10041 shared-lib frobbing will work.
10043 2002-01-28 Kazu Hirata <kazu@hxi.com>
10045 * config/h8300/h8300.h: Fix formatting.
10046 * config/h8300/h8300.md: Likewise.
10048 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
10050 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
10051 the old, removed AAA_standards fix.
10052 * fixinc/fixincl.x: Rebuilt.
10054 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
10056 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
10057 atexit call in crtbegin, hooked in after call to frame_dummy;
10058 register EH before registering __fini__start.
10060 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
10062 * config/rs6000/altivec.h: Remove spurious semicolons.
10064 2002-01-27 Kazu Hirata <kazu@hxi.com>
10066 * config/h8300/h8300.md: Replace dead bit extraction patterns
10067 with ones that work.
10069 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10071 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
10072 if not STRICT_ALIGNMENT.
10073 * rtl.h (MEM_ALIGN): Likewise.
10075 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
10077 * doc/invoke.texi (-fdump-translation-unit): Revert this
10078 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
10080 2002-01-27 Kazu Hirata <kazu@hxi.com>
10082 * config/h8300/h8300.md (define_constants): New.
10083 (anonymous patterns) Use defined constants appropriately.
10085 2002-01-27 Kazu Hirata <kazu@hxi.com>
10087 * config/h8300/h8300.c (function_arg): Remove redundant code.
10089 2002-01-26 Richard Henderson <rth@redhat.com>
10091 * sched-deps.c (reg_pending_uses_head): New.
10092 (reg_pending_barrier): Rename from reg_pending_sets_all.
10093 (find_insn_list): Don't mark inline.
10094 (find_insn_mem_list): Remove.
10095 (add_dependence_list, add_dependence_list_and_free): New.
10096 (flush_pending_lists): Replace only_write param with separate
10097 for_read and for_write parameters. Update all callers. Use
10098 add_dependence_list_and_free.
10099 (sched_analyze_1): Do not add reg dependencies here; just set
10100 the pending bits. Use add_dependence_list.
10101 (sched_analyze_2): Likewise.
10102 (sched_analyze_insn): Replace schedule_barrier_found with
10103 reg_pending_barrier. Add all dependencies for pending reg
10104 uses, sets, and clobbers.
10105 (sched_analyze): Don't add reg dependencies for calls, just
10106 set pending bits. Use regs_invalidated_by_call. Treat
10107 sched_before_next_call as a normal list, not a fake insn.
10108 (init_deps): No funny init for sched_before_next_call.
10109 (free_deps): Free pending mems lists. Don't zero reg_last.
10110 (init_deps_global): Init reg_pending_uses.
10111 (finish_deps_global): Free it.
10112 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
10113 (find_insn_mem_list): Remove.
10114 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
10115 (propagate_deps): Use them. Zero temp mem lists.
10117 2002-01-26 Richard Henderson <rth@redhat.com>
10119 * Makefile.in (CRTSTUFF_CFLAGS): New.
10120 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
10121 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
10122 crtstuff.c instead of alpha assembly version.
10123 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
10124 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
10125 not FORCE_{INIT,FINI}_SECTION_ALIGN.
10126 (__do_global_dtors_aux): Mark used.
10127 (frame_dummy, __do_global_ctors_aux): Mark used.
10128 (fini_dummy, init_dummy): Remove.
10130 * config/alpha/crtbegin.asm: Remove file.
10131 * config/alpha/crtend.asm: Remove file.
10132 * config/alpha/t-crtbe: Remove file.
10133 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
10134 (LINK_EH_SPEC): New.
10136 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
10137 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
10138 calling constructors.
10139 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
10141 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
10142 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
10143 CRT_END_INIT_DUMMY hack.
10144 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
10145 FORCE_{INIT,FINI}_SECTION_ALIGN.
10147 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
10148 FORCE_{INIT,FINI}_SECTION_ALIGN.
10150 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
10151 invocation sequence.
10152 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
10154 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
10155 (FORCE_CODE_SECTION_ALIGN): New.
10157 2002-01-26 Richard Henderson <rth@redhat.com>
10159 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
10161 2002-01-26 Richard Henderson <rth@redhat.com>
10163 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
10164 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
10166 2002-01-26 Kazu Hirata <kazu@hxi.com>
10168 * config/h8300/h8300.md: Remove bit extraction patterns that
10169 cannot be triggered.
10170 Restrict each bit extraction pattern to a variant on which the
10173 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
10175 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
10177 2002-01-26 Kazu Hirata <kazu@hxi.com>
10179 * config/h8300/h8300.md: Remove bit test patterns that cannot
10181 Restrict each bit test pattern to a variant on which the
10184 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10186 * builtins.c (expand_builtin_strncat): Remove redundant check for
10189 2002-01-25 David O'Brien <obrien@FreeBSD.org>
10191 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
10193 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
10196 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
10198 * dbxout.c (dbxout_init): Use assemble_name rather than just
10199 stripping off the first character.
10200 (dbxout_source_file): Likewise.
10202 2002-01-25 DJ Delorie <dj@redhat.com>
10204 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
10205 using rtx_equal_p, not by comparing pointers.
10207 2002-01-25 Steve Ellcey <sje@cup.hp.com>
10209 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
10210 for PIC_OFFSET_TABLE_REGNUM.
10211 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
10213 2002-01-25 David O'Brien <obrien@FreeBSD.org>
10215 * config.gcc (x86_64-*-freebsd*): New target.
10216 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
10218 (i[34567]86-*-freebsd*): Don't include svr4.h.
10219 * config/i386/freebsd64.h: New file.
10221 2002-01-25 Douglas B Rupp <rupp@gnat.com>
10223 * config/alpha/x-vms (version): Make static.
10225 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
10226 in previous checkin.
10228 * Makefile.in (install-headers-cp): New target.
10229 * config.gcc (alpha-dec-*vms*): Install headers with
10232 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
10234 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
10237 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10239 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
10240 of compare_tree_int.
10241 (expand_builtin_strncat): Likewise.
10242 * c-decl.c (finish_struct): Use tree_low_cst.
10243 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
10244 * tree.c (compare_tree_int): Likewise.
10246 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
10248 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
10249 adjustments even if they are implemented by more than two insns.
10251 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
10253 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
10254 * df.h (struct ref): Kill B.
10255 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
10257 * basic-block.h (PROP_EQUAL_NOTES): New flag.
10258 * flow.c (propagate_one_insn): Use it.
10259 (mark_used_regs): Handle NIL.
10261 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
10263 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
10266 2002-01-25 David Edelsohn <edelsohn@gnu.org>
10268 * rs6000.md (prefetch): Make address V4SI mode so that the address
10269 is restricted to legitimate form for instruction.
10271 2002-01-25 Bob Wilson <bob.wilson@acm.org>
10273 * doc/install.texi (xtensa-*-elf): New target.
10274 (xtensa-*-linux*): New target.
10275 * doc/contrib.texi: Add myself.
10277 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
10279 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
10280 purpose register to hold an SImode (or smaller) value.
10282 2002-01-25 Jakub Jelinek <jakub@redhat.com>
10284 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
10286 * crtstuff.c: Likewise.
10288 2002-01-25 Kazu Hirata <kazu@hxi.com>
10290 * config/h8300/h8300.md (negation patterns): Tighten
10291 predicates to register_operand.
10293 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
10295 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
10298 * builtins.c (expand_builtin_prefetch): Same.
10300 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10302 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
10305 2002-01-24 Kazu Hirata <kazu@hxi.com>
10307 * config/h8300/h8300.c (print_operand): Remove support for
10308 operand character 'A'.
10309 * config/h8300/h8300.md (three anonymous patterns): Replace
10310 operand character 'A' with either 'T' or 'S'.
10312 2002-01-24 Kazu Hirata <kazu@hxi.com>
10314 * config/h8300/h8300.c (print_operand): Remove support for
10315 operand character 'U'.
10317 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
10319 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
10321 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
10323 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
10324 values to be assigned to the stack pointer.
10326 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
10328 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
10329 to const_double needs to be done right for big-endian systems.
10331 2002-01-24 Jason Merrill <jason@redhat.com>
10334 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
10335 to can_throw_internal.
10337 2002-01-23 Richard Henderson <rth@redhat.com>
10339 * fold-const.c (fold): Change UINT_MAX test to check vs precision
10340 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
10342 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10344 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
10345 (symGOT2reg): Use them, then set as GOT value as unchanging.
10346 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
10347 as a temporary, if possible.
10348 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
10349 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
10351 2002-01-23 Kazu Hirata <kazu@hxi.com>
10353 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
10354 accept to accept 0x80 as operands[2].
10356 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10358 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
10360 2002-01-23 Richard Henderson <rth@redhat.com>
10362 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
10364 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
10366 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
10367 (parmlist_or_identifiers_1): Verify that only a parmlist follows
10370 2002-01-23 Richard Henderson <rth@redhat.com>
10372 * expr.c (move_by_pieces_1): Extend size before negation.
10374 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
10375 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
10376 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
10377 * config/m68k/t-m68kelf: Likewise.
10379 2002-01-23 Bob Wilson <bob.wilson@acm.org>
10381 * config/xtensa/elf.h: New file.
10382 * config/xtensa/lib1funcs.asm: New file.
10383 * config/xtensa/lib2funcs.S: New file.
10384 * config/xtensa/linux.h: New file.
10385 * config/xtensa/t-xtensa: New file.
10386 * config/xtensa/xtensa-config.h: New file.
10387 * config/xtensa/xtensa-protos.h: New file.
10388 * config/xtensa/xtensa.c: New file.
10389 * config/xtensa/xtensa.h: New file.
10390 * config/xtensa/xtensa.md: New file.
10391 * config.gcc (xtensa-*-elf*): New target.
10392 (xtensa-*-linux*): New target.
10393 * cse.c (canon_hash): Compare rtx pointers instead of register
10394 numbers. This is required for the Xtensa port.
10395 * integrate.c (copy_insn_list): Handle case where the static
10396 chain is in memory and the memory address has to be copied to
10398 * doc/invoke.texi (Option Summary): Add Xtensa options.
10399 (Xtensa Options): New node.
10400 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
10402 2002-01-23 Zack Weinberg <zack@codesourcery.com>
10404 * diagnostic.c (internal_error): Do ICE suppression only
10405 when ENABLE_CHECKING is not defined.
10407 * c-typeck.c (require_complete_type): Return error_mark_node
10408 if type is error_mark_node.
10410 2002-01-23 Janis Johnson <janis187@us.ibm.com>
10412 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
10413 -Os and issue a warning.
10415 2002-01-23 Zack Weinberg <zack@codesourcery.com>
10417 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
10418 current (lack of) need for host configuration by hand.
10420 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
10421 references. Documentation of some target macros moved from
10422 hostconfig.texi to tm.texi.
10424 2002-01-23 Will Cohen <wcohen@redhat.com>
10426 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
10429 2002-01-23 Kazu Hirata <kazu@hxi.com>
10431 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
10434 2002-01-23 Jason Merrill <jason@redhat.com>
10436 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
10438 * function.c (assign_parms): Don't put args of inline functions
10439 into registers when not optimizing.
10441 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
10443 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
10444 (prologue_use): New pattern.
10445 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
10446 preference to gen_rtx_USE.
10447 (thumb_expand_prologue): Use gen_prologue_use in preference to
10449 (thumb_expand_epilogue): Use gen_prologue_use in preference to
10452 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
10454 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
10456 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
10459 * doc/extend.texi: Correct documentation of __alignof__.
10461 2002-01-22 Zack Weinberg <zack@codesourcery.com>
10463 * params.h: Rename arguments of DEFPARAM so that it will be
10464 recognized as a translation keyword.
10466 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10468 * extend.texi: Document altivec functions.
10469 Fix N-bit adjectives in X86 builtin documentation.
10471 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
10473 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
10474 auto_inc_dec values.
10476 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
10478 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
10480 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
10482 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
10484 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
10486 2002-01-22 Richard Henderson <rth@redhat.com>
10488 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
10489 copy_insn not copy_rtx.
10491 2002-01-23 Alan Modra <amodra@bigpond.net.au>
10493 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
10494 "nonzero" as that might add "1" bits. Ensure "constop" is
10495 properly sign extened.
10496 (force_to_mode): Tweak for sign extended constop.
10498 2002-01-22 Richard Henderson <rth@redhat.com>
10500 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
10501 for_each_rtx instead of assuming we're already looking at the MEM.
10502 (split_small_symbolic_mem_operand): Likewise.
10503 * config/alpha/alpha.h (PREDICATE_CODES): Update.
10504 * config/alpha/alpha.md (small symbolic memory splitters): Update.
10506 2002-01-22 Richard Henderson <rth@redhat.com>
10508 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
10509 sequence number for the literal.
10510 (divmoddi_internal_er): Likewise.
10512 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
10515 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
10516 in LIBICONV variable.
10517 * configure: Regenerated.
10519 2002-01-22 Krister Walfridsson <cato@df.lth.se>
10521 * dependence.c (build_def_use): Remove array_idx.
10523 * dwarfout.c (last_filename): Remove.
10524 (output_compile_unit_die): Remove last_filename.
10526 2002-01-22 Roger Sayle <roger@eyesopen.com>
10527 Richard Henderson <rth@redhat.com>
10530 * fold-const.c (fold): Optimize unsigned comparisons against
10531 UINT_MAX (and similar unsigned constants).
10533 2002-01-22 Janis Johnson <janis187@us.ibm.com>
10535 * Makefile.in (loop.o): Depend on OPTABS_H.
10536 * loop.c (emit_prefetch_instructions): Check the prefetch operand
10537 against the predicate.
10540 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
10541 for the address operand.
10543 2002-01-22 Richard Henderson <rth@redhat.com>
10545 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
10547 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
10550 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
10551 preprocessor flags.
10553 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
10555 * config.gcc (x86_64-*-netbsd*): New target.
10556 * config/i386/netbsd64.h: New file.
10558 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10560 * regrename.c (kill_value): Fix typo.
10562 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10564 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
10566 * config/rs6000/rs6000.h: Same.
10568 * function.c (instantiate_virtual_regs): Remove
10569 STARTING_FRAME_PHASE.
10570 (assign_stack_local_1): Same.
10571 Calculate frame phase.
10573 2002-01-22 Nick Clifton <nickc@redhat.com>
10575 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
10576 variable declaration to outer scope in order to simplify
10578 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
10579 arm_hard_regno_mode_ok.
10580 * config/arm/arm-protos.h: Add a prototype for
10581 arm_hard_regno_mode_ok.
10582 * config/arm/arm.c (soft_df_operand): Remove now redundant
10583 check for DImode values using IP_REGNUM.
10584 (nonimmediate_soft_df_operand): Remove now redundant check for
10585 DImode values using IP_REGNUM.
10586 (arm_hard_regno_mode_ok): New function. New check: make sure
10587 that DImode values are not stored in IP_REGNUM.
10589 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
10591 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
10593 2002-01-22 Jason Merrill <jason@redhat.com>
10595 * c-semantics.c (genrtl_compound_stmt): Only check nesting
10596 consistency if this COMPOUND_STMT is scoped.
10598 2002-01-22 Kazu Hirata <kazu@hxi.com>
10600 * predict.c: Fix formatting.
10601 * print-tree.c: Likewise.
10602 * protoize.c: Likewise.
10603 * real.h: Likewise.
10605 * sbitmap.h: Likewise.
10606 * scan.c: Likewise.
10607 * sched-deps.c: Likewise.
10608 * sched-vis.c: Likewise.
10609 * sdbout.c: Likewise.
10610 * sibcall.c: Likewise.
10612 * ssa-ccp.c: Likewise.
10613 * ssa-dce.c: Likewise.
10614 * stmt.c: Likewise.
10615 * stor-layout.c: Likewise.
10616 * system.h: Likewise.
10618 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10620 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
10621 if fits in bounds of base type.
10623 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
10624 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
10625 (add_bound_info, default): If can't find a context, make a
10627 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
10629 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
10631 * c-typeck.c (parser_build_binary_op): If result from
10632 build_binary_op is ERROR_MARK just return error_mark_node without
10633 further processing.
10635 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
10637 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
10638 Split a.out-specific bits into...
10639 * config/netbsd-aout.h: ...this.
10640 * config/netbsd-elf.h: New file.
10641 * config/alpha/netbsd-elf.h: Remove.
10642 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
10643 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
10644 (STARTFILE_SPEC): Remove redundant definition.
10645 (ENDFILE_SPEC): Likewise.
10646 (LINK_SPEC): Likewise.
10647 (CPP_SPEC): Likewise.
10648 (ASM_SPEC): Likewise.
10649 (LIB_SPEC): Likewise.
10650 (SWITCH_TAKES_ARG): Likewise.
10651 (TARGET_MEM_FUNCTIONS): Likewise.
10652 (CPP_PREDEFINES): Redefine.
10653 (ASM_FINAL_SPEC): Remove redefinition.
10654 (ASM_COMMENT_START): Redefine.
10655 (FUNCTION_PROFILER): Define.
10656 (TARGET_VERSION): Redefine.
10657 Comment and formatting cleanup.
10658 * config/i386/netbsd.h: Include <netbsd-aout.h>.
10659 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
10660 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
10661 big- or little-endian.
10662 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
10663 * config.gcc (*-*-netbsd*): Add definitions common to all
10665 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
10666 gnu_ld definitions. Add netbsd-elf.h to and remove
10667 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
10668 tmake_file, and don't lose previous tmake_file contents.
10669 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
10670 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
10671 gnu_ld definitions. Add netbsd-elf.h to tm_file.
10672 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
10673 (mipsel-*-netbsd*): Rename this to...
10674 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
10675 mips/little.h to tm_file for mips*el-*.
10676 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
10677 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
10678 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
10680 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
10682 * pa-protos.h (reg_before_reload_operand): New function prototype.
10683 * pa.c (reg_before_reload_operand): New function implementation.
10684 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
10685 contraints to "*m".
10687 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10689 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
10691 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
10693 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
10694 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
10695 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
10696 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
10697 (ENDFILE_SPEC): Undefine.
10698 (STARTFILE_SPEC): Redefine for PA.
10700 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10702 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
10704 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
10706 * config.gcc: Add entries to supported PowerPC --with-cpu
10709 2002-01-21 Jakub Jelinek <jakub@redhat.com>
10711 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
10712 true for 64-bit mode only SSE registers in 32-bit mode.
10714 2002-01-21 Kazu Hirata <kazu@hxi.com>
10716 * unwind-dw2.c: Fix formatting.
10717 * unwind-dw2-fde.c: Likewise.
10718 * unwind-dw2-fde.h: Likewise.
10719 * unwind-pe.h: Likewise.
10720 * varasm.c: Likewise.
10721 * varray.h: Likewise.
10723 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
10725 Remove workaround for register stack overwrite bug in mmix.
10726 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
10727 support for TARGET_REG_STACK_FILL_BUG.
10728 * config/mmix/mmix.h: Remove member has_call_without_parameters.
10729 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
10731 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
10732 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
10733 -mno-reg-stack-fill-bug-workaround.
10734 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
10735 machine member has_call_without_parameters.
10736 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
10737 -mreg-stack-fill-bug-workaround and
10738 -mno-reg-stack-fill-bug-workaround.
10739 (MMIX Options): Ditto.
10741 2002-01-21 Kazu Hirata <kazu@hxi.com>
10743 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
10745 Remove redundant code.
10747 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
10749 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10750 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10751 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10752 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
10753 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
10754 out target macro definitions and non-target-specific comments
10755 mostly taken from old versions of the manual.
10757 2002-01-20 Kazu Hirata <kazu@hxi.com>
10759 * config/h8300/h8300.h: Fix comment formatting.
10760 * config/ia64/aix.h: Likewise.
10761 * config/ia64/ia64-protos.h: Likewise.
10762 * config/ia64/ia64.c: Likewise.
10763 * config/ia64/ia64.h: Likewise.
10764 * config/ia64/ia64intrin.h: Likewise.
10765 * config/ia64/linux.h: Likewise.
10766 * config/ia64/unwind-aix.c: Likewise.
10767 * config/ia64/unwind-ia64.c: Likewise.
10769 2002-01-20 Kazu Hirata <kazu@hxi.com>
10771 * config/h8300/h8300.c: Revise comments about shift code.
10773 2002-01-20 Kazu Hirata <kazu@hxi.com>
10775 * config/h8300/h8300.c (function_arg): Update a comment.
10777 2002-01-20 Kazu Hirata <kazu@hxi.com>
10779 * config/h8300/h8300.md: Update the comments at the beginning
10782 2002-01-20 Kazu Hirata <kazu@hxi.com>
10784 * config/i370/i370.c: Fix comment formatting.
10785 * config/i370/i370.h: Likewise.
10786 * config/i370/i370.md: Likewise.
10787 * config/i370/linux.h: Likewise.
10789 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10791 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
10793 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
10794 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
10795 in incomplete case.
10797 2002-01-20 Graham Stott <grahams@redhat.com>
10799 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
10801 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
10803 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
10805 2002-01-19 Tom Rix <trix@redhat.com>
10807 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
10809 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
10811 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
10813 * function.c (assign_stack_local_1): Adjust x_frame_offset with
10814 STARTING_FRAME_PHASE.
10815 (STARTING_FRAME_PHASE): New.
10816 (instantiate_virtual_regs): Check saneness of
10817 STARTING_FRAME_PHASE.
10819 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
10821 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
10823 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
10825 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
10827 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
10828 be used for bootstrapping GCC 3.0.
10830 2002-01-18 Kazu Hirata <kazu@hxi.com>
10832 * config/h8300/h8300.md: Fix an insn length.
10834 2002-01-18 Kazu Hirata <kazu@hxi.com>
10836 * bitmap.h: Fix comment formatting.
10837 * combine.c: Likewise.
10838 * cppfiles.c: Likewise.
10839 * c-pragma.h: Likewise.
10840 * c-typeck.c: Likewise.
10842 * dwarf2out.c: Likewise.
10843 * function.c: Likewise.
10845 * genattrtab.c: Likewise.
10846 * gthr-win32.h: Likewise.
10847 * haifa-sched.c: Likewise.
10848 * predict.c: Likewise.
10849 * rtlanal.c: Likewise.
10851 * unwind-dw2-fde.h: Likewise.
10852 * unwind-pe.h: Likewise.
10853 * vmsdbgout.c: Likewise.
10855 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10857 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
10858 if type_required and passed decl.
10860 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
10862 * config.gcc (cpu_type): Include altivec.h in powerpc
10866 * config/rs6000/altivec.h: New.
10868 2002-01-17 David Edelsohn <edelsohn@gnu.org>
10870 * doc/install.texi (*-ibm-aix*): Update assembler and exception
10871 handling information.
10872 * doc/trouble.texi (Interoperation): Add libstdc++ information
10874 (Misunderstandings): Add template instantiation and static template
10875 member information for AIX.
10877 2002-01-17 Jason Merrill <jason@redhat.com>
10879 * dbxout.c (dbxout_type): Support const and volatile.
10881 * except.c (add_partial_entry): Remove backwards compatibility code.
10882 (end_protect_partials): Likewise.
10884 2002-01-17 Jakub Jelinek <jakub@redhat.com>
10886 * config/ia64/ia64.md (prologue_use): New.
10887 * config/ia64/ia64.c (ia64_expand_prologue): Use
10888 gen_prologue_use instead of gen_rtx_USE.
10889 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
10890 as CODE_FOR_pred_rel_mutex.
10891 (ia64_sched_reorder2): Likewise.
10893 2002-01-16 Eric Christopher <echristo@redhat.com>
10895 * config/mips/r3900.h: Reformat.
10896 (SUBTARGET_CPP_SIZE_SPEC): Remove.
10897 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
10898 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
10899 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
10900 * config/mips/t-elf: Remove mips3 multilib.
10902 2002-01-16 H.J. Lu <hjl@gnu.org>
10904 * config/mips/linux.h: Include "mips/abi64.h".
10906 2002-01-16 H.J. Lu <hjl@gnu.org>
10908 * config/mips/t-linux: New.
10910 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
10912 * config/mips/linux.h: Don't include "gofast.h".
10913 (INIT_SUBTARGET_OPTABS): Removed.
10915 2002-01-16 Kazu Hirata <kazu@hxi.com>
10917 * config/h8300/h8300-protos.h: Replace emit_a_shift with
10919 * config/h8300/h8300.c: Likewise.
10920 * config/h8300/h8300.md: Likewise.
10922 2002-01-16 Kazu Hirata <kazu@hxi.com>
10924 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
10925 spaces after an opcode name.
10926 (pushqi1_h8300hs): Likewise.
10927 (pushhi1_h8300hs): Likewise.
10929 2002-01-16 Kazu Hirata <kazu@hxi.com>
10931 * doc/extend.texi: Replace "option" with "attribute"
10934 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10936 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
10937 (and:DI () (const_int -8)).
10938 (split_small_symbolic_mem_operand): Split
10939 (mem (and:DI () (const_int -8)).
10941 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10944 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
10945 same way as TYPE_IMUL.
10946 (ultrasparc_sched_reorder): Likewise.
10947 * config/sparc/sparc.md (type): Add comment to update
10948 ultrasparc_sched_reorder when making changes.
10950 2002-01-16 Kazu Hirata <kazu@hxi.com>
10952 * doc/invoke.texi: Change the dump file name of block
10953 reordering pass from 28.bbro to 29.bbro.
10954 Mention -dk option.
10956 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
10958 * i386.md (minsf splitter): Fix pasto.
10960 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
10962 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
10963 to frame pointer initialisation instruction.
10964 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
10965 initialisation instruction.
10966 (soft_df_operand): Do not accept the IP register.
10967 (nonimmediate_soft_df_operand): Do not accept the IP register.
10969 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10972 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
10973 MASK_V8 being both set.
10975 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
10977 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
10978 insn for GOT register; add REG_MAYBE_DEAD notes instead.
10979 config/s390/s390.md (call, call_value): Add GOT register to
10980 CALL_INSN_FUNCTION_USAGE where needed.
10981 (call_exp, call_value_exp): New.
10983 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
10985 * config/arm/arm.c: General formatting tidy up.
10987 2002-01-16 Graham Stott <grahams@redhat.com>
10989 * calls.c (try_to_integrate): Use "(size_t)" intermediate
10990 cast and when casting an integer literal to "rtx" pointer.
10991 (expand_call): Likewise.
10992 * flow.c (try_pre_increment): Likewise.
10993 (find_use_as_address): Likewise.
10994 * integrate.c (expand_iline_function): Likewise.
10995 * regmove.c (try_auto_increment): Likewise.
10997 2002-01-16 Graham Stott <grahams@redhat.com>
10999 * sched-rgn.c (passed): Use sbitmap_free.
11000 (header): Likewise.
11002 (in_queue): Likewise.
11003 (in_stack): Likewise.
11005 2002-01-15 Eric Christopher <echristo@redhat.com>
11007 * flow.c (propagate_one_insn): Change to use fatal_insn.
11009 2002-01-15 Kazu Hirata <kazu@hxi.com>
11011 * expmed.c (extract_fixed_bit_field): Remove unused code.
11012 * system.h: Poison SLOW_ZERO_EXTEND.
11013 * doc/tm.texi: Remove.
11014 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
11015 * config/arm/arm.h: Likewise.
11016 * config/avr/avr.h: Likewise.
11017 * config/clipper/clipper.h: Likewise.
11018 * config/convex/convex.h: Likewise.
11019 * config/d30v/d30v.h: Likewise.
11020 * config/dsp16xx/dsp16xx.h: Likewise.
11021 * config/elxsi/elxsi.h: Likewise.
11022 * config/fr30/fr30.h: Likewise.
11023 * config/h8300/h8300.h: Likewise.
11024 * config/i370/i370.h: Likewise.
11025 * config/i386/i386.h: Likewise.
11026 * config/m68k/m68k.h: Likewise.
11027 * config/mips/mips.h: Likewise.
11028 * config/ns32k/ns32k.h: Likewise.
11029 * config/pdp11/pdp11.h: Likewise.
11030 * config/pj/pj.h: Likewise.
11031 * config/s390/s390.h: Likewise.
11032 * config/sh/sh.h: Likewise.
11033 * config/stormy16/stormy16.h: Likewise.
11034 * config/v850/v850.h: Likewise.
11035 * config/vax/vax.h: Likewise.
11036 * config/we32k/we32k.h: Likewise.
11038 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
11040 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
11041 (altivec_lvsl): Change constraint to b.
11042 (altivec_lvsr): Same.
11043 (altivec_lvebx): Same.
11044 (altivec_lvehx): Same.
11045 (altivec_lvewx): Same.
11046 (altivec_lvxl): Same.
11047 (altivec_lvx): Same.
11048 (altivec_stvx): Add parallel.
11049 (altivec_stvxl): Same.
11050 (altivec_stvehx): Same.
11051 (altivec_stvebx): Same.
11052 (altivec_stvebx): Same.
11054 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
11056 * config.gcc: Change altivec.h to altivec-defs.h.
11058 * config/rs6000/altivec.h: Delete.
11060 * config/rs6000/altivec-defs.h: Add.
11062 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
11064 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
11067 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
11068 less than or equal to eight bytes.
11070 * vax.md (andsi3): Remove constraints and change SET destination
11071 operand type to nonimmediate_operand.
11072 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
11073 when it is a CONST_INT.
11075 2002-01-15 Jason Merrill <jason@redhat.com>
11077 * c-common.def (FILE_STMT): New code.
11078 * c-common.c (statement_code_p): It's a statement.
11079 * c-common.h (stmt_tree_s): Add x_last_filename.
11080 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
11081 (last_expr_filename): New macro.
11082 * c-semantics.c (begin_stmt_tree): Initialize it.
11083 (add_stmt): If the filename changed, also insert a
11085 (expand_stmt): Handle seeing one.
11087 2002-01-15 Eric Christopher <echristo@redhat.com>
11089 * flow.c (propagate_one_insn): Add error message and print out
11090 insn for debugging.
11092 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
11094 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
11095 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
11096 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
11097 TRAMPOLINE_ALIGNMENT.
11098 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
11100 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
11101 PCC_BITFIELD_TYPE_MATTERS.
11102 * config/interix.h (STDC_VALUE): Remove. Use
11103 STDC_0_IN_SYSTEM_HEADERS.
11104 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
11105 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
11106 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
11108 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
11110 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
11111 not work on this platform currently.
11113 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
11115 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
11116 readonly_warning in _().
11118 2002-01-15 Douglas B Rupp <rupp@gnat.com>
11120 * gcc.c (delete_if_ordinary): Backout previous change.
11122 2002-01-15 Kazu Hirata <kazu@hxi.com>
11124 * config/h8300/h8300.c (print_operand): Remove support for
11125 unused operand characters.
11127 * read-rtl.c: Fix formatting.
11128 * real.c: Likewise.
11129 * recog.c: Likewise.
11130 * regclass.c: Likewise.
11131 * regmove.c: Likewise.
11132 * reg-stack.c: Likewise.
11133 * reload1.c: Likewise.
11134 * rtlanal.c: Likewise.
11136 2002-01-15 Kazu Hirata <kazu@hxi.com>
11138 * config/i386/i386.c: Fix formatting.
11140 2002-01-15 Jakub Jelinek <jakub@redhat.com>
11142 * c-typeck.c (process_init_element): Don't save_expr
11143 COMPOUND_LITERAL_EXPR if just its initializer will be used.
11145 2002-01-15 David Edelsohn <edelsohn@gnu.org>
11147 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
11148 emit optional traceback table if optimize_size or TARGET_ELF.
11149 * config/rs6000/rs6000.md (prefetch): New.
11151 2002-01-15 Andreas Jaeger <aj@suse.de>
11153 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
11155 2002-01-15 Kazu Hirata <kazu@hxi.com>
11157 * mips-tfile.c: Fix formatting.
11159 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
11161 * unroll.c (final_reg_note_copy): Fix previous commit.
11163 2002-01-14 Kazu Hirata <kazu@hxi.com>
11165 * config/h8300/h8300-protos.h: Remove the prototype for
11167 * config/h8300/h8300.c (eq_operator): Remove.
11169 2002-01-14 Richard Henderson <rth@redhat.com>
11171 * config/i386/i386.md (prefetch): Tidy.
11172 (prefetch_3dnow): Fix locality operand.
11174 2002-01-14 Richard Henderson <rth@redhat.com>
11176 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
11177 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
11179 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
11181 * reload1.c (reload_combine): Pass reg_sum replacement through
11182 copy_rtx in loop performing multiple changes.
11184 2002-01-14 Jakub Jelinek <jakub@redhat.com>
11186 * except.c (remove_unreachable_regions): New.
11187 (free_eh_status): Clear exception_handler_labels.
11188 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
11189 (find_exception_handler_labels): Don't add the same label more than
11191 (remove_exception_handler_label): Don't die if
11192 find_exception_handler_labels hasn't been called for the current
11195 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
11197 * toplev.c (rest_of_compilation): Rebuild jump labels after
11200 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
11202 * doc/extend.texi: Move documentation of X86 built-in functions
11204 * doc/invoke.texi: From here.
11205 * doc/sourcebuild.texi: Document location of documentation for
11206 machine built-in functions.
11208 2002-01-13 Christopher Faylor <cgf@redhat.com>
11210 * cppfiles.c (TEST_THRESHOLD): New macro.
11211 (SHOULD_MMAP): Ditto.
11212 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
11215 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
11217 * unroll.c (final_reg_note_copy): Properly handle
11219 (unroll_loops): Fix LOOP_CONDITION heuristics.
11221 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
11223 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
11224 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
11226 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
11228 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
11231 2002-01-14 Tom Rix <trix@redhat.com>
11233 * config/rs6000/rs6000.md: Fix typo with sradi.
11235 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
11237 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
11238 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
11239 (clrstrdi, clrstrsi): Adapt callers.
11241 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
11243 (movti splitter): Never use register 0 as base register.
11245 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
11247 * combine.c (simplify_shift_const): Always generate new rtx
11248 for shift expression instead of reusing given expression.
11250 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11252 * config/alpha/alpha.c (alpha_expand_mov): Don't call
11253 alpha_legitimize_address unless mode is Pmode.
11255 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
11257 * doc/md.texi (Modifiers): Document the '*' constraint for the
11260 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
11261 * doc/extend.texi (Function Attributes): 'interrupt' is valid
11264 2002-01-13 Richard Henderson <rth@redhat.com>
11266 * reload.c (find_reloads): Use a hard reg destination as reload reg
11267 for an input reload of the source.
11269 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11271 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
11274 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
11276 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11277 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11279 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
11281 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11283 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
11285 2002-01-12 Tom Rix <trix@redhat.com>
11287 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
11290 2002-01-12 Richard Henderson <rth@redhat.com>
11292 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
11294 * doc/invoke.texi: Update Alpha options.
11296 * doc/invoke.texi: Update i386 built-in function lists.
11298 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
11300 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
11301 referencing outside.
11303 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11305 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
11306 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
11307 offsets, and change line folding.
11308 * optabs.c (expand_binop): Remove warnings.
11309 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
11311 2002-01-12 Graham Stott <grahams@redhat.com>
11313 * attribs.c (handle_deprecated_attribute): constify WHAT.
11314 * diagnostic.c (warn_deprecated_use): Add braces, fixes
11315 dangling else warning and constify WHAT.
11316 * except.h (struct function, struct inline_remap): Move
11317 struct tag forward defs before all prototypes.
11318 (duplicate_eh_regions): Whitespace.
11320 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
11322 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11323 MODE_BASE_REG_CLASS.
11324 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
11326 2002-01-12 Richard Henderson <rth@redhat.com>
11328 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
11329 (ix86_expand_vector_move): New.
11330 (bdesc_2arg): Remove andps, andnps, orps, xorps.
11331 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
11332 Remove old prefetch builtins. Special case the logicals removed above.
11333 (ix86_expand_builtin): Likewise.
11334 (safe_vector_operand): Use V4SFmode, not TImode.
11335 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
11336 (ix86_expand_timode_binop_builtin): New.
11337 * config/i386/i386-protos.h: Update.
11338 * config/i386/i386.h (enum ix86_builtins): Update.
11339 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
11340 Use ix86_expand_vector_move in vector move expanders.
11341 (movti_internal, movti_rex64): Add xorps alternative.
11342 (sse_clrv4sf): Rename and adjust from sse_clrti.
11343 (prefetch): Don't work so hard.
11344 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
11345 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
11346 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
11348 2002-01-11 Richard Henderson <rth@redhat.com>
11350 * config/i386/mmintrin.h: New file.
11351 * config/i386/xmmintrin.h: New file.
11352 * config.gcc (i?86-*-*): Add extra_headers.
11353 * simplify-rtx.c (simplify_unary_operation): Handle saturating
11355 (simplify_binary_operation): Handle saturating arithmetic codes.
11356 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
11357 not the lowpart subreg.
11358 (ix86_expand_builtin): Return a TImode dummy register instead of 0
11360 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
11362 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11364 * conflict.c (conflict_graph_compute): Free regsets when finished.
11365 * ssa.c (compute_coalesced_reg_partition): Likewise.
11367 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11369 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
11370 every where we allocate a register.
11372 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11374 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
11375 * lcm.c (compute_earliest, compute_farthest): Likewise.
11377 2002-01-11 Janis Johnson <janis187@us.ibm.com>
11379 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
11381 2002-01-11 Janis Johnson <janis187@us.ibm.com>
11383 * doc/rtl.texi (Insns): Fix 2 typos.
11385 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
11387 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
11388 options. Use @table @gcctabopt for MMIX options. Add index
11389 entries for MMIX options. Start new paragraph with first
11390 heading of the machine-dependent options.
11392 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
11395 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
11396 * combine.c (force_to_mode): Same.
11397 * reload1.c (clear_reload_reg_in_use): Same.
11399 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
11401 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
11404 2002-01-11 Andreas Jaeger <aj@suse.de>,
11405 Brad Lucier <lucier@math.purdue.edu>
11407 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
11410 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
11412 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
11413 Protect with IN_LIBGCC.
11414 (LINK_EH_SPEC): Add required trailing space.
11416 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
11418 * c-tree.h: Move function declarations so that they are listed
11419 under the filename which contains them.
11420 (check_identifier, finish_decl_top_level,
11421 lookup_name_current_level_global, shadow_record_fields): Remove.
11423 2002-01-11 Andreas Jaeger <aj@suse.de>
11425 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
11428 2002-01-10 Richard Henderson <rth@redhat.com>
11430 * config/alpha/alpha.c (print_operand): Add 'J'.
11431 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
11432 new operand with the sequence number for the lituse. When splitting
11433 the insns, use gen_movdi_er_high_g and generate a sequence number.
11434 (gen_movdi_er_high_g): Print the sequence number if non-zero.
11436 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
11438 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
11439 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
11441 (altivec_expand_builtin): Same.
11442 (altivec_expand_stv_builtin): New.
11444 * config/rs6000/rs6000.h (rs6000_builtins): Same.
11446 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
11447 ("altivec_lvehx"): New.
11448 ("altivec_lvewx"): New.
11449 ("altivec_lvxl"): New.
11450 ("altivec_lvx"): New.
11451 ("altivec_stvx"): New.
11452 ("altivec_stvebx"): New.
11453 ("altivec_stvehx"): New.
11454 ("altivec_stvewx"): New.
11455 ("altivec_stvxl"): New.
11457 2002-01-10 Richard Henderson <rth@redhat.com>
11459 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
11460 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
11461 care not to delete instructions twice.
11463 2002-01-10 Zack Weinberg <zack@codesourcery.com>
11465 * toplev.c: Don't declare environ (it's not used anywhere).
11466 * configure.in: Don't check for declaration of environ.
11467 * config/i386/xm-mingw32.h: Don't #define environ.
11468 * config.in, configure: Regenerate.
11470 2002-01-10 Zack Weinberg <zack@codesourcery.com>
11472 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
11473 * configure: Regenerate.
11475 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
11476 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
11477 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
11479 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
11480 LIMITS_H_TEST here, not in m68k/x-next.
11481 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
11482 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
11484 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
11485 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
11486 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
11488 * config/i386/x-djgpp: Renamed i386/t-djgpp.
11489 * config/m88k/x-dolph: Renamed m88k/t-dolph.
11490 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
11491 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
11492 replacement of quadlib.asm with quadlib.c.
11494 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
11495 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
11496 config/rs6000/xm-beos.h: Delete file.
11498 * config.gcc: Update to match above changes.
11500 2002-01-10 Kazu Hirata <kazu@hxi.com>
11502 * config/h8300/h8300.h: Fix comment typos.
11503 * config/h8300/h8300.md: Likewise.
11504 * config/h8300/lib1funcs.asm: Likewise.
11506 2002-01-10 Dale Johannesen <dalej@apple.com>
11508 PR optimization/5269
11509 * unroll.c (precondition_loop_p): Make *increment be the correct
11510 sign when n_iterations known, to avoid confusing caller.
11512 2002-01-10 Kazu Hirata <kazu@hxi.com>
11514 * doc/extend.texi (deprecated): Fix a typo.
11516 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
11518 * basic-block.h (update_br_prob_note): Declare.
11519 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
11520 (try_forward_edges): Care negative frequencies and update note.
11521 (outgoing_edges_match): Tweek conditional merging heuristics.
11522 (try_crossjump_to_edge): use update_br_prob_note.
11523 * cfglayout.c (fixup_reorder_chain): Likewise.
11524 * cfrtl.c (update_br_prob_note): New.
11525 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
11527 * i386.c (ix86_decompose_address): Return -1 if address contains
11529 (legitimate_address_p): Require ix86_decompose_address to return 1.
11531 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
11532 (cprop_insn): Likewise.
11534 2002-01-10 Kazu Hirata <kazu@hxi.com>
11536 * toplev.c: Fix formatting.
11537 * tree.c: Likewise.
11538 * tree-dump.c: Likewise.
11539 * unroll.c: Likewise.
11540 * unwind-dw2.c: Likewise.
11541 * unwind-dw2-fde.c: Likewise.
11542 * unwind-dw2-fde-glibc.c: Likewise.
11543 * unwind-sjlj.c: Likewise.
11545 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
11547 * doc/invoke.texi: Document PDP-11 options.
11549 2002-01-10 Kazu Hirata <kazu@hxi.com>
11551 * config/h8300/h8300.h: Fix formatting.
11553 2002-01-10 Ira Ruben <ira@apple.com>
11555 Add __attribute__ ((deprecated)).
11556 * extend.texi: Document __attribute__ ((deprecated)).
11557 * invoke.texi: Document -Wno-deprecated-declarations.
11558 * testsuite/g++.dg/other/deprecated.C: New C++ test.
11559 * testsuite/gcc.dg/deprecated.c: New C test.
11560 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
11561 (c_common_attribute_table): Add "deprecated" entry.
11562 (handle_deprecated_attribute): New function.
11563 * c-decl.c (deprecated_states): New enum.
11564 deprecated_state: State of "deprecated" handling.
11565 (start_decl): Set deprecated_state based on attributes.
11566 (grokdeclarator): Test for deprecated uses, propagate attribute.
11567 * c-typeck.c (build_component_ref): Test for deprecated fields.
11568 (build_external_ref): Test for deprecated primaries.
11569 * diagnostic.c (warn_deprecated_use) New function to issue
11570 warnings about __attribute__ ((depricated)) references.
11571 * flags.h (warn_deprecated_decl): Extern declared for
11572 -W[no-]deprecated-declarations option.
11573 * print-tree.c (print_node): Show deprecated flag status.
11574 * toplev.c (warn_deprecated_decl): Defined.
11575 (W_options): Added "deprecated-declaration".
11576 * toplev.h (warn_deprecated_use): Extern declared.
11577 * tree.h (struct tree_common): Define deprecated_flag.
11578 (TREE_DEPRECATED): New macro to access flag.
11579 * cp/call.c (build_call): Test for deprecated calls.
11580 * cp/class.c (add_implicitly_declared_members): Set global
11581 flag to tell grokdeclarator to not issue deprecated warnings.
11582 * cp/cp-tree.h: Add extern for adding_implicit_members.
11583 * cp/decl.c (deprecated_states): New enum.
11584 (start_decl): Set deprecated_state based on attributes.
11585 (grokdeclarator): Test for deprecated uses, propagate attribute.
11586 * cp/lex.c (do_identifier): Test for deprecated primaries.
11587 * cp/typeck.c (build_component_ref): Test for deprecated fields.
11589 2002-01-10 Ira Ruben <ira@apple.com>
11591 Fix to assign attributes to inline member functions.
11592 * cp/decl.c (start_method): Handle attrlist.
11594 2002-01-10 Kazu Hirata <kazu@hxi.com>
11596 * combine.c (expand_field_assignment): Use subreg_lsb().
11598 2002-01-10 David Edelsohn <edelsohn@gnu.org>
11600 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
11601 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
11602 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
11603 Recurse for any operand of AND as long as constant is non-zero.
11605 2002-01-10 Kazu Hirata <kazu@hxi.com>
11607 * config/h8300/h8300.md: Remove constraints from expanders.
11609 2002-01-10 Kazu Hirata <kazu@hxi.com>
11611 * varasm.c: Fix formatting.
11612 * varray.c: Likewise.
11613 * vmsdbgout.c: Likewise.
11614 * xcoffout.c: Likewise.
11616 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
11618 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
11619 update edge probabilities to match.
11621 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
11623 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
11625 * doc/languages.texi, doc/sourcebuild.texi: New files.
11626 * doc/configfiles.texi: Make a subsubsection. Update.
11627 * doc/configterms.texi: Add @node. Remove warning that this isn't
11628 instructions for building GCC.
11629 * doc/makefile.texi: Make a subsection.
11630 * doc/gccint.texi: Update.
11632 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
11634 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
11636 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
11638 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
11640 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
11642 * optabs.c (expand_fix): Look for wider integer modes first.
11644 * i386.md (mov?f): Avoid the fake const double trick for medium
11646 (min?f*/max?f*): Prohibit memory operands for i387 variant.
11647 (fop_df_4): Disable for SSE compilation.
11649 2002-01-10 Graham Stott <grahams@redhat.com>
11651 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
11652 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
11654 2002-01-10 Richard Henderson <rth@redhat.com>
11656 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
11658 2002-01-10 Richard Henderson <rth@redhat.com>
11660 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
11661 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
11663 2002-01-10 Kazu Hirata <kazu@hxi.com>
11665 * combine.c (can_combine_p): Fix a comment typo.
11667 2002-01-09 Zack Weinberg <zack@codesourcery.com>
11669 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
11670 empty list correctly. Change loop index $t to $f for
11671 consistency with rest of Makefile.
11673 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
11675 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
11676 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11678 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
11679 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
11680 (altivec_init_builtins): Same.
11681 (altivec_expand_unop_builtin): Return NULL_RTX on error.
11682 (altivec_expand_binop_builtin): Same.
11683 (altivec_expand_ternop_builtin): Same.
11686 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
11687 ("altivec_vctuxs"): Fix typo.
11688 ("altivec_vnmsubfp"): Same.
11689 ("altivec_dssall"): New.
11690 ("altivec_mfvscr"): New.
11691 ("altivec_dss"): New.
11692 ("altivec_lvsl"): New.
11693 ("altivec_lvsr"): New.
11694 ("altivec_dstt"): New.
11695 ("altivec_dstst"): New.
11696 ("altivec_dststt"): New.
11697 ("altivec_dst"): New.
11699 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
11700 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11702 2002-01-09 Richard Henderson <rth@redhat.com>
11704 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
11706 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
11708 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
11710 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
11712 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
11714 2002-01-09 Kazu Hirata <kazu@hxi.com>
11716 * read-rtl.c: Fix formatting.
11717 * real.c: Likewise.
11718 * regclass.c: Likewise.
11719 * regrename.c: Likewise.
11720 * reg-stack.c: Likewise.
11721 * reload1.c: Likewise.
11722 * reload.c: Likewise.
11725 2002-01-09 Kazu Hirata <kazu@hxi.com>
11727 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
11728 to extract items in the expr_list chain.
11730 2002-01-09 Richard Henderson <rth@redhat.com>
11732 * config/vax/vax.c (vax_rtx_cost): Never abort.
11734 * config/vax/vax.h (REAL_ARITHMETIC): Define.
11736 2002-01-09 Jan Hubicka <jh@suse.cz>
11738 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
11740 2002-01-09 Richard Henderson <rth@redhat.com>
11742 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
11743 Unify code from various alternatives.
11745 2002-01-09 Richard Henderson <rth@redhat.com>
11747 * regrename.c (copy_value): Ignore the copy if the source register
11748 is present in the value chain with a narrower mode.
11750 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11752 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
11753 for the c4x target. Also improve layout.
11755 2002-01-09 Richard Henderson <rth@redhat.com>
11757 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
11758 * config/m32r/m32r.md (and ior xor splitters): Swap operands
11759 to match insn patterns.
11761 2002-01-09 Richard Henderson <rth@redhat.com>
11763 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
11764 (copyprop_hardreg_forward_1): Likewise.
11766 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
11768 * pa.md (decrement_and_branch_until_zero): Change predicate for
11769 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
11771 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
11773 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
11774 gets undefined. For Darwin.
11776 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11778 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
11780 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11782 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
11784 2002-01-08 Richard Henderson <rth@redhat.com>
11786 * regrename.c (copy_value): Ignore overlapping copies.
11788 2002-01-08 Richard Henderson <rth@redhat.com>
11790 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
11791 as needed to avoid shared structure.
11793 2002-01-08 Kazu Hirata <kazu@hxi.com>
11795 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
11798 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11800 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
11801 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
11802 documentation of obsolete macros.
11803 * system.h: Poison these macros.
11804 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
11805 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
11806 config/c4x/c4x.h, config/clipper/clipper.h,
11807 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
11808 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
11809 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
11810 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
11811 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
11812 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
11813 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11814 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
11815 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
11816 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11817 config/sparc/sparc.h, config/stormy16/stormy16.h,
11818 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
11819 definitions and commented out definitions of obsolete macros.
11820 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
11821 of MAX_INT_TYPE_SIZE.
11823 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
11825 * config/s390/s390.c (s390_preferred_reload_class): Never
11826 return ADDR_REGS if it isn't a subset of the given class.
11827 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
11828 FP_REGS, but all superclasses as well.
11830 * config/s390/s390.c (s390_function_profiler): Fix thinko.
11832 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
11833 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
11834 must not be a const_int.
11836 2002-01-08 Richard Henderson <rth@redhat.com>
11838 * Makefile.in (toplev.o): Depend on options.h.
11839 (gcc.o): Depend on specs.h.
11841 2002-01-08 Jakub Jelinek <jakub@redhat.com>
11843 * expr.c (store_expr): Convert VOIDmode constants back to target's
11846 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11848 * doc/invoke.texi: Markup gcc as @command. Refer to
11849 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
11850 of http://gcc.gnu.org/thanks.html.
11852 2002-01-08 Dale Johannesen <dalej@apple.com>
11854 * config/rs6000/rs6000.md: Add missing int register
11855 target case to movdf_low.
11857 2002-01-08 Zack Weinberg <zack@codesourcery.com>
11859 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
11860 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
11861 (cppinit.o): Depend on except.h.
11862 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
11863 s-specs): New rules.
11865 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
11866 Don't create specs.h/options.h/gencheck.h here. Remove
11867 unnecessary variable settings from last argument of AC_OUTPUT.
11868 * config.in, configure: Regenerate.
11869 * intl.c: Hardcode package name as "gcc".
11871 * cppinit.c: Include except.h.
11872 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
11874 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
11875 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
11876 (!)USING_SJLJ_EXCEPTIONS.
11877 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
11879 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11881 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
11882 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
11883 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
11884 documentation of obsolete macros.
11885 * system.h: Poison these macros.
11886 * config/d30v/d30v.h, config/ns32k/encore.h,
11887 config/stormy16/stormy16.h: Remove definitions and commented out
11888 definitions of obsolete macros.
11890 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
11892 * objc/objc-act.c (handle_class_ref): Mark the declaration of
11893 %sobjc_class_ref_%s as used - to prevent unwanted compiler
11896 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
11898 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
11899 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
11900 to insn adjusting stack/frame pointer.
11901 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
11902 accept operands that cause the insn to be non-splittable.
11904 2002-01-08 Graham Stott <grahams@redhat.com>
11906 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
11907 (C_TYPE_FIELDS_VOLATILE): Likewise.
11908 (C_TYPE_BEING_DEFINED): Likewise.
11909 (C_IS_RESERVED_WORD): Likewise.
11910 (C_TYPE_VARIABLE_SIZE): Likewise.
11911 (C_DECL_VARIABLE_SIZE): Likewise.
11912 (C_MISSING_PROTOTYPE_WARNED): Likewise.
11913 (C_SET_EXP_ORIGINAL_CODE): Likewise.
11914 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
11916 (C_DECL_ANTICIPATED): Likewise.
11917 (c_build_type_variant): Add parenthesis.
11919 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11921 * gcc.c (option_map): Remove --version.
11922 (process_command): Handle -fversion following the GNU Coding
11923 Standards. Partially addresses PR other/704.
11925 2002-01-08 Graham Stott <grahams@redhat.com>
11927 * combine.c (combine_instructions): Fix typo.
11929 2002-01-08 Graham Stott <grahams@redhat.com>
11931 * debug.h: Use "tree" and "rtx" throughout.
11933 * debug.c: Likewise.
11935 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
11937 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
11938 constant pool, use the pool's version of the symbol instead.
11940 2002-01-07 Richard Henderson <rth@redhat.com>
11942 * regrename.c (find_oldest_value_reg): Ignore the value chain if
11943 the original register was copied in a mode with a fewer number of
11944 hard registers than the desired mode.
11945 (copyprop_hardreg_forward_1): Likewise.
11946 (debug_value_data): Fix loop test.
11947 * toplev.c (parse_options_and_default_flags): Reenable
11948 -fcprop-registers at -O1.
11950 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11952 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
11953 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
11955 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
11958 * config/rs6000/rs6000.md: Add altivec predicate patterns.
11960 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
11962 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
11963 (pa_output_function_prologue): Output local label at the beginning of
11964 the prologue when profiling.
11965 (hppa_profile_hook): Use the local label rather than the function label.
11966 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
11968 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11970 * config/rs6000/rs6000.c (print_operand): Remove extra space.
11971 (altivec_expand_unop_builtin): Fix thinko.
11972 (altivec_expand_binop_builtin): Same.
11973 (altivec_expand_ternop_builtin): Same.
11974 (altivec_expand_builtin): Same.
11976 2002-01-07 Richard Henderson <rth@redhat.com>
11978 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
11980 2002-01-07 Jason Merrill <jason@redhat.com>
11982 * unwind-dw2.c (execute_cfa_program): Use < again.
11984 2002-01-07 Jakub Jelinek <jakub@redhat.com>
11986 * predict.c (combine_predictions_for_insn): Avoid division by zero.
11988 2002-01-07 Jakub Jelinek <jakub@redhat.com>
11990 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
11991 Don't allow -1 - x -> ~x simplifications in the first pass.
11993 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11995 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
11997 (altivec_expand_binop_builtin): Same.
11998 (altivec_expand_unop_builtin): Same.
11999 (print_operand): Fix typo.
12000 (bdesc_1arg): Add vupk* variants.
12002 * rs6000.h (rs6000_builtins): Add vupk* enums.
12004 * rs6000.md: Add altivec_vupk* variants.
12006 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
12008 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
12009 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
12010 and last update dates.
12012 2002-01-07 Janis Johnson <janis187@us.ibm.com>
12014 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
12016 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
12018 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
12019 * config/avr/avr.h (CPP_SPEC): Likewise.
12020 (LINK_SPEC): Likewise.
12021 (CRT_BINUTILS_SPECS): Likewise.
12022 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12023 * doc/invoke.texi (AVR Options): Document them.
12025 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
12027 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
12030 2002-01-07 Graham Stott <grahams@redhat.com>
12032 * config/i386/i386.h: Update copyright date.
12033 (HALF_PIC_PTR): Add parenthesis.
12034 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
12035 (CONSTANT_ALIGNMENT): Add parenthesis.
12036 (DATA_ALIGNMENT): Likewise.
12037 (LOCAL_ALIGNMENT): Likewise.
12038 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
12039 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
12040 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
12041 (HARD_REGNO_NREGS): Add paranethesis.
12042 (VALID_SSE_REG_MODE): Whitespace.
12043 (VALID_MMX_REG_MODE): Whitespace.
12044 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
12045 (ix86_hard_regno_mode_ok): Add parenthesis.
12046 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
12047 (RETURN_IN_MEMORY): Whitespace.
12048 (N_REG_CLASSES): Add parenthesis.
12049 (INTEGER_CLASS_P): Add parenthesis and wrap.
12050 (FLOAT_CLASS_P): Likewise.
12051 (SSE_CLASS_P): Likewise.
12052 (MMX_CLASS_P): Likewise.
12053 (MAYBE_INTEGER_CLASS_P): Likewise.
12054 (MAYBE_FLOAT_CLASS_P): Likewise.
12055 (MAYBE_SSE_CLASS_P): Likewise.
12056 (MAYBE_MMX_CLASS_P): Likewise.
12057 (Q_CLASS_P): Likewise.
12058 (GENERAL_REGNO_P): Uppercase macro parameter.
12059 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
12060 (FP_REGNO_P): Likewise.
12061 (ANY_FP_REGNO_P): Uppercase macro parameter.
12062 (SSE_REGNO_P): Likewise.
12063 (SSE_REGNO): Likewise.
12064 (SSE_REG_P): Likewise.
12065 (SSE_FLOAT_MODE_P): Likewise.
12066 (MMX_REGNO_P): Likewise.
12067 (MMX_REG_P):Likewise.
12068 (STACK_REG_P): Likewise.
12069 (NON_STACK_REG_P): Likewise.
12070 (STACK_TOP_P): Likewise.
12071 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
12072 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
12073 (SECONDARY_MEMORY_NEEDED): Likewise.
12074 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
12075 (MD_ASM_CLOBBERS): Whitespace and wrap.
12076 (MUST_PASS_IN_STACK): Whitespace and wrap.
12077 (RETURN_POPS_ARGS): Add parenthesis.
12078 (INIT_CUMULATIVE_ARGS): Likewise.
12079 (FUNCTION_ARG): Likewise.
12080 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
12081 (SETUP_INCOMING_VARARGS): Likewise.
12082 (BUILD_VA_LIST_TYPE): Add parenthesis.
12083 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
12085 (EXPAND_BUILTIN_VA_ARG): Likewise.
12086 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
12087 (INITIALIZE_TRAMPOLINE): Add parenthesis.
12088 (INITIAL_ELIMINATION_OFFSET): Likewise.
12089 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
12090 (REGNO_OK_FOR_BASE_P): Likewise.
12091 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
12092 (REGNO_OK_FOR_DIREG_P): Likewise.
12093 (REG_OK_FOR_INDEX_P): Whitespace.
12094 (REG_OK_FOR_BASE_P): Whitespace.
12095 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
12097 (FIND_BASE_TERM): Fix typo.
12098 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
12099 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
12100 (SYMBOLIC_CONST; Whitespace.
12101 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
12102 (ENCODE_SECTION_INFO): Whitespace.
12103 (FINALIZE_PIC): Remove do { ... } while (0).
12104 (PROMOTE_MODE): Wrap in do { ... } while (0).
12105 (CONST_COSTS): Whitespace.
12106 (RTX_COSTS): Add paramethesis, whitespace and wrap.
12107 (REGISTER_MOVE_COST): Add parenthesis.
12108 (MEMORY_MOVE_COST): Likewise.
12109 (EXTRA_CC_MODES): Whitespace.
12110 (SELECT_CC_MODE): Add parenthesis and whitespace.
12111 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
12112 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
12113 (ASM_OUTPUT_LABEL): Add paramethesis.
12114 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
12115 (ASM_OUTPUT_REG_POP): Likewise.
12116 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
12117 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12119 * config/i386/i386.c: Update copyright.
12120 (CHECK_STACK_LIMIT): Add parenthesis.
12121 (AT_BP): Uppercase macro parameter.
12122 (x86_64_int_parameter_registers): Constify.
12123 (x86_64_int_return_registers): Likewise.
12124 (ix86_compare_op0): Use rtx.
12125 (construct_container): Constify INTREG parameter.
12126 (function_arg): Use rtx.
12128 * diagnostic.h: Update copyright date.
12129 (output_buffer_state): Add parenthesis.
12130 (output_buffer_format_args): Likewise.
12132 * combine.c (combine_instructions): Replace XEXP (links, 0)
12135 2002-01-06 H.J. Lu <hjl@gnu.org>
12137 * cfgcleanup.c (thread_jump): Fix 2 typos.
12139 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
12141 * config.gcc: Add support for --enable-altivec.
12143 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
12145 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
12147 2002-01-06 Jakub Jelinek <jakub@redhat.com>
12149 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
12150 __objc_class_name_*.
12152 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
12154 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
12156 2002-01-06 Richard Henderson <rth@redhat.com>
12158 * reorg.c (emit_delay_sequence): Remove death notes, not merely
12159 nop them out. Increment label reference count for REG_LABEL.
12160 (fill_slots_from_thread): Frob label reference count around
12161 delete_related_insns.
12163 2002-01-05 Richard Henderson <rth@redhat.com>
12165 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
12168 2002-01-05 Richard Henderson <rth@redhat.com>
12170 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
12171 * integrate.c (output_inline_function): Likewise.
12172 * toplev.c (rest_of_compilation): Do it here instead. Move call
12173 to remove_unnecessary_notes after emitting abstract instance.
12174 Force an emitted nested function to have its parent emited as well.
12175 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
12177 (rtl_for_decl_location): Do not look at reload data structures
12178 before reload has run.
12180 2002-01-05 Kazu Hirata <kazu@hxi.com>
12182 * cse.c: Fix formatting.
12183 * dwarf2asm.c: Likewise.
12184 * dwarf2out.c: Likewise.
12185 * explow.c: Likewise.
12186 * expmed.c: Likewise.
12187 * function.c: Likewise.
12188 * gcov.c: Likewise.
12189 * gencheck.c: Likewise.
12190 * genrecog.c: Likewise.
12191 * ggc-common.c: Likewise.
12192 * ggc-page.c: Likewise.
12193 * global.c: Likewise.
12195 2002-01-05 Kazu Hirata <kazu@hxi.com>
12197 * combine.c: Fix formatting.
12199 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
12202 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
12204 2002-01-05 David Edelsohn <edelsohn@gnu.org>
12206 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
12207 as 1 for __powerpc64__ as well.
12209 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
12211 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
12214 2002-01-05 Daniel Berlin <dan@dberlin.org>
12216 * lcm.c: Revert change, due to performance regression it causes on
12217 SPEC because it's slightly more conservative (sigh, I hate
12220 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
12222 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
12224 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
12226 * doc/cppinternals.texi: Update.
12228 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
12230 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
12231 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
12233 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
12234 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
12235 kludge for pre-october-14th mmix versions to handle new-found bug
12236 with PUSHJ/PUSHGO and the register stack.
12237 * config/mmix/mmix.h (struct machine_function): Rename member
12238 has_call_value_without_parameters to has_call_without_parameters.
12239 All referers changed.
12240 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
12241 TARGET_MASK_BRANCH_PREDICT): New macros.
12242 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
12243 -mno-reg-stack-fill-bug-workaround.
12244 * config/mmix/mmix.md ("call"): Set struct machine member
12245 has_call_without_parameters.
12247 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
12249 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
12251 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
12253 * cfgcleanup.c: Include tm_p.h
12254 (mark_effect): Fix handling of hard register; fix handling of SET
12256 2002-01-04 Kazu Hirata <kazu@hxi.com>
12258 * config/h8300/h8300.md (anonymous patterns): Check that
12259 operands are registers before using REGNO on them.
12261 2002-01-03 Roland McGrath <roland@frob.com>
12263 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
12265 2002-01-04 Jakub Jelinek <jakub@redhat.com>
12267 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
12268 * c-common.h (genrtl_expr_stmt_value): Likewise.
12269 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
12270 (expand_expr_stmt_value): Add maybe_last argument.
12271 Don't warn about statement with no effect if it is the last statement
12272 in expression statement.
12273 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
12274 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
12275 expand_expr_stmt_value.
12276 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
12277 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
12278 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
12279 as maybe_last to expand_expr_stmt_value.
12281 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
12283 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
12284 be passed in, do not build it.
12285 (c_begin_if_stmt): New function.
12286 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12287 * c-common.h (c_expand_start_cond): Update prototype.
12288 (c_begin_if_stmt): Prototype new function.
12289 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12290 * c-parse.in (if_prefix): Use c_begin_if_stmt,
12291 c_begin_while_stmt and c_finish_while_stmt_cond.
12293 2002-01-04 William Cohen <wcohen@redhat.com>
12295 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
12296 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12297 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12298 * config/pa/som.h (ASM_FILE_START): Likewise.
12300 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
12302 * lcm.c: Include df.h.
12303 Add available_transfer_function prototype.
12304 (compute_available): Rework to use iterative dataflow framework.
12305 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
12306 with bb_info in df.h
12307 (available_transfer_function): New function.
12309 * Makefile.in (lcm.o): add df.h to dependencies.
12311 2002-01-04 Richard Henderson <rth@redhat.com>
12313 * config/alpha/alpha.c (some_operand): Accept HIGH.
12314 (input_operand): Likewise; accept simple references to globals.
12315 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
12316 (alpha_const_double_ok_for_letter_p): Likewise.
12317 (alpha_extra_constraint): Likewise.
12318 (alpha_preferred_reload_class): Likewise. Do not force
12319 symbolic constants to memory.
12320 (alpha_legitimate_address_p): Accept simple references
12321 to small_symbolic_operand.
12322 (alpha_legitimize_address): New arg scratch. Be prepared to be
12323 called when no_new_pseudos. Emit simple symbolic references.
12324 Split integers into low, high, and rest.
12325 (alpha_expand_mov): Use alpha_legitimize_address.
12326 (some_small_symbolic_mem_operand): New.
12327 (split_small_symbolic_mem_operand): New.
12328 * config/alpha/alpha-protos.h: Update.
12329 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
12330 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
12331 (EXTRA_CONSTRAINT): Likewise.
12332 (PREFERRED_RELOAD_CLASS): Likewise.
12333 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
12334 (PREDICATE_CODES): Update.
12335 * config/alpha/alpha.md: New post-reload splitters to convert
12336 simplfied symbolic operands to the form that references $29.
12337 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
12338 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
12340 2002-01-03 Richard Henderson <rth@redhat.com>
12342 * local-alloc.c (function_invariant_p): Update commentary.
12344 2002-01-04 H.J. Lu <hjl@gnu.org>
12346 * toplev.c (rest_of_compilation): Fix a typo when calling
12349 2002-01-03 Kazu Hirata <kazu@hxi.com>
12351 * c-common.c: Fix formatting.
12352 * diagnostic.c: Likewise.
12353 * doloop.c: Likewise.
12354 * dwarf2out.c: Likewise.
12356 2002-01-03 Kazu Hirata <kazu@hxi.com>
12358 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
12359 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
12361 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
12363 * cpperror.c: Update comments and copyright.
12364 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
12365 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
12367 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
12369 * collect2.c (main): Use strcmp when testing for "-shared".
12371 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
12373 * cppmacro.c: Don't include intl.h. Update comments.
12374 (new_number_token): Allocate enough buffer for 64-bit unsigned
12375 integers; update prototype.
12376 * cppmain.c: Update comments.
12378 2002-01-03 William Cohen <wcohen@redhat.com>
12380 * function.h (struct function): Add profile.
12381 (current_function_profile): New.
12382 doc/extend.texi: Update documentation.
12383 * final.c (final_start_function): Use current_function_profile
12384 instead of profile_flag.
12385 (profile_after_prologue): Likewise.
12386 * function.c (expand_function_start): Likewise.
12387 (expand_function_start): Likewise.
12388 * config/alpha/alpha.c (direct_call_operand):
12389 (alpha_does_function_need_gp): Likewise.
12390 (alpha_expand_prologue): Likewise.
12391 * config/arm/arm.c (arm_expand_prologue): Likewise.
12392 thumb_expand_prologue: Likewise.
12393 * config/d30v/d30v.c (d30v_stack_info): Likewise.
12394 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
12395 (fr30_expand_prologue): Likewise.
12396 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
12397 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
12398 * config/i386/i386.h (FINALIZE_PIC): Likewise.
12399 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
12400 * config/i960/i960.c (i960_output_function_prologue): Likewise.
12401 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12402 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
12403 (m32r_expand_prologue): Likewise.
12404 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
12405 (m88k_expand_prologue): Likewise.
12406 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
12407 * config/mips/mips.c (compute_frame_size): Likewise.
12408 (mips_expand_prologue): Likewise.
12409 (mips_can_use_return_insn): Likewise.
12410 * config/pa/elf.h (ASM_FILE_START): Likewise.
12411 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12412 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12413 * config/pa/som.h (ASM_FILE_START): Likewise.
12414 * config/romp/romp.c (romp_using_r14): Likewise.
12415 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
12416 (rs6000_stack_info): Likewise.
12417 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12418 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12419 * config/v850/v850.c (compute_register_save_size): Likewise.
12421 2002-01-03 Jakub Jelinek <jakub@redhat.com>
12423 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
12424 gen_lowpart_common fails, use gen_lowpart_SUBREG.
12426 2002-01-03 Turly O'Connor <turly@apple.com>
12428 * darwin.c (machopic_output_possible_stub_label): Don't generate
12429 stub routines for pseudo-stubs which we've just defined.
12431 2002-01-03 Kazu Hirata <kazu@hxi.com>
12433 * builtins.c: Fix formatting.
12434 * c-typeck.c: Likewise.
12435 * combine.c: Likewise.
12436 * expr.c: Likewise.
12437 * loop.c: Likewise.
12439 2002-01-03 Andreas Schwab <schwab@suse.de>
12441 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
12442 and return true if _cpp_push_next_buffer pushed a new include
12444 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
12445 _cpp_pop_file_buffer did not push a new file.
12446 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
12448 2002-01-02 Eric Christopher <echristo@redhat.com>
12450 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
12451 FIND_REG_INC_NOTE call. Update copyright.
12452 * loop.c (canonicalize_condition): Ditto.
12453 * reorg.c (delete_scheduled_jump): Ditto.
12455 2002-01-03 Kazu Hirata <kazu@hxi.com>
12457 * gcse.c: Fix formatting.
12459 2002-01-03 Graham Stott <grahams@redhat.com>
12461 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
12462 forward defs for struct tags rtx_def, union_tree, rtvec_def
12463 also output corresponding typedefs for rtx, tree, and rtvec.
12465 * system.h: Move forward defs for struct tags rtx_def, union_tree,
12466 rtvec_def along with corresponding typedefs for rtx, tree, and
12467 rtvec to config.h, hconfig.h, tconfig.h.
12469 2002-01-03 Graham Stott <grahams@redhat.com>
12471 * tree.h: Update copyright date.
12472 (IS_EXPR_CODE_CLASS): Add parenthesis.
12473 (TREE_SET_CODE): Add whitespace.
12474 (TREE_CHECK): Add parenthesis.
12475 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
12476 (CST_OR_CONSTRUCTOR_CHECK):
12477 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
12478 (TREE_SYMBOL_REFERENCED): Whitespace.
12479 (INT_CST_LT): Likewise.
12480 (INT_CST_LT_UNSIGNED): Likewise.
12481 (tree_real_cst): Unwrap comment.
12482 (tree_string): Likewise.
12483 (tree_complex): Likewise.
12484 (IDENTIFIER_POINTER): correct cast.
12485 (SAVE_EXPR_CONTEXT): Whitespace.
12486 (EXPR_WFL_FILENAME_NODE): Likewise.
12487 (EXPR_WFL_FILENAME): Remove parenthesis.
12488 (DECL_ORIGIN): Add parenthesis.
12489 (DECL_FROM_INLINE): Use NULL_TREE.
12490 (build_int_2): Whitespace.
12491 (build_type_variant): Add parenthesis.
12493 * gcc/jcf-parse.c: Update copyright date.
12494 (yyparse): Constify resource_filename.
12496 2002-01-03 Graham Stott <grahams@redhat.com>
12498 * rtl.h: Update copyright date.
12499 (RTL_CHECK1): Wrap long line.
12500 (RTL_CHECK2): Likewise.
12501 (RTL_CHECKC1): Wrap long line and whitespace.
12502 (RTL_CHECKC2): Likewise.
12503 (XWINT): Whitespace.
12509 (XBITMAP): Likewise.
12511 (XBBDEF): Likewise.
12513 (X0WINT): Likewise.
12515 (X0UINT): Likewise.
12519 (X0MODE): Likewise.
12520 (X0BITMAP): Likewise.
12521 (X0TREE): Likewise.
12522 (X0BBDEF): Likewise.
12523 (X0ADVFLAGS): Likewise.
12524 (X0CSELIB): Likewise.
12525 (X0MEMATTR): Likewise.
12526 (XCWINT): Likewise.
12528 (XCUINT): Likewise.
12532 (XCMODE): Likewise.
12533 (XCBITMAP): Likewise.
12534 (XCTREE): Likewise.
12535 (XCBBDEF): Likewise.
12536 (XCADVFLAGS): Likewise.
12537 (XCCSELIB): Likewise.
12538 (XC2EXP): Likewise.
12539 (INSN_UID): Likewise.
12540 (PREV_INSN): Likewise.
12541 (PATTERN): Likewise.
12542 (INSN_CODE): Likewise.
12543 (PUT_REG_NOTE_KIND): Likewise.
12544 (CODE_LABEL_NUMBER): Likewise.
12545 (NOTE_SOURCE_FILE): Likewise.
12546 (NOTE_BLOCK): Likewise.
12547 (NOTE_EH_HANDLER): Likewise.
12548 (NOTE_RANGE_INFO): Likewise.
12549 (NOTE_LIVE_INFO): Likewise.
12550 (NOTE_BASIC_BLOCK): Likewise.
12551 (NOTE_EXPECTED_VALUE): Likewise.
12552 (NOTE_LINE_NUMBER): Likewise.
12553 (LABEL_NAME): Likewise.
12554 (LABEL_NUSES): Likewise.
12555 (LABEL_ALTERNATE_NAME): Likewise.
12556 (ADDRESSOF_DECL): Likewise.
12557 (JUMP_LABEL): Likewise.
12558 (LABEL_NEXTREF): Likewise.
12560 (ORIGINAL_REGNO: Likewise.
12561 (HARD_REGISTER_NUM_P): Add parenthesis.
12562 (SUBREG_REG): Whitespace.
12563 (SUBREG_BYTE): Likewise.
12564 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
12565 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
12566 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
12567 (ASM_OPERANDS_INPUT_VEC): Likewise.
12568 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
12569 (ASM_OPERANDS_INPUT): Likewise.
12570 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
12571 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
12572 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
12573 (ASM_OPERANDS_INPUT_MODE): Likewise.
12574 (ASM_OPERANDS_SOURCE_FILE): Likewise.
12575 (ASM_OPERANDS_SOURCE_LINE): Likewise.
12576 (MEM_SET_IN_STRUCT_P): Minor reformat.
12577 (TRAP_CONDITION): Whitespace.
12578 (TRAP_CODE): Likewise.
12579 (COND_EXEC_TEST): Likewise.
12580 (COND_EXEC_CODE): Likewise.
12581 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
12582 (PHI_NODE_P): Add parenthesis.
12583 (plus_constant): Whitespace and add parenthesis.
12585 2002-01-03 Kazu Hirata <kazu@hxi.com>
12587 * config/avr/avr.c: Fix comment typos.
12588 * config/c4x/c4x.md: Likewise.
12589 * config/dsp16xx/dsp16xx.h: Likewise.
12590 * config/dsp16xx/dsp16xx.md: Likewise.
12591 * config/i386/i386.md: Likewise.
12592 * config/ia64/ia64.c: Likewise.
12593 * config/m32r/m32r.h: Likewise.
12594 * config/m68hc11/m68hc11.md: Likewise.
12595 * config/mmix/mmix.c: Likewise.
12596 * config/mn10200/mn10200.c: Likewise.
12597 * config/romp/romp.c: Likewise.
12598 * config/sh/sh.c: Likewise.
12599 * config/stormy16/stormy16.c: Likewise.
12600 * config/stormy16/stormy16.h: Likewise.
12601 * config/stormy16/stormy16.md: Likewise.
12603 2002-01-03 Graham Stott <grahams@redhat.com>
12605 * loop.h: Update copyright date.
12606 (LOOP_MOVABLES): Fix typo.
12607 (LOOP_REGS): Likewise.
12608 (LOOP_IVS): Likewise.
12610 2002-01-03 Graham Stott <grahams@redhat.com>
12612 * cppinit.c: Update copyright date.
12613 Don't include output.h
12614 * Makefile.in: Update copyright date.
12617 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
12620 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
12621 (-pthread) Add to RS/6000 options.
12623 2002-01-02 Kazu Hirata <kazu@hxi.com>
12625 * except.c: Fix comment typos.
12626 * loop.c: Likewise.
12627 * varasm.c: Likewise.
12628 * doc/tm.texi: Fix a typo.
12630 2002-01-02 Jakub Jelinek <jakub@redhat.com>
12632 * c-typeck.c (output_init_element): Allow initializing static storage
12633 duration objects with compound literals.
12635 2002-01-02 Richard Henderson <rth@redhat.com>
12637 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
12640 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12642 * gcc.c (default_compilers): Const-ify.
12643 * mips-tdump.c (stab_names): Likewise.
12644 * mips-tfile.c (map_coff_types, map_coff_storage,
12645 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
12646 pseudo_ops_t, pseudo_ops): Likewise.
12647 * protoize.c (default_include): Likewise
12649 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
12650 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
12651 Add array size in declaration.
12652 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
12653 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
12654 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
12655 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
12656 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
12657 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
12658 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
12659 emtens, make_nan): Const-ify.
12660 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
12661 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
12663 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
12665 * config.gcc (ia64-*-*): Set extra_headers.
12666 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
12667 * config/alpha/t-osf: Remove.
12668 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
12670 2002-01-02 David Edelsohn <edelsohn@gnu.org>
12672 * config/rs6000/t-aix43: Revert previous change.
12674 2002-01-02 Jason Merrill <jason@redhat.com>
12676 * c-decl.c (c_expand_body): Call outlining_inline_function when
12677 emitting an inline function out of line.
12679 2002-01-02 Richard Henderson <rth@redhat.com>
12681 * dwarf2out.c (limbo_die_node): Add created_for member.
12682 (new_die): New argument created_for. Update all callers.
12683 (mark_limbo_die_list): New.
12684 (dwarf2out_init): Register limbo_die_list as a root.
12685 (dwarf2out_finish): Force insert limbo dies into their function
12688 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
12691 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
12693 2002-01-02 Kazu Hirata <kazu@hxi.com>
12695 * config/h8300/fixunssfsi.c: Update copyright.
12698 * config/h8300/h8300.c: Update copyright.
12699 Eliminate warnings.
12701 2002-01-02 Kazu Hirata <kazu@hxi.com>
12703 * config/romp/romp.c: Fix comment formatting.
12704 * config/romp/romp.h: Likewise.
12705 * config/romp/romp.md: Likewise.
12706 * config/s390/s390.c: Likewise.
12707 * config/stormy16/stormy16.c: Likewise.
12708 * config/stormy16/stormy16.h: Likewise.
12710 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
12712 * c-common.h (genrtl_expr_stmt_value): Declare.
12713 * c-semantics.c (genrtl_goto_stmt): Redirect to...
12714 (genrtl_goto_stmt_value): ... this new function. Pass new
12715 argument down to expand_expr_stmt_value, taking
12716 TREE_ADDRESSABLE into account.
12717 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
12718 STMT_EXPR as addressable, i.e., one whose result we want.
12719 * expr.c (expand_expr): Don't save expression statement value
12720 of labeled_blocks or loop_exprs.
12721 * stmt.c (expand_expr_stmt): Redirect to...
12722 (expand_expr_stmt_value): ... this new function. Use new
12723 argument to tell whether to save expression value.
12724 (expand_end_stmt_expr): Reset last_expr_type and
12725 last_expr_value if we don't have either.
12726 * tree-inline.c (declare_return_variable): Mark its use
12727 statement as addressable.
12728 * tree.h: Document new use of TREE_ADDRESSABLE.
12729 (expand_expr_stmt_value): Declare.
12731 2002-01-01 Tom Rix <trix@redhat.com>
12733 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
12734 rs6000_emit_allocate_stack.
12736 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
12738 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
12739 ${srcdir}/ginclude/ to every entry in extra_headers.
12740 * configure: Regenerate.
12741 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
12742 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
12743 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
12744 * ginclude/proto.h: Rename to config/convex/proto.h.
12746 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12748 * attribs.c (handle_vector_size_attribute): Use host_integerp
12749 and tree_int_cst; remove warnings.
12750 * caller-save.c (insert_restore): Add cast to get rid of warning.
12751 (insert_save): Likewise.
12752 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
12753 * regmove.c (find_matches): Add temporary var to kill a warning.
12755 2002-01-01 Douglas B Rupp <rupp@gnat.com>
12757 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
12758 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
12759 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
12760 (vms-dwarf2eh.o): Add Makefile rule.
12761 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
12762 * config/alpha/vms-dwarf2eh.asm: New file.
12764 * gcc.c (delete_if_ordinary): Delete all versions.
12766 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
12768 * config/mmix/mmix.md: Update FIXME to not mention
12770 (MMIX_rJ_REGNUM): New define_constants constant.
12771 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
12772 "*movdicc_real"): Adjust contraints formatting.
12773 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
12774 for branch prediction.
12775 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
12777 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
12778 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
12779 number. Delete related FIXMEs.
12780 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
12781 from number to MMIX_rJ_REGNUM.
12782 (TARGET_MASK_BRANCH_PREDICT): New.
12783 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
12784 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
12785 value. Add -mbranch-predict and -mno-branch-predict.
12786 (TARGET_VERSION): Drop date.
12787 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
12788 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
12789 for finding out global symbols.
12790 (mmix_asm_output_labelref): Revert condition for global symbol.
12791 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
12792 (mmix_print_operand_punct_valid_p): A '+' is valid.
12794 See ChangeLog.6 for earlier changes.