1 2002-05-03 David S. Miller <davem@redhat.com>
3 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4 * config/sparc/sparc.c (sparc_rtx_costs): New function
5 implementing RTX_COSTS and CONST_COSTS.
6 * config/sparc/sparc.h (CONST_COSTS): Delete.
7 (RTX_COSTS_CASES): Define.
8 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
11 * config/sparc/sparc.md (DFA schedulers): Split out...
12 * config/sparc/cypress.md, config/sparc/hypersparc.md,
13 config/sparc/sparclet.md, config/sparc/supersparc.md,
14 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
16 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
17 checks on it, always defined for Sparc.
19 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
20 Tweak, and add more detailed comments.
22 2002-05-03 Zack Weinberg <zack@codesourcery.com>
24 * Re-apply patch accidentally reverted with
25 DFA scheduler merge: remove all rules and variables to slurp
26 source files out of libiberty and rebuild them with HOST_CC.
27 ($(HOST_PREFIX_1)varray.o): New rule.
28 (genattrtab rule): Word wrap.
30 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
32 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
33 (CPP_SUBTARGET_SPEC): Define.
34 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
36 (CPP_SPEC): Redefine to include %(cpp_subtarget).
38 2002-05-03 David S. Miller <davem@redhat.com>
40 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
41 * target.h (struct gcc_target): Delete cycle_display member.
43 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
44 (rtx_needs_barrier): Delete reference to cycle_display unspec.
45 (ia64_sched_reorder2): Mention need for cycle display handling
46 once such notes exist.
48 2002-05-03 Richard Henderson <rth@redhat.com>
50 * real.c (etoasc): Strip most trailing zeros for clarity.
51 * sched-vis.c: Include real.h.
52 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
53 * Makefile.in (sched-vis.o): Add real.h.
55 2002-05-03 David S. Miller <davem@redhat.com>
57 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
60 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
62 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
63 when we get an out of range literal.
64 (altivec_expand_ternop_builtin): Same.
65 (altivec_expand_unop_builtin): Same.
66 (altivec_expand_builtin): Same, for dss.
67 (altivec_expand_builtin): Use trees instead of rtl when
68 determining literal argument validity.
70 2002-05-03 David S. Miller <davem@redhat.com>
72 Delete cycle display scheduling hook.
73 * config/ia64/ia64.c (ia64_cycle_display,
74 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
75 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
76 and use emit_insn_before instead of ia64_emit_insn_before.
77 * config/ia64/ia64.md (unspec usage): Delete cycle display.
78 (cycle_display): Delete insn pattern.
79 * config/sparc/sparc.md (unspec usage): Delete cycle display.
80 (cycle_display): Delete insn pattern.
81 * config/sparc/sparc.c (sparc_cycle_display,
82 TARGET_SCHED_CYCLE_DISPLAY): Delete.
83 * doc/md.texi (cycle_display): Don't mention.
84 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
86 2002-05-03 Richard Henderson <rth@redhat.com>
88 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
89 * recog.h: Declare them.
91 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
92 * config/sparc/sparc.md: Use store_data_bypass_p instead.
93 * config/sparc/sparc-protos.h: Update.
95 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
97 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
98 -D__arch64__. Add -D_LP64.
99 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
101 (CPP_ARCH64_SPEC): Likewise.
102 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
103 (NO_BUILTIN_SIZE_TYPE): Undef.
105 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
107 * genautomata.c (min_issue_delay_pass_states): Change return type
109 (min_issue_delay_pass_states): Change the algorithm.
110 (min_issue_delay): Set up min_insn_issue_delay for the state.
111 (output_min_issue_delay_table): Interchange the nested loops and
112 and initiate min_insn_issue_delay for states.
114 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
116 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
119 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
121 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
124 2002-05-03 Richard Henderson <rth@redhat.com>
127 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
128 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
129 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
130 code before JUMP, not EARLIEST.
132 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
134 * c-format.c (check_format_info_main): Don't check for presence of
135 parameter for * width until after operand number has been read,
136 and only check for it if format parameters are available.
139 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
141 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
142 (LINK_SPEC): Undef before defining.
144 2002-05-03 Jakub Jelinek <jakub@redhat.com>
147 * tradcpp.c (fixup_newlines): New.
148 (main, finclude): Use it.
150 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
152 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
153 * config/mips/mips.c (mips_unique_section): Strip encoding from
156 2002-05-03 Jakub Jelinek <jakub@redhat.com>
158 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
161 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
163 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
164 (Specific): Removed buildstats references.
165 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
166 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
167 Accomodate Solaris versions beyond 8.
168 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
169 (Specific, *-*-solaris2.8): Removed, obsolete.
171 2002-05-03 Jakub Jelinek <jakub@redhat.com>
174 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
175 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
176 fill leaf_reg_remap with identity.
177 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
179 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
181 * config/h8300/crti.asm: Remove trailing spaces.
182 * config/h8300/h8300.c: Likewise.
183 * config/h8300/lib1funcs.asm: Likewise.
185 2002-05-02 Jason Merrill <jason@redhat.com>
187 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
188 * c-decl.c (c_init_decl_processing): Use it.
189 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
190 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
191 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
193 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
195 * regrename.c: Fix formatting.
198 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
200 * i386.md (attribute memory): Handle compares properly.
202 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
204 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
207 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
209 * function.c: Fix formatting.
211 2002-05-02 Jan Hubicka <jh@suse.cz>
213 * haifa-sched.c (schedule_insn): Print table of instructions and
215 (sched_block): Do not print ready list at verbosity level 1.
216 * sched-vis.c (print_insn): Make global.
217 * sched-ebb.c (ebb_print_insn): Rename from...
218 (print_insn): ... this one.
219 * sched-int.h (print_insn): Declare
221 2002-05-02 Richard Henderson <rth@redhat.com>
223 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
224 emitted by cycle_display.
226 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
228 * doc/install.texi (*-*-freebsd*): Update to latest status.
230 2002-05-02 Jakub Jelinek <jakub@redhat.com>
233 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
234 * config/float-sparc.h: Assume 128-bit long double if
235 __LONG_DOUBLE_128__ is defined.
237 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
239 * genattrtab.c (write_function_unit_info): Add a dummy element
242 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
244 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
245 TYPE_MODE (double_type_node) instead of DFmode.
247 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
249 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
251 * toplev.c (rest_of_compilation): Revert Richard's patch.
253 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
255 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
257 2002-05-02 Catherine Moore <clm@redhat.com>
259 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
261 2002-05-02 Kazu Hirata <kazu@hxi.com>
263 * combine.c: Fix comment typos.
265 * genautomata.c: Likewise.
269 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
271 * doc/install.texi: State GNAT version requirements.
273 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
275 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
276 of the frame pointer or arg pointer register which strict register
277 checking is not enabled.
279 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
281 * gcc.dg/altivec-8.c: New.
283 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
284 PRE_INC and PRE_DEC for altivec modes.
286 2002-05-01 Bruce Korb <bkorb@gnu.org>
288 * fixinc/check.tpl(set-writable): make sure the function exists first
289 * fixinc/inclhack.def(alpha_assert): fix test_text
290 * fixinc/tests/base/assert.h: add in missing result
292 2002-05-01 Jeff Law <law@redhat.com>
294 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
297 2002-05-01 Joel Brobecker <brobecker@gnat.com>
299 * dbxout.c (dbxout_type): Emit size information for range types,
300 as well, but only when using GDB extensions.
302 2002-05-01 Richard Henderson <rth@redhat.com>
304 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
305 target-independent gnu binutils date test.
307 2002-05-01 Richard Henderson <rth@redhat.com>
309 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
310 info before expunging the block.
312 2002-05-01 Jakub Jelinek <jakub@redhat.com>
314 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
315 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
316 -M -or -MM is in effect.
318 2002-05-01 Zack Weinberg <zack@codesourcery.com>
320 * config.gcc: Correct test of --enable-obsolete. Obsolete all
322 * doc/install.texi: Update to match.
324 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
327 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
328 for duplicates. Always loop over whole list.
330 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
332 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
334 2002-05-01 Joel Sherrill <joel@OARcorp.com>
336 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
339 2002-05-01 Joel Sherrill <joel@OARcorp.com>
341 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
343 2002-05-01 David Edelsohn <edelsohn@gnu.org>
345 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
346 (nabs_nopower): Same.
347 (floatdisf2): New pattern.
348 (absdi2): Convert to define_insn_and_split.
353 (fix_trunctfdi2): Same.
354 (fix_trunctfsi2): Same.
356 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
358 * doc/install.texi: Update Texinfo version requirement
361 2002-05-01 Jakub Jelinek <jakub@redhat.com>
363 PR target/6512, PR target/5628
364 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
365 when memory is not aligned.
366 (movdf_insn_v9only_vis): Likewise.
367 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
368 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
369 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
371 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
373 * gcc.dg/altivec-7.c: New.
375 * config/rs6000/altivec.h: Cleanup.
377 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
379 * doc/invoke.texi (Option Summary): Add -mvrsave=.
380 (RS/6000 and PowerPC Options): Document -mvrsave=.
382 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
383 (rs6000_altivec_vrsave_string): Same.
384 (rs6000_override_options): Call rs6000_parse_vrsave_option.
385 (rs6000_parse_vrsave_option): New.
386 (rs6000_stack_info): Only generate vrsave instructions when
387 TARGET_ALTIVEC_VRSAVE.
389 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
390 (rs6000_altivec_vrsave_string): Define extern.
391 (rs6000_altivec_vrsave): Same.
392 (TARGET_ALTIVEC_VRSAVE): New.
394 2002-04-30 Richard Henderson <rth@redhat.com>
397 * toplev.c (rest_of_compilation): Don't run cross-jump before
400 2002-04-30 Tom Rix <trix@redhat.com>
402 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
403 check which_alternative.
405 2002-04-30 Kazu Hirata <kazu@hxi.com>
407 * cpplex.c: Fix comment formatting.
408 * function.c: Likewise.
409 * integrate.c: Likewise.
410 * regrename.c: Likewise.
411 * sibcall.c: Likewise.
412 * simplify-rtx.c: Likewise.
413 * tree-inline.c: Likewise.
415 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
417 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
418 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
419 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
420 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
421 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
422 * pa/x-ada: New file. Define ADA_CFLAGS.
424 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
426 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
427 from MMIX_LAST_REGISTER_FILE_REGNUM.
428 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
429 (struct machine_function): New member highest_saved_stack_register
430 previously static variable in mmix.c.
431 (MACHINE_DEPENDENT_REORG): Define.
432 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
433 (MMIX_OUTPUT_REGNO): New.
434 (mmix_target_asm_function_prologue): Move calculation of last used
435 saved-stack-register into...
436 (mmix_machine_dependent_reorg): New function. Update to also handle
438 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
439 register names, simplify somewhat by new variable regno.
440 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
442 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
443 emitting register names.
444 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
445 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
447 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
450 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
452 2002-04-30 Richard Henderson <rth@redhat.com>
454 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
455 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
456 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
457 emit_tfmode_cvt): New.
458 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
459 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
460 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
461 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
462 * config/sparc/sparc-protos.h: Update.
464 2002-04-30 Janis Johnson <janis187@us.ibm.com>
466 * install.texi (Final install): Add to the list of info to include
467 in a report of a successful bootstrap, and add link to 3.1 list.
469 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
471 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
472 (mode): Add vector modes
473 (i387): Kill attribute.
474 (unit): New attribute.
475 (length_immediate): Grok new types.
476 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
478 (memory): Handle MMX/SSE properly.
479 (scheduling descriptions): Kill uses of fop1.
480 (sse, mmx, fp patterns): Set type and mode properly.
482 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
484 * pa.c (override_options): Default to PA8000 scheduling.
485 * doc/invoke.texi (HP-PA options): Mention newly added 7300
486 scheduling parameter.
488 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
489 handling of double precision multiplies.
491 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
492 fpdiv and fpsqrt instructions.
493 (7200 & 7300 scheduling): Fix typo in handling of
494 store-load and store-store penalties.
496 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
498 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
499 mips. Add two missing commas.
501 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
503 * doc/contrib.texi (Contributors): Update Paolo Carlini's
504 and Benjamin Kosnik's entries.
506 2002-04-29 David S. Miller <davem@redhat.com>
508 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
509 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
510 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
511 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
513 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
515 * combine.c (find_split_point): Use gen_int_mode.
517 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
519 Merging code from dfa-branch:
521 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
523 * genautomata.c (output_reserv_sets): Fix typo.
525 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
527 * genautomata.c (output_reserv_sets): Remove
528 next_cycle_output_flag.
530 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
532 * sched-rgn.c (init_ready_list): Make the DFA code handle
533 USE/CLOBBER insns in the same way as the traditional
535 (new_ready): Similarly..
537 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
539 * haifa-sched.c (schedule_block): Change the DFA state only after
542 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
544 * pa.c (hppa_use_dfa_pipeline_interface): New function.
545 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
546 (override_options): Add PA7300 scheduling support.
547 (pa_adjust_cost): Update various comments. Properly
548 handle anti and output dependencies when using the
550 (pa_issue_rate): Add PA7300 scheduling support.
551 (pa_can_combine_p): Call extract_insn before calling
552 constrain_operands (taken from mainline tree).
553 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
554 * pa.md (cpu attr): Add 7300. Rewrite pipeline
555 descriptions using DFA descriptions. Add PA7300
558 2002-03-30 David S. Miller <davem@redhat.com>
560 Add UltraSPARC-III DFA scheduling support.
561 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
562 Update FP conditional move on register insn patterns to use it, as
564 (define_attr cpu): Add ultrasparc3.
565 (define_attr us3load_type): New, update integer load patterns to
566 set it, as appropriate.
567 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
568 (rest): Add UltraSPARC3 scheduling description.
569 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
570 (PROCESSOR_ULTRASPARC3): New.
571 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
572 ({ASM,CPP}_CPU_SPEC): Likewise.
573 (REGISTER_MOVE_COST): Likewise.
574 (RTX_COSTS): Likewise.
575 * config/sparc/sparc.c (sparc_override_options,
576 sparc_initialize_trampoline, sparc64_initialize_trampoline,
577 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
578 sparc_issue_rate): Likewise.
579 * config/sparc/sol2.h: Likewise.
580 * config/sparc/sol2-sld-64.h: Likewise.
581 * config/sparc/linux64.h: Likewise.
583 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
585 * doc/md.texi: Add comments about usage the latency time for the
586 different dependencies and about case when two or more conditions
587 in different define_insn_reservations returns TRUE for an insn.
589 * doc/md.texi: Add reference for automaton based pipeline
592 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
594 * doc/passes.texi: Add missed information about genattrtab.
596 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
598 * genautomata.c (output_automata_list_transition_code): Check
599 automata_list on NULL.
601 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
603 * genautomata.c (output_insn_code_cases,
604 output_automata_list_min_issue_delay_code,
605 output_automata_list_transition_code,
606 output_automata_list_state_alts_code): Comment the functions.
608 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
610 * genautomata.c (automata_list_el_t): New typedef.
611 (get_free_automata_list_el,free_automata_list_el,
612 free_automata_list, automata_list_hash, automata_list_eq_p,
613 initiate_automata_lists, automata_list_start, automata_list_add,
614 automata_list_finish, finish_automata_lists,
615 output_insn_code_cases, output_automata_list_min_issue_delay_code,
616 output_automata_list_transition_code,
617 output_automata_list_state_alts_code, add_automaton_state,
618 form_important_insn_automata_lists): New functions and prototypes.
619 (insn_reserv_decl): Add members important_automata_list and
621 (ainsn): Add members important_p.
622 (automata_list_el): New structure.
623 (first_free_automata_list_el, current_automata_list,
624 automata_list_table): New global variables.
625 (create_ainsns): Initiate member important_p.
626 (output_internal_min_issue_delay_func): Generate the switch and
627 call output_insn_code_cases.
628 (output_internal_trans_func, output_internal_state_alts_func):
630 (generate): Call initiate_automata_lists.
631 (automaton_states): New global variable.
632 (expand_automata): Call form_important_insn_automata_lists.
633 (write_automata): Call finish_automata_lists.
635 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
637 * genautomata.c (add_excls, add_presence_absence): Check that
638 cpu units in the sets belong the same automaton.
640 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
641 about that cpu units in the sets belong the same automaton.
643 * doc/md.texi: Ditto.
645 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
646 Nitin Gupta <niting@noida.hcltech.com>
648 * config/sh/sh.c (sh_use_dfa_interface): New function.
650 (sh_issue_rate): New Function.
651 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
652 TARGET_SCHED_ISSUE_RATE: define.
654 * config/sh/sh.md: Add DFA based pipeline description for SH4.
656 (define_attr insn_class): New attribute used for DFA
658 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
659 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
660 cmpeqdi_t): Likewise.
662 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
663 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
665 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
667 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
669 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
672 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
674 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
675 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
677 (output_dfa_start_func): Initiate new variable insn_codes_length,
678 (write_automata): Output definition of the new variable.
680 2001-10-02 David S. Miller <davem@redhat.com>
682 * haifa-sched.c (advance_one_cycle): New function.
683 (schedule_block): Use it.
684 (queue_to_ready): Use it, and also make sure to advance the DFA
685 state on all stall cycles, not just those where insn_queue links
688 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
690 * haifa-sched.c (max_issue): Remove last_p argument. Only return
691 non-zero if the highest-priority instruction could be scheduled.
692 (choose_ready): Remove last argument from max_issue call.
694 2001-09-28 David S. Miller <davem@redhat.com>
696 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
697 ultrasparc and 3 for other multi-issue sparcs.
699 2001-09-27 David S. Miller <davem@redhat.com>
701 * config/sparc/sparc.md (cycle_display): New pattern.
702 * config/sparc/sparc.c (sparc_cycle_display): New.
703 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
705 2001-09-25 David S. Miller <davem@redhat.com>
707 Convert all of Sparc scheduling to DFA
708 * config/sparc/sparc.md: Kill all define_function_unit
709 directives and replace with DFA equivalent.
710 * config/sparc/sparc.c (ultrasparc_adjust_cost,
711 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
712 ultra_fpmode_conflict_exists, ultra_find_type,
713 ultra_build_types_avail, ultra_flush_pipeline,
714 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
715 ultrasparc_variable_issue, ultrasparc_sched_init,
716 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
717 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
718 ultra_cur_hist, ultra_cycles_elapsed): Kill.
719 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
720 ultrasparc_store_bypass_p): New.
721 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
724 2001-09-24 David S. Miller <davem@redhat.com>
726 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
727 ready->vec[foo] not ready[foo].
729 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
731 * doc/md.texi: Correct examples for define_insn_reservations
734 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
736 * genautomata.c (create_automata): Print message about creation of
738 (generate): Remove printing meease about creation of
741 2001-09-05 David S. Miller <davem@redhat.com>
743 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
744 * config/sparc/linux64.h: Likewise.
746 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
748 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
749 schedule_block, sched_init, sched_finish): Add missed calls of
750 use_dfa_pipeline_interface.
752 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
755 * sched-vis.c (get_visual_tbl_length): Ditto.
757 2001-08-27 Richard Henderson <rth@redhat.com>
759 * genattr.c (main): Emit state_t even when not doing scheduling.
761 2001-08-27 Richard Henderson <rth@redhat.com>
763 * genautomata.c (expand_automata): Always create a description.
765 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
767 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
768 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
769 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
772 * genattr.c (main): New variable num_insn_reservations. Increase
773 it if there is DEFINE_INSN_RESERVATION. Output automaton based
774 pipeline hazard recognizer interface.
776 * genattrtab.h: New file.
778 * genattrtab.c: Include genattrtab.h.
779 (attr_printf, check_attr_test, make_internal_attr,
780 make_numeric_value): Move protypes into genattrtab.h. Define them
782 (num_dfa_decls): New global variable.
783 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
784 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
785 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
786 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
788 * genautomata.c: New file.
790 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
792 * sched-int.h: (curr_state): Add the external definition for
793 automaton pipeline interface.
794 (haifa_insn_data): Add comments for members blockage and units.
796 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
797 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
798 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
799 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
800 TARGET_SCHED_DFA_POST_CYCLE_INSN,
801 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
802 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
804 (TARGET_SCHED): Use the new macros.
806 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
807 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
808 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
809 dfa_bubble): New members in gcc_target.sched.
811 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
812 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
813 (insn_queue): Redefine it as pointer to array.
814 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
816 (max_insn_queue_index_macro_value): New variable.
817 (curr_state, dfa_state_size, ready_try): New varaibles for
819 (ready_element, ready_remove, max_issue): New function prototypes
820 for automaton interface.
821 (choose_ready): New function prototype.
822 (insn_unit, blockage_range): Add comments.
823 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
824 FUNCTION_UNITS_SIZE == 0.
825 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
826 actual_hazard, potential_hazard): Add comments.
827 (insn_cost): Use cost -1 as undefined value. Remove
828 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
830 (ready_element, ready_remove): New functions for automaton
832 (schedule_insn): Add new code for automaton pipeline interface.
833 (queue_to_ready): Add new code for automaton pipeline interface.
834 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
835 (debug_ready_list): Print newline when the queue is empty.
836 (max_issue): New function for automaton pipeline interface.
837 (choose_ready): New function.
838 (schedule_block): Add new code for automaton pipeline interface.
839 Print ready list before scheduling each insn.
840 (sched_init): Add new code for automaton pipeline interface.
841 Initiate insn cost by -1.
842 (sched_finish): Free the current automaton state and finalize
843 automaton pipeline interface.
845 * sched-rgn.c: Include target.h.
846 (init_ready_list, new_ready, debug_dependencies): Add new code for
847 automaton pipeline interface.
849 * sched-vis.c: Include target.h.
850 (get_visual_tbl_length): Add code for automaton interface.
851 (target_units, print_block_visualization): Add comments.
853 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
854 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
855 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
856 (getruntime.o, genautomata.o): New entries.
857 (genattrtab.o): Add new dependency file genattrtab.h.
858 (genattrtab): Add new dependencies. Link it with `libm.a'.
859 (getruntime.o, hashtab.o): New entries for canadian cross.
861 * doc/md.texi: Description of automaton based model.
863 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
865 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
866 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
867 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
868 TARGET_SCHED_DFA_POST_CYCLE_INSN,
869 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
870 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
871 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
873 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
874 MAX_DFA_ISSUE_RATE): New macro descriptions.
876 * doc/contrib.texi: Add dfa based scheduler contribution.
878 * doc/gcc.texi: Add more information about genattrtab.
880 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
882 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
883 adjust_address_nv call.
885 2002-04-29 Janis Johnson <janis187@us.ibm.com>
887 * doc/install.texi (Testing): Provide additional information, and
888 a stronger encouragement, for running the testsuites.
890 2002-04-29 DJ Delorie <dj@redhat.com>
892 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
895 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
897 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
898 Solaris 2 <widec.h> if missing.
899 * fixinc/fixincl.x: Regenerate.
900 * fixinc/tests/base/widec.h: New file.
902 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
904 * toplev.c (f_options): Add "profile" switch so that
905 -fno-profile can be used to disable -p.
907 2002-04-29 Bernd Schmidt <bernds@redhat.com>
909 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
911 * tree.c (build_common_tree_nodes_2): Likewise.
912 * tree.h (enum tree_index): Likewise.
913 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
915 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
917 (init_mmx_sse_builtins): Initialize SSE2 builtins.
918 (ix86_expand_builtin): Add support for SSE2 builtins.
919 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
920 (VALID_SSE_REG_MODE): Use it.
921 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
922 (enum ix86_builtins): Add SSE2 builtins.
923 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
924 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
925 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
926 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
927 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
928 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
929 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
930 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
931 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
932 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
933 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
934 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
935 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
936 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
937 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
938 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
939 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
940 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
941 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
942 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
943 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
944 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
945 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
946 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
947 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
948 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
949 lfence_insn): New patterns.
950 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
951 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
953 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
955 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
957 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
959 * doc/contrib.texi (Contributors): Add Paolo Carlini and
961 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
962 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
963 and CPU instead of cpu.
965 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
967 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
969 (lang_independent_options): Add -fif-conversion, -fif-conversion2
970 (rest_of_compilation): Do if conversion only when asked for.
971 (parse_options_and_default_flags): Set new variables to 1 for -O1
972 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
974 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
976 * i386.c (dbx64_register_map): Fix typo.
978 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
980 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
981 real_one_half, real_bb_freq_max): New static variables.
982 (debug_profile_bbauxs): Kill.
983 (process_note_predictions): Kill unused variable.
984 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
986 (propagate_freq): Use REAL_ARITHMETICS.
987 (estimate_bb_frequencies): Likevise; init new static variables.
988 * Makefile.in (predict.o): Add dependency on real.h
990 2002-04-28 David S. Miller <davem@redhat.com>
993 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
994 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
995 several {reads,writes} instead.
996 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
999 2002-04-27 David S. Miller <davem@redhat.com>
1002 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
1005 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
1006 including signal.h and sys/ucontext.h, not needed.
1008 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
1010 * varasm.c (output_constant_def): Correct test for not calling
1011 ENCODE_SECTION_INFO for INTEGER_CST.
1013 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
1015 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
1016 keep most cases as function eval_token.
1017 (eval_token): New function.
1018 (_cpp_parse_expr): Read token here for improved diagnostics.
1019 Don't use op_as_text. Detect bad ':' here.
1020 (reduce): Don't detect bad ':' here.
1021 (op_as_text): Remove.
1022 * cpphash.h (_cpp_test_assertion): Change prototype.
1023 * cpplib.c (_cpp_test_assertion): Change prototype.
1025 2002-04-28 Richard Henderson <rth@redhat.com>
1028 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
1029 (ggc_mark_rtx_children): New.
1031 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1034 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
1035 after call peepholes for UltraSPARC.
1036 (call + jump 64-bit peepholes): Remove.
1038 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1041 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
1042 result as temporary value.
1044 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1047 * toplev.c (rest_of_compilation): Only run regrename and copy
1048 propagation if optimizing.
1050 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1052 PR optimization/6475
1053 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
1054 register of REGNO_DECL (i).
1055 * Makefile.in (reload1.o): Add $(TREE_H).
1057 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
1059 * cppexp.c (lex): Update to use state.skip_eval.
1060 (struct op): Remove prio and flags members.
1061 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
1062 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
1063 (LEFT_ASSOC): New macro.
1064 (optab): New table of operator priorities and flags.
1066 (_cpp_parse_expr): Clean up logic. Return bool. Use a
1067 malloc-ed parser stack.
1068 (reduce): New; reduce the operator stack.
1069 (_cpp_expand_op_stack): Expand the operator stack as necessary.
1070 * cpphash.h (struct op): Predeclare.
1071 (struct cpp_reader): New members op_stack, op_limit.
1072 (struct lexer_state): New member skip_eval.
1073 (_cpp_parse_expr): Update.
1074 (_cpp_expand_op_stack): New.
1075 * cpplib.c (do_if): Update.
1076 * cppinit.c (cpp_create_reader): Create op stack.
1077 (cpp_destroy): And destroy it.
1078 * cpplib.h (CPP_LAST_CPP_OP): Correct.
1079 (TTYPE_TABLE): Correct.
1081 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1084 * c-decl.c (duplicate_decls): Call merge_weak.
1085 * c-pragma.c (apply_pragma_weak): Warn about misuse.
1086 * output.h (merge_weak): Prototype merge_weak.
1087 * varasm.c (merge_weak): New function.
1088 (declare_weak): Make sure we don't give an error on VAR_DECLs.
1089 Mark RTL with SYMBOL_REF_WEAK.
1091 2002-04-27 Kurt Garloff <garloff@suse.de>
1093 * tree-inline.c (inlinable_function_p): Improve heuristics
1094 by using a smoother function to cut down allowable inlinable size.
1095 * param.def: Add parameters max-inline-insns-single,
1096 max-inline-slope, min-inline-insns that determine the exact
1097 shape of the above function.
1098 * param.h: Likewise.
1100 2002-04-26 Richard Henderson <rth@redhat.com>
1102 * c-parse.in (malloced_yyss, malloced_yyvs): New.
1103 (yyoverflow): Re-add. Set them.
1104 (free_parser_stacks): New.
1105 * c-common.h: Declare it.
1106 * c-lex.c (c_common_parse_file): Call it.
1108 2002-04-26 Richard Henderson <rth@redhat.com>
1110 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
1111 for fallthru search.
1113 2002-04-26 Eric Christopher <echristo@redhat.com>
1115 PR optimization/3700
1116 * config/mips/mips.c (mips_issue_rate): Define. New function.
1117 (TARGET_SCHED_ISSUE_RATE): Use.
1119 2002-04-25 David S. Miller <davem@redhat.com>
1122 * reorg.c (optimize_skip): Do not allow exception causing
1123 instructions to be considered for delay slots.
1124 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
1125 (relax_delay_slots): Do not try to consider exception causing
1126 instructions as redundant.
1128 2002-04-26 Richard Henderson <rth@redhat.com>
1131 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
1133 2002-04-26 Mark Mitchell <mark@codesourcery.com>
1136 * config/i386/i386.md (untyped_call): Return the value in a float
1137 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
1140 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
1142 * tree.c (tree_int_cst_lt): Compare constants whose types differ
1143 in unsigned-ness correctly.
1145 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1147 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
1148 portable runtime model.
1150 2002-04-26 Richard Henderson <rth@redhat.com>
1152 * c-parse.in (yyoverflow): Revert.
1154 2002-04-26 David Edelsohn <edelsohn@gnu.org>
1155 Richard Henderson <rth@redhat.com>
1157 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
1158 result as temporary value.
1160 2002-04-26 Richard Henderson <rth@redhat.com>
1163 * c-common.c (fix_string_type): Split out of ...
1164 (combine_strings): ... here. Take a varray, not a tree list.
1165 (c_expand_builtin_printf): Use fix_string_type.
1166 * c-common.h: Update decls.
1167 * c-parse.in (string): Remove. Update all uses to use STRING
1168 instead, and not call combine_strings.
1171 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
1172 (build_asm_stmt): Likewise.
1173 * objc/objc-act.c (my_build_string): Use fix_string_type.
1174 (build_objc_string_object): Build varray for combine_strings.
1176 2002-04-26 Bo Thorsen <bo@suse.co.uk>
1178 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
1181 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
1183 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
1184 (HAVE_NO_R_OPERAND): Remove.
1185 (HAVE_VALUE): Remove.
1186 (op_to_prio): Update.
1187 (UNARY): Don't alter flags.
1188 (_cpp_parse_expr): want_value used to indicate whether
1189 a number or unary operator is expected next. Distinguish
1190 unary and binary +/-.
1191 (op_as_text): Update for unary operators.
1193 2002-04-25 Richard Henderson <rth@redhat.com>
1196 * c-parse.in (yyoverflow): New.
1198 2002-04-25 Richard Henderson <rth@redhat.com>
1201 * c-common.c (shorten_compare): Simplfy conditions leading to
1202 the generation of a warning.
1204 2002-04-25 Richard Henderson <rth@redhat.com>
1207 * expmed.c (extract_bit_field): Fall through to generic code rather
1208 than aborting on subreg special case.
1210 2002-04-25 David S. Miller <davem@redhat.com>
1212 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
1213 for DECL being NULL.
1215 2002-04-25 Steve Christiansen <smc@us.ibm.com>
1217 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
1219 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
1221 * c-decl.c (grokdeclarator): Remove outdated ??? note
1222 on invalid declaration of flexible array members.
1224 2002-04-25 Richard Henderson <rth@redhat.com>
1226 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
1228 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
1230 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
1231 needed by the compiler, even if they are used as global regs.
1233 2002-04-25 Matt Hiller <hiller@redhat.com>
1235 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
1237 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
1238 of the corresponding functions.
1239 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
1242 2002-04-25 Matt Hiller <hiller@redhat.com>
1244 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
1246 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
1247 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
1248 registers, adjust comment accordingly.
1249 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
1250 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
1251 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
1252 for coprocessor registers.
1253 (ADDITIONAL_REGISTER_NAMES): Include
1254 ALL_COP_ADDITIONAL_REGISTER_NAMES.
1256 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
1257 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
1258 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
1259 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
1260 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
1262 (mips_char_to_class): Adjust comment to include coprocessor
1265 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
1267 (mips_reg_names, mips_regno_to_class): Include coprocessor
1269 (mips_sw_reg_names): Ditto, make non-static.
1270 (mips_move_1word): Handle moves to and from coprocessor registers.
1271 (mips_move_2words): Handle moves to and from coprocessor
1273 (mips_class_max_nregs, mips_register_move_cost): Handle
1274 coprocessor register classes.
1275 (override_options): Initialize mips_char_to_class and
1276 mips_hard_regno_mode_ok properly for coprocessor registers.
1278 * config/mips/mips.md (movdi_internal, movdi_internal2,
1279 movsi_internal1, movsi_internal2): Add constraint-sets for
1280 coprocessor registers.
1281 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
1282 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
1284 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
1285 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
1287 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
1288 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
1290 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
1291 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
1294 * doc/tm.texi: Document feature.
1296 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
1298 * integrate.c (function_attribute_inlinable_p): Simplify.
1299 Check the table pointer is not NULL.
1301 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
1303 * doc/c-tree.texi: Fix typo in introduction.
1305 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
1307 * c-common.h (c_common_parse_file): Update.
1308 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1309 * c-lex.c (YYDEBUG): Get from c-lex.h.
1310 (c_common_parse_file): Update.
1311 * c-lex.h (YYDEBUG, yydebug): New.
1312 * c-parse.in (YYDEBUG): Get from c-lex.h.
1313 (c_set_yydebug): Remove.
1314 * c-tree.h (c_set_yydebug): Remove.
1315 * langhooks-def.h (lhd_do_nothing_i): New.
1316 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
1317 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
1318 * langhooks.c (lhd_do_nothing_i): New.
1319 (lhd_set_yydebug): Remove.
1320 * langhooks.h (struct lang_hooks): Update.
1321 * toplev.c (set_yydebug): New.
1322 (compile_file): Update call to parse_file hook.
1323 (decode_d_option): Update.
1325 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1327 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
1329 * loop.c (load_mems): Don't change the interface of called functions.
1331 * calls.c (expand_call): Take current_function_pretend_args_size
1332 into account when setting argblock for sibcalls.
1334 2002-04-24 Matt Hiller <hiller@redhat.com>
1336 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
1339 * cpplex.c (skip_line_comment): Process comment one multibyte
1340 character at a time rather than one char at a time, if
1342 (parse_string): Process string one multibyte character at a time
1343 rather than one char at a time, if appropriate.
1344 * c-lex.c (lex_string): Lex and copy multibyte strings
1346 * cpplib.h (cppchar_t): Change to unsigned.
1348 2002-04-24 Richard Henderson <rth@redhat.com>
1351 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
1354 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
1356 * sh.c (sh_va_arg): If argument was passed by reference,
1357 dereference the pointer.
1359 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
1361 * sh.md (divsi3_i4_media): Use match_operand for input values
1362 rather than hard registers.
1363 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1364 unnecessarily through hard registers. Keep copies of pseudo
1365 registers outside of the libcall sequence.
1367 * sh.md (casesi_shift_media): Add modes.
1369 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
1372 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
1374 * attribs.c (c_common_attribute_table): Move table and handlers
1376 (format_attribute_table, lang_attribute_table,
1377 lang_attribute_common): Remove.
1378 (init_attributes): Replace NULL pointers with pointers to the
1380 (handle_packed_attribute, handle_nocommon_attribute,
1381 handle_common_attribute, handle_noreturn_attribute,
1382 handle_noinline_attribute, handle_always_inline_attribute,
1383 handle_used_attribute, handle_unused_attribute,
1384 handle_const_attribute, handle_transparent_union_attribute,
1385 handle_constructor_attribute, handle_destructor_attribute,
1386 handle_mode_attribute, handle_section_attribute,
1387 handle_aligned_attribute, handle_weak_attribute,
1388 handle_alias_attribute, handle_visibility_attribute,
1389 handle_no_instrument_function_attribute, handle_malloc_attribute,
1390 handle_no_limit_stack_attribute, handle_pure_attribute,
1391 handle_deprecated_attribute, handle_vector_size_attribute,
1392 vector_size_helper): Move to c-common.c.
1393 * c-common.c (c_common_attribute_table,
1394 handle_packed_attribute, handle_nocommon_attribute,
1395 handle_common_attribute, handle_noreturn_attribute,
1396 handle_noinline_attribute, handle_always_inline_attribute,
1397 handle_used_attribute, handle_unused_attribute,
1398 handle_const_attribute, handle_transparent_union_attribute,
1399 handle_constructor_attribute, handle_destructor_attribute,
1400 handle_mode_attribute, handle_section_attribute,
1401 handle_aligned_attribute, handle_weak_attribute,
1402 handle_alias_attribute, handle_visibility_attribute,
1403 handle_no_instrument_function_attribute, handle_malloc_attribute,
1404 handle_no_limit_stack_attribute, handle_pure_attribute,
1405 handle_deprecated_attribute, handle_vector_size_attribute,
1406 vector_size_helper): Move from attribs.c.
1407 * c-common.h (c_common_attribute_table,
1408 c_common_format_attribute_table): New.
1409 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1410 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1411 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
1412 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
1413 (LANG_HOOKS_INITIALIZER): Update.
1414 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
1415 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
1416 * target.h: Update comment.
1417 * tree.c (default_target_attribute_table): Remove.
1418 * tree.h (default_target_attribute_table, format_attribute_table,
1419 lang_attribute_table, lang_attribute_common): Remove.
1421 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1422 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1424 2002-04-24 Jason Merrill <jason@redhat.com>
1426 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
1427 * dwarf2out.c (dwarf_attr_name): Support it.
1428 (gen_array_type_die): Emit it.
1429 (lookup_type_die): No special handling for VECTOR_TYPE.
1430 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
1432 2002-04-24 Richard Henderson <rth@redhat.com>
1434 * config/mips/mips.md (movdi_usd): Renumber.
1436 2002-04-24 David S. Miller <davem@redhat.com>
1439 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
1440 32-bit Sparc and current_function_returns_struct is true.
1442 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
1444 * loop.c (canonicalize_condition): Use gen_int_mode.
1446 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
1448 * config/rs6000/altivec.h: Cleanup file. Add non individual
1470 (vec_vcmpequb): New.
1471 (vec_vcmpequh): New.
1472 (vec_vcmpequw): New.
1473 (vec_vcmpeqfp): New.
1474 (vec_vcmpgefp): New.
1475 (vec_vcmpgtub): New.
1476 (vec_vcmpgtsb): New.
1477 (vec_vcmpgtuh): New.
1478 (vec_vcmpgtsh): New.
1479 (vec_vcmpgtuw): New.
1480 (vec_vcmpgtsw): New.
1481 (vec_vcmpgtfp): New.
1482 (vec_vcmpgefp): New.
1487 (vec_vexptefp): New.
1492 (vec_lde): Add vector float variant.
1497 (vec_vmhaddshs): New.
1519 (vec_vmladduhm): New.
1520 (vec_vmhraddshs): New.
1522 (vec_vmsummbm): New.
1523 (vec_vmsumuhm): New.
1524 (vec_vmsumshm): New.
1525 (vec_vmsumuhs): New.
1526 (vec_vmsumshs): New.
1535 (vec_vnmsubfp): New.
1553 (vec_vrsqrtefp): New.
1564 (vec_vspltisb): New.
1565 (vec_vspltish): New.
1566 (vec_vspltisw): New.
1591 (vec_vsum4ubs): New.
1592 (vec_vsum4sbs): New.
1593 (vec_vsum4shs): New.
1594 (vec_vsum2sws): New.
1605 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
1608 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
1609 added literals from substracted literals.
1610 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
1611 (fold) [associate]: Preserve MINUS_EXPR if needed.
1613 2002-04-23 Zack Weinberg <zack@codesourcery.com>
1615 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
1618 2002-04-23 Tom Tromey <tromey@redhat.com>
1620 * gcc.c: Added --resource. For PR java/6314.
1622 2002-04-23 David O'Brien <obrien@FreeBSD.org>
1624 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
1625 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
1628 2002-04-23 David O'Brien <obrien@FreeBSD.org>
1630 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
1632 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
1634 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
1636 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
1637 (ix86_expand_clrstr): Fix typo.
1638 * loop.c (gen_load_of_final_value): New.
1639 (loop_givs_rescan, strength_reduce, check_dbra_loop):
1642 2002-04-23 Roger Sayle <roger@eyesopen.com>
1644 * builtins.c (builtin_memset_gen_str): New function.
1645 (expand_builtin_memset): Optimize the case of constant length, but
1648 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
1650 * config/rs6000/altivec.h (vec_step): Remove extraneous
1652 (vec_ctu): Cast return.
1654 2002-04-23 Alan Modra <amodra@bigpond.net.au>
1657 * function.h: (struct function): Add profile_label_no field.
1658 (current_function_profile_label_no): Define.
1659 * function.c: (profile_label_no): New static var.
1660 (expand_function_start): Increment it, and copy to
1661 current_function_profile_label_no.
1662 * output.h (profile_label_no): Delete.
1663 * final.c (profile_label_no): Delete.
1664 (profile_function): Use current_function_profile_label_no.
1665 (final_end_function): Don't increment profile_label_no here.
1666 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
1667 profile_label_no with current_function_profile_label_no.
1668 * config/pa/pa.c (current_function_number): Delete.
1669 (pa_output_function_prologue): Don't output profile label here.
1670 (hppa_profile_hook): Use label_no param rather than
1671 current_function_number.
1672 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
1673 * config/pa/pa.h: .. here.
1674 (FUNCTION_PROFILER): Output profile label here.
1676 2002-04-22 Eric Christopher <echristo@redhat.com>
1678 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
1679 patch of 2002-04-09 due to binutils issues.
1680 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
1682 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
1684 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
1685 constraint to 'o' for m=r and r=m alternatives.
1686 ("*movv8hi_internal1"): Same.
1687 ("*movv16qi_internal1"): Same.
1688 ("*movv4sf_internal1"): Same.
1690 2002-04-22 Janis Johnson <janis187@us.ibm.com>
1692 * rtl.h (RTX_FLAG): New macro.
1693 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
1694 * final.c (alter_subreg): Use macro to access rtx flag.
1695 * integrate.c (copy_rtx_and_substitute): Use new access macro.
1696 * print-rtl.c (print_rtx): Use new access macro.
1698 * cse.c (insert): Check rtx code before accessing flag.
1700 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
1701 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
1702 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
1703 convert_const_symbol_ref, make_canonical, make_alternative_compare,
1704 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
1705 simplify_test_exp, optimize_attrs, simplify_by_exploding,
1706 find_and_mark_used_attributes, unmark_used_attributes,
1707 add_values_to_cover, simplify_with_current_value,
1708 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
1709 copy_rtx_unchanging, main): Use new access macros.
1711 2002-04-22 Tom Rix <trix@redhat.com>
1713 * expmed.c (init_expmed): Generate shifted constant once.
1715 2002-04-22 Zack Weinberg <zack@codesourcery.com>
1717 * c-lex.c (lex_charconst): Call convert to get constant in
1718 proper type; don't just smash the type field.
1721 * config.gcc: Add list of obsolete configurations. Disallow
1722 building these without --enable-obsolete.
1723 * doc/install.texi: Document --enable-obsolete and obsoletion
1724 policy. Mention obsoletion of individual targets in
1727 2002-04-22 Richard Henderson <rth@redhat.com>
1729 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
1731 2002-04-22 Mark Mitchell <mark@codesourcery.com>
1734 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
1735 (walk_fixup_memory_subreg): Likewise.
1736 (fixup_var_refs_insn): Adjust accordingly.
1737 (fixup_var_refs_1): Likewise.
1739 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
1741 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
1742 LIBPATH_ARCH64_SPEC): Define.
1743 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
1744 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
1745 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
1746 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
1748 2002-04-22 Joel Sherrill <joel@OARcorp.com>
1750 * gthr-rtems.h: Correct prototypes to remove warnings.
1752 2002-04-22 Richard Henderson <rth@redhat.com>
1755 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
1757 * gcse.c (free_insn_expr_list_list): New.
1758 (clear_modify_mem_tables): Use it. Fix bit set usage.
1759 (canon_list_insert): Use EXPR_LISTs for expressions.
1760 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
1762 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
1764 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
1765 file change and include code to _cpp_pop_buffer.
1766 * cpphash.h (struct pending_option): Predeclare.
1767 (struct cpp_reader): New member next_include_file.
1768 (_cpp_pop_file_buffer): Update.
1769 (_cpp_push_next_buffer): Update, rename.
1770 * cppinit.c (cpp_destroy): Free include chain and pending here.
1771 (cpp_finish_options): Simplify.
1772 (_cpp_push_next_buffer): Rename and clean up.
1773 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
1775 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
1777 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
1779 * config/rs6000/altivec.h (vec_xor): Add variant for both args
1780 being vector signed int.
1782 (vec_xor): Add variant for both args being vector signed char.
1783 Remove redundant variant.
1786 2002-04-21 David S. Miller <davem@redhat.com>
1788 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
1789 compare mode in output RTL.
1791 2002-04-22 David Edelsohn <edelsohn@gnu.org>
1793 * config/rs6000/rs6000.c (rs6000_override_options): Correct
1794 style and formatting of previous patch.
1796 2002-04-22 Alan Modra <amodra@bigpond.net.au>
1798 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
1799 flag_pic for ABI_AIX.
1801 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
1803 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
1804 * cppfiles.c (read_include_file): Similarly.
1805 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
1806 uxstrdup ustrchr, ufputs): Similarly.
1807 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
1808 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
1809 cpp_ideq, parse_identifier, parse_number): Similarly.
1810 * cpplib.c (struct directive, dequote_string, D, run_directive,
1811 cpp_push_buffer): Similarly.
1812 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
1813 _cpp_create_definition, check_trad_stringification,
1814 cpp_macro_definition): Similarly.
1816 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
1818 * cppmacro.c (funlike_invocation_p): Don't step back
1821 2002-04-21 David Edelsohn <edelsohn@gnu.org>
1823 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
1826 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
1828 * doc/invoke.texi: Remove Chill references.
1829 * doc/gcc.texi: Update last modified date.
1831 2002-04-20 Kazu Hirata <kazu@hxi.com>
1833 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
1834 push and pop. Replace add.l with add.w.
1836 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1838 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
1839 multiply instructions for H8/300H case.
1841 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1843 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
1844 Bum three instructions from each routine.
1846 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
1848 * Makefile.in: Update.
1849 * decl.c (push_c_function_context, pop_c_function_context,
1850 mark_c_function_context): Rename for consistency.
1851 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
1852 * c-tree.h (push_c_function_context, pop_c_function_context,
1853 mark_c_function_context): Rename for consistency.
1854 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1855 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1856 * function.c (init_lang_status, save_lang_status,
1857 restore_lang_status, mark_lang_status, free_lang_status):
1858 Move to langhooks.h.
1859 (push_function_context_to, pop_function_context_from,
1860 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
1862 * function.h (init_lang_status, save_lang_status,
1863 restore_lang_status, mark_lang_status, free_lang_status):
1864 Move to langhooks.h.
1865 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
1866 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
1867 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
1868 LANG_HOOKS_FUNCTION_INITIALIZER): New.
1869 (LANG_HOOKS_INITIALIZER): Update.
1870 (lhd_do_nothing_f): New.
1871 * langhooks.h (struct lang_hooks_for_functions): New.
1872 (struct lang_hooks): New hooks.
1873 * langhooks.c (lhd_do_nothing_f): New.
1875 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1876 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1878 2002-04-19 David S. Miller <davem@redhat.com>
1880 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
1881 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
1883 2002-04-19 Jakub Jelinek <jakub@redhat.com>
1885 PR optimization/3756
1886 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
1887 x = ((int) y < 0) ? cst1 : cst2.
1889 2002-04-19 Jakub Jelinek <jakub@redhat.com>
1892 * function.c: Reapply patch for c/6358.
1893 (expand_function_end): Copy decl_rtl's mode, not
1894 current_function_return_rtx mode.
1896 2002-04-19 Joel Sherrill <joel@OARcorp.com>
1898 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
1901 2002-04-19 Tom Tromey <tromey@redhat.com>
1903 * doc/install.texi (Specific): Update status of Solaris 2.8.
1906 2002-04-19 Andreas Schwab <schwab@suse.de>
1908 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
1909 (PUT_REAL): Restore old definition.
1911 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
1912 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1914 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
1915 binutils 2.11.2 and higher generate smaller binaries than Sun's
1918 2002-04-19 Mark Mitchell <mark@codesourcery.com>
1921 * toplev.c (rest_of_compilation): Do not defer functions for which
1922 TREE_SYMBOL_REFERENCED has already been set.
1924 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
1926 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
1929 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
1931 * builtins.c: Include langhooks.h.
1932 (lang_type_promotes_to): Remove.
1933 (expand_builtin_va_arg): Use new hook.
1934 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
1935 (simple_type_promotes_to): Move to c-typeck.c.
1936 * c-common.h (simple_type_promotes_to): Remove.
1937 * c-decl.c (duplicate_decls, grokdeclarator): Update.
1938 * c-format.c: Include langhooks.h.
1939 (check_format_types): Update.
1940 * c-tree.h (c_type_promotes_to): New.
1941 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
1942 (type_lists_compatible_p): Update.
1943 * langhooks-def.h (lhd_type_promotes_to): New.
1944 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
1945 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1946 * langhooks.c (lhd_type_promotes_to): New.
1947 * langhooks.h (struct lang_hooks_for_types): New hook.
1948 * tree.h (lang_type_promotes_to): Remove.
1950 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
1952 2002-04-18 Richard Henderson <rth@redhat.com>
1954 * function.c: Revert patch for c/6358.
1956 2002-04-18 Richard Henderson <rth@redhat.com>
1958 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
1959 blocks. Handle multiple references to the TRAP block. Handle
1960 non-adjacent THEN and OTHER blocks.
1962 2002-04-18 Richard Henderson <rth@redhat.com>
1964 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
1965 crash with no type for by-mode libcalls.
1967 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
1969 2002-04-18 Bob Wilson <bob.wilson@acm.org>
1971 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
1972 __xtensa_nonlocal_goto): Use a syscall instructions to flush
1973 the register windows.
1975 2002-04-18 Zack Weinberg <zack@codesourcery.com>
1977 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
1978 appropriate. Document need for extended precision even when
1979 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
1980 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
1981 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
1982 instead of relying on later syntax error when REAL_WIDTH > 5.
1983 * real.c: Define NE based only on whether or not we have a
1984 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
1985 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
1986 define GET_REAL and PUT_REAL as simple memcpy operations; no
1987 need to byteswap or round.
1988 Use #error instead of #ifdef-ing out the entire file, for
1989 prompt error detection.
1991 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
1993 2002-04-18 David S. Miller <davem@redhat.com>
1995 * config/sparc/sparc.h (BRANCH_COST): Define.
1997 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
2000 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
2002 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
2003 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
2004 propagate_block calls after relaxation loop using new variable
2005 stabilized_prop_flags.
2007 2002-04-18 Richard Henderson <rth@redhat.com>
2009 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
2010 (ia64_va_arg): Expect variable sized types by reference.
2011 * config/ia64/ia64-protos.h: Update.
2012 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
2013 ia64_function_arg_pass_by_reference.
2015 2002-04-18 Richard Henderson <rth@redhat.com>
2017 * ifcvt.c: Include except.h.
2018 (block_has_only_trap): Break out from find_cond_trap.
2019 (find_cond_trap): Use it. Always delete the trap block.
2020 (merge_if_block): Allow then block null. Be less simplistic about
2021 what insns can end a block.
2022 * Makefile.in (ifcvt.o): Depend on except.h.
2024 * config/ia64/ia64.md (trap, conditional_trap): New.
2026 2002-04-18 Jakub Jelinek <jakub@redhat.com>
2029 * function.c (assign_parms): Assign hard current_function_return_rtx
2031 (expand_function_end): ...not here.
2033 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
2035 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
2036 * c-tree.h (c_incomplete_type_error): New.
2037 * c-typeck.c (require_complete_type, build_component_ref): Update.
2038 (incomplete_type_error): Rename.
2039 * langhooks-def.h (lhd_incomplete_type_error): New.
2040 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
2041 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
2042 * langhooks.c (lhd_incomplete_type_error): New.
2043 * langhooks.h (struct lang_hooks_for_types): New hook.
2044 * tree.c (size_in_bytes): Use new hook.
2045 * tree.h (incomplete_type_error): Remove.
2047 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
2049 2002-04-18 Zack Weinberg <zack@codesourcery.com>
2051 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
2052 TARGET_FLOAT_FORMAT blocks.
2054 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2056 * doc/install.texi (Downloading the source): Do not mention Chill
2057 any longer, but mention Ada.
2058 (Configuration): Do not mention Chill any longer.
2060 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
2062 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
2064 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
2066 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
2069 2002-04-18 Jakub Jelinek <jakub@redhat.com>
2071 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
2072 instead of unsigned_type.
2074 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
2076 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
2077 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
2080 2002-04-18 Bernd Schmidt <bernds@redhat.com>
2082 * attribs.c (vector_type_node_list): New static variable.
2083 (handle_vector_size_attribute): Use it to avoid generating a
2084 new type node each time we are called.
2086 * combine.c (subst): Avoid trying to make a vector mode subreg of
2087 an integer constant.
2088 (gen_lowpart_for_combine): Likewise.
2090 2002-04-18 Roger Sayle <roger@eyesopen.com>
2091 Jakub Jelinek <jakub@redhat.com>
2093 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
2094 for integer constant c (if x has unsigned type or sign bit is not
2095 set in c). This folds the zero/sign extension into the bit-wise and
2098 2002-04-18 Jakub Jelinek <jakub@redhat.com>
2101 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
2104 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
2106 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
2108 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
2110 * gcc.c (read_specs): Detect and fail if an attempt is made to
2111 rename a spec string to an already existing string.
2113 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2115 * config/s390/s390.c (legitimize_pic_address): Do not generate
2116 illegal address constant without CONST.
2118 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2120 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
2121 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
2123 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2125 PR optimization/6305
2126 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
2127 to make sure previous reloads are taken into account. Generate
2128 better code if one operand is an in-range immediate constant.
2130 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
2132 * doc/install.texi (Building): libgcj requires GNU make.
2134 2002-04-17 Jakub Jelinek <jakub@redhat.com>
2137 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
2138 even if hard quad and register is not floating.
2139 (movtf reg<-mem split): Disallow splitting if hard quad and
2140 register is floating.
2141 (movtf mem<-reg split): Likewise.
2142 * config/sparc/sparc.c (fp_register_operand): New predicate.
2143 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
2145 2002-04-17 Zack Weinberg <zack@codesourcery.com>
2147 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
2148 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
2149 (unprotoize.o): Ditto. Build from protoize.c. Define
2150 UNPROTOIZE on command line.
2151 * protoize.c: Include cppdefault.h. Delete include_defaults.
2152 (in_system_include_dir): Use cpp_include_defaults (defined in
2154 * unprotoize.c: Delete file.
2156 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
2158 * config/rs6000/altivec.h (vec_ld): Add array variants.
2162 2002-04-17 Alan Matsuoka <alanm@redhat.com>
2163 Aldy Hernandez <aldyh@redhat.com>
2165 * config/rs6000/altivec.h: Define __ALTIVEC__.
2172 Add parentheses to all macro arguments.
2174 2002-04-16 Richard Henderson <rth@redhat.com>
2177 * except.c (remove_eh_handler): Insert inner regions at beginning
2178 of sibling chain. Refactor expressions.
2180 2002-04-16 Richard Henderson <rth@redhat.com>
2182 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
2183 * config/sparc/sol2-gas-bi.h: New file.
2184 * config.gcc (sparc*-solaris): Add it as needed.
2185 * configure.in (AS_SPARC64_FLAG): Remove check.
2186 * config.in, configure: Regenerate.
2188 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
2190 2002-04-16 Richard Henderson <rth@redhat.com>
2192 * config/mips/mips.c (override_options): Don't override N32 for
2196 * config/mips/mips.md (can_delay): Split out of existing define_delays.
2197 (HILO_delay): Set can_delay false.
2199 2002-04-16 Dale Johannesen <dalej@apple.com>
2201 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
2202 instruction addresses.
2203 (rs6000_output_function_epilogue): Likewise.
2205 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
2207 * c-parse.in (poplevel, compstmt_start,
2208 compstmt_primary_start): Add ending ';', in accordance
2211 2002-04-16 Richard Henderson <rth@redhat.com>
2213 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
2214 Adjust tm_file order to get TARGET_DEFAULT set properly.
2215 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
2216 * doc/install.texi (sparc-solaris): Update.
2218 2002-04-16 Dale Johannesen <dalej@apple.com>
2220 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
2221 comparison operands do not match each other or if modes of
2222 conditions do not match result.
2224 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
2227 * config/s390/s390.md (mulsidi3): Set both subregs of the
2230 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
2232 * config/rs6000/altivec.h (vec_addc): Type check.
2234 2002-04-16 Jakub Jelinek <jakub@redhat.com>
2237 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
2239 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
2241 2002-04-15 Richard Henderson <rth@redhat.com>
2243 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
2244 call_really_used_regs too.
2246 2002-04-15 Richard Henderson <rth@redhat.com>
2248 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
2250 2002-04-15 David S. Miller <davem@redhat.com>
2252 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
2255 2002-04-16 Jakub Jelinek <jakub@redhat.com>
2258 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
2259 CONST_VECTOR is { 0, ... 0 }.
2261 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
2263 * doc/install.texi (Installing GCC: Configuration): Clarify
2264 the only supported ways to configure gcc.
2266 2002-04-15 Roland McGrath <roland@frob.com>
2268 * config.gcc (alpha*-*-gnu*): New target configuration.
2269 * config/alpha/gnu.h: New file for it.
2270 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
2272 2002-04-16 Mark Mitchell <mark@codesourcery.com>
2274 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
2275 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
2276 * tree.h (expand_start_stmt_expr): Update prototype.
2277 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
2278 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
2279 on the STMT_EXPR created for the inline function.
2281 2002-04-15 Richard Henderson <rth@redhat.com>
2283 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
2284 config/i386/linux-aout.h, config/i386/linux-oldld.h,
2285 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
2286 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
2287 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
2288 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
2289 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
2290 Define __gnu_linux__, not gnu_linux.
2291 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
2293 2002-04-15 Mark Mitchell <mark@codesourcery.com>
2295 Remove Chill front end.
2296 * gcc.c (default_compilers): Remove Chill entries.
2297 * ch: Remove directory.
2298 * doc/frontends.texi: Remove information about Chill.
2299 * doc/sourcebuild.texi: Likewise.
2300 * doc/standards.texi: Likewise.
2302 2002-04-15 Douglas B Rupp <rupp@gnat.com>
2304 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
2305 (LONGLONG_STANDALONE): Define.
2307 2002-04-15 David S. Miller <davem@redhat.com>
2309 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
2310 Call emit_library_call with LCT_NORMAL.
2311 (sparc_initialize_trampoline): Use LCT_foo instead of
2312 magic constant in emit_library_call invocations.
2313 (sparc64_initialize_trampoline): Likewise.
2314 (sparc_profile_hook): Likewise.
2315 * config/sparc/sparc.md: Likewise.
2317 * config/sparc/sparc.c (sparc_extra_constraint_check):
2318 Fix type of argument 'c'.
2319 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
2322 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
2324 * diagnostic.h (output_buffer_state): Redefine.
2325 (output_format_decoder): New macro.
2326 (output_prefixing_rule): Likewise.
2327 (output_line_cutoff): Likewise.
2328 (diagnostic_format_decoder): Adjust.
2329 (diagnostic_prefixing_rule): Likewise.
2330 (diagnostic_line_cutoff): Likewise.
2331 (diagnostic_state): Likewise.
2332 (diagnostic_kind_count): Likewise.
2333 (diagnostic_buffer): Now a macro.
2335 * diagnostic.c (diagnostic_buffer): Remove definition.
2336 (output_is_line_wrapping): Adjust.
2337 (set_real_maximum_length): Likewise.
2338 (output_set_maximum_length): Likewise.
2339 (init_output_buffer): Likewise.
2340 (lhd_print_error_function): Likewise.
2341 (output_do_verbatim): Likewise.
2343 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
2345 * cpperror.c (print_location): Don't print include chain
2347 (cpp_begin_message): Update to use DL_ macros.
2348 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2349 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2350 cpp_notice, cpp_notice_from_errno): Remove.
2351 (cpp_error, cpp_error_with_line): Update to take a diagnostic
2354 * cppexp.c (CPP_ICE): Remove.
2355 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
2356 lex, integer_overflow, _cpp_parse_expr): Update.
2357 * cppfiles.c (read_include_file, find_include_file,
2358 handle_missing_header, _cpp_read_file, remap_filename): Update.
2359 * cpphash.h (enum error_type): Remove.
2360 (_cpp_begin_message): Update.
2361 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
2362 cpp_handle_option, cpp_post_options): Update.
2363 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
2364 skip_whitespace, parse_identifier, parse_slow, parse_string,
2365 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
2366 cpp_interpret_charconst): Update.
2367 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
2368 lex_macro_node, do_undef, glue_header_name, parse_include,
2369 do_include_common, read_flag, do_line, do_linemarker, do_ident,
2370 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
2371 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
2372 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
2373 _cpp_pop_buffer, do_diagnostic): Update.
2374 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
2375 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
2376 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2377 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2378 cpp_notice, cpp_notice_from_errno): Remove.
2379 (cpp_error, cpp_error_with_line): Update to take a diagnostic
2382 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
2383 collect_args, enter_macro_context, save_parameter, parse_params,
2384 _cpp_create_definition, check_trad_stringification,
2385 cpp_macro_definition): Update.
2386 * cppmain.c (cpp_preprocess_file): Update.
2387 * fix-header.c (read_scan_file): Update.
2389 2002-04-14 Andreas Schwab <schwab@suse.de>
2391 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
2393 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
2395 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
2397 2002-04-13 Mark Mitchell <mark@codesourcery.com>
2399 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
2402 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
2404 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
2406 2002-04-13 Joel Sherrill <joel@OARcorp.com>
2408 * config/sparc/t-elf: Enable v8 multilibs. Impacts
2409 sparc-elf and sparc-rtems targets.
2411 2002-04-13 Mark Mitchell <mark@codesourcery.com>
2413 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
2414 defined, and __gnu_hurd__ wherever __GNU__ is defined.
2415 * arm/linux-elf.h: Likewise.
2416 * cris/aout.h: Likewise.
2417 * cris/linux.h: Likewise.
2418 * i370/linux.h: Likewise.
2419 * i386/gnu.h: Likewise.
2420 * i386/linux-aout.h: Likewise.
2421 * i386/linux-oldld.h: Likewise.
2422 * i386/linux.h: Likewise.
2423 * i386/linux64.h: Likewise.
2424 * ia64/linux.h: Likewise.
2425 * m68k/linux-aout.h: Likewise.
2426 * m68k/linux.h: Likewise.
2427 * mips/linux.h: Likewise.
2428 * pa/pa-linux.h: Likewise.
2429 * pj/linux.h: Likewise.
2430 * rs6000/sysv4.h: Likewise.
2431 * s390/linux.h: Likewise.
2432 * sh/linux.h: Likewise.
2433 * sparc/linux-aout.h: Likewise.
2434 * sparc/linux.h: Likewise.
2435 * sparc/linux64.h: Likewise.
2436 * xtensa/linux.h: Likewise.
2438 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
2440 * stmt.c (check_unique_operand_names): Expect operand names to
2441 be strings rather than identifiers. Use simple_cst_equal to
2443 (resolve_operand_name_1): Make same identifier to string change here.
2444 * c-parse.in (asm_operand): Convert a named operand into a string.
2445 * cp/parse.y (asm_operand): Likewise.
2447 2002-04-13 Andreas Schwab <schwab@suse.de>
2449 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
2451 2002-04-12 Mark Mitchell <mark@codesourcery.com>
2453 Revert these changes:
2455 2002-04-06 Mark Mitchell <mark@codesourcery.com>
2458 * stor-layout.c (layout_decl): Reset the RTL for the decl.
2460 2002-04-12 Richard Henderson <rth@redhat.com>
2462 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
2463 (sparc*-*-solaris): Clean up header files.
2464 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
2465 and plan on generating 64-bit code.
2466 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
2467 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
2468 * config/sparc/sol2-sld-64.h: Rename ...
2469 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
2470 for AS_SPARC64_FLAG not defined.
2471 * config/sparc/sol2-gld-bi.h: New.
2472 * config/sparc/sol2-sld.h: Remove.
2473 * config/sparc/sol26-sld.h: New.
2474 * config/sparc/sol2.h: Tidy comments.
2475 * doc/install.texi: Document sparc-solaris configury changes.
2477 2002-04-12 Richard Henderson <rth@redhat.com>
2479 * recog.c (offsettable_address_p): Match the logic in adjust_address.
2481 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
2482 in 64-bit mode only. Use only for 32-bit or MEDLOW.
2484 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2486 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
2488 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
2490 * pa.c (pa_can_combine_p): Call extract_insn before calling
2493 2002-04-12 Douglas B Rupp <rupp@gnat.com>
2495 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
2496 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
2497 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2498 (CPP_PREDEFINES): Handle __declspec.
2499 * config/i386/t-interix (USER_H): Remove.
2501 2002-04-12 DJ Delorie <dj@redhat.com>
2503 * integrate.c (compare_blocks): Make comparisons safe for when
2504 sizeof(int) < sizeof(char *).
2505 (find_block): Likewise.
2507 2002-04-12 Jan Hubicka <jh@suse.cz>
2508 David Edelsohn <edelsohn@gnu.org>
2510 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
2512 (symbol_ref_operand): New.
2513 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
2514 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
2516 2002-04-12 Andreas Schwab <schwab@suse.de>
2518 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
2519 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
2520 overrides the definition in config/svr4.h.
2522 2002-04-12 Eric Norum <eric.norum@usask.ca>
2524 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
2525 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
2526 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
2527 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
2528 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
2529 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
2530 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
2531 definitions to config/rtems.h and make the targets more similar.
2533 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2535 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
2536 POINTERS_EXTEND_UNSIGNED.
2537 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
2538 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
2540 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
2543 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
2545 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
2546 depends on TARGET_SHMEDIA, not TARGET_SH5.
2548 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
2550 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
2551 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
2553 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
2555 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
2558 2002-04-12 Andreas Schwab <schwab@suse.de>
2560 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
2562 2002-04-12 Richard Henderson <rth@redhat.com>
2565 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
2567 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
2568 modes spanning multiple hard regs.
2570 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
2572 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2574 * pa.c (pa_output_function_prologue): Don't accumulate the total
2575 number of code bytes when using TARGET_64BIT, or gas, SOM and not
2576 the portable runtime.
2577 (output_deferred_plabels): Handle 64bit plabels.
2578 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
2579 generating pic code using the GAS assembler for object formats that
2580 are not SOM (ie., ELF32 and ELF64).
2581 (output_millicode_call): Check attribute type if attribute length is 28.
2582 Likewise use $PIC_pcrel$0. Only call get_attr_length and
2583 dbr_sequence_length once.
2584 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
2585 dbr_sequence_length once.
2586 * pa.h (TARGET_SOM): Define if not defined.
2587 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
2588 with GAS and not SOM.
2589 (jump, call_internal_reg, call_value_internal_reg): Likewise.
2590 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
2592 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2594 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
2595 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
2596 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
2597 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
2598 elfos.h and dbxelf.h values are fine now.
2599 * config/i386/freebsd.h, config/alpha/freebsd.h
2600 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
2602 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2604 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
2605 or set Acpu or Amachine. Reformat.
2606 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2608 (LINK_SPEC): Do not need to undef.
2609 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
2610 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
2611 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2613 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
2614 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
2615 (LINK_SPEC): Do not need to undef.
2616 (DONT_USE_BUILTIN_SETJMP): Do not define.
2617 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
2618 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
2619 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
2620 Remove trailing spaces.
2621 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
2622 __ELF__, or set Acpu or Amachine. Reformat.
2623 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2626 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2628 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
2629 all other *-*-freebsd* targets.
2631 2002-04-11 Richard Henderson <rth@redhat.com>
2633 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
2635 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2637 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
2638 Include {cpu}/{cpu}.h thru tm_file.
2639 (alpha*-*-linux*ecoff): Remove target.
2640 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
2641 (LINK_SPEC): Remove, is not OS independent.
2642 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
2643 (LINK_SPEC): Do not need to #undef any longer.
2644 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
2646 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
2648 (LINK_SPEC): Moved here from alpha/elf.h.
2649 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
2651 * config/alpha/linux-ecoff.h: Remove.
2652 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
2653 (CPP_SPEC): Define _POSIX_SOURCE as needed.
2654 (CPP_SUBTARGET_SPEC): Do not define.
2655 (LINK_SPEC): Do not need to #undef any longer.
2656 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
2657 * config/alpha/vms.h: Likewise.
2659 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
2661 * doc/extend.texi: Remove old claim that typedefs cannot have
2662 an alignment attribute.
2664 2002-04-11 Jakub Jelinek <jakub@redhat.com>
2666 PR optimization/6177
2667 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
2668 bitpos is 0 and bitsize CONCAT size.
2670 2002-04-11 Jakub Jelinek <jakub@redhat.com>
2673 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
2675 2002-04-10 David O'Brien <obrien@FreeBSD.org>
2677 * config/alpha/freebsd.h: Minor reformatting.
2678 (CPP_SPEC): Define ELF and add cpp_subtarget.
2679 (ASM_SPEC): No longer needed.
2681 2002-04-11 Richard Henderson <rth@redhat.com>
2683 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
2684 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
2685 (dimode mem/zero splitter): New.
2687 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
2689 * config/cris/cris.c (cris_override_options): Tweak error message
2690 for PIC not implemented.
2692 * config/cris/cris.h: Tweak comments related to parameter-passing.
2694 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
2696 2002-04-10 Richard Henderson <rth@redhat.com>
2698 * except.c (add_ehl_entry): Allow duplicates after landing pad
2701 2002-04-10 David Edelsohn <edelsohn@gnu.org>
2703 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
2705 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
2707 * c-decl.c (c_init_decl_processing): Move generation of
2708 decls for g77_integer_type_node and friends from here ...
2709 * c-common.c (c_common_nodes_and_builtins): ... to here.
2711 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
2713 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
2714 is only used as frame pointer when frame_pointer_needed is true.
2716 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
2719 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
2720 for the fact that the pool entry uses two words.
2721 (movdf_hard_insn): Similarly. Also, ADR instruction can span
2723 (movdf_soft_insn): Similarly.
2724 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
2725 for the fact that the pool entry uses three words.
2727 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
2729 * config/mips/mips.c (mips_va_arg): When using the struct version
2730 of the EABI va_list, allow arguments in the register save area to
2731 take up less room than a stack argument.
2733 2002-04-10 Richard Henderson <rth@redhat.com>
2735 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
2736 if EXPAND_INITIALIZER.
2738 2002-04-09 Richard Henderson <rth@redhat.com>
2740 * config/alpha/alpha.md (movdi_er_maybe_g): New.
2741 * config/alpha/alpha.c (alpha_expand_mov): Use it.
2743 2002-04-10 Alan Modra <amodra@bigpond.net.au>
2745 PR optimization/6233
2746 * rtlanal.c (pure_call_p): New function.
2747 * rtl.h (pure_call_p): Declare.
2748 * loop.c (prescan_loop): Use it to set has_nonconst_call.
2749 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
2751 2002-04-09 Eric Christopher <echristo@redhat.com>
2753 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
2754 information to .comm directive.
2756 2002-04-09 Richard Henderson <rth@redhat.com>
2759 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
2761 2002-04-09 Richard Henderson <rth@redhat.com>
2763 * basic-block.h (flow_delete_block_noexpunge): Declare.
2764 (expunge_block_nocompact): Declare.
2765 * cfg.c (expunge_block_nocompact): Split out from ...
2766 (expunge_block): ... here.
2767 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
2768 (flow_delete_block_noexpunge): Split out from ...
2769 (flow_delete_block): ... here.
2770 * cfgcleanup.c (delete_unreachable_blocks): Compact while
2771 removing dead blocks.
2772 * except.c (exception_handler_labels): Remove.
2773 (exception_handler_label_map): New.
2774 (struct eh_region): Add aka member.
2775 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
2776 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
2777 (for_each_eh_label, for_each_eh_label_1): New.
2778 (init_eh): Register exception_handler_label_map.
2779 (free_eh_status): Use free_region.
2780 (find_exception_handler_labels): Use the map, not the list.
2781 (remove_exception_handler_label): Likewise.
2782 (maybe_remove_eh_handler): Likewise.
2783 (remove_eh_handler): Use the region aka bitmap.
2784 * except.h (exception_handler_labels): Remove.
2785 (for_each_eh_label): Declare.
2786 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
2787 * loop.c (invalidate_loops_containing_label): New.
2788 (find_and_verify_loops): Use it. Use for_each_eh_label.
2789 * sched-rgn.c (is_cfg_nonregular): Use
2790 current_function_has_exception_handlers.
2792 2002-04-09 Richard Henderson <rth@redhat.com>
2794 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
2795 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
2796 Do not return changed status.
2797 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
2798 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
2799 New functions that do return changed status.
2800 * sbitmap.h: Update decls.
2801 * gcse.c, lcm.c: Use _cg functions as needed.
2803 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2805 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
2806 (sh64-*-elf*, sh-*-rtemself*): Likewise.
2807 * config/sh/embed_bb.c: New file.
2808 * config/sh/embed-elf.h: New file.
2809 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
2810 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
2811 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2813 (SUBTARGET_CPP_PTR_SPEC): Don't define.
2814 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
2815 Add subtarget_asm_endian_spec.
2816 (ASM_SPEC): Use subtarget_asm_endian_spec.
2817 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
2818 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
2819 (WCHAR_UNSIGNED): Define.
2820 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
2821 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2822 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
2824 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
2825 (sh_adjust_cost): Likewise.
2826 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2828 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
2829 (WCHAR_TYPE_SIZE): Likewise.
2830 (ASM_SPEC): Use subtarget_asm_endian_spec.
2831 (SH_ELF_WCHAR_TYPE): #undef/ #define.
2832 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
2833 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
2834 (MAX_WCHAR_TYPE_SIZE): Don't #define .
2835 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
2836 (USER_LABEL_PREFIX): Don't #undef /#define .
2837 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2838 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
2839 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
2840 (ASM_SPEC): Likewise.
2841 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
2842 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
2843 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
2844 (LIB2FUNCS_EXTRA): Define.
2845 * t-sh64 (LIB2FUNCS_EXTRA): Define.
2846 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
2847 (LIB1ASMFUNCS_CACHE): Define.
2848 (LIB2FUNCS_EXTRA): Redefine empty.
2850 2002-04-08 Richard Henderson <rth@redhat.com>
2852 * reorg.c (get_branch_condition): Use reversed_comparison_code.
2854 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2856 * config/m68hc11/larith.asm (__map_data_section): Fix condition
2857 and optimize for size.
2858 (__do_global_ctors): Fix pointer comparison.
2859 (__do_global_dtors): Likewise.
2861 2002-04-09 David S. Miller <davem@redhat.com>
2863 * config/sparc/sparc.c (sparc_extra_constraint_check): New
2864 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
2865 allow reloading pseudos.
2866 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
2867 * config/sparc/sparc-protos.h: Declare it.
2869 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
2870 unsigned comparison warning.
2871 (output_restore_regs): Mark leaf_function as unused.
2873 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2875 * expr.c (is_aligning_offset): New function.
2876 (expand_expr, case COMPONENT_EXPR): Call it.
2878 2002-04-08 David S. Miller <davem@redhat.com>
2881 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
2883 Make init_priority work on Sparc when using GNU ld.
2884 * config/sparc/linux.h, config/sparc/linux64.h,
2885 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
2886 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
2887 * config/sparc/sol2-gld.h: New file to do the same.
2888 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
2889 sparc/sol2-gld.h to tm_file.
2891 PR optimization/4328
2892 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
2893 * doc/md.texi: Document it.
2894 * config/sparc/sparc.md (movdi_insn_sp64_novis,
2895 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
2896 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
2897 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
2898 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
2900 2002-04-08 Andreas Jaeger <aj@suse.de>
2902 * stmt.c (expand_asm_operands): Revert last patch from Richard
2905 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2907 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
2908 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
2910 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2912 * doc/contrib.texi (Contributors): Add David O'Brien.
2914 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2916 * configure.in (auto-build.h): Use target_alias and build_alias
2917 when running configure.
2918 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
2919 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
2920 * configure: Regenerate.
2922 2002-04-07 David S. Miller <davem@redhat.com>
2924 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
2926 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
2929 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
2930 generating 32-bit pic code.
2932 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
2934 * cppinit.c (cpp_create_reader): Initialize
2935 discard_comments_in_macro_exp.
2936 (COMMAND_LINE_OPTIONS): Add "-CC" option.
2937 (cpp_handle_option): Handle "-CC" option.
2938 * cpplex.c (save_comment): If saving a C++ comment in
2939 a directive, convert it to a C comment.
2940 (_cpp_lex_direct): Pass second comment start character to
2941 save_comment to indicate comment type.
2942 * cpplib.c (_cpp_handle_directive): If processing
2943 a "#define" directive and discard_comments_in_macro_exp
2944 is false, re-enable saving of comments.
2945 (lex_macro_node): If discard_comments_in_macro_exp is false,
2946 discard any comments before the macro identifier.
2947 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
2949 * cppmacro.c (cpp_get_token): If expanding a macro while
2950 processing a directive, discard any comments we might encounter.
2951 (parse_params): If discard_comments_in_macro_exp is false,
2952 ignore comments in the macro parameter list.
2953 * gcc.c (cpp_unique_options): Add "-CC" option.
2954 (option_map): Map "--comments-in-macros" to "-CC".
2955 * doc/cppopts.texi: Document "-CC" option.
2956 * f/lang-specs.h: Add "-CC" option.
2957 * testsuite/gcc.dg/cpp/maccom1.c: New test.
2958 * testsuite/gcc.dg/cpp/maccom2.c: New test.
2959 * testsuite/gcc.dg/cpp/maccom3.c: New test.
2960 * testsuite/gcc.dg/cpp/maccom4.c: New test.
2961 * testsuite/gcc.dg/cpp/maccom5.c: New test.
2962 * testsuite/gcc.dg/cpp/maccom6.c: New test.
2964 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2967 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
2969 2002-04-06 Mark Mitchell <mark@codesourcery.com>
2972 * stor-layout.c (layout_decl): Reset the RTL for the decl.
2975 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
2976 RTX_UNCHANGING_P for the functions arguments when a tail call
2979 2002-04-06 Jason Merrill <jason@redhat.com>
2981 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
2982 (parse_options_and_default_flags): Set them appropriately.
2983 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
2985 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
2987 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
2990 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
2993 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
2994 types come in by-reference. Fix typo in comment.
2996 2002-04-05 David S. Miller <davem@redhat.com>
2998 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
2999 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
3000 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
3001 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
3003 2002-04-05 David S. Miller <davem@redhat.com>
3005 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
3006 are not going to emit return instructions, emit at least a nop
3007 for the sake of sane backtraces.
3009 2002-04-05 Richard Henderson <rth@redhat.com>
3011 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
3013 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
3015 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
3017 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
3019 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
3020 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
3021 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
3023 2002-04-05 Andreas Schwab <schwab@suse.de>
3025 * c-convert.c: Include c-common.h.
3026 * Makefile.in (c-convert.o): Updated.
3028 2002-04-05 Jakub Jelinek <jakub@redhat.com>
3030 * mklibgcc.in: Use separate libgcc.map for each multilib.
3031 * Makefile.in (distclean): Don't remove libgcc.map here.
3033 2002-04-05 Jakub Jelinek <jakub@redhat.com>
3035 * Makefile.in (s-mlib): Handle --disable-multilib by separate
3036 genmultilib invocation.
3038 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
3040 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
3041 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
3042 to num_gprs for symmetry.
3043 * config/mips/mips.c: Adjust accordingly.
3045 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
3047 * c-common.c (truthvalue_conversion): Rename, update.
3048 * c-common.h (c_common_truthvalue_conversion): New.
3049 * c-convert.c (convert): Update.
3050 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3051 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
3052 * c-typeck.c (build_binary_op, build_unary_op,
3053 build_conditional_expr): Update.
3054 * fold-const.c (constant_boolean_node, fold): Use langhook.
3055 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
3056 * langhooks.h (struct lang_hooks): New hook.
3057 * stmt.c (expand_decl_cleanup): Use langhook.
3058 * tree.h (truthvalue_conversion): Remove.
3060 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3062 2002-04-05 Alan Modra <amodra@bigpond.net.au>
3064 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
3065 Add rules to make null object file.
3067 2002-04-04 Jim Blandy <jimb@redhat.com>
3069 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
3070 macro formal parameter names.
3072 2002-04-04 David S. Miller <davem@redhat.com>
3074 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
3076 2002-04-04 Richard Henderson <rth@redhat.com>
3079 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
3080 Support copies into and out of memory. Don't accept allows_reg
3081 and allows_mem as gospel.
3083 2002-04-04 Richard Henderson <rth@redhat.com>
3086 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
3087 (write_dependence_p): Likewise.
3089 2002-04-04 Richard Henderson <rth@redhat.com>
3091 * predict.c (estimate_bb_frequencies): Do frequency calculation
3092 with a volatile temporary.
3094 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
3096 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
3098 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3101 * final.c (final_start_function): Don't bump profile_label_no here...
3102 (final_end_function): ...but here.
3104 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3106 * config/sparc/sparc.md (pic): New attribute.
3107 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
3109 (split after do_builtin_setjmp_setup): New.
3111 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3114 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
3117 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3119 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
3120 UNITS_PER_WORD for zero sized aggregates.
3122 2002-04-03 David S. Miller <davem@redhat.com>
3124 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
3125 one-character spec for this, just use %(link_gcc_c_sequence).
3127 2002-04-03 David S. Miller <davem@redhat.com>
3129 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
3132 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
3134 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
3135 (DWARF_FRAME_RETURN_COLUMN): Move.
3136 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3137 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
3138 * pa.c (except.h, predict.h): Include.
3140 (store_reg_modify, set_reg_plus_d): Revise prototypes.
3141 (output_ascii): Add cast.
3142 (store_reg_modify): Revise to add frame notes.
3143 (set_reg_plus_d): Likewise.
3144 (compute_frame_size): Include space for eh data registers in frame if
3145 the current function calls eh_return.
3146 (hppa_expand_prologue): Ensure register %r2 is saved if the current
3147 function calls eh_return. Save eh data registers if the current
3148 function calls eh_return. Fix code to add frame notes. Emit
3149 blockage to prevent insns with frame notes being scheduled in the
3150 delay slot of calls.
3151 (hppa_expand_epilogue): Restore eh data registers and do final stack
3152 adjustment if the current function calls eh_return. Don't add frame
3154 (output_call): Revise for change in length of call insn. Don't do
3155 return pointer adjustment for an unconditional jump in the delay slot
3156 of a call when using frame notes.
3157 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
3158 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
3159 (ARG_POINTER_CFA_OFFSET): Define.
3160 * pa.md (return_external_pic): New pattern.
3161 (prologue): Correct formatting. Use return_external_pic if current
3162 function calls eh_return.
3163 (call_internal_symref, call_value_internal_symref,
3164 sibcall_internal_symref, sibcall_value_internal_symref): Change default
3165 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
3167 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
3169 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
3170 list of targets to check using "nop" insn.
3171 * configure: Rebuilt.
3173 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3175 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
3177 2002-04-03 David S. Miller <davem@redhat.com>
3179 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
3180 library sequence passed to the linker.
3181 (LINK_COMMAND_SPEC): Use it.
3182 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
3183 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
3184 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3186 2002-04-03 Jason Merrill <jason@redhat.com>
3188 * except.c (struct eh_status): Remove protect_list.
3189 (begin_protect_partials, end_protect_partials): Remove.
3190 (add_partial_entry): Remove.
3191 * except.h: Remove prototypes.
3193 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
3194 expand_decl_cleanup_eh.
3197 * tree.h (CLEANUP_EH_ONLY): New macro.
3198 * stmt.c (expand_decl_cleanup_eh): New fn.
3199 (expand_cleanups): Check CLEANUP_EH_ONLY.
3200 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
3201 Use expand_decl_cleanup_eh.
3202 (expand_stmt): Adjust.
3203 * c-common.h: Adjust prototype.
3205 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
3207 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
3208 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
3209 (cris_target_asm_function_epilogue): Ditto.
3210 (cris_initial_frame_pointer_offset): Ditto.
3211 (cris_simple_epilogue): Ditto.
3212 (cris_expand_builtin_va_arg): Variable-size types come in
3215 2002-04-03 David S. Miller <davem@redhat.com>
3217 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
3219 (set_fast_math): Correct 'fsr' type.
3221 2002-04-03 Richard Henderson <rth@redhat.com>
3224 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
3225 * toplev.c (check_global_declarations): Use it.
3226 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
3227 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3228 (LANG_HOOKS_DECLS): Add it.
3229 * langhooks.c (lhd_warn_unused_global_decl): New.
3230 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3231 * c-objc-common.c (c_warn_unused_global_decl): New.
3232 * c-tree.h (c_warn_unused_global_decl): Declare.
3233 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3235 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
3237 * langhooks-def.h (lhd_set_decl_assembler_name,
3238 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
3239 (LANG_HOOKS_INITIALIZER): Update.
3240 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
3241 * langhooks.h (struct lang_hooks): New hook.
3242 * tree.c (set_decl_assembler_name): Move to langhooks.c.
3243 (lang_set_decl_assembler_name): Remove.
3244 (init_obstacks): Don't set hook.
3245 (decl_assembler_name): New function.
3246 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
3247 (decl_assembler_name): New.
3248 (lang_set_decl_assembler_name): Remove.
3250 2002-04-03 Jakub Jelinek <jakub@redhat.com>
3252 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
3253 works properly with .hidden symbols.
3254 * configure: Rebuilt.
3255 * config.in: Rebuilt.
3256 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
3257 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
3258 properly with .hidden symbols.
3260 2002-04-03 Jakub Jelinek <jakub@redhat.com>
3263 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
3266 2002-04-03 Richard Henderson <rth@redhat.com>
3269 * sched-rgn.c (sets_likely_spilled): New.
3270 (sets_likely_spilled_1): New.
3271 (add_branch_dependences): Use it.
3273 2002-04-02 Richard Henderson <rth@redhat.com>
3276 * loop.h (LOOP_FIRST_PASS): New.
3277 * loop.c (strength_reduce): Mind it when deciding to unroll.
3278 * toplev.c (rest_of_compilation): Set it.
3280 2002-04-02 David S. Miller <davem@redhat.com>
3282 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
3283 mems_ok_for_ldd_peep when the order of the loads being examined
3285 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
3286 existing comment to increase comprehension of this situation.
3288 2002-04-02 Zack Weinberg <zack@codesourcery.com>
3290 * config/sh/sh.md: Don't use union real_extract.
3292 2002-04-02 Richard Henderson <rth@redhat.com>
3294 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
3296 2002-04-02 David O'Brien <obrien@FreeBSD.org>
3298 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
3299 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
3300 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
3301 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
3302 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
3303 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
3304 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
3305 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
3306 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
3307 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
3308 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
3309 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
3310 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
3311 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
3312 Include as many configury headers via tm_file as possible. This
3313 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
3314 * config/openbsd-oldgas.h: New file.
3315 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
3316 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
3317 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
3318 config/i386/i386-coff.h, config/i386/i386-interix.h,
3319 config/i386/iscdbx.h, config/i386/linux-aout.h,
3320 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
3321 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
3322 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
3323 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
3324 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
3325 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
3326 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
3327 config/i386/vxi386.h: Do not directly include configury headers.
3328 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
3329 Directly include configury headers that are no longer automatically
3330 included by the above headers.
3331 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
3332 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
3333 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
3334 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
3335 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
3336 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
3337 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
3338 (TARGET_VERSION): Define.
3339 * config/i386/beos-elf.h, config/i386/freebsd.h,
3340 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
3341 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
3342 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
3343 config/i386/sco5.h, config/i386/sysv4.h
3344 (TARGET_VERSION): Do not need to protect.
3345 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
3346 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
3347 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
3348 config/i386/i386-interix.h, config/i386/linux-aout.h,
3349 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
3350 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
3351 (YES_UNDERSCORES): Do not define - not needed.
3352 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
3353 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3354 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
3355 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
3356 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3357 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
3358 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
3359 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
3361 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
3362 Richard Henderson <rth@redhat.com>
3365 * function.c (assign_temp): Accept either type or decl argument.
3366 Detect variables whose size is too large to fit into an integer.
3367 * stmt.c (expand_decl): Pass the decl, not the type.
3369 2002-04-02 David O'Brien <obrien@FreeBSD.org>
3371 * protoize.c: Match include directory usage with cppdefault.c.
3373 2002-04-03 Jeffrey A Law (law@redhat.com)
3374 Hans-Peter Nilsson <hp@bitrange.com>
3376 * combine.c (simplify_comparison): Avoid narrowing a comparison
3377 with a paradoxical subreg when doing so would drop signficant bits.
3379 2002-04-02 Steve Ellcey <sje@cup.hp.com>
3381 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
3382 if POINTERS_EXTEND_UNSIGNED is defined.
3384 2002-04-02 Richard Henderson <rth@redhat.com>
3387 * local-alloc.c (contains_replace_regs): LO_SUM may contain
3390 2002-04-02 Richard Henderson <rth@redhat.com>
3392 * doc/standards.texi: Document required freestanding libc entry points.
3394 2002-04-02 Alan Modra <amodra@bigpond.net.au>
3396 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
3397 associated splitter. Remove MQ constraint.
3398 (ctrdi_internal4): Correct CCmode clobber.
3400 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
3402 * milli64.S ($$dyncall): New function.
3403 * t-linux (LIB1ASMFUNCS): Revise module list.
3404 (LIB1ASMSRC): Use pa/milli64.S.
3406 2002-04-02 Richard Henderson <rth@redhat.com>
3408 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
3409 rename solaris_sys_varargs_h.
3411 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3413 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
3414 the same mode as its component.
3416 2002-04-02 Richard Henderson <rth@redhat.com>
3419 * final.c (this_is_asm_operands): Export.
3420 * output.h (this_is_asm_operands): Declare.
3421 * config/i386/i386.c (print_operand): Error odd asm operands.
3423 2002-04-02 Richard Henderson <rth@redhat.com>
3426 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
3428 2002-04-01 Richard Henderson <rth@redhat.com>
3431 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
3432 * fixinc/fixincl.x: Rebuild.
3434 2002-04-01 Richard Henderson <rth@redhat.com>
3436 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
3437 (atomic_alloc, atomic_free): New.
3438 (SIZE, MASK_FOR, PTR_IN): New.
3439 (emergency_reg_state, emergency_reg_state_free): New.
3440 (emergency_labeled_state, emergency_labeled_state_free): New.
3441 (reg_state_alloced, labeled_state_alloced): New.
3442 (alloc_reg_state, free_reg_state): New.
3443 (alloc_label_state, free_label_state, free_label_states): New.
3444 (push, pop, dup_state_stack, free_state_stack): Use them.
3445 (desc_label_state): Likewise.
3446 (uw_frame_state_for): Free label states and state stack.
3447 (uw_update_reg_address): Eliminate warnings.
3449 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
3451 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
3452 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
3454 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3456 * c-decl.c (grokdeclarator): Update.
3457 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3458 * c-tree.h (c_mark_addressable): New.
3459 * c-typeck.c (default_function_array_conversion, build_unary_op,
3460 build_array_ref, convert_for_assignment): Update.
3461 (mark_addressable): Rename.
3462 * calls.c (try_to_integrate, expand_call): Use langhook.
3463 * expr.c (expand_expr): Use langhook.
3464 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
3465 * langhooks.h (struct lang_hooks): New hook.
3466 * stmt.c (expand_asm_operands): Use langhook.
3467 * tree.h (mark_addressable): Remove.
3469 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3471 2002-04-01 Bob Wilson <bob.wilson@acm.org>
3473 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
3476 2002-04-01 Bob Wilson <bob.wilson@acm.org>
3478 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
3479 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
3481 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3483 * c-common.c (unsigned_conversion_warning, convert_and_check,
3484 unsigned_type, signed_type, shorten_compare,
3485 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
3486 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
3487 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
3489 * c-decl.c (grokdeclarator): Update.
3490 * c-format.c (check_format_types): Update.
3491 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3492 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3493 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
3494 * convert.c (convert_to_integer): Use new hooks.
3495 * expmed.c (make_tree): Use new hooks.
3496 * expr.c (store_expr): Use new hooks.
3497 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
3498 all_ones_mask_p, unextend, fold): Use new hooks.
3499 * langhooks.h (struct lang_hooks_for_types): New hooks.
3500 * tree.h (signed_or_unsigned_type, signed_type,
3501 unsigned_type): Remove.
3503 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3504 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3506 2002-03-31 Richard Henderson <rth@redhat.com>
3508 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
3509 (desc_frgr_mem): Fix reference to f16-f31.
3511 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3513 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
3514 RTVEC_ELT): Const-ify.
3515 * varray.h (VARRAY_CHECK): Const-ify.
3516 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
3517 ggc_mark_rtvec, ggc_mark): Const-ify.
3519 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3521 * diagnostic.c: Include langhooks-def.h.
3522 * Makefile.in (diagnostic.o): Update.
3524 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
3526 * c-common.c (c_unsafe_for_reeval): Rename.
3527 * c-common.h (c_unsafe_for_reeval): Rename.
3528 * c-decl.c (finish_incomplete_decl): Rename.
3529 (c_init_decl_processing): Don't set langhook.
3530 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3531 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3532 * c-objc-common.c (c_objc_common_init): Don't set langhook.
3533 * c-tree.h (finish_incomplete_decl): Rename.
3534 * langhooks-def.h (lhd_unsafe_for_reeval): New.
3535 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
3536 (LANG_HOOKS_INITIALIZER): Update.
3537 * langhooks.c (lhd_unsafe_For_reeval): New.
3538 * langhooks.h (struct langhooks): New hooks.
3539 * toplev.c (incomplete_decl_finalize_hook): Remove.
3540 (wrapup_global_declarations): Update.
3541 * tree.c (lang_unsafe_for_reeval): Remove.
3542 (unsafe_for_reeval): Update.
3543 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
3546 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3547 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3549 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
3551 * diagnostic.c (print_error_function): Remove.
3552 (default_print_error_function): Rename.
3553 (report_error_function): Update.
3554 * diagnostic.h (print_error_function): Remove.
3555 (default_print_error_function): Remove.
3556 * langhooks-def.h (struct diagnostic_context): Predeclare.
3557 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
3558 (LANG_HOOKS_INITIALIZER): Update.
3559 * langhooks.h (struct diagnostic context): Predeclare.
3560 (struct lang_hooks): New hook.
3562 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3564 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
3565 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
3567 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
3568 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
3569 of PIC_OFFSET_TABLE_REGNUM thruout.
3570 * config/rs6000/rs6000.md: Likewise.
3571 * config/rs6000/darwin.h: Likewise.
3573 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3575 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
3576 unsigned HOST_WIDE_INT, not unsigned int.
3578 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3580 PR middle-end/6096, middle-end/6098, middle-end/6099
3581 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
3583 (fill_slots_from_thread): Likewise.
3585 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3587 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
3588 floating fields in float regs.
3589 (function_arg_record_value_2): Likewise.
3591 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
3593 * config/mmix/mmix.md (define_constants): Remove misleading
3594 FIXME. Add MMIX_fp_rO_OFFSET.
3595 ("nonlocal_goto_receiver"): Don't have stack-frame address of
3596 saved rO as part of the pattern. Remove FIXME.
3597 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
3598 here, at output-time.
3600 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3603 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
3605 (output_v9branch): Likewise.
3607 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
3609 * gcc.c: Revert previous patch for now.
3610 * config/i386/djgpp.h: Likewise.
3612 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
3614 * config/mmix/crti.asm (_init): Register _fini with atexit.
3615 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
3617 2002-03-31 Richard Henderson <rth@redhat.com>
3620 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
3621 (ASM_OUTPUT_DEF_FROM_DECLS): New.
3623 2002-03-31 Richard Henderson <rth@redhat.com>
3625 * libgcc2.c (__bb_exit_func): Make static.
3627 * config/alpha/alpha.md (trap): New.
3629 2002-03-31 Richard Henderson <rth@redhat.com>
3631 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
3632 promoted argument types; build trap.
3633 (expand_builtin_trap): New.
3634 (expand_builtin): Use it.
3635 * stmt.c (expand_nl_goto_receivers): Likewise.
3636 * expr.h (expand_builtin_trap): Declare.
3637 * libfuncs.h (LTI_abort, abort_libfunc): New.
3638 * optabs.c (init_optabs): Init abort_libfunc.
3640 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
3642 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
3643 (LINK_COMMAND_SPEC): ... from here.
3644 (init_gcc_specs): Duplicate it here too, omitting
3645 shared_name in the second copy.
3646 (init_spec): Test for duplicate
3647 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
3649 2002-03-30 David S. Miller <davem@redhat.com>
3651 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3652 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
3654 2002-03-30 Roger Sayle <roger@eyesopen.com>
3655 Richard Henderson <rth@redhat.com>
3657 * regmove.c (combine_stack_adjustments_for_block): Avoid
3658 emitting a stack adjustment of zero bytes. Let delete_insn
3661 2002-03-30 Richard Henderson <rth@redhat.com>
3663 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
3664 (sparc_emitting_epilogue): New.
3665 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
3666 * config/sparc/sparc-protos.h: Update.
3667 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
3668 (TARGET_SWITCHES): Update.
3669 * config/sparc/sparc.md (return): Remove.
3670 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
3671 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
3672 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
3673 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3674 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
3675 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
3676 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
3677 Remove MASK_EPILOGUE.
3678 * doc/invoke.texi: Update.
3680 2002-03-30 Daniel Berlin <dan@dberlin.org>
3682 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
3683 CPP will start the file for us.
3685 2002-03-30 Richard Henderson <rth@redhat.com>
3688 * config/ia64/ia64.c (group_barrier_needed_p): Special case
3689 prologue_allocate_stack.
3690 (ia64_single_set): Use insn codes for recognition of special
3691 cases, not rtl matching.
3692 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
3694 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
3696 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
3698 2002-03-30 Richard Henderson <rth@redhat.com>
3701 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
3702 or -fomit-frame-pointer with profiling.
3703 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3704 (FUNCTION_PROFILER): Do nothing.
3705 (PROFILE_HOOK): New.
3706 * config/sparc/sparc.c (sparc_override_options): Don't check
3707 code models for profiling.
3708 (sparc_function_profiler): Remove.
3709 (sparc_profile_hook): New.
3710 * config/sparc/sparc-protos.h: Update.
3712 2002-03-30 Jakub Jelinek <jakub@redhat.com>
3714 PR optimization/6086
3715 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
3716 of SUBREG of volatile MEM or because the MEM was mode dependent,
3717 return CLOBBER instead of unmodified SUBREG.
3719 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
3721 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
3722 when not optimizing.
3724 * toplev.c (rest_of_compilation): Cann mark_constant_function
3725 only when optimizing.
3727 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
3730 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
3731 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
3732 (try_optimize_cfg): clear all AUX fields.
3734 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
3735 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
3736 (ix86_address_cost): Be prepared for SUBREGed registers.
3737 (legitimate_address_p): Accept SUBREGed registers.
3739 2002-03-29 Richard Henderson <rth@redhat.com>
3742 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
3744 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3746 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
3747 for aggregate and TFmode types.
3749 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
3751 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
3753 2002-03-29 Richard Henderson <rth@redhat.com>
3756 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
3757 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
3759 2002-03-29 Richard Henderson <rth@redhat.com>
3762 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
3763 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
3764 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
3765 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
3767 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
3769 2002-03-29 Dale Johannesen <dalej@apple.com>
3771 * loop.c (combine_movables): Do allow combination of pseudos.
3773 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
3775 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
3776 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
3777 No functional change except ...
3778 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
3779 * doc/install.texi (*-*-freebsd*): Document port configuration.
3781 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
3783 * Makefile.in (convert.o, calls.o, expmed.o): Update.
3784 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
3786 * builtin-types.def (BT_PTRMODE): Update.
3787 * c-common.c (type_for_size): Rename c_common_type_for_size.
3788 (type_for_mode): Similarly.
3789 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
3791 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
3792 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
3793 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
3795 * c-typeck.c (common_type, comptypes, default_conversion):
3797 * calls.c: Include langhooks.h.
3798 (emit_library_call_value_1): Use new hooks. Avoid redundant
3800 * convert.c: Include langhooks.h
3801 (convert_to_pointer, convert_to_integer): Use new hooks.
3802 * except.c (init_eh): Similarly.
3803 * expmed.c: Include langhooks.h.
3804 (expand_mult_add): Use new hooks.
3805 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
3806 try_casesi): Similarly.
3807 * fold-const.c (optimize_bit_field_compare, make_range,
3808 decode_field_reference, fold_truthop, fold): Similarly.
3809 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
3810 put_var_into_stack): Similarly.
3811 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
3812 LANG_HOOKS_TYPE_FOR_SIZE): New.
3813 (LANG_HOOKS_TYPES_INITIALIZER): Update.
3814 * langhooks.h (lang_hooks_for_types): New hooks.
3815 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
3816 * tree.c (get_unwidened, get_narrower): Similarly.
3817 * tree.h (type_for_mode, type_for_size): Remove.
3818 * varasm.c (force_const_mem): Use new hooks.
3819 * utils2.c (nonbinary_modular_operation): Update.
3821 * objc-act.c (handle_impent): Update.
3822 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
3825 2002-03-29 Steve Ellcey <sje@cup.hp.com>
3827 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
3828 * config/ia64/ia64.c (basereg_operand): New.
3829 * config/ia64/ia64-protos.h (basereg_operand): Declare.
3830 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
3832 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
3834 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
3835 unwind information when frame_pointer_needed.
3836 (mmix_assemble_integer): Tweak wording in comment.
3838 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
3840 * Makefile.in (except.o): Update.
3841 * except.c: Include langhooks.h.
3842 (init_eh): Use langhook.
3843 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
3844 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
3845 (LANG_HOOKS_INITIALIZER): Update.
3846 * langhooks.h (lang_hooks_for_types): New.
3847 (struct lang_hooks): Add it.
3848 * tree.c (make_lang_type_fn, make_lang_type): Remove.
3849 * tree.h (make_lang_type_fn, make_lang_type): Remove.
3851 * alpha/alpha.c: Include langhooks.h.
3852 (alpha_build_va_list): Use langhook.
3853 * d30v/d30v.c: Include langhooks.h.
3854 (d30v_build_va_list): Use langhook.
3855 * i386/i386.c: Include langhooks.h.
3856 (ix86_build_va_list): Use langhook.
3857 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
3858 * s390/s390.c: Include langhooks.h.
3859 (s390_build_va_list): Use langhook.
3860 * stormy16/stormy16.c: Include langhooks.h.
3861 (stormy16_build_va_list): Use langhook.
3863 2002-03-29 Jakub Jelinek <jakub@redhat.com>
3866 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
3868 (length): Compute variable length for branches/calls/jumps here.
3869 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
3870 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
3871 define branch_type attribute.
3872 (divsi3_sp32): Maximum length is 6 not 7.
3873 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
3874 call_address_untyped_struct_value_sp32,
3875 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
3876 * config/sparc/sparc.c (empty_delay_slot): New function.
3877 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
3878 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
3880 2002-03-29 Jakub Jelinek <jakub@redhat.com>
3882 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
3883 nonzero_bits if not needed.
3884 (nonzero_bits) [XOR]: Likewise.
3885 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
3886 reg_last_set_mode and mode are both MODE_INT, but not equal.
3887 (record_value_for_reg): Compute reg_last_set_nonzero_bits
3888 in nonzero_bits_mode for MODE_INT modes.
3890 2002-03-28 Richard Henderson <rth@redhat.com>
3893 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
3894 to GAS. Correct drift between alternatives.
3896 2002-03-28 Richard Henderson <rth@redhat.com>
3899 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
3901 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
3903 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
3904 emulation to the linker.
3906 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
3908 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
3909 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3911 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
3913 * combine.c (simplify_and_const_int): Make sure to apply mask
3914 when force_to_mode returns a constant integer. PR3311.
3916 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3918 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
3920 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3922 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
3923 and Objective-C Dialect Options.
3925 2002-03-28 Richard Henderson <rth@redhat.com>
3927 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
3928 comparison should be done vs !=0 not >0 return code. Tidy cases.
3930 2002-03-28 Richard Henderson <rth@redhat.com>
3932 * c-decl.c (finish_function): New arg can_defer_p. Pass it
3933 on to c_expand_body.
3934 * c-tree.h (finish_function): Update decl.
3935 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
3937 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
3939 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
3941 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
3943 * rtlanal.c: Include flags.h
3944 (may_trap_p): Do not mark FP operations if trapping
3945 if !flag_trapping_math
3946 * Makefile.in (rtlanal.o): Add dependency on flag.h
3947 * ifcvt.c (noce_operand_ok): Avoid the lameness.
3949 2002-03-27 Zack Weinberg <zack@codesourcery.com>
3951 * mips.md: Use dconst1, not 1.0, as first argument of
3952 REAL_VALUE_LDEXP. Don't use union real_extract.
3954 2002-03-28 Alan Modra <amodra@bigpond.net.au>
3956 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
3957 rather than $target. Heed program_prefix and
3958 program_transform_name. Search for gas in cross-compiler case too.
3959 "test -x" rather than "test -f".
3960 (gcc_cv_ld): Likewise.
3961 (gcc_cv_nm): Heed program_prefix and program_transform_name.
3962 (gcc_cv_objdump): Likewise.
3963 * configure: Regenerate.
3965 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3967 * Makefile.in (attribs.o): Update.
3968 * attribs.c: Include langhooks.h.
3969 (decl_attributes): Use langhook.
3970 * c-decl.c (insert_default_attributes): Rename.
3971 * c-tree.h (c_insert_default_attributes): New.
3972 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
3973 (LANG_HOOKS_INITIALIZER): Update.
3974 * langhooks.h (struct lang_hooks): New hook.
3975 * tree.h (insert_default_attributes): Remove.
3977 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
3979 2002-03-27 Andreas Schwab <schwab@suse.de>
3981 * config/i386/i386.c (classify_argument): Also check for
3984 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3986 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
3989 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
3991 * i960.md (ret): Set PC.
3992 (nonlocal_goto): Fix expander.
3993 * builtins.c (epxand_builin_longjmp): Check that we've emitted
3996 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
3998 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
4001 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4003 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
4004 assigning to BLOCK_FOR_INSN directly.
4006 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
4008 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
4010 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
4012 * c-common.c (c_expand_expr): Fix prototype.
4013 * c-common.h (c_expand_expr): Always declare, update.
4014 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
4015 * c-objc-common.c (c_objc_common_init): No global hook.
4016 * expr.c (expand_expr): Use langhook.
4017 * expr.h (enum expand_modifier): Conditionally declare.
4018 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
4019 (LANG_HOOKS_INITIALIZER): Update.
4020 * langhooks.c (lhd_expand_expr): New.
4021 * langhooks.h (struct lang_hooks): New hook.
4022 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
4023 (lang_independent_init): Don't default hook.
4025 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
4027 2002-03-27 Richard Henderson <rth@redhat.com>
4030 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
4031 TARGET_CONST_GP. Simplify conditions.
4033 2002-03-27 Richard Henderson <rth@redhat.com>
4035 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4036 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
4037 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
4039 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
4041 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
4042 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
4043 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
4044 Remove unnecessary masks.
4045 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
4046 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
4047 -mwindows, -mdll switches and their negations.
4049 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
4051 * gcc-common.c (lang_mark_false_label_stack): Remove.
4052 * ggc.h (lang_mark_false_label_stack): Similarly.
4054 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
4056 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
4058 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
4059 or __rtems_ is defined.
4061 2002-03-26 Richard Henderson <rth@redhat.com>
4063 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
4064 if a non-trivial load was emitted.
4065 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
4066 in high+extra+low case.
4068 2002-03-26 Richard Henderson <rth@redhat.com>
4070 * config.gcc (sparc*-solaris): Use float_format=sparc.
4072 2002-03-26 Richard Henderson <rth@redhat.com>
4074 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
4075 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
4076 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
4077 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
4078 (WINT_TYPE_SIZE): Fix at 32.
4080 2002-03-26 Richard Henderson <rth@redhat.com>
4082 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
4083 until after eh landing pad generation.
4084 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
4085 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
4087 2002-03-26 Richard Henderson <rth@redhat.com>
4089 * expr.h (ADD_PARM_SIZE): One more convert for INC.
4091 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
4093 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
4094 and warning switches.
4095 (cc1_options): Likewise.
4097 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
4099 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
4100 Restore more of the signal context. Set no_reg_stack_frame.
4101 * config/ia64/unwind-ia64.c (unw_state_record):
4102 Add no_reg_stack_frame, comments.
4103 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
4104 (uw_update_context): Adjust bsp when unwinding from leaf,
4105 but not signal frame.
4107 2002-03-26 David Edelsohn <edelsohn@gnu.org>
4109 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
4111 2002-03-26 Bob Wilson <bob.wilson@acm.org>
4113 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
4115 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
4118 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
4119 "Add a pool_range attribute", which was lost during the ARM/Thumb
4122 2002-03-26 Bob Wilson <bob.wilson@acm.org>
4124 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
4125 a register into the MAC16 accumulator.
4127 2002-03-26 Andrew Cagney <ac131313@redhat.com>
4129 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
4130 (Warning Options): Document -Wswitch-enum.
4131 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
4133 (warn_switch_enum): Define variables.
4134 * flags.h (warn_switch_enum): Declare variables.
4135 * stmt.c (expand_end_case_type): When warn_switch_enum /
4136 -Wswitch-enum, perform switch checks.
4139 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
4141 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
4142 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
4143 (reload_muladdsi_compare0_scratch): Delete.
4145 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
4147 * doc/install.texi (*-*-freebsd*): Update.
4149 2002-03-26 Richard Henderson <rth@redhat.com>
4151 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
4152 (SUB_PARM_SIZE): Cast DEC to ssizetype.
4154 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
4155 types from the normal argument frame.
4157 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
4158 variable sized objects by reference.
4159 (sparc_va_arg): Receive them by reference too.
4161 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
4163 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
4164 code to not restoring global registers.
4166 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
4168 * Makefile.in (ggc-common.o): Update.
4169 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
4170 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4171 * c-tree.h (c_mark_tree): New.
4172 * ggc-common.c: Include langhooks.h.
4173 (gcc_mark_trees): Use new langhook.
4174 * ggc-callbacks.c: Delete file.
4175 * ggc.h (lang_mark_tree): Remove.
4176 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
4177 (LANG_HOOKS_INITIALIZER): Update.
4178 * langhooks.h (struct lang_hooks): New hook.
4180 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4182 2002-03-25 Zack Weinberg <zack@codesourcery.com>
4184 * doc/cpp.texi: Exclude entire Top node from printed manual.
4185 Move option index after directive index. Insert page breaks
4186 before GFDL and concept index. Index environment variables
4187 with command line options.
4188 * doc/cppenv.texi: Use @vtable for environment variable list.
4189 Add paragraph explaining semantics of empty elements in path
4190 variables. Exclude a cross-reference to Fishkill from the
4191 manpage. Remove an unnecessary cross-reference of the entry
4192 right above the referer. Don't use @anchor in text that goes
4194 * doc/cppopts.texi: Cross-reference the environment variables
4195 section, not the specific environment variable, for consistency.
4197 2002-03-25 Richard Henderson <rth@redhat.com>
4199 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
4200 anywhere in the block. Don't refer to insns that have been
4201 removed from the chain. Iterate backward through the new insns.
4202 Don't refer to edges that have been removed.
4204 2002-03-26 Alan Modra <amodra@bigpond.net.au>
4206 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
4207 test for overflow of constant.
4209 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
4212 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
4213 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
4214 these patterns on arm_archv4.
4216 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
4218 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
4221 2002-03-25 Zack Weinberg <zack@codesourcery.com>
4223 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
4224 float_handled, float_handler, float_signal, set_float_handler,
4225 and do_float_handler. Set handler for SIGFPE to crash_signal.
4226 * toplev.h: Don't prototype do_float_handler.
4228 * c-lex.c: Fold parse_float into lex_number. Make warning
4229 about portability of hex float constants more informative, and
4230 don't issue it on top of a syntax error.
4231 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
4233 * real.h: Define REAL_VALUE_ABS here...
4234 * simplify-rtx.c: ... not here. Fold check_fold_consts,
4235 simplify_unary_real, simplify_binary_real, and
4236 simplify_binary_is2orm1 into their callers.
4237 * tree.c: Fold build_real_from_int_cst_1 into caller.
4239 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
4241 * tsystem.h: Include float.h here...
4242 * libgcc2.c: ... not here.
4244 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
4246 Fixes for: PR bootstrap/3591, target/5676
4247 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
4248 defined. Do not disable exceptions or rtti.
4249 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
4250 mcore.h. Disable exceptions and rtti, since they are not
4253 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
4255 * c-decl.c (maybe_build_cleanup): Remove.
4256 * expr.c (expand_expr): Use langhook.
4257 * langhooks-def.h (lhd_return_null_tree,
4258 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
4259 (LANGHOOKS_INITIALIZER): Update.
4260 * langhooks.c (lhd_return_null_tree): New.
4261 * langhooks.h (struct lang_hooks): New hook.
4262 * tree-inline.c (initialize_inlined_parameters): Use langhook.
4263 * tree.h (maybe_build_cleanup): Remove.
4265 2002-03-25 Jakub Jelinek <jakub@redhat.com>
4267 * regrename.c (build_def_use): Move recog_memoized
4268 before extract_insn.
4270 2002-03-25 Jakub Jelinek <jakub@redhat.com>
4273 * expr.c (emit_group_store): Handle storing into CONCAT.
4275 2002-03-25 Jakub Jelinek <jakub@redhat.com>
4277 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
4278 corresponding MATCH_DUP.
4280 2002-03-24 Richard Henderson <rth@redhat.com>
4282 * unroll.c (unroll_loop): Zero label_map.
4284 * gcse.c: Include except.h.
4285 * Makefile.in (gcse.o): Update.
4287 2002-03-24 Richard Henderson <rth@redhat.com>
4289 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
4290 Do resolve_unique_section before shared data clause.
4292 2002-03-24 Richard Henderson <rth@redhat.com>
4294 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
4296 2002-03-24 Richard Henderson <rth@redhat.com>
4298 * recog.c (peephole2_optimize): Split blocks when EH insns are
4299 generated in the middle of a block. Do global life update if
4302 2002-03-24 Richard Henderson <rth@redhat.com>
4304 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
4306 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
4309 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
4310 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
4311 (init_dependency_output): Don't make no_output decision here.
4313 2002-03-24 Andrew Cagney <ac131313@redhat.com>
4315 * stmt.c (check_for_full_enumeration_handling): Remove tests of
4316 warn_switch. Update description.
4317 (expand_end_case_type): Call check_for_full_enumeration_handling
4320 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4322 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
4323 (m68hc11_split_move): Call it to see if the source and destination
4324 operands use the same direction auto inc/dec mode, otherwise make the
4325 source an offsetable memory operand and generate an add.
4327 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4329 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
4330 register for operand 2.
4331 ("*subsi3_zero_extendqi"): Likewise.
4332 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
4333 bits so that it is compatible with a pop.
4334 ("*andhi3_gen"): Likewise.
4335 ("xorhi3"): Likewise.
4337 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
4339 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
4341 (cpp_post_options): ... not here.
4343 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
4344 Aldy Hernandez <aldyh@redhat.com>
4346 Removal of separate preprocessor cpp0.
4348 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
4349 cpp0, install-common): Update.
4350 * c-common.c (flag_preprocess_only): New.
4351 (c_common_init): Preprocess for -E.
4352 * c-common.h (flag_preprocess_only): New.
4353 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
4354 * c-objc-common.c (c_init_decl_processing): Exit quickly
4355 for NULL return from c_common_init.
4356 * cpplib.h (cpp_preprocess_file): New.
4357 * cppmain.c (main, general_init, pfile, progname): Remove.
4358 (do_preprocessing): Rename cpp_preprocess_file, don't call
4359 cpp_finish. Don't close stdout here.
4360 (setup_callbacks): Update prototype.
4361 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
4363 * tradcpp.c (main): Ignore -quiet.
4365 * lang-specs.h (default_compilers): Preprocess with cc1obj.
4367 2002-03-24 Richard Henderson <rth@redhat.com>
4369 PR optimization/5742
4370 * machmode.def: Add inner mode field to complex modes.
4371 * config/mips/mips.c (mips_function_value): Always define. Add
4372 new argument to handle libcalls.
4373 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
4374 (FUNCTION_VALUE): Likewise.
4375 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
4376 * config/mips/mips-protos.h: Update.
4378 2002-03-23 Richard Henderson <rth@redhat.com>
4380 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
4381 * config/sparc/sparc-protos.h: Update.
4382 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
4384 2002-03-23 Richard Henderson <rth@redhat.com>
4386 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
4387 _start or _init begins the text segment.
4389 2002-03-23 David Edelsohn <edelsohn@gnu.org>
4391 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
4392 not HOST_WIDEST_INT.
4393 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
4395 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
4398 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
4399 operand argument to output_return_instruction.
4400 * arm.c (arm_print_operand, case 'd'): If the operand is
4401 const_true_rtx then just return.
4402 (arm_print_operand, case 'D'): If the operand is const_true_rtx
4405 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4407 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
4408 (Warning Options): Document -Wswitch-default.
4409 * toplev.c (W_options): Add -Wswitch-default. Update comment on
4411 (warn_switch_default): Define variable.
4412 (warn_switch): Update comment.
4413 * flags.h (warn_switch_default): Declare variable.
4414 (warn_switch): Update comment.
4415 * stmt.c (expand_end_case): Check for and, when
4416 warn_switch_no_default, warn of a missing default case.
4418 2002-03-23 Alan Modra <amodra@bigpond.net.au>
4420 * real.h (N): Special case 128 bit doubles.
4422 * combine.c (simplify_comparison): When widening modes, ignore
4423 sign extension on CONST_INTs.
4425 2002-03-22 Bob Wilson <bob.wilson@acm.org>
4427 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
4428 passed to adjust_address. Fix comment formatting.
4431 2002-03-22 Zack Weinberg <zack@codesourcery.com>
4433 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
4434 Always make REAL_VALUE_TYPE a struct containing an array of
4435 HOST_WIDE_INT, not a double. Tidy up the code deciding how
4436 big it is. Don't declare or use union real_extract.
4438 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
4439 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
4440 (print_operand), config/arm/arm.c (output_move_double),
4441 config/arm/arm.md (consttable_4, consttable_8),
4442 config/romp/romp.c (output_fpops), config/s390/s390.h
4443 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
4444 (xtensa_output_literal): Don't use union real_extract.
4446 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
4447 (sfmode_constant_to_ulong), config/ns32k/merlin.h
4448 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
4449 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
4450 (PRINT_OPERAND): Don't use local version of union
4453 * config/convex/convex.c (check_float_value), config/vax/vax.c
4454 (vax_float_literal), config/m88k/m88k.md (divdf3),
4455 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
4456 config/pdp11/pdp11.c (output_move_quad): Don't do host
4457 arithmetic on target floating point quantities.
4459 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
4460 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
4462 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
4463 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
4465 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
4466 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
4468 * print-rtl.c (print_rtx): Disable code which needs
4469 floating-point emulator.
4470 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
4471 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
4472 depending on HOST_FLOAT_FORMAT to be defined properly.
4474 * config/1750a/1750a.c (get_double, float_label): Delete.
4475 (print_operand): Delete huge commented-out chunk. Use
4476 REAL_VALUE_TO_DECIMAL.
4477 * config/1750a/1750a-protos.h: Delete prototypes of deleted
4479 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
4481 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
4482 Use REAL_VALUE_TO_DECIMAL as ELF version does.
4483 * config/m88k/m88k.c (real_power_of_2_operand,
4484 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
4485 real_extract out of the union; run the input through
4486 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
4487 from that into the union.
4488 * config/pdp11/pdp11.c (output_move_double): Rearrange
4489 parentheses to make automatic indenter happy.
4491 * doc/tm.texi (Cross-compilation): Rename node to "Floating
4492 Point" and rewrite to describe current situation. Also adjust
4493 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
4495 * doc/rtl.texi: Adjust cross reference.
4497 2002-03-22 Bob Wilson <bob.wilson@acm.org>
4499 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
4500 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
4501 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
4502 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
4503 prevent use of sp as a reload register.
4504 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
4505 non_acc_reg_operand.
4506 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
4507 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
4508 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
4509 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
4511 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
4513 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
4514 * cpplex.c (unterminated): Delete.
4515 (parse_string): No string literal may extend over multiple
4516 lines. Suppress the error when preprocessing assembly.
4517 * cppmain.c (scan_translation_unit): Strings are single-line.
4519 * doc/cpp.texi: Update to match.
4521 2002-03-22 Jakub Jelinek <jakub@redhat.com>
4523 PR optimization/5854
4524 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
4526 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
4527 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
4528 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
4529 const0 if scratch register was not allocated.
4530 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
4531 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
4533 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
4534 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
4535 with GEN_INT (...) everywhere. Remove constraints in define_split
4537 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
4538 require scratch register for setting 0 into regs/non-pushable memory.
4540 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
4542 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
4543 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
4545 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
4547 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
4548 * cppinit.c (cpp_create_reader): On by default.
4549 (cpp_handle_option): Handle -W[no-]endif-labels.
4550 (cpp_post_options): Also enable if -pedantic.
4551 * cpplib.c (do_else): Use it.
4552 (do_endif): Likewise.
4553 * doc/cppopts.texi: Document new option.
4554 * doc/invoke.texi: Document new option.
4556 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
4558 * config/i386/i386.c, config/i386/i386.md: Change all occurences
4559 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
4561 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
4563 * flow.c (calculate_global_regs_live): Clear aux fields of
4566 2002-03-22 Jakub Jelinek <jakub@redhat.com>
4568 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
4569 REG or MEM subregs, pass rtx * instead of rtx to it.
4570 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
4571 rtx * instead of rtx to alter_subreg.
4572 * config/m32r/m32r.c (gen_split_move_double): Likewise.
4573 * config/pj/pj.c (pj_output_rval): Likewise.
4575 2002-03-22 Richard Henderson <rth@redhat.com>
4578 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
4579 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
4580 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
4581 (ia64_expand_prologue): Look at int_regs, not words, for number
4582 of incomming int regs.
4584 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
4586 * expr.c (expand_expr): A RESULT_DECL is part of a call.
4588 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
4590 * toplev.c (flag_loop_optimize, flag_crossjumping):
4591 New static variables.
4592 (rest_of_compilation): Conditionalize crossjumping and
4594 (parse_options_and_default_flags): Default loop_optimize and
4596 (lang_independent_options): Add -fcrossjumping and -floop-optimize
4597 * invoke.texi (crossjumping, loop-optimize): Document.
4599 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4601 * real.c (eiisneg): Move outside #ifdef NANS.
4603 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
4605 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
4606 frequencies match; avoid match on different loop depths.
4607 (try_crossjump_to_bb): Kill tests that no longer brings time
4609 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
4611 (split_edge): Likewise.
4613 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
4616 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
4617 * cfgrtl.c: Include insn-config.h
4618 (split_block) Dirtify block in presence of conditional execution
4620 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4622 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
4623 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
4624 (function_arg): Constify CUMULATIVE_ARGS.
4625 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
4626 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
4627 (UNITS_PER_DOUBLE): New macro.
4628 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
4629 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
4630 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
4631 fp_regs and stack_words.
4632 (EABI_FLOAT_VARARGS_P): New macro.
4633 * config/mips/mips.c (struct mips_arg_info): New.
4634 (mips_arg_info): New function.
4635 (function_arg_advance): Use it. Add adjustment instructions here
4636 rather than in function_arg.
4637 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
4638 for VOIDmode at the beginning of the function.
4639 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
4640 (function_arg_pass_by_reference): Likewise.
4641 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
4642 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
4643 (mips_va_start): Likewise. Use the new stack_words field of
4644 CUMULATIVE_ARGS to set up overflow area. Reformat.
4645 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
4646 doubles and other types, aligning the overflow pointer for non-doubles
4647 too. Remove some code duplication. Replace hard-coded constants.
4649 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4651 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
4652 (CLASS_UNITS): Undefine.
4653 (CLASS_MAX_NREGS): Use FP_INC.
4654 * config/mips/mips.c (compute_frame_size): Likewise.
4655 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
4657 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
4659 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
4660 prototype, and handle lexing numbers and identifiers.
4661 (parse_identifier): Update to new form of parse_slow.
4662 (parse_number): Fast path only, use parse_slow otherwise.
4663 (_cpp_lex_direct): Update calls to parse_number.
4665 2002-03-21 DJ Delorie <dj@redhat.com>
4667 * bb-reorder.c (make_reorder_chain_1): Protect against
4668 when redundant edges are omitted.
4669 * predict.c (dump_prediction): Likewise.
4671 2002-03-21 Richard Henderson <rth@redhat.com>
4674 * fixinc/inclhack.def (solaris_stdio_tag): New.
4675 * fixinc/fixincl.x: Regenerate.
4677 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
4680 * c-typeck.c (process_init_element): Flag non-static
4681 initialization of a flexible array member as illegal.
4683 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4685 * config/rs6000/t-linux64: New.
4686 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
4687 t-ppccomm. Use t-rs6000 and t-linux64.
4688 (powerpc64-*-gnu* <tmake_file>): Likewise.
4689 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
4690 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
4691 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
4693 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
4695 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
4696 flag_really_no_inline instead of optimize == 0.
4698 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
4700 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
4702 * flags.h (flag_really_no_inline): New.
4704 * c-common.c (c_common_post_options): Initialize
4705 flag_really_no_inline.
4707 * toplev.c (flag_really_no_inline): New.
4709 2002-03-21 Jakub Jelinek <jakub@redhat.com>
4711 * config/avr/avr.md (length): Fix length computation for
4712 conditional branches.
4714 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
4716 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
4717 sdbout.o, profile.o): Update.
4718 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
4720 * c-common.h (gettags): Move here from tree.h.
4721 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
4722 insert_block, getdecls, kept_level_p, global_bindings_p): New.
4723 * dbxout.c (dbxout_init): Use getdecls langhook.
4724 * expr.c (expand_expr): Use insert_block langhook.
4725 * fold-const.c: Include langhooks.h.
4726 (fold_range_test, fold_binary_op_with_conditional_arg,
4727 fold): Use global_bindings_p langhook.
4728 * integrate.c (expand_inline_function): Use insert_block langhook.
4729 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
4730 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
4731 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
4732 LANG_HOOKS_GETDECLS): New.
4733 (LANG_HOOKS_INITIALIZER): Update.
4734 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
4736 * langhooks.h (struct lang_hooks_for_decls): New.
4737 (struct lang_hooks): Update.
4738 * profile.c: Include langhooks.h.
4739 (output_func_start_profiler): Use new langhooks.
4740 * sdbout.c: Include langhooks.h.
4741 (sdbout_init, sdbout_finish): Use getdecls langhook.
4742 * stmt.c: Include langhooks.h.
4743 (expand_fixup, fixup_gotos): Use new langhooks.
4744 * stor-layout.c: Include langhooks.h.
4745 (variable_size): Use global_bindings_p langhook.
4746 * toplev.c (compile_file): Use getdecls langhook.
4747 * tree-inline.c (remap_block): Use insert_block langhook.
4748 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
4749 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
4751 2002-03-21 Richard Henderson <rth@redhat.com>
4753 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
4754 constants in .data when -fpic.
4756 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4758 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
4761 2002-03-21 Tom Tromey <tromey@redhat.com>
4763 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
4765 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4767 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
4769 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
4771 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
4772 Richard Henderson <rth@redhat.com>
4775 * c-common.c (c_expand_expr): Preserve result of a statement
4776 expression if needed.
4778 2002-03-21 Jakub Jelinek <jakub@redhat.com>
4781 * genrecog.c (maybe_both_true_mode): Remove.
4782 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
4783 * machmode.def (Pmode): Likewise.
4785 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
4787 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
4788 (nonlocal_mentioned_p_1): New function.
4789 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
4790 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
4791 (mark_constant_function): Recognize pure functions.
4792 * rtl.h (global_reg_mentioned_p): New prototype.
4793 * rtlanal.c (global_reg_mentioned_p,
4794 global_reg_mentioned_p_1): New function.
4796 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4798 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
4800 * fixinc/fixincl.x: Regenerate.
4802 2002-03-20 Jason Merrill <jason@redhat.com>
4804 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
4806 2002-03-20 Michael Meissner <meissner@redhat.com>
4808 * doc/invoke.texi (Optimize Options): Document that -O2 sets
4811 2002-03-20 Bob Wilson <bob.wilson@acm.org>
4813 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
4814 ".literal_position" directive before the constant pool.
4816 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4818 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
4819 Add Craig Rodrigues.
4820 Add Brad Lucier to testers.
4822 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4825 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
4827 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
4828 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
4829 instead of insn_extract.
4831 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4834 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
4836 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
4837 stmt if some case has been output.
4839 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4842 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
4843 movsfcc_1, movdfcc_1): Add %O2.
4844 * config/i386/i386.c (print_operand): Handle %ON.
4845 Print . before float condition codes in Sun as cmov syntax.
4846 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
4847 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
4850 2002-03-20 Philip Blundell <pb@nexus.co.uk>
4852 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
4853 return instruction if PC was popped.
4855 2002-03-20 Bob Wilson <bob.wilson@acm.org>
4857 * config/xtensa/xtensa.md: Remove unused type attributes.
4858 (adddi_carry, subddi_carry): Change type attribute to "multi".
4860 2002-03-19 Dale Johannesen <dalej@apple.com>
4862 PR optimization/5999, middle-end/5731
4863 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
4864 multiplications by reciprocals.
4866 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
4868 * Makefile.in: Update.
4869 * c-common.c: Include langhooks.h.
4870 (inline_forbidden_p): Use new hook.
4871 * diagnostic.c: Include langhooks.h.
4872 (format_with_decl, announce_function,
4873 default_print_error_function): Use new hook.
4874 * dwarf2out.c (dwarf2_name): Use new hook.
4875 * function.c: Include langhooks.h.
4876 (init_function_start): Use new hook.
4877 * langhooks-def.h (lhd_decl_printable_name): New.
4878 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
4879 (LANGHOOKS_INITIALIZER): Update.
4880 * langhooks.c (lhd_decl_printable_name): New.
4881 * langhooks.h (struct lang_hooks): New hook.
4882 * toplev.c (decl_name, decl_printable_name): Remove.
4883 (open_dump_file): Use new hook.
4884 (process_options): Remove old hook.
4885 * tree.h (decl_printable_name): Remove.
4887 * objc-act.c (objc_init): Remove old hook.
4888 (objc_printable_name): Export.
4889 * objc-act.h (objc_printable_name): New.
4890 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
4892 2002-03-19 Jim Blandy <jimb@redhat.com>
4894 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
4895 the start_source_file debug hook, not the current line number.
4897 2002-03-19 Richard Henderson <rth@redhat.com>
4899 * flow.c (EH_USES): Provide default.
4900 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
4901 * doc/tm.texi (EH_USES): New.
4903 * config/ia64/ia64.c (ia64_eh_uses): New.
4904 * config/ia64/ia64-protos.h: Update.
4905 * config/ia64/ia64.h (EH_USES): New.
4907 2002-03-19 Richard Henderson <rth@redhat.com>
4909 * varasm.c (output_constant_def): Fix stupid typo.
4911 2002-03-19 Richard Henderson <rth@redhat.com>
4914 * except.c (current_function_has_exception_handlers): New.
4915 * except.h: Declare it.
4916 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
4917 Combine tests that disable all sibcalls for the function.
4919 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
4921 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
4924 2002-03-19 Richard Henderson <rth@redhat.com>
4927 * config/ia64/ia64.c: Revert 2002-03-01 patch.
4928 * config/ia64/ia64.h (INIT_EXPANDERS): New.
4930 2002-03-19 Jim Blandy <jimb@redhat.com>
4932 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
4933 name, even if the replacement list contains no tokens, as required
4936 2002-03-19 Jason Merrill <jason@redhat.com>
4938 * varasm.c (globalize_decl): Get the name from the RTL, not
4939 DECL_ASSEMBLER_NAME.
4941 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
4943 2002-03-19 Bob Wilson <bob.wilson@acm.org>
4945 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
4946 subdi_carry): Define.
4948 2002-03-19 David Edelsohn <edelsohn@gnu.org>
4950 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
4951 about -fpic/-fPIC if extra_warnings set.
4953 2002-03-19 David Edelsohn <edelsohn@gnu.org>
4955 * expr.c (expand_expr): Sign-extend CONST_INT generated from
4956 TREE_STRING_POINTER.
4957 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
4959 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4961 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
4962 in favor of SP if FRAME_POINTER_REQUIRED is false.
4964 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
4966 * emit-rtl.c (gen_int_mode): New function.
4967 * rtl.h: Prototype for it.
4968 * combine.c (make_extraction, simplify_comparison), expmed.c
4969 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
4970 (convert_modes, store_field), optabs.c (expand_fix),
4971 simplify-rtx.c (neg_const_int, simplify_unary_real),
4973 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
4974 Use it instead of GEN_INT (trunc_int_for_mode (...)).
4976 2002-03-19 Jakub Jelinek <jakub@redhat.com>
4979 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
4980 convert_parm_for_inlining.
4981 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
4983 * langhooks-def.h: Likewise.
4984 * objc/objc-lang.c: Likewise.
4985 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
4987 * tree-inline.c (initialize_inlined_parameters):
4988 Call convert_parm_for_inlining lang hook if needed.
4989 * c-typeck.c (c_convert_parm_for_inlining): New function.
4990 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
4992 2002-03-18 Mark Mitchell <mark@codesourcery.com>
4994 * calls.c (precompute_arguments): Do not assume that temporaries
4995 can be destroyed after expanding the argument.
4996 (expand_call): Likewise.
4998 2002-03-15 Eric Christopher <echristo@redhat.com>
5000 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
5001 Fix register preference on last change.
5002 * config/mips/mips.c (mips_return_in_memory): New function.
5003 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
5004 * config/mips/mips-protos.h: Declare.
5005 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
5006 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
5008 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
5010 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
5012 (anddi3, iorsi3): Likewise.
5014 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
5015 use %gprel for symbols that are going to be placed in linkonce
5018 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
5019 RETURN_ADDRESS_POINTER_REGNUM to $ra.
5020 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
5021 not needed. Disregard leaf_function_p().
5022 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
5023 mips16 frame pointer.
5024 * config/mips/mips.md (store ra): Only to small SP offsets.
5025 2001-08-22 Graham Stott <grahams@redhat.com>
5026 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
5027 return a REG rtx for the return address register.
5029 2002-03-18 Bob Wilson <bob.wilson@acm.org>
5031 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
5032 constant-pool addresses as "mode-dependent".
5033 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
5035 2002-03-18 Jakub Jelinek <jakub@redhat.com>
5038 * expr.c (emit_group_load): Use extract_bit_field if
5039 needed for CONCAT arguments.
5041 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
5044 * arm.md (tablejump): Make this a define_expand. For PIC add the
5045 offset to the base of the table.
5046 (thumb_tablejump): Matcher for Thumb tablejump insn.
5047 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
5048 as the difference of two labels.
5049 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5050 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
5052 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
5053 * arm.c (get_jump_table_size): If the table is not in the text
5054 section, return zero.
5056 2002-03-18 Bernd Schmidt <bernds@redhat.com>
5058 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
5060 (arm_reload_out_hi): Use gen_lowpart instead of
5061 gen_rtx_SUBREG to access QImode components.
5062 * config/arm/arm.md: Disable zero_extend split for QImode
5063 subregs in BIG_ENDIAN mode.
5064 (storehi_bigend): Match use of least significant byte.
5065 (storeinthi): Remove extraneous SUBREG.
5066 Add missing construction of operands[2].
5067 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
5068 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
5069 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
5071 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
5073 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
5076 2002-03-17 Richard Henderson <rth@redhat.com>
5078 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
5081 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
5083 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
5084 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
5086 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5088 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
5090 * predict.c (estimate_bb_frequencies): Delete unused variables.
5092 2002-03-17 Richard Henderson <rth@redhat.com>
5094 * config/ia64/ia64.c (ia64_attribute_table): Move before
5095 targetm definition. Make static.
5097 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
5099 * c-common.h (yyparse, c_common_parse_file): New.
5100 * c-lang.c: Include c-common.h.
5101 (LANG_HOOKS_PARSE_FILE): Redefine.
5102 * c-lex.c: Include c-common.h.
5103 (yyparse): Rename c_common_parse_file. Call yyparse.
5104 * c-parse.in (yyparse): Remove macro.
5105 * c-tree.h (yyparse_1): Remove.
5106 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
5107 (LANG_HOOKS_INITIALIZER): Update.
5108 * langhooks.h (struct lang_hoooks): New hook parse_file.
5109 * toplev.c (compile_file): Use parse_file hook.
5110 * tree.h (yyparse): Remove.
5111 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
5113 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
5115 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
5116 float_truncate, not fix.
5117 ("*truncdfsf2_real"): Ditto.
5118 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
5120 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
5122 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
5124 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
5125 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
5126 where appropriate. Make the second reference to
5127 leaf_function_p a function call, as intended. Reindented.
5129 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
5130 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
5132 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
5133 add register to non-constant into sp.
5135 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
5136 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
5137 (mips16_gp_pseudo_rtx): Lose.
5138 (INIT_EXPANDERS): Deleted.
5139 * config/mips/mips.c (mips_init_machine_status): New.
5140 (mips_free_machine_status): New.
5141 (mips_mark_machine_status): New.
5142 (override_options): Set them.
5143 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
5144 (struct machine_function): ... new. Replaced all references.
5145 (mips_add_gc_roots): Don't mark them.
5146 (embedded_pic_fnaddr_reg): New, extracted from...
5147 (embedded_pic_offset): ... here.
5148 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
5151 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
5153 * cppinit.c: Revert -MD removal.
5155 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5157 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
5158 soft registers by default for 68HC12.
5159 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
5160 when compiling with -fomit-frame-pointer.
5161 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
5162 (expand_epilogue): Likewise.
5163 (m68hc11_gen_rotate): Use exg when rotating by 8.
5165 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5167 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
5168 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
5169 (splits): Remove unused add splits.
5170 ("*addhi3_68hc12"): Tune constraints.
5171 ("addhi_sp"): Try to use X instead of Y in all cases and if the
5172 constant fits in 8-bits and D is dead use abx/aby instructions.
5173 ("*addhi3"): Remove extern declaration of ix_reg.
5174 ("*subsi3"): Optimize and provide new split.
5175 ("subhi3"): Cleanup.
5176 ("*subhi3_sp"): Avoid saving X if we know it is dead.
5177 (arith splits): For 68hc12 save the address register on the stack
5178 and do the arithmetic operation with a pop.
5180 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5182 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
5183 allocating QImode in address registers.
5184 ("*movqi_m68hc11"): Likewise.
5186 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
5188 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
5190 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
5192 * cppinit.c (print_help): Display -MD and -MMD.
5193 Don't display usage string. Update assertion syntax and
5195 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
5196 (cpp_handle_option): Update.
5198 2002-03-15 Chris Demetriou <cgd@broadcom.com>
5200 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
5201 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
5202 and define it so that regardless of target CPU size,
5203 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
5204 of "int" rather than "long."
5206 2002-03-15 Richard Henderson <rth@redhat.com>
5208 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
5211 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5213 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
5214 ("tstqi" split): Avoid using memory for tstqi on address register.
5215 (splits): Remove constraints.
5216 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
5217 ("cmpdf", "cmpsf"): Remove since not used.
5218 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
5219 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
5221 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5223 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
5224 ("neghi2"): Tighten constraints.
5225 ("one_cmplsi2"): Optimize and simplify split.
5226 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
5228 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5230 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
5231 and split of AND operation to clear the upper bits.
5232 ("*logicalsi3_zextqi"): Likewise.
5233 ("*logicallhi3_zexthi_ashift8"): Likewise.
5234 ("*logicalsi3_silshr16"): Likewise.
5235 ("logicalsi3_silshl16"): Likewise.
5236 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
5238 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5240 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
5241 (m68hc11_indirect_p): New function.
5242 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
5243 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
5245 (asm_print_register): Likewise.
5246 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
5247 (m68hc11_indirect_p): Declare.
5248 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
5249 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
5250 (TARGET_SWITCHES): New option -mrelax.
5251 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
5253 ("iorsi3", "xorsi3"): Likewise.
5254 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
5255 ("*andhi3_mem"): New to handle destination in memory with bclr
5256 and a scratch register.
5257 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
5258 ("*andhi3_const"): New when operand2 is constant.
5259 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
5260 ("*andhi3_gen"): Cleanup of the old "andhi3".
5261 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
5262 ("xorqi3"): Update constraints.
5264 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5266 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
5267 for reg_equiv_memory_loc when the operand is a register that does
5268 not get a hard register (stack location).
5269 (tst_operand): After reload, accept all memory operand.
5270 (symbolic_memory_operand): Fix detection of symbolic references.
5271 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
5272 accept symbols and any constant.
5274 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5276 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
5277 note on the insn that sets the soft frame register.
5278 (must_parenthesize): ix and iy are also reserved names.
5279 (print_operand_address): One more place where parenthesis are required
5280 to avoid confusion with register names.
5281 (m68hc11_gen_movhi): Allow push of stack pointer.
5282 (m68hc11_check_z_replacement): Fix handling of parallel with a
5284 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
5285 the replacement register is.
5286 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
5287 and D8_REGS classes.
5288 (MODES_TIEABLE_P): All modes are tieable except QImode.
5290 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5292 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
5293 (___subdi3): Likewise.
5294 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
5295 (__map_data_section): Optimize 68hc11 case.
5297 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5299 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
5300 than a shift to avoid adding a register with itself.
5301 (m68hc11_memory_move_cost): Take into account NO_REGS.
5302 (m68hc11_register_move_cost): Update and use memory move cost
5304 (m68hc11_address_cost): Make cost of valid offset not 0 so that
5305 it gives more opportunities to cse to optimize.
5306 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
5307 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
5309 2002-03-15 Mark Mitchell <mark@codesourcery.com>
5311 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
5312 * c-common.def (CLEANUP_STMT): New tree node.
5313 * c-common.h (CLEANUP_DECL): New macro.
5314 (CLEANUP_EXPR): Likewise.
5315 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
5316 * expr.c (expand_expr): Tidy.
5317 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
5318 * tree-inline.c (initialize_inlined_parameters): Clean up
5319 new local variables.
5321 2002-03-15 Jakub Jelinek <jakub@redhat.com>
5324 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
5325 before movrXX only, use reg_overlap_mentioned_p.
5326 Only special case NE if just one insn can be generated.
5328 2002-03-15 Jason Merrill <jason@redhat.com>
5330 * varasm.c (assemble_variable): Call resolve_unique_section before
5331 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
5334 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
5337 * arm.md (split pattern for thumb shiftable immediates): Add comment
5338 explaining non-obvious test.
5340 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
5343 * arm.md (movaddr, movaddr_insn): Delete.
5345 2002-03-15 Jason Merrill <jason@redhat.com>
5347 * toplev.c (wrapup_global_declarations): Clarify variable handling.
5348 -fkeep-static-consts doesn't apply to comdats.
5350 2002-03-14 Richard Henderson <rth@redhat.com>
5352 * c-decl.c: Include c-pragma.h.
5353 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
5354 (finish_function): Tidy.
5355 * c-pragma.c: Include c-common.h.
5356 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
5357 (handle_pragma_weak): Use them.
5358 (init_pragma): Register pending_weaks.
5359 * c-pragma.h (maybe_apply_pragma_weak): Declare.
5360 * print-tree.c (print_node): Print DECL_WEAK.
5361 * varasm.c (mark_weak_decls): Remove.
5362 (remove_from_pending_weak_list): Remove.
5364 (asm_emit_uninitialised): Call globalize_decl for weak commons.
5365 (weak_decls): Make a tree_list.
5366 (declare_weak): Cons weak_decls directly.
5367 (globalize_decl): Remove weak_decls elements directly.
5368 (weak_finish): Simplify weak_decls walk. Don't weaken unused
5369 symbols. Don't pretend to handle aliases.
5370 (init_varasm_once): Update weak_decls registry.
5371 * Makefile.in: Update dependencies.
5373 2002-03-14 Richard Henderson <rth@redhat.com>
5376 * config/ia64/ia64.c: Include tm_p.h last.
5377 (gen_nop_type): Remove duplicate definition.
5378 (cycle_end_fill_slots): Set sched_data for second L slot.
5379 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
5380 (nop_cycles_until): Fix typos.
5382 2002-03-15 Jakub Jelinek <jakub@redhat.com>
5384 PR optimization/5891
5385 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
5387 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
5389 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
5390 descriptors correctly.
5392 2002-03-14 Michael Meissner <meissner@redhat.com>
5394 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
5395 100, allowing MAX_UNROLLED_INSNS to be overridden.
5397 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
5400 * unroll.c (params.h): Include.
5401 (MAX_UNROLLED_INSNS): Delete, now in params.h.
5403 * doc/invoke.texi (--param max-unroll-insns): Document.
5405 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
5407 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
5409 * arm.md: Fix warnings about constraints in peepholes and splits.
5411 2002-03-14 Zack Weinberg <zack@codesourcery.com>
5413 * cpphash.h (struct lexer_state): Remove line_extension member.
5414 * cpplib.c (dequote_string, do_linemarker): New functions.
5415 (linemarker_dir): New data object.
5416 (DIRECTIVE_TABLE): No longer need to interpret #line in
5417 preprocessed source. Delete obsolete comment about return
5419 (end_directive, directive_diagnostics, _cpp_handle_directive):
5420 Don't muck with line_extension.
5421 (directive_diagnostics): No need to issue warnings for
5423 (_cpp_handle_directive): Issue warnings for linemarkers here,
5424 when appropriate. Dispatch linemarkers to do_linemarker, not
5426 (do_line): Code to handle linemarkers split out to do_linemarker.
5427 Convert escape sequences in filename argument, both places.
5429 * cppmacro.c (quote_string): Rename cpp_quote_string and
5430 export. All callers changed.
5431 * cpplib.h (cpp_quote_string): Prototype.
5432 * cppmain.c (print_line): Call cpp_quote_string on to_file
5435 * doc/cpp.texi: Document that escapes are now interpreted in
5436 #line and in linemarkers, and that non-printing characters are
5437 converted to octal escapes when linemarkers are generated.
5439 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
5441 * emit-rtl.c (try_split): Use delete_insns.
5442 * recog.c (split_all_insns): Fix terminating condition.
5444 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
5445 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5448 * arm.c (arm_output_epilogue): Fix floating-point register save
5449 adjustment when using a frame pointer.
5451 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
5453 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
5454 * config/mips/mips.c (compute_frame_size): Retrofit them here.
5455 (save_restore_insns, mips_expand_epilogue): And here.
5456 (build_mips16_call_stub): And here.
5457 (mips_function_value): Use the new macros to decide whether a single
5458 or complex float can be returned in floating-point registers. Return
5459 a parallel rtx in the complex case.
5461 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
5463 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
5464 call after liveness analysis.
5466 * recog.c (split_insn): Use delete_insn_and_edges.
5468 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
5469 instructions to have branch prediction notes.
5470 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
5472 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
5474 * configure.in: Don't pass -Wno-long-long to a ADA compiler
5475 that doesn't support it.
5476 * configure: Regenerate.
5478 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5481 * config/sparc/sparc.md (normal_branch, inverted_branch,
5482 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
5483 inverted_fp_branch): Adjust calls to output_cbranch.
5484 Set length attribute.
5485 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
5486 output_v9branch. Set length attribute.
5487 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
5489 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
5490 (output_cbranch): Likewise. Handle far branches.
5491 (output_v9branch): Handle far branches.
5492 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
5494 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
5495 noov_compare64_op predicates.
5497 2002-03-13 Jason Merrill <jason@redhat.com>
5499 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
5500 into the function and constify it.
5501 * gthr-dce.h, gthr-solaris.h: Likewise.
5503 2002-03-13 David Edelsohn <edelsohn@gnu.org>
5505 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
5506 * config/rs6000/rs6000.c (rs6000_va_arg): Use
5507 std_expand_builtin_va_arg if not ABI_V4.
5509 2002-03-13 Jason Merrill <jason@redhat.com>
5511 * varasm.c (globalize_decl): New fn.
5512 (assemble_start_function): Use it.
5513 (asm_emit_uninitialized): Use it.
5514 (assemble_alias): Use it.
5515 (assemble_variable): Use it.
5517 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
5519 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
5520 2002-03-12 internal visibility change.
5521 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
5522 visibility into SYMBOL_REF_FLAG.
5524 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
5526 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
5527 VOIDmode operand. Add compile-time optimization for constant results.
5529 2002-03-12 Jason Merrill <jason@redhat.com>
5531 * c-typeck.c (convert_for_assignment): Don't allow conversions
5532 between pointers and references. Only allow lvalues to convert to
5535 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
5537 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
5538 before prologue, to avoid scheduling problems.
5540 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5542 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
5543 (ELIMINABLE_REGS): Add sfp->sp.
5544 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
5546 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5548 PR optimization/5892
5549 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
5551 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5553 * loop.c (basic_induction_var): Don't call convert_modes if mode
5554 classes are different.
5556 2002-03-12 Richard Henderson <rth@redhat.com>
5558 PR optimization/5901
5559 * function.c (reposition_prologue_and_epilogue_notes): Position
5560 the markers after/before the last/first insn not deleted.
5562 2002-03-12 Richard Henderson <rth@redhat.com>
5564 PR optimization/5878
5565 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
5566 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
5567 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5569 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
5570 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
5571 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
5573 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
5574 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
5575 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
5576 also. Don't set it if not flag_pic.
5577 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
5578 to be INVALID_REGNUM when not used.
5580 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
5582 * expmed.c (store_bit_field): Reset alias set for memory.
5583 (extract_bit_field): Same.
5585 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5587 * c-common.c (c_tree_code_type, c_tree_code_length,
5588 c_tree_code_name, add_c_tree_codes): Delete.
5589 * c-common.h (add_c_tree_codes): Delete.
5590 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
5592 * c-objc-common.c (c_objc_common_init): Don't call
5593 add_c_tree_codes, instead set lang_unsafe_for_reeval.
5594 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
5595 objc_tree_code_name, add_objc_tree_codes): Delete.
5596 (objc_init): Don't call add_objc_tree_codes.
5597 * objc/objc-lang.c (tree_code_type, tree_code_length,
5598 tree_code_name): Define.
5599 * toplev.c (lang_independent_init): Don't set
5600 tree_code_length[IDENTIFIER_NODE].
5601 * tree.c (tree_code_type, tree_code_length, tree_code_name):
5602 Delete definitions, moved to language front-ends.
5603 * tree.def (IDENTIFIER_NODE): Hardwire the length.
5604 * tree.h (tree_code_type, tree_code_length, tree_code_name):
5606 (tree_code_length): Change type to unsigned char.
5608 2002-03-12 Richard Henderson <rth@redhat.com>
5610 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
5611 internal visibility change.
5613 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5615 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
5616 validize_mem() instead of change_address to avoid clobbering
5619 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
5621 * c-lex.h (position_after_whitespace): Remove.
5623 2002-03-12 Jakub Jelinek <jakub@redhat.com>
5625 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
5626 (lex_string): Use unsigned char pointers.
5628 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
5630 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
5631 is not a valid memory_operand.
5633 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5635 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
5636 * config/xtensa/lib1funcs.asm: Fix copyright to include
5637 special case for libgcc files.
5638 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
5639 (__divsi3): Likewise.
5640 (__umodsi3): Likewise.
5641 (__modsi3): Likewise.
5642 * config/xtensa/lib2funcs.S: Fix copyright to include
5643 special case for libgcc files.
5645 2002-03-12 Tom Rix <trix@redhat.com>
5647 * collect2.c (resolve_lib_name): Move outside of
5648 OBJECT_FORMAT_COFF ifdef.
5649 (ignore_library): Same.
5651 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5653 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
5655 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5657 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
5658 to function_section before writing out the constant pool.
5660 2002-03-12 David Edelsohn <edelsohn@gnu.org>
5662 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
5664 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
5666 2002-03-12 Alan Modra <amodra@bigpond.net.au>
5668 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
5672 (cmpsi splitter): Likewise.
5673 (modsi3): Fail if <= 0.
5674 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
5675 redundant test when HOST_BITS_PER_WIDE_INT != 32.
5676 (reg_or_sub_cint64_operand): Likewise.
5677 (num_insns_constant_wide): Optimize sign extension.
5678 (rs6000_legitimize_address): Likewise.
5680 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
5682 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5683 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5685 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
5687 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
5688 address calculation.
5690 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
5692 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
5693 scratch register to DImode / TImode.
5694 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
5695 register used does not overlap the target.
5697 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5699 * Makefile.in (debug.o): Depend on debug.h.
5700 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
5701 * debug.c (do_nothing_debug_hooks): Likewise.
5702 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
5703 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
5704 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
5705 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5706 * dwarfout.c (dwarf_debug_hooks): Likewise.
5707 * integrate.c (output_inline_function): Likewise.
5708 * objc/objc-act.c (synth_module_prologue): Likewise.
5709 * sdbout.c (sdb_debug_hooks): Likewise.
5710 * toplev.c (debug_hooks): Likewise.
5711 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5713 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5715 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
5716 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
5717 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
5718 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
5719 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
5720 * defaults.h (POINTER_SIZE): Define.
5721 * doc/tm.texi (POINTER_SIZE): Document default.
5723 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5725 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
5727 2002-03-11 Richard Henderson <rth@redhat.com>
5729 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
5730 if rebuild_label_notes_after_reload.
5732 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
5734 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
5735 emit pic register load if "internal" visibility.
5736 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
5737 (cris_expand_builtin_va_arg): Do all computations on trees.
5739 2002-03-11 Richard Henderson <rth@redhat.com>
5741 * rtlanal.c: Include recog.h.
5742 (keep_with_call_p): Fix thinko.
5743 * Makefile.in (rtlanal.o): Update dependencies.
5745 2002-03-11 Chris Meyer <cmeyer@gatan.com>
5747 * genflags.c (gen_insn): Use IS_VSPACE.
5748 * genoutput.c (output_insn_data): Likewise.
5749 (process_template): Likewise.
5751 2002-03-11 Richard Henderson <rth@redhat.com>
5753 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
5755 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
5757 * Makefile.in: Update.
5758 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
5759 Update documentation.
5760 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
5761 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
5763 2002-03-11 Zack Weinberg <zack@codesourcery.com>
5765 * Makefile.in: Give texi2pod its input file as a command line
5766 argument, not on stdin.
5768 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
5769 Daniel Berlin <dan@dberlin.org>
5771 C++ alias analysis improvement.
5772 * alias.c (record_component_aliases): Record aliases for base
5775 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
5777 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
5779 2002-03-11 Douglas B Rupp <rupp@gnat.com>
5781 * toplev.c (vms_fopen): Remove, not needed.
5783 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
5785 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
5787 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
5788 for FP, already done later.
5790 * toplev.c (debug_args): Add entry for VMS_DEBUG.
5791 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
5793 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
5795 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
5796 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
5797 LARGEST_EXPONENT_IS_NORMAL for the given mode.
5798 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
5799 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
5800 (ediv, emul, eldexp, esqrt): Likewise.
5801 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
5802 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
5803 (saturate): New function.
5804 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
5805 (make_nan): Use a saturation value instead of a NaN if
5806 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
5807 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
5808 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
5809 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
5810 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
5811 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
5812 !ROUND_TOWARDS_ZERO.
5813 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
5814 (ROUND_TOWARDS_ZERO): Document.
5816 2002-03-11 Andreas Jaeger <aj@suse.de>
5818 * cfg.c (dump_flow_info): Remove unused variable.
5820 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
5822 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
5823 computations on trees.
5825 2002-03-10 Richard Henderson <rth@redhat.com>
5828 * reload.c (copy_replacements_1): New.
5829 (copy_replacements): Use it to recurse through the rtx.
5831 2002-03-10 Richard Henderson <rth@redhat.com>
5833 * loop.c (strength_reduce): Compute number of iterations as
5834 unsigned HOST_WIDE_INT.
5836 2002-03-10 Richard Henderson <rth@redhat.com>
5838 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
5839 to move away from the end of the block.
5841 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
5843 PR preprocessor/5899
5844 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
5846 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5848 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
5850 * attribs.c (decl_attributes): Fix signed/unsigned warning.
5852 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
5854 * config/mmix/mmix.c: Improve comments.
5855 (mmix_target_asm_function_prologue): Drop variable
5856 empty_stack_frame. Don't allocate unused slot above fp.
5857 (mmix_target_asm_function_epilogue): Mirror prologue changes.
5858 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
5859 brace in first column.
5860 (enum reg_class): Ditto.
5861 (FIRST_PARM_OFFSET): Now 0.
5862 (USER_LABEL_PREFIX): Remove #if 0:d definition.
5864 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5866 * combine.c (make_extraction): Fix error in last change.
5868 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5870 * c4x.c (c4x_fp_reglist): Const-ify.
5871 * cris.c (cris_print_operand): Likewise.
5872 * i386.c (ix86_va_arg): Likewise.
5873 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
5874 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
5875 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
5876 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
5877 * mcore.h (regno_reg_class): Likewise.
5878 * mips.c (gen_int_relational): Likewise.
5879 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
5880 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
5881 * pdp11.c (move_costs): Likewise.
5882 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
5883 * s390.c (s390_branch_condition_mnemonic, regclass_map):
5885 * s390.h (regclass_map): Likewise.
5886 * sh.c (shift_amounts): Likewise.
5887 * sh.md (rotlsi3): Likewise.
5889 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
5891 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
5892 (ne0+5): Use new clobber to generate proper shift pattern.
5893 Patch by Michael Matz <matz@kde.org>.
5895 2002-03-09 Andreas Schwab <schwab@suse.de>
5897 * gcc.c (validate_all_switches): Also handle `%W{...}'.
5899 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
5901 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
5903 2002-03-09 Jakub Jelinek <jakub@redhat.com>
5906 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
5907 even for non-representable constants.
5909 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5911 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
5912 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
5913 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
5914 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
5915 (pop_function_context): Compute MAY_SHARE parameter for
5917 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
5918 (gen_mem_addressof): Call fixup_var_refs with new parm.
5920 * combine.c (make_extraction): Don't make extension of CONST_INT.
5922 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
5924 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
5925 in o32 and o64 ABIs.
5926 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
5927 but getting fixed-size structs passed in registers regardless of
5928 padding in o32 and o64 ABIs.
5930 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
5931 offset before loading address of argument passed by transparent
5934 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
5936 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
5938 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
5940 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
5941 marker such that registers after it are saved.
5943 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5945 * sparc.c (arith_4096_operand): Fix error in last change.
5947 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
5949 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
5952 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
5954 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
5957 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
5959 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
5961 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
5963 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
5964 removed; fix return value.
5965 * combine.c (combine_instructions): Dirtify blocks where we failed to
5966 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
5967 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
5969 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5971 * gcse.c (insert_insn_end_bb): Fix typo in last change.
5973 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
5975 * recog.c (peephole2_optimize): Re-distribute EH edges.
5977 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
5979 * expr.c (expand_expr): Use unsave lang hook.
5980 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
5981 (LANG_HOOKS_INITIALIZER): Update.
5982 * langhooks.h (struct lang_hooks): New hook unsave.
5983 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
5984 (unsave_expr_1): Remove unused lang_unsave_expr_now.
5985 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
5986 (unsave_expr_now): Remove.
5987 * tree.h (unsave_expr_now, lang_unsave,
5988 lang_unsave_expr_now): Remove.
5991 2002-03-08 Andreas Jaeger <aj@suse.de>
5993 * flow.c (propagate_block_delete_insn): Remove unused variable.
5995 2002-03-08 Kazu Hirata <kazu@hxi.com>
5997 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
5998 insn length for memory load/store.
6000 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
6002 * doc/install.texi (--with-libiconv-prefix): Document.
6004 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
6006 * doc/sourcebuild.texi: Fix typo.
6008 2002-03-08 Jakub Jelinek <jakub@redhat.com>
6011 * builtins.c (std_expand_builtin_va_arg): Do all computations on
6014 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6016 * rtl.c (copy_most_rtx): Move from here ...
6017 * emit-rtl.c (copy_most_rtx): ... to here.
6019 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
6021 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
6022 SUBTARGET_CPP_SIZE_SPEC.
6023 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
6025 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
6027 2002-03-07 Matt Hiller <hiller@redhat.com>
6029 * gensupport.c (first_dir_md_include): Renamed from include;
6030 change all references.
6031 (last_dir_md_include): Renamed from last_include; change all
6033 (init_md_reader): Unconditionally initialize base_dir whether or
6034 not filename is a relative path.
6036 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
6038 * config/fp-bit.c (_unord_f2): Compile it in even if
6039 US_SOFTWARE_GOFAST is enabled.
6041 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
6042 NULL_RTX. Set all HFmode operations as NULL_RTX.
6043 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
6044 NULL_RTX, try reversing the comparison and the operands.
6046 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
6048 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
6049 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
6052 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
6054 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
6056 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
6058 * basic-block.h (fixup_abnormal_edges): Declare.
6059 * reload1.c (fixup_abnormal_edges): New function.
6060 * reg-stack.c (convert_regs): Use it.
6062 * gcse.c (insert_insn_end_bb): Handle trapping insns.
6064 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
6066 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
6068 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
6069 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
6070 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
6071 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
6072 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
6073 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
6074 unless x and y could be infinite.
6075 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
6076 Check that the common type of both arguments is a real, even for
6077 targets without unordered comparisons. Allow an integer argument
6078 to be compared against a real.
6079 (expand_tree_builtin): Use expand_unordered_cmp.
6080 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
6081 * cse.c (fold_rtx): Likewise. Fix indentation.
6082 * fold-const.c (fold_real_zero_addition_p): New.
6083 (fold): Use it, and the new HONOR_... macros.
6084 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
6085 * jump.c (reversed_comparison_code_parts): After searching for
6086 the true comparison mode, use HONOR_NANS to decide whether it
6087 can be safely reversed.
6088 (reverse_condition_maybe_unordered): Remove IEEE check.
6089 * simplify-rtx.c (simplify_binary_operation): Use the new macros
6090 to decide which simplifications are valid. Allow the following
6091 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
6092 and (a - -b) to (a + b).
6093 (simplify_relational_operation): Use HONOR_NANS.
6094 * doc/tm.texi: Document the MODE_HAS_... macros.
6096 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
6098 * combine.c (simplify_comparison): If simplifying a logical shift
6099 right and compare with constant, force the comparison to unsigned.
6101 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
6103 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
6105 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
6107 (alt_reg_names): Remove % for vrsave.
6109 2002-03-06 Richard Henderson <rth@redhat.com>
6111 PR optimization/5844
6112 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
6113 if used indicates we've already emitted one copy of an operand.
6114 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
6115 (gen_split): Supply a non-null used.
6117 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
6119 * reload1.c (reload): Unshare all rtl after reload is done.
6121 * simplify-rtx.c (simplify_plus_minus): Do not abort,
6122 but simply fail if the expression is too complex to simplify.
6123 (simplify_gen_binary): Handle simplify_plus_minus failures.
6125 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
6127 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
6128 consistently call delete_trivially_dead_insns after CSE and GCSE;
6129 fix DFI_life dumping; do jump threading after liveness; do crossjumping
6130 after liveness2; update comment in last crossjumping.
6131 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
6133 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
6135 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
6136 after completing fast dead code elimination.
6138 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
6141 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
6143 * version.c: Fix misplaced leading blanks on first line.
6145 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
6147 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
6149 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
6151 * cfgcleanup.c (mentions_nonequal_regs): New function.
6152 (thread_jump): Use it.
6153 * toplev.c (rest_of_compilation): Run jump threading after
6156 2002-03-06 Jakub Jelinek <jakub@redhat.com>
6158 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
6161 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
6163 * predict.c (estimate_bb_frequencies): Do not reload the
6164 frequencies from notes.
6166 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
6168 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
6169 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
6171 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
6172 delete_noop_moves): Return indeger.
6173 * flow.c (ndead): New variable.
6174 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
6175 BB argument; update callers.
6176 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
6177 (life_analysis): Do not call purge_all_dead_edges.
6178 (update_life_info): Return number of deleted insns; print statistics.
6179 (update_life_info_in_dirty_blocks): likewise.
6180 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
6181 return number of insns deleted.
6183 * cse.c: Include timevar.h
6184 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
6185 iterate until stabilizes; print statistics; return number of killed
6187 * Makefile.in: (cse.o): Add timevar.h dependency
6188 * rtl.h (delete_trivially_dead_insns): New.
6189 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
6190 * toplev.c (rest_of_compilation): Update callers.
6192 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
6193 (try_optimize_cfg): Do not update liveness.
6194 (cleanup-cfg): Loop until try_optimize_cfg and dead code
6195 removal stabilizes; use delete_trivially_dead_insns.
6197 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
6199 2002-03-05 Zack Weinberg <zack@codesourcery.com>
6201 * cppmain.c (setup_callbacks): Disable #pragma and #ident
6202 callbacks when processing assembly language.
6204 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
6206 * pa.h (ASM_FILE_END): Define.
6207 * som.h (ASM_FILE_END): Delete.
6209 * pa.c (function_arg): Don't pass floats in general registers in
6210 indirect calls if TARGET_ELF32.
6212 2002-03-05 Richard Henderson <rth@redhat.com>
6214 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
6216 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
6218 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
6220 2002-03-05 Jakub Jelinek <jakub@redhat.com>
6222 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
6223 -r command line. Don't hide any symbols if not building
6226 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
6228 * cfg.c (dump_flow_info): Warn about profile mismatches.
6229 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
6230 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
6232 2002-03-05 Jakub Jelinek <jakub@redhat.com>
6234 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
6235 wide volatile memory by parts.
6237 2002-03-05 Jakub Jelinek <jakub@redhat.com>
6239 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
6242 2002-03-05 Richard Henderson <rth@redhat.com>
6244 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
6246 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
6248 * toplev.c (documented_lang_options): Document more
6249 language-specific options.
6250 * doc/invoke.texi (Warning Options): Correct documentation for
6251 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
6252 * c-decl.c (c_decode_option): Use a table to handle warning options.
6254 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
6256 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
6257 parameter to mmix_encode_section_info.
6258 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
6259 relocatably. Always produce ELF, not mmo if linking relocatably.
6260 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
6261 first is non-zero, don't add symbol prefix.
6262 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
6263 prototype accordingly.
6265 2002-03-04 Krister Walfridsson <cato@df.lth.se>
6267 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
6269 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
6271 * configure.in: Increase required makeinfo version to 4.1.
6272 * configure: Regenerate.
6274 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
6276 * .cvsignore: Remove *.info* and genrtl*; these files are generated
6279 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
6281 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
6282 * doc/invoke.texi: Fix @math uses.
6284 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
6286 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
6289 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
6291 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
6292 (powerpc-*-eabisimaltivec*): Same.
6294 * config/rs6000/t-ppcendian: New.
6296 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6298 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
6299 nonimmediate_src_operand and nonimmediate_lsrc_operand to
6300 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
6302 2002-03-03 Richard Henderson <rth@redhat.com>
6304 * toplev.c (rest_of_decl_compilation): Revert last two changes.
6306 2002-03-03 Zack Weinberg <zack@codesourcery.com>
6308 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
6309 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
6310 tree.c, config/m68k/m68k.c:
6311 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
6312 REAL_ARITHMETIC blocks unconditional. Delete some further
6313 #ifdef blocks predicated on REAL_ARITHMETIC.
6314 * flags.h, toplev.c: Delete remaining references to
6317 * doc/invoke.texi: Remove documentation of -fpretend-float.
6318 * doc/tm.texi: Describe the various REAL_* macros as provided by
6319 real.h, not by the target configuration files.
6321 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
6322 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
6323 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
6324 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
6325 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
6326 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
6327 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
6328 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
6329 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
6330 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
6331 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
6332 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6333 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
6334 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
6335 config/xtensa/xtensa.h:
6336 Do not define, undefine, or mention in comments any of
6337 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
6338 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
6339 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
6340 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
6341 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
6342 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
6343 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
6344 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
6345 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
6347 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6349 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
6350 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
6351 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
6352 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
6353 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
6354 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
6356 * defaults.h (BITS_PER_WORD): Define.
6357 * doc/tm.texi (BITS_PER_WORD): Document default value.
6359 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
6360 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
6361 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
6363 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6365 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
6366 lieu of explicit sizeof/sizeof.
6367 * i386.c (override_options, ix86_init_mmx_sse_builtins,
6368 ix86_expand_builtin): Likewise.
6369 * mips.c (mips_add_gc_roots): Likewise.
6370 * mmix.c (mmix_output_condition): Likewise.
6371 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
6372 altivec_init_builtins): Likewise.
6373 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
6374 * cppexp.c (Nsuff, parse_number): Likewise.
6375 * cppinit.c (builtin_array_end): Likewise.
6376 * gcc.c (n_default_compilers, process_command): Likewise.
6377 * genpreds.c (output_predicate_decls): Likewise.
6378 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
6379 * lcm.c (N_ENTITIES): Likewise.
6380 * stor-layout.c (set_sizetype): Likewise.
6382 2002-03-03 Richard Henderson <rth@redhat.com>
6384 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
6385 for types or labels.
6387 2002-03-03 Richard Henderson <rth@redhat.com>
6389 * c-decl.c (start_decl): Initialized variables are not common.
6391 2002-03-02 Per Bothner <per@bothner.com>
6393 * gcc.c (option_map): Suport new --bootclasspath option.
6394 --CLASSPATH is now just an alias for --classpath.
6396 2002-03-02 Richard Henderson <rth@redhat.com>
6398 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
6399 load if "internal" visibility.
6400 * doc/extend.texi: Document visibility meanings.
6402 2002-03-02 Richard Henderson <rth@redhat.com>
6404 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
6405 to functions as well.
6407 2002-03-02 Richard Henderson <rth@redhat.com>
6409 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
6410 (handle_visibility_attribute): Don't call assemble_visibility.
6411 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
6412 without asmspec. Invoke assemble_alias when needed.
6413 * varasm.c (maybe_assemble_visibility): New.
6414 (assemble_start_function, assemble_variable, assemble_alias): Use it.
6416 2002-03-02 Richard Henderson <rth@redhat.com>
6418 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
6419 invoke ENCODE_SECTION_INFO with first call flag.
6421 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6422 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6423 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
6424 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
6425 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6426 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
6427 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
6428 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
6429 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
6430 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
6431 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
6432 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
6433 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6434 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
6435 config/mcore/mcore-protos.h, config/mcore/mcore.c,
6436 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
6437 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
6438 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
6439 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
6440 config/sh/sh.h, config/sparc/sparc.h,
6441 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
6442 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
6443 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
6444 FIRST argument. As needed, examine it and do nothing.
6446 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
6447 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
6448 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
6450 * config/arm/t-pe (pe.o): Add dependencies.
6452 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6454 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
6455 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
6456 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
6457 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
6458 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
6459 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
6460 * defaults.h (BITS_PER_UNIT): Define.
6461 * doc/tm.texi (BITS_PER_UNIT): Document default value.
6463 2002-03-02 Kazu Hirata <kazu@hxi.com>
6465 * config/h8300/h8300-protos.h: Add a prototype for
6466 compute_a_shift_length.
6467 * config/h8300/h8300.c (h8300_asm_insn_count): New.
6468 (compute_a_shift_length): Likewise.
6469 (h8300_adjust_insn_length): Do not adjust insn length of shift
6471 * config/h8300/h8300.md (anonymous shift patterns): Use
6472 compute_a_shift_length.
6474 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6476 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
6479 * emit-rtl.c (offset_address): Call update_temp_slot_address.
6481 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6483 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
6484 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
6485 * flags.h (flag_zero_initialized_in_bss): Declare.
6486 * toplev.c (flag_zero_initialized_in_bss): New flag.
6487 (lang_independent_options): Add flag_zero_initialized_in_bss.
6488 * tree.c (initializer_zerop): New function.
6489 * tree.h (initializer_zerop): Declare.
6490 * varasm.c (assemble_variable): If we can emit bss, put zero
6491 initializers in the bss section.
6493 2002-03-02 Alan Modra <amodra@bigpond.net.au>
6495 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
6496 like more than one symbol per .weak directive.
6498 2002-03-01 Richard Henderson <rth@redhat.com>
6500 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
6501 adjust argument_pointer by pretend_args_size.
6502 (ia64_va_start): Adjust va_start address by -pretend_args_size.
6504 2002-03-01 Kazu Hirata <kazu@hxi.com>
6506 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
6508 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
6510 * toplev.c (rest_of_compilation): Delete dead jumptables before
6512 * flow.c (delete_dead_jumptables): Make global.
6513 * rtl.h (delete_dead_jumptables): Declare.
6515 2002-03-01 David Edelsohn <edelsohn@gnu.org>
6517 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
6518 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
6519 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
6521 2002-03-01 Kazu Hirata <kazu@hxi.com>
6523 * config/h8300/h8300-protos.h: Fix formatting.
6524 * config/h8300/h8300.c: Likewise.
6525 * config/h8300/h8300.h: Likewise.
6527 2002-03-01 Kazu Hirata <kazu@hxi.com>
6529 * config/h8300/h8300.c (print_operand): Support 16-bit
6531 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
6533 2002-02-28 Richard Henderson <rth@redhat.com>
6535 * expmed.c (store_bit_field): Prevent generation of CONCATs;
6536 pun complex values as integers; use gen_lowpart instead of
6538 (extract_bit_field): Likewise.
6540 2002-03-01 Alan Modra <amodra@bigpond.net.au>
6541 David Edelsohn <edelsohn@gnu.org>
6543 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
6544 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
6545 (SUPPORTS_WEAK): Likewise.
6546 * output.h (add_weak): Add tree param.
6547 * varasm.c (add_weak): Likewise. Save decl.
6548 (struct weak_syms): Add decl field.
6549 (mark_weak_decls): New function.
6550 (init_varasm_once): ggc_add_root mark_weak_decls.
6551 (assemble_start_function): Use ASM_WEAKEN_DECL.
6552 (assemble_variable): Likewise.
6553 (assemble_alias): Likewise.
6554 (declare_weak): Pass decl to add_weak.
6555 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
6556 (remove_from_pending_weak_list): Declare and define for
6558 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
6559 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
6560 * defaults.h (SUPPORTS_WEAK): Likewise.
6561 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6562 .weak for code sym. Do emit .size for descriptor sym.
6563 (ASM_DECLARE_FUNCTION_SIZE): Define.
6564 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
6565 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
6566 .lglobl unless TARGET_XCOFF. Formatting fixes.
6567 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6569 (HANDLE_PRAGMA_WEAK): Remove.
6570 (ASM_WEAKEN_LABEL): Remove.
6571 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
6573 2002-03-01 Jason Merrill <jason@redhat.com>
6575 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
6576 (TARGET_EXPR_CLEANUP): New macro.
6578 2002-02-28 Steve Ellcey <sje@cup.hp.com>
6580 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
6581 to take ptr_extend into account as third type of extension.
6582 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
6583 fields used by SUBREG_PROMOTED_UNSIGNED_P.
6584 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
6585 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
6586 * calls.c (precompute_arguments): Use new macro.
6587 (expand_call): Ditto.
6588 * combine.c (nonzero_bits): Ditto.
6589 (record_promoted_value): Ditto.
6590 * expr.c (store_expr): Ditto.
6591 (expand_expr): Ditto.
6592 * function.c (assign_parms): Ditto.
6594 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
6596 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
6597 override -shared and -shared-libgcc.
6599 2002-02-28 David O'Brien <obrien@FreeBSD.org>
6601 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
6603 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
6606 2002-02-28 Richard Henderson <rth@redhat.com>
6608 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
6609 4 cycle latency from MM producers.
6610 (ia64_internal_sched_reorder): Likewise with pipeline flush.
6612 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6614 * mklibgcc.in: Don't use GNU make extension.
6616 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
6618 * c-parse.in (STATIC): New terminal.
6619 (scspec): New non-terminal. Update productions accordingly.
6620 (program): Remove bogus ifc / end ifc.
6621 (array_declarator): Simplify production using STATIC.
6623 2002-02-28 Jim Meyering <meyering@lucent.com>
6625 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
6626 \a still means TARGET_BELL.
6628 2002-02-28 Richard Henderson <rth@redhat.com>
6630 * haifa-sched.c (sched_emit_insn): New.
6631 (schedule_block): Use last_scheduled_insn to track last insn.
6632 * sched-int.h (sched_emit_insn): Prototype.
6633 * config/ia64/ia64.c (last_issued): Remove.
6634 (ia64_variable_issue): Don't set it.
6635 (nop_cycles_until): Use sched_emit_insn.
6637 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
6639 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
6642 2002-02-28 Kazu Hirata <kazu@hxi.com>
6644 * config/h8300/h8300.c: Fix formatting.
6645 * config/h8300/h8300.h: Likewise.
6647 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
6649 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
6650 which may overwrite the high byte of the frame pointer.
6652 2002-02-28 Bo Thorsen <bo@suse.de>
6654 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
6655 (STARTFILE_SPEC): Add 64 bit files.
6656 (ENDFILE_SPEC): Likewise.
6658 2002-02-28 Jason Merrill <jason@redhat.com>
6660 * c-decl.c (finish_function): Only warn about missing return
6661 statement with -Wreturn-type.
6663 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
6665 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
6667 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
6668 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
6670 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
6672 * basic-block.h (BB_REACHABLE): Renumber.
6673 (BB_DIRTY, BB_NEW): New flags.
6674 (clear_bb_flags): Declare.
6675 (update_life_info_in_dirty_blocks): Declare.
6676 * cfg.c (clear_bb_flags): New function.
6677 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
6678 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
6679 reorder_insns, emit_insn_after): Mark block as dirty.
6680 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
6681 (update_life_info_in_dirty_blocks): New function.
6682 * recog.c (apply_change_group): Dirtify block.
6684 * cse.c (cse_insn): Reorder emitting of jump insn to keep
6686 * gcse.c (delete_null_pointer_checks): Likewise.
6688 * toplev.c (dump_file_index): Move cse2 after bp,
6690 (dump_file_info): Similary.
6691 (rest_of_compilation): Avoid most of CFG rebuilds;
6692 do first if converision after null pointer checks, do cse2
6693 after branch prediction; avoid full liveness rebuild after
6694 initializing subregs.
6695 * invoke.texi (-d options): Document -du, renumber.
6697 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
6698 (notice_new_block): Do not set BB_UPDATE_LIFE.
6699 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
6700 merge_blocks_move_successor_nojumps, merge_blocks,
6701 try_crossjump_to_edge): Likewise.
6702 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
6703 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
6704 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
6705 (merge_of_block): Do not use life_data_ok.
6706 (find_if_case_1): Do not use SET_UPDATE_LIFE.
6707 (if_convert): Use BB_DIRTY mechanizm to update life.
6708 * lcm.c (optimize_mode_switching): Update
6709 update_life_info_in_dirty_blocks
6711 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
6713 * Makefile.in (integrate.o): Update.
6714 * c-decl.c (copy_lang_decl): Rename.
6715 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6716 * integrate.c: Include langhooks.h.
6717 (copy_decl_for_inlining): Update to use langhook.
6718 * langhooks-def.h (lhd_do_nothing_t,
6719 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
6720 (LANG_HOOKS_INITIALIZER): Update.
6721 * langhooks.c (lhd_do_nothing_t): New.
6722 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
6723 * tree.h (copy_lang_decl): Remove.
6725 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6727 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
6729 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
6730 POST_DEC, and POST_MODIFY.
6732 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6734 * c-typeck.c (digest_init): Remove unused parameter; all
6737 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
6739 * expmed.c (expand_shift): Correctly test for low part of a
6742 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
6744 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
6745 insn UIDs with insn addresses.
6747 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6749 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
6750 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
6751 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
6752 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
6753 gcc.c, toplev.c: Delete code implementing -traditional mode.
6755 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
6756 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
6757 Document removal of -traditional mode for compilation, and
6758 remove documentation only relevant to that mode.
6760 * config/nextstep.h, config/ptx4.h, config/svr4.h,
6761 config/convex/convex.h, config/d30v/d30v.h,
6762 config/i386/dgux.h, config/i386/osf1elf.h,
6763 config/i386/osfelf.h, config/i386/osfrose.h,
6764 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
6765 config/m68k/hp310.h, config/m88k/dgux.h,
6766 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
6767 config/m88k/m88k.h, config/m88k/openbsd.h,
6768 config/mips/abi64.h, config/mips/osfrose.h,
6769 config/mips/svr4-5.h, config/mips/svr4-t.h,
6770 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6771 config/stormy16/stormy16.h: Remove all references to
6772 -traditional from target specs. Delete all mention of the
6773 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
6774 delete a couple of commented-out definitions of
6775 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
6778 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
6779 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
6781 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6783 * mklibgcc.in: Don't use \n in a line subject to
6784 interpretation by echo.
6786 2002-02-27 Graham Stott <grahams@redhat.com>
6788 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
6791 * loop.c (prescan_loop): Handle PARALLEL.
6793 * unroll.c (loop_iterations): Return 0 if the add_val for
6796 * final.c (output_operand_lossage): Constify PFX_STR.
6798 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
6800 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
6802 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
6803 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
6805 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
6807 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6809 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
6811 * cpplex.c (_cpp_lex_token): Handle directives in macro
6813 * cpplib.c (_cpp_handle_directive): Save and restore state
6814 if parsing macro args when entering a directive.
6815 * cppmacro.c (collect_args): No need to handle directives
6817 (enter_macro_context, replace_args): Use the original macro
6818 definition in case it was redefined whilst collecting arguments.
6822 2002-02-26 David Edelsohn <edelsohn@gnu.org>
6824 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
6825 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
6826 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
6828 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
6829 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
6830 (load_toc_v4_PIC_2): Same.
6832 2002-02-26 Alan Modra <amodra@bigpond.net.au>
6834 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
6836 2002-02-26 Richard Henderson <rth@redhat.com>
6838 * config/alpha/alpha.md (ashldi_se): Re-enable.
6840 2002-02-26 Richard Henderson <rth@redhat.com>
6842 * config/alpha/alpha.c (alpha_encode_section_info): Examine
6843 MODULE_LOCAL_P; improve commentary.
6845 2002-02-26 Zack Weinberg <zack@codesourcery.com>
6847 * doc/cpp.texi: Clarify documentation of relationship between
6850 2002-02-26 Kazu Hirata <kazu@hxi.com>
6852 * config/h8300/h8300-protos.h: Update the prototype for
6853 compute_logical_op_length. Add the prototype for
6854 compute_logical_op_cc.
6855 * config/h8300/h8300.c (compute_logical_op_length): Figure out
6857 (compute_logical_op_cc): New.
6858 * config/h8300/h8300.md: Combine all the logical op patterns
6859 in HImode and SImode. Use compute_logical_op_cc.
6861 2002-02-26 Kelley Cook <kelleycook@comcast.net>
6863 * config/i386/i386.c (print_operand): Don't append ATT-style
6864 length suffixs to x87 opcodes when in Intel mode.
6866 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
6868 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
6869 (init_emit_once): Update calls.
6870 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
6871 (init_syntax_once): Prototype.
6873 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
6875 * pa-linux.h (LIB_SPEC): Update definition.
6876 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6878 2002-02-26 Richard Henderson <rth@redhat.com>
6880 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
6881 if we emitted a stop bit.
6883 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6885 * configure.in (libgcc_visibility): Substitute.
6886 * configure: Rebuilt.
6887 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
6888 defined symbols .hidden.
6890 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6892 * attribs.c (c_common_attribute_table): Add visibility.
6893 (handle_visibility_attribute): New function.
6894 * varasm.c (assemble_visibility): New function.
6895 * output.h (assemble_visibility): Add prototype.
6896 * tree.h (MODULE_LOCAL_P): Define.
6897 * crtstuff.c (__dso_handle): Use visibility attribute.
6898 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
6899 for MODULE_LOCAL_P symbols too.
6900 * config/ia64/ia64.c (ia64_encode_section_info): Handle
6901 MODULE_LOCAL_P symbols the same way as local symbols.
6902 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
6903 into .sdata/.sbss by the user.
6904 * doc/extend.texi (Function Attributes): Document visibility
6907 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6910 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
6911 STRING_CST initializer spanning the whole variable without
6913 If expand_expr returned MEM, don't use it.
6915 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
6917 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
6918 generate a die for the lexical block.
6920 2002-02-26 Kazu Hirata <kazu@hxi.com>
6922 * config/h8300/h8300-protos.h: Add a prototype for
6923 compute_logical_op_length.
6924 * config/h8300/h8300.c (compute_logical_op_length): New.
6925 * config/h8300/h8300.md (anonymous logical patterns): Use
6926 compute_logical_op_length for length.
6928 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6930 * dwarf2out.c (modified_type_die): Do not call type_main_variant
6932 (gen_type_die): Same.
6934 * attribs.c (handle_vector_size_attribute): Set debug information.
6936 2002-02-26 Daniel Egger <degger@fhm.edu>
6938 * config/rs6000/rs6000.md: Swap define_insn attributes to
6939 fix incorrect generation of merge high instructions instead
6942 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6944 * c-typeck.c (really_start_incremental_init): Use
6945 bitsize_zero_node for vectors.
6947 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6949 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
6950 ("*set_vrsave_internal"): Same.
6952 2002-02-25 Richard Henderson <rth@redhat.com>
6954 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
6955 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
6957 2002-02-25 Jakub Jelinek <jakub@redhat.com>
6960 * config/i386/i386.c (ix86_return_pops_args): Only pop
6961 fake structure return argument if it was passed on the stack.
6963 2002-02-25 Jason Merrill <jason@redhat.com>
6965 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
6968 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
6970 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
6971 link with shared_name only.
6972 * doc/invoke.texi (Link Options): Document new behavior.
6974 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
6976 * c-typeck.c (push_init_level): Handle vectors.
6978 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
6980 * config/sparc/sparc.c (const64_high_operand): Zero-extend
6981 operands of SPARC_SETHI_P.
6982 (input_operand): Likewise.
6983 (sparc_emit_set_const32): Likewise.
6984 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
6985 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
6986 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
6987 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
6988 (movdi_insn_sp64_vis): Likewise.
6989 (movdi split, movdf split): Use SETHI32.
6990 * doc/md.texi: Document SPARC constraints L, M and N.
6992 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
6994 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
6995 ("*set_vrsave_internal"): use mfspr for Darwin.
6997 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
6998 gen_get_vrsave_internal.
7000 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7002 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
7004 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
7006 * cpplex.c (cpp_interpret_charconst): Get signedness or
7007 otherwise of wide character constants correct.
7008 * cppexp.c (lex): Get signedness of wide charconsts correct.
7010 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7012 * optabs.c (widen_operand): Only call convert_modes for
7013 promoted SUBREG if signedness matches.
7014 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
7016 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
7018 * cpplib.c (glue_header_name): Use local buffer to build up
7021 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
7023 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
7025 2002-02-23 Kazu Hirata <kazu@hxi.com>
7027 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
7028 H8/300[HS] separately.
7029 * config/h8300/h8300.md: Remove the early clobber constraint
7030 from bit field patterns.
7032 2002-02-23 Kazu Hirata <kazu@hxi.com>
7034 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
7036 (mulhisi3): Likewise.
7037 (umulqisi3): Likewise.
7038 (umulhisi3): Likewise.
7040 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
7042 * cppinit.c (output_deps): Correct test for stdout output.
7043 (init_dependency_output): Cure warning.
7045 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7047 * expr.c (store_expr): When converting expression to promoted
7048 equivalent type, allow using SUBREG_REG of TARGET as the target
7049 of the expansion of EXP.
7050 * loop.c (basic_induction_var, case SUBREG): Always look inside.
7051 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
7052 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
7053 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
7054 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
7056 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
7058 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
7059 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
7060 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
7062 2002-02-23 Jakub Jelinek <jakub@redhat.com>
7064 PR optimization/5747
7065 * loop.c (scan_loop): Update reg info if move_movables created new
7068 2002-02-23 David Edelsohn <edelsohn@gnu.org>
7070 * gcc.c (init_gcc_spec): Revert last change.
7072 2002-02-23 David Edelsohn <edelsohn@gnu.org>
7074 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
7075 gpc_reg_operand constraint.
7077 2002-02-23 Alan Modra <amodra@bigpond.net.au>
7079 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
7080 Simplify comparison of `low'.
7081 (add_operand): Fix formatting.
7082 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
7083 (mask_operand): Disallow mask to wrap in 64-bit mode.
7084 (rs6000_stack_info): Remove redundant test setting push_p.
7085 (output_toc): Fix formatting.
7086 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
7087 cc_reg_not_cr0_operand constraint.
7088 (booldi3, boolcdi3 splitters): Same.
7090 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
7092 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
7094 2002-02-22 David Edelsohn <edelsohn@gnu.org>
7096 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
7097 gcc invoked with -shared-libgcc.
7099 2002-02-22 Jakub Jelinek <jakub@redhat.com>
7102 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
7103 decl if any of elements was TREE_USED.
7105 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
7107 * config/sparc/sol2.h: Don't include sys/mman.h.
7108 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
7109 (arith_4096_operand): Don't throw high bits away.
7110 (const64_operand): Take sign extension of CONST_INTs into account.
7111 (const64_high_operand, sparc_emit_set_const32): Likewise.
7112 (GEN_HIGHINT64): Likewise.
7113 (sparc_emit_set_const64_quick1): Likewise.
7114 (const64_is_2insns): Likewise.
7115 (print_operand): Use trunc_int_for_mode for sign extension.
7116 * config/sparc/sparc.h (SMALL_INT32): Likewise.
7117 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
7118 chars. Assume CONST_INT is already properly sign-extended.
7119 (movdi split): Sign-extend each SImode part.
7120 (andsi3 split): Don't mask high bits off, so that result
7121 remains properly sign-extend.
7122 (iorsi3 split): Likewise.
7123 (xorsi3 split): Likewise.
7125 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
7127 * fold-const.c (fold): Fix typo in comments.
7129 2002-02-21 Diego Novillo <dnovillo@redhat.com>
7131 * Makefile.in (langhooks.o): Update dependencies.
7133 2002-02-21 Diego Novillo <dnovillo@redhat.com>
7135 * langhooks.c: Include flags.h.
7137 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
7139 * testsuite/gcc.dg/attr-alwaysinline.c: New.
7141 * c-common.c (c_common_post_options): Set inline trees by
7144 * doc/extend.texi (Function Attributes): Document always_inline
7146 Update documentation about inlining when not optimizing.
7148 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
7150 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
7151 unless DECL_ALWAYS_INLINE.
7153 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
7154 unless DECL_ALWAYS_INLINE.
7155 (c_disregard_inline_limits): Disregard if always_inline set.
7157 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
7158 Disregard if always_inline set.
7159 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
7160 unless DECL_ALWAYS_INLINE.
7162 * attribs.c (handle_always_inline_attribute): New.
7163 (c_common_attribute_table): Add always_inline.
7165 * config/rs6000/altivec.h: Add prototypes for builtins
7166 requiring the always_inline attribute.
7168 2002-02-21 Eric Christopher <echristo@redhat.com>
7170 * expmed.c (store_bit_field): Try to simplify the subreg
7171 before generating a new one when when the mode size of
7172 value is less than maxmode.
7174 2002-02-21 Richard Henderson <rth@redhat.com>
7176 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
7177 than gen_rtx_PLUS to form the sum.
7178 * explow.c (force_reg): Rearrange to not allocate new pseudo
7179 when force_operand returns a register.
7180 * expr.c (expand_assignment): Allow offset_rtx expansion to
7181 return a sum. Do not force addresses into registers.
7182 (expand_expr): Likewise.
7183 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
7184 to canonicalize arithmetic that didn't simpify.
7185 (simplify_plus_minus): New argument force; update
7186 all callers. Don't split CONST unless we can do something with it,
7187 and wouldn't lose the constness of the operands.
7189 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
7190 that we generated earlier.
7192 2002-02-21 Tom Tromey <tromey@redhat.com>
7194 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7195 (output_line_info): Use constant `1', with a long explanatory
7197 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
7199 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
7201 * jump.c (redirect_jump): If old label has no UID, don't try to
7204 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
7206 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
7207 If input is constant, do shifts at compile time.
7209 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
7211 * doc/extend.texi: Fix some more overfull hboxes.
7213 2002-02-21 Jakub Jelinek <jakub@redhat.com>
7215 PR optimization/4994
7216 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
7219 2002-02-21 Jakub Jelinek <jakub@redhat.com>
7222 * expr.h (expand_and): Add mode argument.
7223 * expmed.c (expand_and): Add mode argument.
7224 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
7225 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
7226 * except.c (expand_builtin_extract_return_addr): Likewise.
7227 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
7228 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
7229 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
7230 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
7231 * config/c4x/c4x.md: Use GEN_INT (x) instead of
7232 gen_rtx (CONST_INT, VOIDmode, x).
7234 2002-02-21 Jakub Jelinek <jakub@redhat.com>
7237 * stmt.c (warn_if_unused_value): Move side effects test once more.
7239 2002-02-20 Torbjorn Granlund <tege@swox.com>
7241 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
7242 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
7244 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
7246 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
7247 SUBREG or ZERO_EXTEND.
7249 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
7251 * sh.h (current_function_anonymous_args): Remove.
7252 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
7253 of current_function_varargs and current_function_stdarg is set.
7254 * sh.c (sh_expand_prologue): Check current_function_varargs /
7255 current_function_stdarg / TARGET_SH5 instead of
7256 current_function_anonymous_args.
7258 * sh64.h (TARGET_VERSION): Define.
7260 2002-02-20 David Edelsohn <edelsohn@gnu.org>
7262 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
7263 VRSAVE_REGNO on TARGET_ALTIVEC.
7265 2002-02-20 Alan Modra <amodra@bigpond.net.au>
7267 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
7268 bits of SImode const_int.
7269 (includes_rshift_p): Likewise.
7270 (print_operand): Call mask_operand and mask64_operand with correct
7272 (rs6000_output_function_epilogue): Pad traceback table to word.
7273 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
7274 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
7275 mask64_operand with correct mode.
7276 (FUNCTION_ARG_REGNO_P): Correct parentheses.
7278 2002-02-20 Jakub Jelinek <jakub@redhat.com>
7281 * varasm.c (get_pool_constant_mark): New.
7282 * rtl.h (get_pool_constant_mark): Add prototype.
7283 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
7284 be represented if it has not been output.
7286 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
7288 * combine.c (do_SUBST): Sanity check substitutions of
7289 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
7290 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
7291 CONST_INT into its operand.
7292 (known_cond): Likewise, for ZERO_EXTEND.
7293 * simplify-rtx.c (simplify_unary_operation): Fix condition to
7294 allow for simplification of wide modes. Reject CONST_INTs in
7295 ZERO_EXTEND when their actual mode is not given.
7297 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
7299 * c-decl.c (pushdecl): If no global declaration is found for an
7300 extern declaration in block scope, try a limbo one.
7302 2002-02-20 Jakub Jelinek <jakub@redhat.com>
7305 * c-common.c (pointer_int_sum): Moved from...
7306 * c-typeck.c (pointer_int_sum): ...here.
7307 * c-common.h (pointer_int_sum): Add prototype.
7309 2002-02-20 Jakub Jelinek <jakub@redhat.com>
7312 * c-decl.c (duplicate_decls): Return 0 if issued error about
7315 2002-02-20 Roger Sayle <roger@eyesopen.com>
7316 Jakub Jelinek <jakub@redhat.com>
7319 * tree.c (host_integerp): Ensure that the constant integer is
7320 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
7321 when pos is zero or non-zero respectively. Clarify comment.
7322 * c-format.c (check_format_info_recurse): Fix host_integerp
7323 usage; the pos argument should be zero when assigning to a
7324 signed HOST_WIDE_INT.
7326 2002-02-20 Richard Henderson <rth@redhat.com>
7328 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
7329 of the operand, rather than assuming TImode.
7330 (ix86_expand_binop_builtin): Cope with commutative patterns
7331 using nonimmediate_operand for both operands.
7332 (ix86_expand_timode_binop_builtin): Likewise.
7333 (ix86_expand_store_builtin): Validate operand 1.
7334 (ix86_expand_unop1_builtin): Likewise.
7336 2002-02-20 Philip Blundell <philb@gnu.org>
7339 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
7341 2002-02-20 Richard Henderson <rth@redhat.com>
7344 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
7346 2002-02-20 Tom Tromey <tromey@redhat.com>
7348 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7349 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7350 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7351 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7352 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
7355 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
7357 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
7358 for (const_int 0) in X not just INTVAL.
7360 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
7362 * doc/extend.texi: Avoid or reduce overfull hboxes.
7364 2002-02-20 Diego Novillo <dnovillo@redhat.com>
7366 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
7367 operations if the field does not start at a mode boundary.
7369 2001-02-20 Joel Sherrill <joel@OARcorp.com>
7371 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
7372 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
7373 Also done for -Acpu and -Amachine.
7375 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
7377 * cppinit.c (init_dependency_output): Take deps output file
7378 from -o if none given with -MF. Suppress normal output.
7379 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
7380 * doc/cpp.texi, doc/invoke.texi: Update.
7382 2002-02-19 Zack Weinberg <zack@codesourcery.com>
7384 * toplev.c (output_quoted_string): Write unprintable
7385 characters with octal escapes.
7387 2002-02-19 David Edelsohn <edelsohn@gnu.org>
7389 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
7390 really_call_used[VRSAVE_REGNO] if not Altivec.
7392 2002-02-19 Alan Modra <amodra@bigpond.net.au>
7394 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
7396 (constant_pool_expr_1): Fix formatting.
7397 (rs6000_legitimize_reload_address): Likewise.
7399 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7401 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
7402 now that we have one.
7404 2002-02-19 Zack Weinberg <zack@codesourcery.com>
7406 * tree.h (struct tree_common): Remove aux. Add unused_0 at
7407 end of first block of bitfields (which was only seven bits);
7408 rename dummy to unused_1; remove comment which is no longer true.
7410 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
7412 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
7414 2002-02-19 Philip Blundell <pb@nexus.co.uk>
7417 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
7421 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
7422 arm_is_longcall_p rather than inspecting call-type cookie
7424 (call_value_insn) [TARGET_THUMB]: Likewise.
7426 2002-02-19 Graham Stott <grahams@redhat.com>
7428 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
7430 2002-02-19 David Edelsohn <edelsohn@gnu.org>
7432 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
7433 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
7434 (FP_SAVE_INLINE): Delete.
7436 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
7437 * config/rs6000/eabi.asm: Remove ABI save restore routines.
7438 * config/rs6000/t-ppccomm: Build crtsavres.o.
7439 * config/rs6000/crtsavres.asm: New file.
7441 2002-02-19 Philip Blundell <philb@gnu.org>
7443 * config/arm/arm.c (use_return_insn): Don't reject interrupt
7445 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
7446 (output_return_instruction): Allow interrupt functions to return with
7447 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
7448 (arm_expand_prologue): Subtract 4 before stacking LR in an
7451 2002-02-19 Philip Blundell <pb@nexus.co.uk>
7453 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
7454 decl, not just FUNCTION_DECL.
7455 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
7456 (arm_assemble_integer): Likewise.
7457 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
7460 2002-02-19 matthew green <mrg@eterna.com.au>
7462 * config.gcc (sparc-*-netbsdelf*): Enable target.
7463 (sparc64-*-netbsd*): New target.
7464 * config/sparc/netbsd-elf.h: New file.
7465 * config/sparc/t-netbsd64: New file.
7467 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
7469 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
7471 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
7473 * doc/invoke.texi: explicitly list the style guidelines that
7474 -Weffc++ checks for.
7476 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
7478 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
7480 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
7483 * gcc.c (cpp_unique_options): Treat -o as indicating object file
7484 only if not -E. If -E, pass -o through to the preprocessor.
7486 2002-02-19 Kazu Hirata <kazu@hxi.com>
7488 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
7489 register number with an appropriate macro.
7491 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
7493 * doc/rtl.texi (Constants): Close @code tag.
7495 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
7497 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
7498 ("mmx_uavgv4hi3"): Same.
7499 ("pmulhrwv4hi3"): Same.
7501 * tree-inline.c (walk_tree): Handle vectors.
7503 * c-common.c (constant_expression_warning): Handle vectors.
7504 (overflow_warning): Same.
7506 * sched-deps.c (sched_analyze_2): Handle vectors.
7508 * rtlanal.c (rtx_unstable_p): Handle vectors.
7509 (rtx_varies_p): Same.
7510 (count_occurrences): Same.
7511 (regs_set_between_p): Same.
7512 (modified_between_p): Same.
7513 (modified_in_p): Same.
7514 (volatile_insn_p): Same.
7515 (volatile_refs_p): Same.
7516 (side_effects_p): Same.
7518 (inequality_comparisons_p): Same.
7519 (replace_regs): Same.
7520 (computed_jump_p_1): Same.
7522 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
7524 (inner_mode_array): New.
7525 (copy_rtx): Handle vectors.
7526 (copy_most_rtx): Same.
7527 (rtx_equal_p): Same.
7528 (get_mode_alignment): Adjust for vectors.
7530 * resource.c (mark_referenced_resources): Handle vectors.
7531 (mark_set_resources): Same.
7533 * reload1.c (eliminate_regs): Handle vectors.
7534 (elimination_effects): Same.
7535 (scan_paradoxical_subregs): Same.
7537 * reload.c (subst_reg_equivs): Handle vectors.
7539 * regrename.c (scan_rtx): Handle vectors.
7541 * regclass.c (reg_scan_mark_refs): Handle vectors.
7543 * recog.c (find_single_use_1): Handle vectors.
7545 * local-alloc.c (equiv_init_varies_p): Handle vectors.
7546 (contains_replace_regs): Same.
7547 (memref_referenced_p): Same.
7549 * integrate.c (copy_rtx_and_substitute): Handle vectors.
7550 (subst_constants): Same.
7552 * genattrtab.c (attr_copy_rtx): Handle vectors.
7553 (encode_units_mask): Same.
7554 (clear_struct_flag): Same.
7555 (count_sub_rtxs): Same.
7557 * gcse.c (want_to_gcse_p): Handle vectors.
7558 (oprs_unchanged_p): Same.
7559 (hash_expr_1): Same.
7560 (oprs_not_set_p): Same.
7561 (expr_killed_p): Same.
7562 (compute_transp): Same.
7563 (store_ops_ok): Same.
7565 * function.c (purge_addressof_1): Do not allow paradoxical subregs
7567 (fixup_var_refs_1): Same.
7568 (instantiate_virtual_regs_1): Same.
7570 * fold-const.c (operand_equal_p): Handle vectors.
7572 (rtl_expr_nonnegative_p): Same.
7574 * flow.c (mark_used_regs): Handle vectors.
7576 * df.c (df_uses_record): Handle vectors.
7578 * cselib.c (cselib_subst_to_values): Handle vectors.
7579 (cselib_mem_conflict_p): Same.
7582 * cse.c (canon_reg): Handle vectors.
7584 (cse_process_notes): Same.
7585 (count_reg_usage): Same.
7588 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
7590 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
7592 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
7593 (gen_rtx): Handle CONST_VECTOR.
7594 (gen_const_vector_0): New.
7595 (copy_rtx_if_shared): CONST_VECTORs can be shared.
7596 (reset_used_flags): Same.
7597 (copy_insn_1): Same.
7598 (initializer_constant_valid_p): Handle VECTOR_CST.
7600 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
7602 * doc/rtl.texi (Constants): Document const_vector.
7603 (CONST0_RTX): Update for vectors.
7604 (RTL sharing): Same.
7606 * print-tree.c (print_node): Add case for VECTOR_CST.
7608 * tree.h (TREE_VECTOR_CST_ELTS): New.
7609 (struct tree_vector): New.
7610 (union tree_node): Add vector node.
7611 (build_vector): Add prototype.
7613 * tree.def (VECTOR_CST): New.
7615 * tree.c (build_vector): New.
7617 * expmed.c (make_tree): Handle CONST_VECTOR.
7619 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
7620 (CONST_VECTOR_ELT): New.
7621 (CONST_VECTOR_NUNITS): New.
7623 * machmode.h (GET_MODE_INNER): New.
7624 (DEF_MACHMODE): Accept 8th arg.
7626 * machmode.def: Add 8th argument for vector inner mode.
7627 Add inner vector modes for vectors.
7629 * rtl.def (VEC_CONST): Remove.
7630 (CONST_VECTOR): New.
7632 * expr.c (clear_storage): Allow vectors.
7633 (is_zeros_p): Handle VECTOR_CST.
7635 * varasm.c (output_constant_pool): Handle vectors.
7636 (rtx_const): Add veclo and vechi fields.
7637 (kind): Add RTX_VECTOR.
7638 (decode_rtx_const): Add case for vector.
7640 * config/rs6000/rs6000-protos.h: Add zero_constant.
7642 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
7643 constants. Force easy vector constants into memory.
7644 (easy_vector_constant): New.
7645 (emit_easy_vector_constant): New.
7646 (rs6000_legitimize_reload_address): Do not generate bad reloads on
7649 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
7651 ("altivec_lvxl"): Same.
7652 (altivec_lvebx): Same.
7653 (altivec_lvehx): Same.
7654 (altivec_lvewx): Same.
7655 ("*movv4si_const0"): New.
7656 ("*movv4sf_const0"): New.
7657 ("*movv8hi_const0"): New.
7658 ("*movv16qi_const0"): New.
7660 2002-02-18 Kazu Hirata <kazu@hxi.com>
7662 * config/h8300/h8300.c (notice_update_cc): Use
7665 2002-02-18 Kazu Hirata <kazu@hxi.com>
7667 * config/h8300/h8300.md (divmod patterns): Change the
7668 constraints for operands[1] to register_operand.
7670 2002-02-18 Kazu Hirata <kazu@hxi.com>
7672 * config/h8300/h8300-protos.h: Remove the prototype for
7674 * config/h8300/h8300.c (p_operand): Remove.
7675 * config/h8300/h8300.md: Replace p_operand with
7678 2002-02-18 Philip Blundell <pb@nexus.co.uk>
7680 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
7682 (output_return_instruction): Allow use of LDR to unstack
7683 return addresss even for interrupt handlers or when
7684 interworking. If compiling for ARMv5, use interworking-safe
7685 return instructions by default. Remove duplicated code and
7686 lengthy "strcat" sequences.
7688 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7690 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
7691 (LINK_EH_SPEC): Define.
7692 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
7694 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
7696 * config/s390/s390.c (s390_emit_prologue): Do not set the
7697 frame_related flag for call-clobbered registers.
7699 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
7701 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
7702 (construct_container): Fix handling of SSE operands.
7703 (ix86_expand_builtin): Fix handling of 64bit pointers.
7704 (mmx_maskmovq_rex): New pattern.
7706 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
7708 * regrename.c (kill_set_value): Handle subregs properly.
7710 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
7712 * objc/objc-act.c (handle_impent): Remove leading '*'
7713 from objc_class_name.
7715 2002-02-17 Richard Henderson <rth@redhat.com>
7717 * config/alpha/alpha.c (some_small_symbolic_operand,
7718 some_small_symbolic_operand_1, split_small_symbolic_operand,
7719 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
7720 Handle small SYMBOL_REFs anywhere, not just inside memories.
7721 * config/alpha/alpha-protos.h: Update.
7722 * config/alpha/alpha.h (PREDICATE_CODES): Update.
7723 * config/alpha/alpha.md (small symbolic operand splitter): Update.
7725 2002-02-17 Roland McGrath <roland@frob.com>
7727 * config.gcc (powerpc-*-gnu-gnualtivec*,
7728 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
7729 * config/rs6000/gnu.h: New file.
7730 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
7731 Grok "gnu" in rs6000_abi_name.
7732 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
7733 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
7734 Grok -mcall-gnu analogous to -mcall-linux et al.
7735 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7736 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
7737 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
7739 2002-02-17 Jakub Jelinek <jakub@redhat.com>
7742 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
7745 2002-02-17 Philipp Thomas <pthomas@suse.de>
7747 * config/cris/cris.h: Undefine STARTFILE_SPEC and
7748 ENDFILE_SPEC before (re)defining them.
7750 2002-02-17 Kazu Hirata <kazu@hxi.com>
7752 * config/h8300/h8300.c: Fix formatting.
7753 * config/h8300/h8300.h: Likewise.
7755 2002-02-17 Philipp Thomas <pthomas@suse.de>
7757 * doc/tm.texi: Explain why empty strings should not be
7758 marked for translation.
7760 2002-02-17 Philipp Thomas <pthomas@suse.de>
7762 * final.c (output_operand_lossage): Changed to accept
7763 printf style arguments. Change calls where necessary.
7764 * output.h (output_operand_lossage): Change declaration
7765 accordingly. Update copyright.
7766 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
7767 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
7768 Update copyright date where necessary.
7770 * config/i386/i386.c (print_operand): Likewise. Remove use of
7773 * config/cris/cris.c (cris_operand_lossage): Likewise.
7774 Rename parameter so that exgettext recognizes it as
7775 translatable message.
7776 (LOSE_AND_RETURN): Rename parameter to msgid.
7778 2002-02-17 Kazu Hirata <kazu@hxi.com>
7780 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
7781 hard coded register number with an appropriate macro.
7782 (HARD_REGNO_MODE_OK): Likewise.
7783 (ARG_POINTER_REGNUM): Likewise.
7784 (STATIC_CHAIN_REGNUM): Likewise.
7785 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
7786 * config/h8300/h8300.md (define_constants): Define more
7789 2002-02-17 Philipp Thomas <pthomas@suse.de>
7791 * config/i386/i386.h: Don't mark empty strings for translation.
7793 2002-02-16 H.J. Lu <hjl@gnu.org>
7795 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
7797 2002-02-16 Zack Weinberg <zack@codesourcery.com>
7799 * cppinit.c (merge_include_chains): Check for brack being
7800 NULL before attempting to merge it with qtail.
7802 2002-02-16 Andrew Cagney <ac131313@redhat.com>
7804 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
7807 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
7809 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
7811 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
7813 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
7814 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
7815 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
7817 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7819 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
7820 now only if !TARGET_FIX.
7821 (*movsi_nt_vms_fix): New pattern.
7823 2002-02-16 Douglas B Rupp <rupp@gnat.com>
7825 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
7826 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
7827 (alpha_sa_mask, alpha_sa_size): Reflect above change.
7828 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
7829 (alpha_start_function, alpha_expand_epilogue): Likewise.
7830 (unicosmk_gen_dsib): Likewise.
7832 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7834 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
7836 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
7838 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
7839 check_and_change_labels, s390_final_chunkify): Delete.
7840 (s390_split_branches, s390_chunkify_pool): New functions.
7841 (s390_function_prologue): Call them.
7843 * config/s390/s390.h (S390_REL_MAX): Delete.
7844 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
7846 * config/s390/s390.md (cjump, icjump, jump): Fix length
7847 attribute calculation.
7850 2002-02-15 David Edelsohn <edelsohn@gnu.org>
7852 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
7853 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
7855 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
7857 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
7858 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
7859 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
7861 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
7863 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
7865 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
7867 * reload.c (find_dummy_reload): Check that an output register
7868 is valid for its mode.
7870 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
7872 * combine.c (known_cond): After replacing the REG of a SUBREG, try
7875 * function.c (assign_parms): Demote promoted argument passed by
7876 transparent reference.
7878 2001-02-14 Joel Sherrill <joel@OARcorp.com>
7880 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
7881 -Acpu() and -Amachine() to eliminate warnings.
7883 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
7885 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
7887 2002-02-14 Kazu Hirata <kazu@hxi.com>
7889 * config/h8300/h8300-protos.h: Update the prototype for
7891 * config/h8300/h8300.c (const_costs): Treat SET as a little
7892 more expensive operation.
7893 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
7894 reference to const_costs.
7896 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
7898 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
7900 2002-02-14 Jakub Jelinek <jakub@redhat.com>
7903 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
7904 use arguments from newtype.
7906 2002-02-13 Eric Christopher <echristo@redhat.com>
7908 * config/mips/mips.c (override_options): Add check for march/mipsX
7909 on the same command line. Fix error message in cpu processing.
7910 Remove architecture and ISA checks.
7912 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
7914 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
7916 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
7918 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
7920 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
7922 ("*movv8hi_internal1"): Same.
7923 ("*movv16qi_internal1"): Same.
7924 ("*movv4sf_internal1"): Same.
7926 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
7927 not push_reload for altivec modes.
7929 2002-02-13 Joel Sherrill <joel@OARcorp.com>
7931 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
7932 all RTEMS targets including removal of #includes from config/*/rtems*.h
7933 file and adding them to tm_file setting. Added xm_defines=POSIX to
7935 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
7936 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
7937 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
7938 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
7939 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
7940 config/m68k/rtemself.h: Ditto.
7941 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
7942 config/mips/rtems64.h: Ditto.
7943 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
7944 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
7946 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
7947 config/sparc/rtemself.h: Ditto.
7948 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
7949 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
7950 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
7952 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
7953 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
7954 target made more similar to i386-elf.
7955 * config/i386/t-rtems-i386: Added soft float support and multilibs.
7956 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
7957 be similar to config/m68k/t-m68kelf.
7958 * gthr-rtems.h: Encapsulate with extern "C" for C++.
7960 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
7962 * regmove.c (kill_value): Handle subregs.
7964 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
7966 * i386.md (mul patterns): Allow memory operand to be first;
7967 add expanders where needed; fix constraints.
7968 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
7969 Allow memory operand to be the first.
7971 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
7974 2002-02-13 Jakub Jelinek <jakub@redhat.com>
7977 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
7980 2002-02-13 Jakub Jelinek <jakub@redhat.com>
7982 PR optimization/5547:
7983 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
7984 all valid IA-32 address modes involving non-scaled %ebx and
7985 GOT/GOTOFF as displacement.
7987 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
7989 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
7990 after emitting ltorg insns.
7992 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
7993 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
7994 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
7995 *abssf2): Fix "op_type" attribute.
7997 2002-02-13 Douglas B Rupp <rupp@gnat.com>
7999 * mkconfig.sh: Avoid using a subshell redirect.
8000 ($output.T): Change to $(output)T.
8001 (ENABLE_NLS): Remove unneeded undef.
8003 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
8004 * config/alpha/x-vms (libsubdir): Define.
8006 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
8007 register frame procedures. Optimize retrieving context.
8009 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
8010 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
8011 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
8013 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8015 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
8016 Make same change as for find_base_value.
8018 2002-02-13 Kazu Hirata <kazu@hxi.com>
8020 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
8021 of QImode and SImode.
8023 2002-02-13 Kazu Hirata <kazu@hxi.com>
8025 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
8026 length computation of movsi.
8027 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
8029 2002-02-13 Kazu Hirata <kazu@hxi.com>
8031 * config/h8300/h8300.md (subqi3): Tighten the predicate for
8032 operands[2] to register_operand.
8034 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
8036 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
8038 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
8040 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
8041 for altivec_lvx* and altivec_stvx*.
8042 ("*movv4si_internal"): Add constraint for loading from GPRs.
8043 ("*movv8hi_internal1"): Same.
8044 ("*movv16qi_internal1"): Same.
8045 ("*movv4sf_internal1"): Same.
8047 * config/rs6000/rs6000.c (altivec_register_operand): New.
8049 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
8050 altivec_register_operand.
8052 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
8054 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
8057 2002-02-13 Stan Shebs <shebs@apple.com>
8059 * c-typeck.c (digest_init): Handle vectors.
8060 (really_start_incremental_init): Same.
8061 (pop_init_level): Same.
8062 (process_init_element): Same.
8064 * varasm.c (output_constant): Same.
8066 * expr.c (clear_storage): Same.
8067 (store_constructor): Same.
8069 2002-02-12 Eric Christopher <echristo@redhat.com>
8071 * explow.c (hard_function_value): Add comment explaining
8072 signed/unsigned comparison.
8074 2002-02-12 Jakub Jelinek <jakub@redhat.com>
8076 * jump.c (never_reached_warning): Add finish argument.
8077 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
8078 real insn after end.
8079 * rtl.h (never_reached_warning): Adjust prototype.
8080 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
8081 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
8082 never_reached_warning.
8084 2002-02-12 Graham Stott <grahams@redhat.com>
8086 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
8088 2002-02-12 Kazu Hirata <kazu@hxi.com>
8090 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
8091 logical shifts on H8/300.
8092 (shift_alg_si): Improve several shifts on H8/300.
8093 (get_shift_alg): Likewise.
8095 2002-02-12 Graham Stott <grahams@redhat.com>
8097 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
8099 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8101 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
8102 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
8104 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
8106 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
8107 non-CONST_INT through default_assemble_integer.
8108 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
8109 <case 8>: Abort for CONST_DOUBLE.
8111 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
8113 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
8115 * config/pa/pa-linux.h (LIB_SPEC): Delete.
8116 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8118 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
8120 * config/stormy16/stormy16.md (zero_extendqihi2): New.
8122 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
8124 * regrename.c (regrename_optimize): Don't accept a
8125 part-clobbered register if the replaced register is not part
8128 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
8129 take padding into account when computing the argument value.
8131 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
8133 * combine.c (try_combine): Apply substitutions in
8134 CALL_INSN_FUNCTION_USAGE too.
8136 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
8138 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
8139 __builtin_altivec_abs*.
8142 * config/rs6000/rs6000.h (rs6000_builtins): Add
8143 ALTIVEC_BUILTIN_ABS*.
8145 * config/rs6000/altivec.h: Use const char for builtins expecting
8147 (vec_abs): New versions for C and C++.
8150 2002-02-10 Kazu Hirata <kazu@hxi.com>
8152 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
8155 2002-02-10 Kazu Hirata <kazu@hxi.com>
8157 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
8158 constant definition from h8300.md.
8159 (FRAME_POINTER_REGNUM): Likewise.
8160 * config/h8300/h8300.md (define_constants): Add FP_REG.
8162 2002-02-10 Kazu Hirata <kazu@hxi.com>
8164 * config/h8300/h8300.c (print_operand): Remove redundant code.
8166 2002-02-10 Kazu Hirata <kazu@hxi.com>
8168 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
8169 * config/h8300/h8300.c (byte_reg): Make it static.
8171 2002-02-10 Richard Henderson <rth@redhat.com>
8174 * c-typeck.c (incomplete_type_error): Handle flexible array members.
8176 2002-02-10 Richard Henderson <rth@redhat.com>
8179 * tree.c (append_random_chars): Don't abort if main_input_filename
8182 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
8184 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
8186 2002-02-10 Kazu Hirata <kazu@hxi.com>
8188 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
8189 (pushhi1): Likewise.
8191 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
8193 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
8194 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
8196 2002-02-09 David O'Brien <obrien@FreeBSD.org>
8198 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
8200 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
8202 2002-02-09 Kazu Hirata <kazu@hxi.com>
8204 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
8205 a half of an SImode register on H8/300.
8207 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
8209 * i386.md (movdi_2): Add missing '!'.
8211 2002-02-09 Kazu Hirata <kazu@hxi.com>
8213 * config/h8300/h8300.h: Fix formatting. Remove commented-out
8216 2002-02-09 Kazu Hirata <kazu@hxi.com>
8218 * config/h8300/h8300.md (length): Correct the distance valid
8219 for the short branch.
8221 2002-02-09 Kazu Hirata <kazu@hxi.com>
8223 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
8225 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
8227 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
8228 registers in SImode.
8229 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
8232 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
8235 Contribute sh64-elf.
8236 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
8237 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
8238 (sh_cannot_modify_jumps_p): New function.
8239 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
8240 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
8241 (sh_ms_bitfield_layout_p): New function.
8242 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
8243 Zack Weinberg <zack@codesourcery.com>
8244 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
8245 expand_simple_binop instead of expand_binop.
8246 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
8247 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
8248 use of .quad and .uaquad.
8249 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
8250 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
8251 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8252 * config/sh/sh.md (movdi_const, movdi_const_32bit,
8253 movdi_const_16bit): Make sure all CONSTs have modes.
8254 (sym2PIC): Ditto, but by adjusting all callers.
8255 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
8256 if the prologue calls the SHmedia argument decoder or register
8258 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8259 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
8260 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
8261 (sh_expand_epilogue): Don't emit USE of return target register.
8262 (prepare_move_operands): Legitimize DImode PIC addresses.
8263 (sh_media_register_for_return): Skip tr0, used to initialize the
8265 (sh_expand_prologue): Remove explicit USE of return register.
8266 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
8267 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
8268 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
8269 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
8270 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
8272 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
8273 (MOVI_SHORI_BASE_OPERAND_P): New.
8274 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
8275 (EXTRA_CONSTRAINT_T): Define in terms of them.
8276 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
8277 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
8278 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
8279 alternatives supporting TARGET_REGS.
8280 (UNSPEC_GOTPLT): New constant.
8281 (movdi split): Move incrementing of LABEL_NUSES...
8282 (movdi_const, movdi_const_32bit): Here. Use
8283 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
8284 (movdi_const_16bit): New.
8285 (call, call_value) [flag_pic]: Use GOTPLT.
8286 (call_pop, call_value_pop): New expands.
8287 (call_pop_compact, call_pop_rettramp): New insns.
8288 (call_value_pop_compact, call_value_pop_rettramp): New insns.
8289 (sibcall) [flag_pic]: Use GOT.
8290 (builtint_setjmp_receiver): Remove bogus, unused expand.
8291 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
8292 (*pt, *ptb, ptrel): New insns.
8293 (sym2GOT): Handle DImode GOT.
8294 (sym2GOTPLT, symGOTPLT2reg): New expands.
8295 (sym2PIC): New expand.
8296 (shcompact_return_tramp): Use GOTPLT to return trampoline.
8297 (shcompact_return_tramp_i): Use return register explicitly.
8298 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
8299 disable flag_reorder_blocks.
8300 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
8301 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
8302 clobbers, for clarity.
8303 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
8304 restoring of r0 in macl as MAYBE_DEAD.
8305 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
8306 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
8307 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
8308 alter_subreg all over.
8309 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
8310 reload, instead of emitting instructions that would require
8312 (casesi_load_media): Add missing modes.
8313 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
8314 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
8315 as used if the argument decoder is called.
8316 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
8317 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
8318 Pmode, then extend it to DImode if necessary.
8319 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
8320 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
8321 constants in FPU-enabled SHmedia, let them be loaded from memory.
8322 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
8323 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
8324 Adjust whitespace in assembly output templates.
8325 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
8326 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
8327 mode of if_then_else.
8328 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
8329 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
8331 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
8332 Joern Rennecke <amylaar@redhat.com>
8333 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
8334 (SUBTARGET_CPP_PTR_SPEC): New.
8335 (SUBTARGET_CPP_SPEC): Remove.
8336 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
8337 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8338 Fix typo in previous checkin.
8339 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
8340 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
8341 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
8342 Alexandre Oliva <aoliva@redhat.com>
8343 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
8344 what single FP register can hold for SHmedia target.
8345 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
8346 Alexandre Oliva <aoliva@redhat.com>
8347 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8348 Do not split into SUBREG.
8349 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
8350 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
8351 and added new functions as specified in SH5 ABI r9.
8352 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
8353 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
8355 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
8356 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
8357 gen_consttable_4 and gen_consttable_8. Emit multiple labels
8358 and consttable_window_ends.
8359 2001-06-03 Graham Stott <grahams@redhat,com>
8360 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
8361 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
8362 * config/sh/sh.c (print_operand): Handle floating-point pair,
8363 vector and matrix registers.
8364 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
8365 vector modes into account.
8366 * config/sh/sh.md (movv2sf): Split move between registers into
8368 (movv4sf, movv16sf): Introduce insns that get split only after
8370 * config/sh/shmedia.h: Fix Copyright dates.
8371 * config/sh/ushmedia.h: Likewise. Move loop counter
8372 declarations into conditionals that uses them.
8373 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
8375 * config/sh/sshmedia.h: Fix Copyright dates.
8376 (sh_media_PUTCFG): Fix constraints.
8377 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
8378 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
8379 ptrmemfunc_vbit_in_delta for SH5.
8380 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
8381 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
8382 * invoke.texi: Likewise.
8383 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
8384 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
8385 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
8386 GCC_pop_shmedia_regs_nofpu): New global symbols.
8387 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
8388 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
8389 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
8390 compact function with nonlocal labels.
8391 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
8392 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
8393 (initial_elimination_offset): Account for their stack space.
8394 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
8395 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
8396 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
8397 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
8398 least one of the operands to be a register.
8399 (movv2sf): Likewise. Renamed to movv2sf_i.
8400 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
8401 prepare_move_operands() before emitting SHmedia insns.
8402 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
8403 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
8404 Don't save nor initialize r12. Don't mis-align the stack.
8405 Pad the code with a nop.
8406 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
8408 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
8409 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
8410 [__SHMEDIA__]: Implement.
8411 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
8412 * config/sh/sh.md: Set latency of `pt' closer to reality.
8413 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
8414 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
8415 Set move, load and store type attributes.
8416 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
8417 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
8419 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
8420 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
8421 * config/sh/sh.c (sh_media_register_for_return): New function.
8422 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
8423 branch-target register.
8424 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
8425 * config/sh/sh.md (return_media_i): Use any call-clobbered
8426 branch-target register.
8427 (return_media): If r18 wasn't copied in the prologue, copy it
8429 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
8430 Clear class FP0_REGS.
8431 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
8433 2001-03-08 DJ Delorie <dj@redhat.com>
8434 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
8435 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
8436 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
8437 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
8438 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
8439 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
8440 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
8441 return value correctly for call_cookie.
8442 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
8443 * config/sh/crt1.asm (start): Modified so as to call
8444 ___setup_argv_and_call_main.
8445 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
8446 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
8448 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
8449 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
8450 (STRIP_NAME_ENCODING): Use it.
8451 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
8452 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
8453 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
8454 prepare_scc_operands().
8455 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
8456 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
8457 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
8458 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
8459 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
8460 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
8461 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
8462 used in shcompact_incoming_args.
8463 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
8465 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
8467 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
8469 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
8470 Simplify. Adjust. Add sanity check.
8471 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
8473 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
8475 (udivsi3, divsi3): Use them.
8476 (force_mode_for_call): New insn.
8477 (call, call_value, sibcall_value): Emit it before SHcompact
8479 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
8480 * config/sh/sh.md (call, call_value, sibcall): Make sure the
8481 call cookie is non-NULL before taking its value.
8482 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
8483 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
8484 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
8485 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
8487 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
8488 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
8489 temporary for stack adjusts. Use MACL and MACH to pass
8490 arguments to shcompact_incoming_args.
8491 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
8493 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
8494 (nested_trampoline): Load static chain address into r1.
8495 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
8496 2001-01-07 Alexandre Oliva <aoliva@redhat.com
8497 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
8498 fp_arith_reg_operand().
8499 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
8500 * config/sh/sh.md (casesi): Sign-extend the first two operands,
8501 and use signed compares for them.
8502 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
8503 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
8504 ones properly aligned.
8505 (find_barrier): Account for extra alignment needed for 8-byte wide
8507 (machine_dependent_reorg): Require a label for the second 4-byte
8508 constant after an 8-byte one.
8509 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
8511 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
8512 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
8513 last_float when switching float modes.
8514 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
8515 auto-increment for general-purpose registers.
8516 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
8518 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
8520 * config/sh/sh.c (sh_builtin_saveregs): Support using all
8521 registers for varargs.
8522 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
8523 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
8524 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
8525 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
8526 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
8527 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
8528 call_cookie accordingly.
8529 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
8530 (SHCOMPACT_BYREF): Likewise.
8531 (SHCOMPACT_FORCE_ON_STACK): New macro.
8532 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
8533 (sh_builtin_saveregs): Likewise.
8534 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8535 shcompact_incoming_args): Use new shift values. Support
8536 sequences of consecutive and non-consecutive pushes/pops.
8537 * config/sh/sh.md (return): Don't explicitly use PR_REG.
8538 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
8539 * config/sh/sh.h (TEXT_SECTION): Define.
8540 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
8541 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
8542 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
8543 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
8544 return values on FPU-enabled SHmedia.
8545 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
8546 FPU-enabled SHmedia.
8547 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
8548 value is returned in a non-FP reg and is not returned by
8550 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
8552 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
8553 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
8554 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
8555 quad-aligned to be passed by callee-copy reference.
8556 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
8557 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
8558 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
8559 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
8560 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
8561 copying low-numbered FP regs to r7 and r8.
8562 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
8563 FP regs to general-purpose regs only if the copy was passed on the
8565 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
8566 copying FP reg to r9.
8567 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
8568 copy FP regs to general-purpose regs only in outgoing calls.
8569 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
8570 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
8572 * config/sh/sh.h (struct sh_args): Document all fields.
8573 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
8574 passed partially on the stack should not consider making
8576 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
8577 stack_regs only for incoming calls. When passing FP args,
8578 make sure there are FP regs available before modifying
8580 (SHCOMPACT_BYREF): Pass double args in general-purpose
8581 registers by reference.
8582 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
8583 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
8584 attempt to generate sibcalls if the caller got any arguments
8586 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
8587 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
8588 to 8-byte boundaries.
8589 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
8590 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
8591 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
8592 stored in the stack.
8593 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
8594 for the offsets to have the ISA bit set.
8595 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
8596 invocation. Use beq instead of bgt to mark end of sequence of
8598 (shcompact_incoming_args): Fix store of r2. Use beq instead of
8599 bgt to mark end of sequence of stores.
8600 * config/sh/sh.c (arith_operand): Don't check whether
8601 CONST_OK_FOR_J for now.
8602 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
8603 instead of long for conversion.
8604 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
8605 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
8606 before passing it to fprintf.
8607 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
8608 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
8609 Call set_fpscr before reading/writing SR.
8610 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
8612 * config/sh/lib1funcs.asm: Add `.align 2' directives before
8614 (FMOVD_WORKS): Define on SH5 with FPU.
8615 (set_fpscr): Define on SH5. Remove separate _fpscr_values
8617 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
8619 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
8620 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
8622 (ia_main_table): Ditto.
8623 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
8624 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8625 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
8626 the definitions from sh.h.
8627 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
8629 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
8630 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
8631 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8632 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
8633 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
8634 Increment LABEL_NUSES.
8636 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
8638 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
8640 * config/sh/elf.h (SIZE_TYPE): Likewise.
8641 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8642 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8643 shcompact_incoming_args): Load switch table addresses using
8645 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8646 (NO_BUILTIN_SIZE_TYPE): Define.
8647 (SIZE_TYPE): Don't define.
8648 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8649 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
8650 definition of __SH5__=32 for -m5-compact-nofpu.
8651 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
8653 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
8654 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
8655 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
8656 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
8657 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
8658 (INSN_LENGTH_ALIGNMENT): Likewise.
8659 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8660 * config/sh/sh.md (call, call_value, sibcall): Simplify
8661 copying of non-branch-target register.
8662 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8663 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
8664 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
8665 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8666 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
8667 floating-point values as structs.
8668 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
8669 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
8670 general-purpose register.
8671 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
8672 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
8673 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
8674 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
8675 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
8676 (ENCODE_SECTION_INFO): Enclose variables and constants in
8678 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
8679 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
8680 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
8681 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
8682 only for LABEL_REFs. For SYMBOL_REFs, prepend
8683 SH_DATALABEL_ENCODING to the symbol name.
8684 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
8686 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
8687 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
8689 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
8690 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
8691 (DATALABEL_REF_P): Don't require CONST.
8692 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
8694 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
8695 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
8697 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
8698 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
8699 Use shallow_copy_rtx and PUT_MODE to change the mode of
8700 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
8701 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
8702 on SHmedia using GENERAL_REGs.
8703 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8704 bltu_media_i): Fix reversion of conditions.
8705 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
8706 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
8707 * config/sh/sh.c (output_far_jump): Save r13 in macl.
8708 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
8709 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
8710 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
8711 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
8712 (GCC_nested_trampoline): Likewise.
8713 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
8714 * config/sh/sh.c (gen_datalabel_ref): Define.
8715 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
8716 (INITIALIZE_TRAMPOLINE): Likewise.
8717 (TRAMPOLINE_ADJUST_ADDRESS): Define.
8718 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
8719 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
8720 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
8721 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
8722 (ic_invalidate): Adjust for SH5.
8723 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
8724 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
8726 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
8727 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
8728 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
8729 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
8730 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
8731 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
8732 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
8733 * config/sh/sh.c (target_reg_operand): Match only target-branch
8734 registers and pseudos that aren't virtual registers.
8735 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8736 Copy operands that don't match target_reg_operand to pseudos.
8737 (call_media, call_value_media, sibcall_media): Use
8738 target_reg_operand instead of target_operand.
8739 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
8740 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
8741 * config/sh/sh.c (target_reg_operand): Match hardware registers
8742 other than branch-target registers.
8743 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
8744 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
8745 (fpscr_values) [SH5 == 32]: Define.
8746 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
8747 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8748 Handle function addresses coming in SUBREGs.
8749 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
8750 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8751 shcompact_return_trampoline): Use datalabel where appropriate.
8752 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
8753 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
8754 general-purpose register to copy one branch-target register to
8756 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
8757 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
8758 SYMBOL_REFs with VOIDmode.
8759 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8760 bltu_media_i): New insns.
8761 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
8762 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
8763 (INIT_CUMULATIVE_ARGS): Likewise.
8764 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
8765 * machmode.def (V16SFmode): New mode.
8766 * c-common.c (type_for_mode): Support V2SF and V16SF.
8767 * tree.c (build_common_tree_nodes_2): Likewise.
8768 * tree.h (tree_index): Likewise.
8769 * calls.c (emit_call_1): Take args_so_far. Adjust all
8770 callers. Introduce CALL_POPS_ARGS.
8771 * tm.texi (CALL_POPS_ARGS): Document.
8772 * config/sh/crt1.asm: Implement in SHmedia mode.
8773 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
8774 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
8775 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
8776 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
8777 Implement divsi and udivsi in SHmedia mode. Introduce
8778 SHcompact trampolines.
8779 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
8781 (regno_reg_class): Rewrite.
8782 (fp_reg_names): Remove.
8783 (sh_register_names, sh_additional_register_names): New.
8784 (print_operand): Added `u'. Support SUBREGs in addresses.
8785 Add parentheses around shifted CONSTs.
8786 (output_file_start): Output .mode and .abi directives.
8787 (shiftcosts, addsubcosts, multcosts): Adjust.
8788 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
8789 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
8790 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
8791 bytes, not registers. Take into account the need for the
8792 SHcompact incoming args trampoline. Adjust all callers.
8793 (sh_expand_prologue): Take stack_regs into account. Call
8794 incoming args trampoline. Keep stack aligned as per SH5 ABI.
8795 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
8796 stack aligned as per SH5 ABI.
8797 (sh_builtin_saveregs): Support SH5 ABI.
8798 (sh_build_va_list, sh_va_start): Likewise.
8799 (initial_elimination_offset): Take alignment into account.
8800 Compute location of PR according to the SH5 stack frame.
8801 (arith_reg_operand): Reject branch-target registers.
8802 (shmedia_6bit_operand): New.
8803 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
8804 (target_reg_operand): Match DImode only. Accept SUBREGs.
8805 (target_operand): New.
8806 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
8807 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
8808 SIBCALL_REGS for SHmedia.
8809 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
8810 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
8811 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
8812 (TARGET_SWITCHES): New SH5 flags.
8813 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
8814 VALID_REGISTER_P to disable unsupported registers.
8815 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
8816 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
8817 (FUNCTION_ARG_PADDING): Define.
8818 (FASTEST_ALIGNMENT): Adjust.
8819 (SH_REGISTER_NAMES_INITIALIZER): New.
8820 (sh_register_names): Declare.
8821 (DEBUG_REGISTER_NAMES): Define.
8822 (REGISTER_NAMES): Define based on sh_register_names.
8823 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
8824 (sh_additional_register_names): Declare.
8825 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
8826 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
8827 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
8828 (REGISTER_NATURAL_MODE): Define.
8829 (FIRST_PSEUDO_REGISTER): Adjust.
8830 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
8831 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
8832 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
8833 (VECTOR_MODE_SUPPORTED_P): Define.
8834 (REG_CLASS_CONTENTS): Adjust.
8835 (SMALL_REGISTER_CLASSES): Adjust.
8836 (REG_ALLOC_ORDER): Adjust.
8837 (INDEX_REG_CLASS): Adjust.
8838 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
8839 (CONST_OK_FOR_LETTER_P): Adjust.
8840 (PREFERRED_RELOAD_CLASS): Adjust.
8841 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
8842 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
8843 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
8844 (FIRST_FP_PARM_REG): Adjust.
8845 (CALL_POPS_ARGS): Define.
8846 (FUNCTION_ARG_REGNO_P): Adjust.
8847 (struct sh_args): New fields.
8848 (GET_SH_ARG_CLASS): Adjust.
8849 (INIT_CUMULATIVE_ARGS): Adjust.
8850 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
8851 (FUNCTION_ARG_ADVANCE): Adjust.
8852 (FUNCTION_ARG): Adjust.
8853 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
8854 (FUNCTION_ARG_CALLEE_COPIES): Define.
8855 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
8856 (STRICT_ARGUMENT_NAMING): Define.
8857 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
8858 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
8859 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
8860 (SETUP_INCOMING_VARARGS): Adjust.
8861 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
8862 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
8863 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
8864 (SUBREG_OK_FOR_INDEX_P): Adjust.
8865 (EXTRA_CONSTRAINT_S): Update.
8866 (EXTRA_CONSTRAINT_T): New.
8867 (EXTRA_CONSTRAINT): Adjust.
8868 (GO_IF_LEGITIMATE_INDEX): Adjust.
8869 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
8870 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
8872 (MAX_MOVE_MAX): Define.
8874 (CONST_COSTS): Adjust.
8875 (REGISTER_MOVE_COST): Adjust.
8876 (BRANCH_COST): Adjust.
8877 (TEXT_SECTION_ASM_OP): Adjust.
8878 (DBX_REGISTER_NUMBER): Adjust.
8879 (ASM_OUTPUT_DOUBLE_INT): New.
8880 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
8881 (PREDICATE_CODES): Adjust.
8882 (PROMOTE_MODE): Adjust.
8883 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
8884 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
8885 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
8886 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
8887 (DR0_REG, DR2_REG, DR4_REG): Renumber.
8888 (TR0_REG, TR1_REG, TR2_REG): New.
8889 (XD0_REG): Renumber.
8890 (UNSPEC_COMPACT_ARGS): New.
8891 (type): Added pt and ptabs.
8892 (length): Default to 4 on SHmedia. Default pt length to 12
8893 and 20 on SHmedia32 and SHmedia64, respectively.
8894 (pt): New function unit.
8895 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
8896 Add whitespace between operands of SHmedia instructions.
8898 (adddi3_media, addsi3_media): Adjust constraints.
8899 (subsi3) [SHmedia]: Force operand 1 into a register.
8900 (udivsi3_i1_media, udivsi3_i4_media): New.
8901 (udivsi3): Support SHmedia.
8902 (divsi3_i1_media, divsi3_i4_media): New.
8903 (divsi3): Support SHmedia.
8904 (anddi3, iordi3, xordi3): Adjust constraints.
8905 (zero_extendhidi2, zero_extendqidi2): New.
8906 (extendsidi2, extendhidi2, extendqidi2): New.
8907 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
8908 (pop_e, pop_fpul, pop_4): Likewise.
8909 (movsi_media): Support FP and BT registers.
8910 (movsi_media_nofpu): New. Adjust splits to DImode.
8911 (lduw, ldub): Renamed to zero_extend* above.
8912 (movqi_media): Fix typo.
8913 (movdi_media): Support FP and BT registers.
8914 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
8915 (movdi_const_32bit): New.
8916 (shori_media): Require immediate operand. Use `u' for output.
8917 (movdf_media, movsf_media): Simplified.
8918 (movdf_media_nofpu, movsf_media_nofpu): New.
8919 (movdf, movsf): Adjust
8920 (movv2sf, movv2sf, movv16sf): New.
8921 (beq_media, beq_media_i): Adjust constraints. Don't use
8922 scratch BT register.
8923 (bne_media, bne_media_i): Likewise.
8924 (bgt_media, bgt_media_i): Likewise.
8925 (bge_media, bge_media_i): Likewise.
8926 (bgtu_media, bgtu_media_i): Likewise.
8927 (bgeu_media, bgeu_media_i): Likewise.
8928 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
8929 bunordered): Emit jump insn. Force operands to registers when
8931 (jump_media, jump): Simplify.
8932 (call_compact, call_compact_rettramp): New.
8933 (call_value_compact, call_value_compact_rettramp): New.
8934 (call_media, call_value_media): Simplify.
8935 (sibcall_compact, sibcall_media): New.
8936 (call, call_value): Adjust for SHmedia and SHcompact.
8937 (sibcall, sibcall_value, untyped_call): Likewise.
8938 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
8939 (indirect_jump): Adjust for SHmedia.
8940 (casesi_jump_media): New.
8941 (nop): Re-enable for SHmedia.
8942 (call_site): Restrict to SH1.
8943 (casesi): Adjust for SHmedia.
8944 (casesi_shift_media, casesi_load_media): New.
8945 (return): Explicitly use PR register. Call return trampoline
8947 (return_i): Explicitly use PR register.
8948 (shcompact_return_tramp, shcompact_return_tramp_i): New.
8949 (return_media): Adjust.
8950 (shcompact_incoming_args): New.
8952 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8953 (movstrsi): Disable on SH5.
8954 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
8955 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
8956 (subsf3, subsf3_media): Likewise.
8957 (mulsf3, mulsf3_media, mac_media): Likewise.
8958 (divsf3, divsf3_media): Likewise.
8959 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
8960 (floatsisf2, fux_truncsfsi2): Likewise.
8961 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
8963 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
8964 (cmpunsf_media, cmpsf): Likewise.
8965 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
8966 (abssf2, abssf2_media): Likewise.
8967 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
8968 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
8969 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
8970 (floatsidf2, fix_truncdfsi2): Likewise.
8971 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
8973 (cmpeqdf_media, cmpgtdf_media): Likewise.
8974 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
8975 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
8976 (absdf2, absdf2_media): Likewise.
8977 (extendsfdf2, extendsfdf2_media): Likewise.
8978 (truncsfdf2, truncsfdf2_media): Likewise.
8979 * config/sh/sh64.h: New file.
8980 * config/sh/t-sh64: New file.
8981 * config/sh/shmedia.h: New file.
8982 * config/sh/ushmedia.h: New file.
8983 * config/sh/sshmedia.h: New file.
8984 * configure.in: Added sh64-*-elf.
8985 * configure: Rebuilt.
8986 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
8987 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
8988 (reg_class_from_letter): Use `b' for TARGET_REGS.
8989 (print_operand): Support `%M', `%m', `AND' and
8990 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
8991 (andcosts): Adjust for SHmedia.
8992 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
8994 (target_reg_operand): New function.
8995 * config/sh/sh-protos.h (target_reg_operand): Declare.
8996 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
8997 FP registers on SH5.
8998 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
9000 (TARGET_REGISTER_P): New macro.
9001 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
9002 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
9003 (EXTRA_CONSTRAINT_S): New macro.
9004 (EXTRA_CONSTRAINT): Adjust.
9005 (FLOAT_TYPE_SIZE): Define to 32.
9006 (Pmode): DImode on SHmedia.
9007 (CONST_COSTS): Adjust for SHmedia literals.
9008 (PREDICATE_CODES): Added target_reg_operand.
9009 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
9010 * config/sh/sh.md: Remove all attrs from SHmedia insns.
9011 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
9012 (cmpdi): Accept SHmedia.
9013 (movdicc_false, movdicc_true): New insns.
9014 (movdicc): New expand.
9015 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
9017 (addsi3_media): Match `S' constraint.
9018 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
9019 (negdi2): Expand for SHmedia.
9020 (one_cmpldi2): New expand.
9021 (zero_extendsidi2): Change from expand to insn.
9022 (extendsidi2): Add constraints.
9023 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
9024 LD/ST address. Fix SI immediate loading split.
9025 (movhi_media, movqi_media, lduw, ldub): New insns.
9026 (movhi, movqi): Accept SHmedia.
9027 (shori_media, movdi_media): Relax input constraints. Split
9029 (movdf_media, movsf_media): New insn. New split to movdi.
9030 (movdf, movsf): Match on SHmedia.
9031 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
9032 bgeu_media): New insns and splits. New insns with `_i' suffix.
9033 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
9034 (bunordered): New expand.
9035 (jump_compact): Renamed from `jump'.
9036 (jump_media): New insn.
9038 (call_media, call_value_media): New insns.
9039 (call, call_value): Adjust.
9040 (indirect_jump_compact): Renamed from `indirect_jump'.
9041 (indirect_jump_media): New insn.
9042 (indirect_jump): New expand.
9043 (untyped_call, return): Accept SHmedia.
9044 (return_media): New insn.
9045 (prologue, epilogue, blockage): Accept SHmedia.
9046 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
9047 (sunordered): New expand.
9048 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
9049 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
9050 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
9051 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
9052 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
9053 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
9054 abssf2_media): New insns.
9055 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
9056 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
9057 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
9058 floatdidf2, floatsidf2_media, fix_truncdfdi2,
9059 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
9060 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
9061 absdf2_media): New insns.
9062 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
9063 (extendsfdf2_media, truncdfsf2_media): New insns.
9064 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
9065 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
9066 * config/sh/sh.h (CONST_OK_FOR_J): Document.
9067 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
9068 * config/sh/sh.md (adddi3): New expand.
9069 (adddi3_media, adddi3z_media): New insns.
9070 (adddi3_compact): Renamed from adddi3.
9071 (addsi3_media): Use add.l r63 to add constant zero.
9072 (subdi3): New expand.
9073 (subdi3_media): New insn.
9074 (subdi3_compact): Renamed from subdi3.
9075 (mulsidi3): New expand.
9076 (mulsidi3_media): New insn.
9077 (mulsidi3_compact): Renamed from mulsidi3.
9078 (umulsidi3): New expand.
9079 (umulsidi3_media): New insn.
9080 (umulsidi3_compact): Renamed from umulsidi3.
9081 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
9082 (ashlsi3, ashrsi3, lshrsi3): Use them.
9083 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
9084 (ashldi3, ashrdi3, lshrdi3): Use them.
9085 (zero_extendsidi2): New expand.
9086 (extendsidi2): New insn.
9087 (movsi_media): New insn. Split to movdi to load constants.
9088 (movsi): Enable for shmedia.
9089 (movdi_media): New insn. Use shori_media to load wide constants.
9090 (short_media): New insn.
9091 (movdi): Enable for shmedia.
9092 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
9093 * config/sh/sh.h (CPP_SPEC): Added `m5'.
9094 (SUBTARGET_CPP_SPEC): Added `!m5'.
9095 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
9096 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
9097 to all other SH variants.
9098 (TARGET_DEFAULT): Set to SH1_BIT.
9099 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
9100 (BITS_PER_WORD): Raise to 64 on shmedia.
9101 (MAX_BITS_PER_WORD): Change to 64.
9102 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
9103 (INT_TYPE_SIZE): Keep as 32.
9104 (UNITS_PER_WORD): Raise to 8 on shmedia.
9105 (MIN_UNITS_PER_WORD): Keep as 4.
9106 (POINTER_SIZE): Raise to 64 on shmedia.
9107 (CONST_OK_FOR_J): New macro.
9108 (CONST_OK_FOR_LETTER_P): Use it.
9109 (processor_type): Add PROCESSOR_SH5.
9110 * config/sh/sh.md: Conditionalize all expands, insns and
9111 splits to TARGET_SH1.
9113 (addsi3_compact): Renamed from...
9114 (addsi3): Now an expand.
9115 (addsi3_media, subsi3_media): New insns.
9116 (subsi3): Don't negate constants with SHmedia.
9118 * hooks.c: New file.
9119 * hooks.h: New file.
9120 * Makefile.in (HOOKS_H): New.
9121 (TARGET_DEF_H): Added $(HOOKS_H).
9122 (OBJS): Added hooks.o.
9123 (cfgcleanup.o, bb-reorder.o): Added target.h.
9124 (hooks.o): Added dependencies.
9125 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
9126 (TARGET_INITIALIZER): this.
9127 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
9128 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
9129 * bb-reorder.c: Include target.h.
9130 (reorder_basic_blocks): Skip if cannot modify jumps.
9131 * cfgcleanup.c: Include target.h.
9132 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
9134 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9136 * config/mips/mips.md (casesi_internal, casesi_internal_di):
9137 Protect jump delay slot instructions with .set noreorder and
9140 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9142 * config/mips/mips.md (casesi_internal_di): Calculate
9143 the index into the target offset table correctly.
9145 2002-02-08 Richard Henderson <rth@redhat.com>
9147 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
9148 * final.c (output_addr_const): Accept and discard SUBREG.
9149 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
9150 mark them unknown instead.
9151 (simplify_subtraction): Handle RTX_UNKNOWN.
9152 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
9154 2002-02-08 David Edelsohn <edelsohn@gnu.org>
9156 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
9158 2002-02-08 Richard Henderson <rth@redhat.com>
9160 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
9162 2002-02-08 Andreas Jaeger <aj@suse.de>
9164 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
9165 * config/i386/t-linux64: New file.
9167 2002-02-08 Jakub Jelinek <jakub@redhat.com>
9169 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
9170 * c-parse.in (compstmt): Clear last_expr_type.
9172 2002-02-07 Richard Henderson <rth@redhat.com>
9174 * loop.c (strength_reduce): Sink final_value when not
9177 2002-02-07 David O'Brien <obrien@FreeBSD.org>
9179 * config/sparc/freebsd.h: Fix mismatched spec {.
9181 2002-02-07 Richard Henderson <rth@redhat.com>
9183 * cfgrtl.c: Include recog.h and insn-config.h.
9184 (keep_with_call_p): Fix general_operand invocation.
9185 * Makefile.in (cfgrtl.o): Update dependencies.
9187 2002-02-07 Kazu Hirata <kazu@hxi.com>
9189 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
9190 comment. Accept HImode only if TARGET_H8300.
9192 2002-02-07 Eric Christopher <echristo@redhat.com>
9194 * config/mips/crtn.asm: Cleanup #ifdefs.
9196 2002-02-07 Eric Christopher <echristo@redhat.com>
9198 * config/mips/crti.asm: Add changes for mips16. mips16 uses
9199 register 7 as RA instead of $31.
9200 * config/mips/crtn.asm: Ditto.
9201 * config/mips/mips.c (mips_move_2words): Add case for
9202 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
9203 (compute_frame_size): Fix typo.
9204 (save_restore_insns): Ditto. Make documentation about using
9205 register $7 as return register more precise.
9206 (mips_expand_epilogue): Fix comment. Add code to work around not
9207 being able to add to the stack pointer directly.
9208 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
9209 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
9212 2002-02-07 Tom Rix <trix@redhat.com>
9214 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
9215 immediates in ldu and stdu DS opcode field.
9216 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
9217 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
9218 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
9220 2002-02-07 Jeff Sturm <jsturm@one-point.com>
9222 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
9223 offset for stack bias.
9225 2002-02-07 H.J. Lu <hjl@gnu.org>
9227 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
9229 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
9231 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
9233 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
9235 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
9236 * i386.c (x86_order_regs_for_local_alloc): New global function.
9237 * i386.h (REG_ALLOC_ORDER): CLeanup.
9238 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
9240 2002-02-07 Richard Henderson <rth@redhat.com>
9242 PR optimization/2463
9243 * alias.c (find_base_value): Recall base values for fixed hard regs.
9244 * loop.c (loop_regs_update): Don't use single_set on non-insns.
9246 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
9248 * config/mips/mips.md (define_delay) [mips16]: Adjust required
9251 2002-02-06 Richard Henderson <rth@redhat.com>
9254 * stmt.c (resolve_operand_name_1): Take more care with mixed
9255 named and unnamed operands.
9257 2002-02-06 Janis Johnson <janis187@us.ibm.com>
9258 Jan Hubicka <jh@suse.cz>
9260 * loop.c (remove_constant_addition): Avoid clobbering a shared
9263 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
9265 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
9266 * config/s390/t-linux64: New file.
9267 * config/s390/libgcc-glibc.ver: New file.
9269 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
9271 * config/s390/linux64.h: Delete file.
9272 * config/s390/s390x.h: New file.
9273 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
9274 as target header file.
9275 * config/s390/linux.h (TARGET_VERSION): Define depending on
9276 DEFAULT_TARGET_64BIT.
9277 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
9278 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
9279 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
9280 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
9281 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
9282 (EXTRA_SPEC): New define.
9283 * config/s390/s390.h (TARGET_VERSION): Define depending on
9284 DEFAULT_TARGET_64BIT.
9285 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
9287 2002-02-06 Jason Merrill <jason@redhat.com>
9289 * c-decl.c (finish_function): Warn about a non-void function with
9290 no return statement and no abnormal exit.
9291 (current_function_returns_abnormally): New variable.
9292 (start_function): Clear it.
9293 (struct c_language_function): Add returns_abnormally.
9294 (push_c_function_context): Save it.
9295 (pop_c_function_context): Restore it.
9296 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
9297 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
9298 an explicit return type.
9299 * c-tree.h: Declare current_function_returns_abnormally.
9300 (C_FUNCTION_IMPLICIT_INT): New macro.
9301 * c-typeck.c (build_function_call): Set it.
9302 (c_expand_return): Set current_function_returns_value even if the
9305 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9308 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
9309 unsafe for reevaluation.
9311 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9314 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
9315 EXPR_STMT, but COMPOUND_STMT, recurse into it.
9317 2002-02-06 Richard Henderson <rth@redhat.com>
9319 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
9320 be a general_operand. Dest for function value must be a pseudo.
9322 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9324 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
9325 as SYMBOL_REFs from the constant pool.
9327 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
9329 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
9330 passed by invisible reference.
9332 2002-02-05 Richard Henderson <rth@redhat.com>
9334 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
9336 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
9338 Implement using "base addresses" in insn operands as default.
9339 * config/mmix/mmix.c (mmix_conditional_register_usage): if
9340 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
9341 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
9342 used to read the rtx value.
9343 (mmix_target_asm_function_epilogue): Fix spacing.
9344 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
9345 (mmix_legitimate_address): Ditto.
9346 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
9347 should be loaded with a GETA insn. Don't allocate needless extra
9348 char for nul termination and fix misleading comment.
9349 (mmix_print_operand_address): Handle constants if
9350 TARGET_BASE_ADDRESSES.
9351 (mmix_output_register_setting): Use base addressing if
9352 TARGET_BASE_ADDRESSES and the number of insns is 3.
9353 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
9354 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
9355 to use R as constraint, add LDA to match s.
9356 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
9357 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
9358 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
9359 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
9360 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
9361 order with other fixed registers.
9362 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
9363 other parameter/call-clobbered registers.
9364 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
9365 -mbase-addresses, -mno-base-addresses.
9366 (MMIX Options): Ditto.
9368 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
9370 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
9372 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
9374 * config/rs6000/altivec.h: Change elem to _S_elem.
9376 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
9378 * config/netbsd.h (WCHAR_TYPE): Define.
9379 (WCHAR_TYPE_SIZE): Ditto.
9381 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
9382 (WCHAR_UNSIGNED): Ditto.
9383 (WCHAR_TYPE_SIZE): Ditto.
9385 * config/arm/netbsd.h: Likewise.
9386 * config/i386/netbsd-elf.h: Likewise.
9387 * config/i386/netbsd.h: Likewise.
9388 * config/m68k/netbsd-elf.h: Likewise.
9389 * config/m68k/netbsd.h: Likewise.
9390 * config/ns32k/netbsd.h: Likewise.
9391 * config/sparc/netbsd.h: Likewise.
9392 * config/vax/netbsd.: Likewise.
9394 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
9396 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
9397 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
9398 (TARGET_INITIALIZER): this.
9399 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
9400 (BITFIELD_NBYTES_LIMITED): Markup fix.
9401 * tree.h (default_ms_bitfield_layout_p): Declare.
9402 (record_layout_info): Added prev_field.
9403 * tree.c (default_ms_bitfield_layout_p): New fn.
9404 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
9405 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
9406 * stor-layout.c: Include target.h.
9407 (start_record_layout): Initialize prev_field.
9408 (place_field): Handle MS bit-field layout, and disregard
9409 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
9410 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
9411 * Makefile.in (stor-layout.o): Adjust dependencies.
9413 2002-02-05 Jason Merrill <jason@redhat.com>
9415 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
9417 2002-02-05 Andreas Jaeger <aj@suse.de>
9419 * crtstuff.c: Fix comments.
9421 2002-02-05 Richard Henderson <rth@redhat.com>
9424 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
9425 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
9428 * config/mips/mips.c (function_arg): Handle TImode.
9429 (function_arg_advance): Likewise.
9431 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9433 * config/rs6000/altivec.h (vec_step_help): Rename to
9436 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9438 * config/rs6000/altivec.h: Fix typos.
9440 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
9442 * config/arm/netbsd.h: Correct a comment.
9444 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9446 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
9447 building void typed builtins.
9449 * config/rs6000/altivec.h (vec_ld*): Fix typos.
9450 (vec_step): Implement for C++.
9452 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9454 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
9456 2002-02-04 Richard Henderson <rth@redhat.com>
9458 * combine.c (nonzero_bits): Re-introduce special case for
9459 sp/fp/ap wrt REGNO_POINTER_ALIGN.
9461 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9463 * doc/extend.texi: Warn about unsupported usage of altivec
9466 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
9467 (altivec_predicate_*): New.
9469 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
9470 Add C++ version of vec_*() functions.
9472 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
9473 (bdesc_2arg): Remove altivec predicates.
9474 (altivec_expand_builtin): Handle predicates.
9475 (altivec_init_builtins): Handle predicates.
9476 (altivec_expand_predicate_builtin): New.
9478 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9480 * pa.c (DO_FRAME_NOTES): Move forward.
9481 (store_reg): Revise handling of frame notes.
9482 (load_reg): Likewise.
9483 (set_reg_plus_d): Likewise.
9484 (hppa_expand_prologue): Likewise.
9485 (hppa_expand_epilogue): Likewise.
9487 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9489 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
9491 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9493 PR c/4475, c++/3780:
9494 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
9495 * c-common.h (SWITCH_TYPE): Define.
9496 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
9497 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
9498 Rename spareness variable to sparseness.
9499 (expand_end_case_type): Renamed from expand_end_case, use orig_type
9500 if non-NULL instead of TREE_TYPE (orig_index).
9501 * tree.h (expand_end_case_type): Renamed from expand_end_case.
9502 (expand_end_case): Define using expand_end_case_type.
9503 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
9504 to expand_end_case_type.
9505 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
9507 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9509 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
9510 (BIGGEST_ALIGNMENT): Change to 128.
9512 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9514 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
9516 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9518 * pa.md (call_internal_reg_64bit): Remove unused variable.
9520 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
9522 * config/arm/arm.h (machine_function): Add uses_anonymous_args
9524 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
9525 * config/arm/arm.c (current_function_anonymous_args): Delete,
9526 replace uses with cfun->machine->uses_anonymous_args.
9527 (arm_reorg): Do not reset uses_anonymous_args.
9529 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
9530 any geenral register.
9532 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
9534 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
9537 2002-02-04 Richard Henderson <rth@redhat.com>
9539 * combine.c (force_to_mode): Remove STACK_BIAS code.
9540 (nonzero_bits): Likewise. Replace sp/fp special case with
9541 REGNO_POINTER_ALIGN.
9543 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
9544 (HARD_FRAME_POINTER_REGNUM): New.
9545 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
9546 (FIXED_REGS, CALL_USED_REGS): Update.
9547 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
9548 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
9549 (HARD_REGNO_NREGS): Update for SFP.
9550 (STACK_POINTER_OFFSET): Include bias here ...
9551 (FIRST_PARM_OFFSET): ... not here.
9552 (STACK_BIAS): Remove.
9553 (INIT_EXPANDERS): New.
9554 (STARTING_FRAME_OFFSET): Do not include bias.
9555 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
9556 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
9557 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
9558 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
9559 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
9560 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
9561 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
9562 (MUST_SAVE_REGISTER): Likewise.
9563 (sparc_flat_function_prologue): Likewise.
9564 (sparc_flat_function_epilogue): Likewise.
9565 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
9566 (sparc_init_modes): SFP is GENERAL_REGS.
9567 (sparc_builtin_saveregs): SFP does not have bias applied.
9569 2002-02-04 Richard Henderson <rth@redhat.com>
9571 * config/alpha/alpha.c (current_function_is_thunk): Don't check
9572 current_function_is_thunk.
9573 (alpha_sa_mask): Distinguish between current_function_is_thunk
9574 called from ASM_OUTPUT_MI_THUNK and not.
9575 (alpha_does_function_need_gp): Thunks always need gp.
9576 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9577 (alpha_output_mi_thunk_osf): New.
9578 * config/alpha/alpha-protos.h: Update.
9579 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
9581 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
9583 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
9584 function types, not when they're taken away.
9586 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
9588 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
9589 CODE_LABEL and jump table when replacing a table jump with a
9592 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9594 * config/s390/s390-protos.h (legitimize_la_operand,
9595 s390_secondary_input_reload_class, s390_plus_operand,
9596 s390_expand_plus_operand): Add prototypes.
9598 config/s390/s390.c (s390_secondary_input_reload_class,
9599 s390_plus_operand, s390_expand_plus_operand): New functions.
9601 (struct s390_address): New member 'pointer'.
9602 (s390_decompose_address): Compute it.
9603 (legitimate_la_operand_p): Use it.
9604 (legitimize_la_operand): New function.
9605 (movti, movdi, movdf splitters): Call it.
9607 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
9608 (PREDICATE_CODES): Add s390_plus_operand.
9610 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
9611 (la_ccclobber): Allow GENERAL_REGS as output operand.
9613 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
9614 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
9615 (*la_64, *la_31, reload_indi, reload_insi): ... these.
9617 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9619 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
9620 register names for regular asm () construct.
9622 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9624 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
9627 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9629 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
9632 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
9634 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
9635 constant pool to be identical by string address and index.
9637 2002-02-04 Anthony Green <green@redhat.com>
9639 * output.h (SECTION_OVERRIDE): Define.
9640 * varasm.c (named_section): Obey SECTION_OVERRIDE.
9642 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
9644 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
9645 by existing arm*-*-netbsd* (a.out) target.
9646 (ns32k-*-netbsdelf*): Likewise.
9647 (sparc-*-netbsdelf*): Likewise.
9648 (vax-*-netbsdelf*): Likewise.
9650 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
9652 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
9653 headers and libobjc headers.
9655 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
9657 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
9658 (_mingw.h): Remove duplicate include.
9660 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
9662 * config.gcc: Set cpu_type to m68k for 68010, as well.
9663 (m68010-*-netbsdelf*): New...
9664 (m68k*-*-netbsdelf*): ...targets.
9665 * config/m68k/netbsd-elf.h: New file.
9667 2002-02-02 Kazu Hirata <kazu@hxi.com>
9669 * config/h8300/h8300.c (hand_list): Move inside function_arg.
9671 2002-02-02 Kazu Hirata <kazu@hxi.com>
9673 * config/h8300/h8300.c (h8_push_ops): Move inside
9675 (h8_pop_ops): Likewise.
9676 (h8_move_ops): Likewise.
9678 2002-02-02 Kazu Hirata <kazu@hxi.com>
9680 * config/h8300/h8300.c (os_task): Make it static.
9681 (monitor): Likewise.
9682 (pragma_saveall): Likewise.
9684 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
9686 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
9687 constant is a valid sign-extension for Pmode.
9689 2002-02-02 Kazu Hirata <kazu@hxi.com>
9691 * config/h8300/h8300.c: Fix formatting.
9693 2002-02-02 Kazu Hirata <kazu@hxi.com>
9695 * config/h8300/h8300.md: Fix formatting.
9697 2002-02-02 Kazu Hirata <kazu@hxi.com>
9699 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
9700 predicates of operands[1]. Split the patterns for each
9703 2002-02-02 Kazu Hirata <kazu@hxi.com>
9705 * config/h8300/h8300.md (xor patterns): Tighten the predicates
9706 of operands[1] to register_operand.
9708 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
9710 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
9711 * cpphash.c (_cpp_init_hashtable): Similarly.
9712 * cppinit.c (cpp_create_reader): Default the signed_char flag.
9713 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
9714 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
9715 (cpp_handle_option): Handle the new options.
9716 * cpplex.c (cpp_interpret_charconst): Use new flag.
9717 * cpplib.h (struct cpp_options): New member signed_char.
9718 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
9719 (cpp_options): Handle -fsigned-char and -funsigned-char.
9720 (static_specs): Remove signed_char_spec.
9721 (do_spec1): Don't handle %c.
9722 * system.h: Poison SIGNED_CHAR_SPEC.
9723 * tradcif.y (yylex): Use flag_signed_char.
9724 * tradcpp.h (flag_signed_char): New.
9725 * tradcpp.c (flag_signed_char): New.
9726 (main): Handle new command-line options.
9727 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
9729 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
9730 * avr/avr.h: Remove old comments.
9731 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
9732 (CC1_SPEC): Pass -fsigned-char if -mic*.
9733 (SIGNED_CHAR_SPEC): Remove.
9735 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
9737 2002-02-01 Eric Christopher <echristo@redhat.com>
9739 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
9740 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
9741 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
9742 (ASM_OUTPUT_REG_POP): Ditto.
9744 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
9746 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
9749 2002-02-02 Jakub Jelinek <jakub@redhat.com>
9751 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
9753 2002-02-02 Jakub Jelinek <jakub@redhat.com>
9756 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
9759 2002-02-01 Janis Johnson <janis187@us.ibm.com>
9761 * cfganal.c: Include tm_p.h.
9762 (keep_with_call_p): Fix the test that determines if a register holds
9763 the return value of a call.
9765 2002-02-01 DJ Delorie <dj@redhat.com>
9767 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
9768 we are given conflicting registers, switch to the other one we
9769 had allocated for us.
9770 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
9771 as TImode so we know when the "other" register is available.
9773 2002-02-01 David O'Brien <obrien@FreeBSD.org>
9775 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
9778 2002-02-01 Janis Johnson <janis187@us.ibm.com>
9780 * cfganal.c (keep_with_call_p): New function.
9781 (flow_call_edges_add): Prevent splitting a block between a call and
9782 a single-set instruction that should be kept in the same block.
9784 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
9786 * doc/install.texi (avr): Update outdated URL.
9788 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
9790 * config/stormy16/stormy16.md (pushqi): New.
9794 (movhi): Remove stack operands.
9796 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
9797 nonimmediate_nonstack_operand.
9798 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
9800 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
9803 2002-01-31 Jason Merrill <jason@redhat.com>
9805 * Makefile.in (c-parse.c): Handle .output file.
9806 * objc/Make-lang.in (objc-parse.c): Likewise.
9808 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
9810 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
9811 the -me[lb] option is given. Don't output the default flag
9814 2002-01-31 Zack Weinberg <zack@codesourcery.com>
9816 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
9817 the primary source file; this has not been done yet.
9818 * c-decl.c (c_expand_body): Reset input_filename from
9819 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
9821 2002-01-31 Kazu Hirata <kazu@hxi.com>
9823 * rtlanal.c (subreg_regno_offset): Do not use
9824 SUBREG_REGNO_OFFSET.
9825 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
9826 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
9828 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
9830 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
9831 version rather than GNATS version in --version output.
9833 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
9835 * ifcvt.c (noce_process_if_block): Make a copy of the destination
9836 when copying back from a temporary.
9838 2002-01-30 Richard Henderson <rth@redhat.com>
9840 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
9841 and new_dest are the same.
9843 2002-01-30 Richard Henderson <rth@redhat.com>
9846 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
9847 * rtl.c (note_insn_name): Update.
9848 * emit-rtl.c (remove_unnecessary_notes): Kill it.
9849 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
9850 to perform loop rotation.
9851 (expand_exit_loop_top_cond): New.
9852 * tree.h (expand_exit_loop_top_cond): Declare it.
9853 * c-semantics.c (genrtl_while_stmt): Use it.
9854 (genrtl_for_stmt): Likewise.
9856 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
9858 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
9859 arguments to 64-bit boundaries on 64-bit ABIs.
9861 2002-01-30 Steve Ellcey <sje@cup.hp.com>
9863 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
9865 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
9867 * c-decl.c (grokdeclarator): Handle type being a typedef for an
9870 2002-01-30 David O'Brien <obrien@FreeBSD.org>
9872 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
9873 * config/sparc/sparc_bi.h: Remove file.
9874 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
9876 2002-01-30 Richard Henderson <rth@redhat.com>
9878 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
9880 2002-01-30 Zack Weinberg <zack@codesourcery.com>
9882 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
9884 2002-01-30 Jason Merrill <jason@redhat.com>
9886 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
9887 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
9888 (reg_save): Use DW_CFA_offset_extended_sf instead.
9890 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
9892 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9894 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
9897 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
9899 * rs6000.md ("*call_value_local32"): Remove constraints.
9900 ("*call_value_local64"): Same.
9901 ("*call_value_indirect_nonlocal_aix32"): Same.
9902 ("*call_value_nonlocal_aix32"): Same.
9903 ("*call_value_indirect_nonlocal_aix64"): Same.
9904 ("*call_value_nonlocal_aix64"): Same.
9905 ("*call_value_nonlocal_sysv"): Same.
9907 2002-01-29 Richard Henderson <rth@redhat.com>
9909 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
9911 2002-01-29 Richard Henderson <rth@redhat.com>
9913 * expr.c (force_operand): Ignore flag_pic for detecting pic
9915 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
9916 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
9917 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
9918 instead of open-coded loop.
9919 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
9920 be fixed when in use.
9922 2002-01-29 Richard Henderson <rth@redhat.com>
9924 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
9925 * sched-rgn.c (propagate_deps): Update them.
9926 * sched-deps.c (sched_analyze_insn): Update them. Flush the
9927 clobbers list when either gets too long.
9929 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9931 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
9932 and INDEX_REGS the same as GENERAL_REGS.
9933 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9935 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
9937 * tree.c (build_nonstandard_integer_type): Correct prototype.
9939 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
9941 * config/s390/s390.md (movstrsico, movstrdix_64,
9942 movstrsix_31): Remove, replace by ...
9943 (movstrdi_short, movstrsi_short, movstrdi_long,
9944 movstrsi_long): ... these. New.
9945 (movstrdi, movstrsi): Adapt.
9947 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
9948 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
9949 Remove unnecessary CC clobber.
9950 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
9951 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
9953 (divmoddi4): Don't partially initialize TImode register.
9955 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
9957 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
9959 2002-01-29 Richard Henderson <rth@redhat.com>
9961 * flow.c (print_rtl_and_abort): Remove.
9962 (print_rtl_and_abort_fcn): Remove.
9963 (verify_local_live_at_start): Use dump_bb instead.
9964 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
9965 (verify_wide_reg_1): Return 2 on mode test failure.
9967 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
9969 PR c/3325, c/3326, c/2511, c/3347
9970 * c-decl.c (enum_decl_context): Remove BITFIELD.
9971 (grokdeclarator): Take bitfield width as an input.
9972 Ensure bitfields are given the correct type. Perform
9973 bitfield width validation with build_bitfield_integer_type
9974 rather than waiting for finish_struct.
9975 (grok_typename, grok_typename_in_parm_context, start_decl,
9976 push_parmdecl, grokfield, start_function): Update calls to
9978 (build_bitfield_integer_type): New function.
9979 (finish_struct): Move bitfield validation to grokdeclarator
9980 and build_bitfield_integer_type.
9981 * tree.c (build_nonstandard_integer_type): New function.
9982 * tree.h (build_nonstandard_integer_type): New prototype.
9984 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
9986 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9989 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
9990 don't ignore unrecognized -W* options.
9991 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
9992 * cpplib.h (cpp_handle_option): Adjust prototype.
9993 * c-decl.c (c_decode_options): Pass 0 as last argument to
9997 * gcc.c (cpp_unique_options): Split from cpp_options.
9998 (cpp_options): Source cpp_unique_options.
9999 (default_compilers): Use cpp_unique_options instead of cpp_options
10000 when used together with cc1_options.
10001 (static_specs): Add cpp_unique_options.
10002 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
10003 when used together with cc1_options.
10005 2002-01-29 Kazu Hirata <kazu@hxi.com>
10007 * config/h8300/h8300-protos.h: Update the prototype of
10009 * config/h8300/h8300.c (output_a_shift): Remove an unused
10010 argument 'insn'. Remove redundant code.
10011 * config/h8300/h8300.md: Adust to the new prototype of
10014 2002-01-29 Kazu Hirata <kazu@hxi.com>
10016 * config/h8300/h8300-protos.h: Update the prototypes of
10017 emit_a_rotate and expand_a_rotate.
10018 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
10019 first argument to 'enum rtx_code'.
10020 (expand_a_rotate): Likewise.
10022 2002-01-28 Kazu Hirata <kazu@hxi.com>
10024 * config/h8300/h8300-protos.h: Update the prototype of
10026 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
10028 * config/h8300/h8300.md: Adjust to the new prototype.
10030 2002-01-28 Kazu Hirata <kazu@hxi.com>
10032 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
10035 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
10037 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
10038 is a fixed register before returning pic_offset_table_rtx.
10039 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
10040 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
10042 2002-01-28 Jason Merrill <jason@redhat.com>
10044 * dwarf2.h: Sync with src version.
10046 2002-01-28 Paul Koning <pkoning@equallogic.com>
10048 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
10049 BT_FN_VOID_PTR_VAR.
10050 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
10051 * doc/extend.texi (__builtin_prefetch): Update documentation:
10052 first argument is now const void ptr.
10054 2002-01-28 Kazu Hirata <kazu@hxi.com>
10056 * config/h8300/h8300-protos.h: Remove an unused prototype.
10058 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
10060 * toplev.c (lang_independent_init): Round up identifier size.
10062 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
10064 * config.gcc: Revert previous change.
10066 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
10068 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
10070 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
10072 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
10073 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
10074 other non-elf netbsd config frags.
10075 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
10076 collect2 will does that.
10077 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
10078 shared-lib frobbing will work.
10080 2002-01-28 Kazu Hirata <kazu@hxi.com>
10082 * config/h8300/h8300.h: Fix formatting.
10083 * config/h8300/h8300.md: Likewise.
10085 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
10087 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
10088 the old, removed AAA_standards fix.
10089 * fixinc/fixincl.x: Rebuilt.
10091 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
10093 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
10094 atexit call in crtbegin, hooked in after call to frame_dummy;
10095 register EH before registering __fini__start.
10097 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
10099 * config/rs6000/altivec.h: Remove spurious semicolons.
10101 2002-01-27 Kazu Hirata <kazu@hxi.com>
10103 * config/h8300/h8300.md: Replace dead bit extraction patterns
10104 with ones that work.
10106 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10108 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
10109 if not STRICT_ALIGNMENT.
10110 * rtl.h (MEM_ALIGN): Likewise.
10112 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
10114 * doc/invoke.texi (-fdump-translation-unit): Revert this
10115 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
10117 2002-01-27 Kazu Hirata <kazu@hxi.com>
10119 * config/h8300/h8300.md (define_constants): New.
10120 (anonymous patterns) Use defined constants appropriately.
10122 2002-01-27 Kazu Hirata <kazu@hxi.com>
10124 * config/h8300/h8300.c (function_arg): Remove redundant code.
10126 2002-01-26 Richard Henderson <rth@redhat.com>
10128 * sched-deps.c (reg_pending_uses_head): New.
10129 (reg_pending_barrier): Rename from reg_pending_sets_all.
10130 (find_insn_list): Don't mark inline.
10131 (find_insn_mem_list): Remove.
10132 (add_dependence_list, add_dependence_list_and_free): New.
10133 (flush_pending_lists): Replace only_write param with separate
10134 for_read and for_write parameters. Update all callers. Use
10135 add_dependence_list_and_free.
10136 (sched_analyze_1): Do not add reg dependencies here; just set
10137 the pending bits. Use add_dependence_list.
10138 (sched_analyze_2): Likewise.
10139 (sched_analyze_insn): Replace schedule_barrier_found with
10140 reg_pending_barrier. Add all dependencies for pending reg
10141 uses, sets, and clobbers.
10142 (sched_analyze): Don't add reg dependencies for calls, just
10143 set pending bits. Use regs_invalidated_by_call. Treat
10144 sched_before_next_call as a normal list, not a fake insn.
10145 (init_deps): No funny init for sched_before_next_call.
10146 (free_deps): Free pending mems lists. Don't zero reg_last.
10147 (init_deps_global): Init reg_pending_uses.
10148 (finish_deps_global): Free it.
10149 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
10150 (find_insn_mem_list): Remove.
10151 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
10152 (propagate_deps): Use them. Zero temp mem lists.
10154 2002-01-26 Richard Henderson <rth@redhat.com>
10156 * Makefile.in (CRTSTUFF_CFLAGS): New.
10157 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
10158 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
10159 crtstuff.c instead of alpha assembly version.
10160 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
10161 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
10162 not FORCE_{INIT,FINI}_SECTION_ALIGN.
10163 (__do_global_dtors_aux): Mark used.
10164 (frame_dummy, __do_global_ctors_aux): Mark used.
10165 (fini_dummy, init_dummy): Remove.
10167 * config/alpha/crtbegin.asm: Remove file.
10168 * config/alpha/crtend.asm: Remove file.
10169 * config/alpha/t-crtbe: Remove file.
10170 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
10171 (LINK_EH_SPEC): New.
10173 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
10174 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
10175 calling constructors.
10176 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
10178 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
10179 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
10180 CRT_END_INIT_DUMMY hack.
10181 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
10182 FORCE_{INIT,FINI}_SECTION_ALIGN.
10184 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
10185 FORCE_{INIT,FINI}_SECTION_ALIGN.
10187 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
10188 invocation sequence.
10189 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
10191 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
10192 (FORCE_CODE_SECTION_ALIGN): New.
10194 2002-01-26 Richard Henderson <rth@redhat.com>
10196 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
10198 2002-01-26 Richard Henderson <rth@redhat.com>
10200 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
10201 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
10203 2002-01-26 Kazu Hirata <kazu@hxi.com>
10205 * config/h8300/h8300.md: Remove bit extraction patterns that
10206 cannot be triggered.
10207 Restrict each bit extraction pattern to a variant on which the
10210 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
10212 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
10214 2002-01-26 Kazu Hirata <kazu@hxi.com>
10216 * config/h8300/h8300.md: Remove bit test patterns that cannot
10218 Restrict each bit test pattern to a variant on which the
10221 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10223 * builtins.c (expand_builtin_strncat): Remove redundant check for
10226 2002-01-25 David O'Brien <obrien@FreeBSD.org>
10228 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
10230 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
10233 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
10235 * dbxout.c (dbxout_init): Use assemble_name rather than just
10236 stripping off the first character.
10237 (dbxout_source_file): Likewise.
10239 2002-01-25 DJ Delorie <dj@redhat.com>
10241 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
10242 using rtx_equal_p, not by comparing pointers.
10244 2002-01-25 Steve Ellcey <sje@cup.hp.com>
10246 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
10247 for PIC_OFFSET_TABLE_REGNUM.
10248 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
10250 2002-01-25 David O'Brien <obrien@FreeBSD.org>
10252 * config.gcc (x86_64-*-freebsd*): New target.
10253 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
10255 (i[34567]86-*-freebsd*): Don't include svr4.h.
10256 * config/i386/freebsd64.h: New file.
10258 2002-01-25 Douglas B Rupp <rupp@gnat.com>
10260 * config/alpha/x-vms (version): Make static.
10262 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
10263 in previous checkin.
10265 * Makefile.in (install-headers-cp): New target.
10266 * config.gcc (alpha-dec-*vms*): Install headers with
10269 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
10271 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
10274 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10276 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
10277 of compare_tree_int.
10278 (expand_builtin_strncat): Likewise.
10279 * c-decl.c (finish_struct): Use tree_low_cst.
10280 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
10281 * tree.c (compare_tree_int): Likewise.
10283 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
10285 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
10286 adjustments even if they are implemented by more than two insns.
10288 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
10290 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
10291 * df.h (struct ref): Kill B.
10292 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
10294 * basic-block.h (PROP_EQUAL_NOTES): New flag.
10295 * flow.c (propagate_one_insn): Use it.
10296 (mark_used_regs): Handle NIL.
10298 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
10300 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
10303 2002-01-25 David Edelsohn <edelsohn@gnu.org>
10305 * rs6000.md (prefetch): Make address V4SI mode so that the address
10306 is restricted to legitimate form for instruction.
10308 2002-01-25 Bob Wilson <bob.wilson@acm.org>
10310 * doc/install.texi (xtensa-*-elf): New target.
10311 (xtensa-*-linux*): New target.
10312 * doc/contrib.texi: Add myself.
10314 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
10316 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
10317 purpose register to hold an SImode (or smaller) value.
10319 2002-01-25 Jakub Jelinek <jakub@redhat.com>
10321 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
10323 * crtstuff.c: Likewise.
10325 2002-01-25 Kazu Hirata <kazu@hxi.com>
10327 * config/h8300/h8300.md (negation patterns): Tighten
10328 predicates to register_operand.
10330 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
10332 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
10335 * builtins.c (expand_builtin_prefetch): Same.
10337 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10339 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
10342 2002-01-24 Kazu Hirata <kazu@hxi.com>
10344 * config/h8300/h8300.c (print_operand): Remove support for
10345 operand character 'A'.
10346 * config/h8300/h8300.md (three anonymous patterns): Replace
10347 operand character 'A' with either 'T' or 'S'.
10349 2002-01-24 Kazu Hirata <kazu@hxi.com>
10351 * config/h8300/h8300.c (print_operand): Remove support for
10352 operand character 'U'.
10354 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
10356 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
10358 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
10360 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
10361 values to be assigned to the stack pointer.
10363 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
10365 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
10366 to const_double needs to be done right for big-endian systems.
10368 2002-01-24 Jason Merrill <jason@redhat.com>
10371 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
10372 to can_throw_internal.
10374 2002-01-23 Richard Henderson <rth@redhat.com>
10376 * fold-const.c (fold): Change UINT_MAX test to check vs precision
10377 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
10379 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10381 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
10382 (symGOT2reg): Use them, then set as GOT value as unchanging.
10383 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
10384 as a temporary, if possible.
10385 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
10386 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
10388 2002-01-23 Kazu Hirata <kazu@hxi.com>
10390 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
10391 accept to accept 0x80 as operands[2].
10393 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10395 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
10397 2002-01-23 Richard Henderson <rth@redhat.com>
10399 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
10401 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
10403 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
10404 (parmlist_or_identifiers_1): Verify that only a parmlist follows
10407 2002-01-23 Richard Henderson <rth@redhat.com>
10409 * expr.c (move_by_pieces_1): Extend size before negation.
10411 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
10412 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
10413 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
10414 * config/m68k/t-m68kelf: Likewise.
10416 2002-01-23 Bob Wilson <bob.wilson@acm.org>
10418 * config/xtensa/elf.h: New file.
10419 * config/xtensa/lib1funcs.asm: New file.
10420 * config/xtensa/lib2funcs.S: New file.
10421 * config/xtensa/linux.h: New file.
10422 * config/xtensa/t-xtensa: New file.
10423 * config/xtensa/xtensa-config.h: New file.
10424 * config/xtensa/xtensa-protos.h: New file.
10425 * config/xtensa/xtensa.c: New file.
10426 * config/xtensa/xtensa.h: New file.
10427 * config/xtensa/xtensa.md: New file.
10428 * config.gcc (xtensa-*-elf*): New target.
10429 (xtensa-*-linux*): New target.
10430 * cse.c (canon_hash): Compare rtx pointers instead of register
10431 numbers. This is required for the Xtensa port.
10432 * integrate.c (copy_insn_list): Handle case where the static
10433 chain is in memory and the memory address has to be copied to
10435 * doc/invoke.texi (Option Summary): Add Xtensa options.
10436 (Xtensa Options): New node.
10437 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
10439 2002-01-23 Zack Weinberg <zack@codesourcery.com>
10441 * diagnostic.c (internal_error): Do ICE suppression only
10442 when ENABLE_CHECKING is not defined.
10444 * c-typeck.c (require_complete_type): Return error_mark_node
10445 if type is error_mark_node.
10447 2002-01-23 Janis Johnson <janis187@us.ibm.com>
10449 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
10450 -Os and issue a warning.
10452 2002-01-23 Zack Weinberg <zack@codesourcery.com>
10454 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
10455 current (lack of) need for host configuration by hand.
10457 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
10458 references. Documentation of some target macros moved from
10459 hostconfig.texi to tm.texi.
10461 2002-01-23 Will Cohen <wcohen@redhat.com>
10463 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
10466 2002-01-23 Kazu Hirata <kazu@hxi.com>
10468 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
10471 2002-01-23 Jason Merrill <jason@redhat.com>
10473 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
10475 * function.c (assign_parms): Don't put args of inline functions
10476 into registers when not optimizing.
10478 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
10480 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
10481 (prologue_use): New pattern.
10482 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
10483 preference to gen_rtx_USE.
10484 (thumb_expand_prologue): Use gen_prologue_use in preference to
10486 (thumb_expand_epilogue): Use gen_prologue_use in preference to
10489 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
10491 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
10493 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
10496 * doc/extend.texi: Correct documentation of __alignof__.
10498 2002-01-22 Zack Weinberg <zack@codesourcery.com>
10500 * params.h: Rename arguments of DEFPARAM so that it will be
10501 recognized as a translation keyword.
10503 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10505 * extend.texi: Document altivec functions.
10506 Fix N-bit adjectives in X86 builtin documentation.
10508 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
10510 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
10511 auto_inc_dec values.
10513 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
10515 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
10517 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
10519 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
10521 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
10523 2002-01-22 Richard Henderson <rth@redhat.com>
10525 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
10526 copy_insn not copy_rtx.
10528 2002-01-23 Alan Modra <amodra@bigpond.net.au>
10530 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
10531 "nonzero" as that might add "1" bits. Ensure "constop" is
10532 properly sign extened.
10533 (force_to_mode): Tweak for sign extended constop.
10535 2002-01-22 Richard Henderson <rth@redhat.com>
10537 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
10538 for_each_rtx instead of assuming we're already looking at the MEM.
10539 (split_small_symbolic_mem_operand): Likewise.
10540 * config/alpha/alpha.h (PREDICATE_CODES): Update.
10541 * config/alpha/alpha.md (small symbolic memory splitters): Update.
10543 2002-01-22 Richard Henderson <rth@redhat.com>
10545 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
10546 sequence number for the literal.
10547 (divmoddi_internal_er): Likewise.
10549 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
10552 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
10553 in LIBICONV variable.
10554 * configure: Regenerated.
10556 2002-01-22 Krister Walfridsson <cato@df.lth.se>
10558 * dependence.c (build_def_use): Remove array_idx.
10560 * dwarfout.c (last_filename): Remove.
10561 (output_compile_unit_die): Remove last_filename.
10563 2002-01-22 Roger Sayle <roger@eyesopen.com>
10564 Richard Henderson <rth@redhat.com>
10567 * fold-const.c (fold): Optimize unsigned comparisons against
10568 UINT_MAX (and similar unsigned constants).
10570 2002-01-22 Janis Johnson <janis187@us.ibm.com>
10572 * Makefile.in (loop.o): Depend on OPTABS_H.
10573 * loop.c (emit_prefetch_instructions): Check the prefetch operand
10574 against the predicate.
10577 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
10578 for the address operand.
10580 2002-01-22 Richard Henderson <rth@redhat.com>
10582 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
10584 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
10587 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
10588 preprocessor flags.
10590 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
10592 * config.gcc (x86_64-*-netbsd*): New target.
10593 * config/i386/netbsd64.h: New file.
10595 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10597 * regrename.c (kill_value): Fix typo.
10599 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10601 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
10603 * config/rs6000/rs6000.h: Same.
10605 * function.c (instantiate_virtual_regs): Remove
10606 STARTING_FRAME_PHASE.
10607 (assign_stack_local_1): Same.
10608 Calculate frame phase.
10610 2002-01-22 Nick Clifton <nickc@redhat.com>
10612 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
10613 variable declaration to outer scope in order to simplify
10615 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
10616 arm_hard_regno_mode_ok.
10617 * config/arm/arm-protos.h: Add a prototype for
10618 arm_hard_regno_mode_ok.
10619 * config/arm/arm.c (soft_df_operand): Remove now redundant
10620 check for DImode values using IP_REGNUM.
10621 (nonimmediate_soft_df_operand): Remove now redundant check for
10622 DImode values using IP_REGNUM.
10623 (arm_hard_regno_mode_ok): New function. New check: make sure
10624 that DImode values are not stored in IP_REGNUM.
10626 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
10628 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
10630 2002-01-22 Jason Merrill <jason@redhat.com>
10632 * c-semantics.c (genrtl_compound_stmt): Only check nesting
10633 consistency if this COMPOUND_STMT is scoped.
10635 2002-01-22 Kazu Hirata <kazu@hxi.com>
10637 * predict.c: Fix formatting.
10638 * print-tree.c: Likewise.
10639 * protoize.c: Likewise.
10640 * real.h: Likewise.
10642 * sbitmap.h: Likewise.
10643 * scan.c: Likewise.
10644 * sched-deps.c: Likewise.
10645 * sched-vis.c: Likewise.
10646 * sdbout.c: Likewise.
10647 * sibcall.c: Likewise.
10649 * ssa-ccp.c: Likewise.
10650 * ssa-dce.c: Likewise.
10651 * stmt.c: Likewise.
10652 * stor-layout.c: Likewise.
10653 * system.h: Likewise.
10655 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10657 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
10658 if fits in bounds of base type.
10660 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
10661 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
10662 (add_bound_info, default): If can't find a context, make a
10664 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
10666 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
10668 * c-typeck.c (parser_build_binary_op): If result from
10669 build_binary_op is ERROR_MARK just return error_mark_node without
10670 further processing.
10672 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
10674 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
10675 Split a.out-specific bits into...
10676 * config/netbsd-aout.h: ...this.
10677 * config/netbsd-elf.h: New file.
10678 * config/alpha/netbsd-elf.h: Remove.
10679 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
10680 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
10681 (STARTFILE_SPEC): Remove redundant definition.
10682 (ENDFILE_SPEC): Likewise.
10683 (LINK_SPEC): Likewise.
10684 (CPP_SPEC): Likewise.
10685 (ASM_SPEC): Likewise.
10686 (LIB_SPEC): Likewise.
10687 (SWITCH_TAKES_ARG): Likewise.
10688 (TARGET_MEM_FUNCTIONS): Likewise.
10689 (CPP_PREDEFINES): Redefine.
10690 (ASM_FINAL_SPEC): Remove redefinition.
10691 (ASM_COMMENT_START): Redefine.
10692 (FUNCTION_PROFILER): Define.
10693 (TARGET_VERSION): Redefine.
10694 Comment and formatting cleanup.
10695 * config/i386/netbsd.h: Include <netbsd-aout.h>.
10696 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
10697 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
10698 big- or little-endian.
10699 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
10700 * config.gcc (*-*-netbsd*): Add definitions common to all
10702 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
10703 gnu_ld definitions. Add netbsd-elf.h to and remove
10704 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
10705 tmake_file, and don't lose previous tmake_file contents.
10706 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
10707 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
10708 gnu_ld definitions. Add netbsd-elf.h to tm_file.
10709 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
10710 (mipsel-*-netbsd*): Rename this to...
10711 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
10712 mips/little.h to tm_file for mips*el-*.
10713 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
10714 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
10715 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
10717 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
10719 * pa-protos.h (reg_before_reload_operand): New function prototype.
10720 * pa.c (reg_before_reload_operand): New function implementation.
10721 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
10722 contraints to "*m".
10724 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10726 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
10728 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
10730 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
10731 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
10732 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
10733 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
10734 (ENDFILE_SPEC): Undefine.
10735 (STARTFILE_SPEC): Redefine for PA.
10737 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10739 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
10741 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
10743 * config.gcc: Add entries to supported PowerPC --with-cpu
10746 2002-01-21 Jakub Jelinek <jakub@redhat.com>
10748 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
10749 true for 64-bit mode only SSE registers in 32-bit mode.
10751 2002-01-21 Kazu Hirata <kazu@hxi.com>
10753 * unwind-dw2.c: Fix formatting.
10754 * unwind-dw2-fde.c: Likewise.
10755 * unwind-dw2-fde.h: Likewise.
10756 * unwind-pe.h: Likewise.
10757 * varasm.c: Likewise.
10758 * varray.h: Likewise.
10760 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
10762 Remove workaround for register stack overwrite bug in mmix.
10763 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
10764 support for TARGET_REG_STACK_FILL_BUG.
10765 * config/mmix/mmix.h: Remove member has_call_without_parameters.
10766 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
10768 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
10769 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
10770 -mno-reg-stack-fill-bug-workaround.
10771 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
10772 machine member has_call_without_parameters.
10773 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
10774 -mreg-stack-fill-bug-workaround and
10775 -mno-reg-stack-fill-bug-workaround.
10776 (MMIX Options): Ditto.
10778 2002-01-21 Kazu Hirata <kazu@hxi.com>
10780 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
10782 Remove redundant code.
10784 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
10786 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10787 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10788 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10789 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
10790 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
10791 out target macro definitions and non-target-specific comments
10792 mostly taken from old versions of the manual.
10794 2002-01-20 Kazu Hirata <kazu@hxi.com>
10796 * config/h8300/h8300.h: Fix comment formatting.
10797 * config/ia64/aix.h: Likewise.
10798 * config/ia64/ia64-protos.h: Likewise.
10799 * config/ia64/ia64.c: Likewise.
10800 * config/ia64/ia64.h: Likewise.
10801 * config/ia64/ia64intrin.h: Likewise.
10802 * config/ia64/linux.h: Likewise.
10803 * config/ia64/unwind-aix.c: Likewise.
10804 * config/ia64/unwind-ia64.c: Likewise.
10806 2002-01-20 Kazu Hirata <kazu@hxi.com>
10808 * config/h8300/h8300.c: Revise comments about shift code.
10810 2002-01-20 Kazu Hirata <kazu@hxi.com>
10812 * config/h8300/h8300.c (function_arg): Update a comment.
10814 2002-01-20 Kazu Hirata <kazu@hxi.com>
10816 * config/h8300/h8300.md: Update the comments at the beginning
10819 2002-01-20 Kazu Hirata <kazu@hxi.com>
10821 * config/i370/i370.c: Fix comment formatting.
10822 * config/i370/i370.h: Likewise.
10823 * config/i370/i370.md: Likewise.
10824 * config/i370/linux.h: Likewise.
10826 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10828 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
10830 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
10831 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
10832 in incomplete case.
10834 2002-01-20 Graham Stott <grahams@redhat.com>
10836 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
10838 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
10840 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
10842 2002-01-19 Tom Rix <trix@redhat.com>
10844 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
10846 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
10848 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
10850 * function.c (assign_stack_local_1): Adjust x_frame_offset with
10851 STARTING_FRAME_PHASE.
10852 (STARTING_FRAME_PHASE): New.
10853 (instantiate_virtual_regs): Check saneness of
10854 STARTING_FRAME_PHASE.
10856 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
10858 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
10860 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
10862 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
10864 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
10865 be used for bootstrapping GCC 3.0.
10867 2002-01-18 Kazu Hirata <kazu@hxi.com>
10869 * config/h8300/h8300.md: Fix an insn length.
10871 2002-01-18 Kazu Hirata <kazu@hxi.com>
10873 * bitmap.h: Fix comment formatting.
10874 * combine.c: Likewise.
10875 * cppfiles.c: Likewise.
10876 * c-pragma.h: Likewise.
10877 * c-typeck.c: Likewise.
10879 * dwarf2out.c: Likewise.
10880 * function.c: Likewise.
10882 * genattrtab.c: Likewise.
10883 * gthr-win32.h: Likewise.
10884 * haifa-sched.c: Likewise.
10885 * predict.c: Likewise.
10886 * rtlanal.c: Likewise.
10888 * unwind-dw2-fde.h: Likewise.
10889 * unwind-pe.h: Likewise.
10890 * vmsdbgout.c: Likewise.
10892 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10894 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
10895 if type_required and passed decl.
10897 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
10899 * config.gcc (cpu_type): Include altivec.h in powerpc
10903 * config/rs6000/altivec.h: New.
10905 2002-01-17 David Edelsohn <edelsohn@gnu.org>
10907 * doc/install.texi (*-ibm-aix*): Update assembler and exception
10908 handling information.
10909 * doc/trouble.texi (Interoperation): Add libstdc++ information
10911 (Misunderstandings): Add template instantiation and static template
10912 member information for AIX.
10914 2002-01-17 Jason Merrill <jason@redhat.com>
10916 * dbxout.c (dbxout_type): Support const and volatile.
10918 * except.c (add_partial_entry): Remove backwards compatibility code.
10919 (end_protect_partials): Likewise.
10921 2002-01-17 Jakub Jelinek <jakub@redhat.com>
10923 * config/ia64/ia64.md (prologue_use): New.
10924 * config/ia64/ia64.c (ia64_expand_prologue): Use
10925 gen_prologue_use instead of gen_rtx_USE.
10926 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
10927 as CODE_FOR_pred_rel_mutex.
10928 (ia64_sched_reorder2): Likewise.
10930 2002-01-16 Eric Christopher <echristo@redhat.com>
10932 * config/mips/r3900.h: Reformat.
10933 (SUBTARGET_CPP_SIZE_SPEC): Remove.
10934 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
10935 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
10936 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
10937 * config/mips/t-elf: Remove mips3 multilib.
10939 2002-01-16 H.J. Lu <hjl@gnu.org>
10941 * config/mips/linux.h: Include "mips/abi64.h".
10943 2002-01-16 H.J. Lu <hjl@gnu.org>
10945 * config/mips/t-linux: New.
10947 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
10949 * config/mips/linux.h: Don't include "gofast.h".
10950 (INIT_SUBTARGET_OPTABS): Removed.
10952 2002-01-16 Kazu Hirata <kazu@hxi.com>
10954 * config/h8300/h8300-protos.h: Replace emit_a_shift with
10956 * config/h8300/h8300.c: Likewise.
10957 * config/h8300/h8300.md: Likewise.
10959 2002-01-16 Kazu Hirata <kazu@hxi.com>
10961 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
10962 spaces after an opcode name.
10963 (pushqi1_h8300hs): Likewise.
10964 (pushhi1_h8300hs): Likewise.
10966 2002-01-16 Kazu Hirata <kazu@hxi.com>
10968 * doc/extend.texi: Replace "option" with "attribute"
10971 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10973 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
10974 (and:DI () (const_int -8)).
10975 (split_small_symbolic_mem_operand): Split
10976 (mem (and:DI () (const_int -8)).
10978 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10981 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
10982 same way as TYPE_IMUL.
10983 (ultrasparc_sched_reorder): Likewise.
10984 * config/sparc/sparc.md (type): Add comment to update
10985 ultrasparc_sched_reorder when making changes.
10987 2002-01-16 Kazu Hirata <kazu@hxi.com>
10989 * doc/invoke.texi: Change the dump file name of block
10990 reordering pass from 28.bbro to 29.bbro.
10991 Mention -dk option.
10993 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
10995 * i386.md (minsf splitter): Fix pasto.
10997 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
10999 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
11000 to frame pointer initialisation instruction.
11001 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
11002 initialisation instruction.
11003 (soft_df_operand): Do not accept the IP register.
11004 (nonimmediate_soft_df_operand): Do not accept the IP register.
11006 2002-01-16 Jakub Jelinek <jakub@redhat.com>
11009 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
11010 MASK_V8 being both set.
11012 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
11014 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
11015 insn for GOT register; add REG_MAYBE_DEAD notes instead.
11016 config/s390/s390.md (call, call_value): Add GOT register to
11017 CALL_INSN_FUNCTION_USAGE where needed.
11018 (call_exp, call_value_exp): New.
11020 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
11022 * config/arm/arm.c: General formatting tidy up.
11024 2002-01-16 Graham Stott <grahams@redhat.com>
11026 * calls.c (try_to_integrate): Use "(size_t)" intermediate
11027 cast and when casting an integer literal to "rtx" pointer.
11028 (expand_call): Likewise.
11029 * flow.c (try_pre_increment): Likewise.
11030 (find_use_as_address): Likewise.
11031 * integrate.c (expand_iline_function): Likewise.
11032 * regmove.c (try_auto_increment): Likewise.
11034 2002-01-16 Graham Stott <grahams@redhat.com>
11036 * sched-rgn.c (passed): Use sbitmap_free.
11037 (header): Likewise.
11039 (in_queue): Likewise.
11040 (in_stack): Likewise.
11042 2002-01-15 Eric Christopher <echristo@redhat.com>
11044 * flow.c (propagate_one_insn): Change to use fatal_insn.
11046 2002-01-15 Kazu Hirata <kazu@hxi.com>
11048 * expmed.c (extract_fixed_bit_field): Remove unused code.
11049 * system.h: Poison SLOW_ZERO_EXTEND.
11050 * doc/tm.texi: Remove.
11051 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
11052 * config/arm/arm.h: Likewise.
11053 * config/avr/avr.h: Likewise.
11054 * config/clipper/clipper.h: Likewise.
11055 * config/convex/convex.h: Likewise.
11056 * config/d30v/d30v.h: Likewise.
11057 * config/dsp16xx/dsp16xx.h: Likewise.
11058 * config/elxsi/elxsi.h: Likewise.
11059 * config/fr30/fr30.h: Likewise.
11060 * config/h8300/h8300.h: Likewise.
11061 * config/i370/i370.h: Likewise.
11062 * config/i386/i386.h: Likewise.
11063 * config/m68k/m68k.h: Likewise.
11064 * config/mips/mips.h: Likewise.
11065 * config/ns32k/ns32k.h: Likewise.
11066 * config/pdp11/pdp11.h: Likewise.
11067 * config/pj/pj.h: Likewise.
11068 * config/s390/s390.h: Likewise.
11069 * config/sh/sh.h: Likewise.
11070 * config/stormy16/stormy16.h: Likewise.
11071 * config/v850/v850.h: Likewise.
11072 * config/vax/vax.h: Likewise.
11073 * config/we32k/we32k.h: Likewise.
11075 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
11077 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
11078 (altivec_lvsl): Change constraint to b.
11079 (altivec_lvsr): Same.
11080 (altivec_lvebx): Same.
11081 (altivec_lvehx): Same.
11082 (altivec_lvewx): Same.
11083 (altivec_lvxl): Same.
11084 (altivec_lvx): Same.
11085 (altivec_stvx): Add parallel.
11086 (altivec_stvxl): Same.
11087 (altivec_stvehx): Same.
11088 (altivec_stvebx): Same.
11089 (altivec_stvebx): Same.
11091 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
11093 * config.gcc: Change altivec.h to altivec-defs.h.
11095 * config/rs6000/altivec.h: Delete.
11097 * config/rs6000/altivec-defs.h: Add.
11099 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
11101 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
11104 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
11105 less than or equal to eight bytes.
11107 * vax.md (andsi3): Remove constraints and change SET destination
11108 operand type to nonimmediate_operand.
11109 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
11110 when it is a CONST_INT.
11112 2002-01-15 Jason Merrill <jason@redhat.com>
11114 * c-common.def (FILE_STMT): New code.
11115 * c-common.c (statement_code_p): It's a statement.
11116 * c-common.h (stmt_tree_s): Add x_last_filename.
11117 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
11118 (last_expr_filename): New macro.
11119 * c-semantics.c (begin_stmt_tree): Initialize it.
11120 (add_stmt): If the filename changed, also insert a
11122 (expand_stmt): Handle seeing one.
11124 2002-01-15 Eric Christopher <echristo@redhat.com>
11126 * flow.c (propagate_one_insn): Add error message and print out
11127 insn for debugging.
11129 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
11131 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
11132 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
11133 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
11134 TRAMPOLINE_ALIGNMENT.
11135 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
11137 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
11138 PCC_BITFIELD_TYPE_MATTERS.
11139 * config/interix.h (STDC_VALUE): Remove. Use
11140 STDC_0_IN_SYSTEM_HEADERS.
11141 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
11142 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
11143 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
11145 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
11147 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
11148 not work on this platform currently.
11150 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
11152 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
11153 readonly_warning in _().
11155 2002-01-15 Douglas B Rupp <rupp@gnat.com>
11157 * gcc.c (delete_if_ordinary): Backout previous change.
11159 2002-01-15 Kazu Hirata <kazu@hxi.com>
11161 * config/h8300/h8300.c (print_operand): Remove support for
11162 unused operand characters.
11164 * read-rtl.c: Fix formatting.
11165 * real.c: Likewise.
11166 * recog.c: Likewise.
11167 * regclass.c: Likewise.
11168 * regmove.c: Likewise.
11169 * reg-stack.c: Likewise.
11170 * reload1.c: Likewise.
11171 * rtlanal.c: Likewise.
11173 2002-01-15 Kazu Hirata <kazu@hxi.com>
11175 * config/i386/i386.c: Fix formatting.
11177 2002-01-15 Jakub Jelinek <jakub@redhat.com>
11179 * c-typeck.c (process_init_element): Don't save_expr
11180 COMPOUND_LITERAL_EXPR if just its initializer will be used.
11182 2002-01-15 David Edelsohn <edelsohn@gnu.org>
11184 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
11185 emit optional traceback table if optimize_size or TARGET_ELF.
11186 * config/rs6000/rs6000.md (prefetch): New.
11188 2002-01-15 Andreas Jaeger <aj@suse.de>
11190 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
11192 2002-01-15 Kazu Hirata <kazu@hxi.com>
11194 * mips-tfile.c: Fix formatting.
11196 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
11198 * unroll.c (final_reg_note_copy): Fix previous commit.
11200 2002-01-14 Kazu Hirata <kazu@hxi.com>
11202 * config/h8300/h8300-protos.h: Remove the prototype for
11204 * config/h8300/h8300.c (eq_operator): Remove.
11206 2002-01-14 Richard Henderson <rth@redhat.com>
11208 * config/i386/i386.md (prefetch): Tidy.
11209 (prefetch_3dnow): Fix locality operand.
11211 2002-01-14 Richard Henderson <rth@redhat.com>
11213 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
11214 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
11216 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
11218 * reload1.c (reload_combine): Pass reg_sum replacement through
11219 copy_rtx in loop performing multiple changes.
11221 2002-01-14 Jakub Jelinek <jakub@redhat.com>
11223 * except.c (remove_unreachable_regions): New.
11224 (free_eh_status): Clear exception_handler_labels.
11225 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
11226 (find_exception_handler_labels): Don't add the same label more than
11228 (remove_exception_handler_label): Don't die if
11229 find_exception_handler_labels hasn't been called for the current
11232 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
11234 * toplev.c (rest_of_compilation): Rebuild jump labels after
11237 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
11239 * doc/extend.texi: Move documentation of X86 built-in functions
11241 * doc/invoke.texi: From here.
11242 * doc/sourcebuild.texi: Document location of documentation for
11243 machine built-in functions.
11245 2002-01-13 Christopher Faylor <cgf@redhat.com>
11247 * cppfiles.c (TEST_THRESHOLD): New macro.
11248 (SHOULD_MMAP): Ditto.
11249 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
11252 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
11254 * unroll.c (final_reg_note_copy): Properly handle
11256 (unroll_loops): Fix LOOP_CONDITION heuristics.
11258 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
11260 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
11261 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
11263 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
11265 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
11268 2002-01-14 Tom Rix <trix@redhat.com>
11270 * config/rs6000/rs6000.md: Fix typo with sradi.
11272 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
11274 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
11275 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
11276 (clrstrdi, clrstrsi): Adapt callers.
11278 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
11280 (movti splitter): Never use register 0 as base register.
11282 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
11284 * combine.c (simplify_shift_const): Always generate new rtx
11285 for shift expression instead of reusing given expression.
11287 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11289 * config/alpha/alpha.c (alpha_expand_mov): Don't call
11290 alpha_legitimize_address unless mode is Pmode.
11292 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
11294 * doc/md.texi (Modifiers): Document the '*' constraint for the
11297 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
11298 * doc/extend.texi (Function Attributes): 'interrupt' is valid
11301 2002-01-13 Richard Henderson <rth@redhat.com>
11303 * reload.c (find_reloads): Use a hard reg destination as reload reg
11304 for an input reload of the source.
11306 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11308 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
11311 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
11313 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11314 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11316 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
11318 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11320 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
11322 2002-01-12 Tom Rix <trix@redhat.com>
11324 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
11327 2002-01-12 Richard Henderson <rth@redhat.com>
11329 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
11331 * doc/invoke.texi: Update Alpha options.
11333 * doc/invoke.texi: Update i386 built-in function lists.
11335 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
11337 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
11338 referencing outside.
11340 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11342 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
11343 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
11344 offsets, and change line folding.
11345 * optabs.c (expand_binop): Remove warnings.
11346 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
11348 2002-01-12 Graham Stott <grahams@redhat.com>
11350 * attribs.c (handle_deprecated_attribute): constify WHAT.
11351 * diagnostic.c (warn_deprecated_use): Add braces, fixes
11352 dangling else warning and constify WHAT.
11353 * except.h (struct function, struct inline_remap): Move
11354 struct tag forward defs before all prototypes.
11355 (duplicate_eh_regions): Whitespace.
11357 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
11359 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11360 MODE_BASE_REG_CLASS.
11361 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
11363 2002-01-12 Richard Henderson <rth@redhat.com>
11365 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
11366 (ix86_expand_vector_move): New.
11367 (bdesc_2arg): Remove andps, andnps, orps, xorps.
11368 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
11369 Remove old prefetch builtins. Special case the logicals removed above.
11370 (ix86_expand_builtin): Likewise.
11371 (safe_vector_operand): Use V4SFmode, not TImode.
11372 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
11373 (ix86_expand_timode_binop_builtin): New.
11374 * config/i386/i386-protos.h: Update.
11375 * config/i386/i386.h (enum ix86_builtins): Update.
11376 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
11377 Use ix86_expand_vector_move in vector move expanders.
11378 (movti_internal, movti_rex64): Add xorps alternative.
11379 (sse_clrv4sf): Rename and adjust from sse_clrti.
11380 (prefetch): Don't work so hard.
11381 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
11382 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
11383 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
11385 2002-01-11 Richard Henderson <rth@redhat.com>
11387 * config/i386/mmintrin.h: New file.
11388 * config/i386/xmmintrin.h: New file.
11389 * config.gcc (i?86-*-*): Add extra_headers.
11390 * simplify-rtx.c (simplify_unary_operation): Handle saturating
11392 (simplify_binary_operation): Handle saturating arithmetic codes.
11393 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
11394 not the lowpart subreg.
11395 (ix86_expand_builtin): Return a TImode dummy register instead of 0
11397 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
11399 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11401 * conflict.c (conflict_graph_compute): Free regsets when finished.
11402 * ssa.c (compute_coalesced_reg_partition): Likewise.
11404 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11406 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
11407 every where we allocate a register.
11409 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11411 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
11412 * lcm.c (compute_earliest, compute_farthest): Likewise.
11414 2002-01-11 Janis Johnson <janis187@us.ibm.com>
11416 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
11418 2002-01-11 Janis Johnson <janis187@us.ibm.com>
11420 * doc/rtl.texi (Insns): Fix 2 typos.
11422 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
11424 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
11425 options. Use @table @gcctabopt for MMIX options. Add index
11426 entries for MMIX options. Start new paragraph with first
11427 heading of the machine-dependent options.
11429 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
11432 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
11433 * combine.c (force_to_mode): Same.
11434 * reload1.c (clear_reload_reg_in_use): Same.
11436 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
11438 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
11441 2002-01-11 Andreas Jaeger <aj@suse.de>,
11442 Brad Lucier <lucier@math.purdue.edu>
11444 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
11447 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
11449 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
11450 Protect with IN_LIBGCC.
11451 (LINK_EH_SPEC): Add required trailing space.
11453 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
11455 * c-tree.h: Move function declarations so that they are listed
11456 under the filename which contains them.
11457 (check_identifier, finish_decl_top_level,
11458 lookup_name_current_level_global, shadow_record_fields): Remove.
11460 2002-01-11 Andreas Jaeger <aj@suse.de>
11462 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
11465 2002-01-10 Richard Henderson <rth@redhat.com>
11467 * config/alpha/alpha.c (print_operand): Add 'J'.
11468 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
11469 new operand with the sequence number for the lituse. When splitting
11470 the insns, use gen_movdi_er_high_g and generate a sequence number.
11471 (gen_movdi_er_high_g): Print the sequence number if non-zero.
11473 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
11475 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
11476 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
11478 (altivec_expand_builtin): Same.
11479 (altivec_expand_stv_builtin): New.
11481 * config/rs6000/rs6000.h (rs6000_builtins): Same.
11483 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
11484 ("altivec_lvehx"): New.
11485 ("altivec_lvewx"): New.
11486 ("altivec_lvxl"): New.
11487 ("altivec_lvx"): New.
11488 ("altivec_stvx"): New.
11489 ("altivec_stvebx"): New.
11490 ("altivec_stvehx"): New.
11491 ("altivec_stvewx"): New.
11492 ("altivec_stvxl"): New.
11494 2002-01-10 Richard Henderson <rth@redhat.com>
11496 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
11497 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
11498 care not to delete instructions twice.
11500 2002-01-10 Zack Weinberg <zack@codesourcery.com>
11502 * toplev.c: Don't declare environ (it's not used anywhere).
11503 * configure.in: Don't check for declaration of environ.
11504 * config/i386/xm-mingw32.h: Don't #define environ.
11505 * config.in, configure: Regenerate.
11507 2002-01-10 Zack Weinberg <zack@codesourcery.com>
11509 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
11510 * configure: Regenerate.
11512 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
11513 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
11514 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
11516 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
11517 LIMITS_H_TEST here, not in m68k/x-next.
11518 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
11519 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
11521 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
11522 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
11523 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
11525 * config/i386/x-djgpp: Renamed i386/t-djgpp.
11526 * config/m88k/x-dolph: Renamed m88k/t-dolph.
11527 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
11528 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
11529 replacement of quadlib.asm with quadlib.c.
11531 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
11532 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
11533 config/rs6000/xm-beos.h: Delete file.
11535 * config.gcc: Update to match above changes.
11537 2002-01-10 Kazu Hirata <kazu@hxi.com>
11539 * config/h8300/h8300.h: Fix comment typos.
11540 * config/h8300/h8300.md: Likewise.
11541 * config/h8300/lib1funcs.asm: Likewise.
11543 2002-01-10 Dale Johannesen <dalej@apple.com>
11545 PR optimization/5269
11546 * unroll.c (precondition_loop_p): Make *increment be the correct
11547 sign when n_iterations known, to avoid confusing caller.
11549 2002-01-10 Kazu Hirata <kazu@hxi.com>
11551 * doc/extend.texi (deprecated): Fix a typo.
11553 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
11555 * basic-block.h (update_br_prob_note): Declare.
11556 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
11557 (try_forward_edges): Care negative frequencies and update note.
11558 (outgoing_edges_match): Tweek conditional merging heuristics.
11559 (try_crossjump_to_edge): use update_br_prob_note.
11560 * cfglayout.c (fixup_reorder_chain): Likewise.
11561 * cfrtl.c (update_br_prob_note): New.
11562 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
11564 * i386.c (ix86_decompose_address): Return -1 if address contains
11566 (legitimate_address_p): Require ix86_decompose_address to return 1.
11568 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
11569 (cprop_insn): Likewise.
11571 2002-01-10 Kazu Hirata <kazu@hxi.com>
11573 * toplev.c: Fix formatting.
11574 * tree.c: Likewise.
11575 * tree-dump.c: Likewise.
11576 * unroll.c: Likewise.
11577 * unwind-dw2.c: Likewise.
11578 * unwind-dw2-fde.c: Likewise.
11579 * unwind-dw2-fde-glibc.c: Likewise.
11580 * unwind-sjlj.c: Likewise.
11582 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
11584 * doc/invoke.texi: Document PDP-11 options.
11586 2002-01-10 Kazu Hirata <kazu@hxi.com>
11588 * config/h8300/h8300.h: Fix formatting.
11590 2002-01-10 Ira Ruben <ira@apple.com>
11592 Add __attribute__ ((deprecated)).
11593 * extend.texi: Document __attribute__ ((deprecated)).
11594 * invoke.texi: Document -Wno-deprecated-declarations.
11595 * testsuite/g++.dg/other/deprecated.C: New C++ test.
11596 * testsuite/gcc.dg/deprecated.c: New C test.
11597 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
11598 (c_common_attribute_table): Add "deprecated" entry.
11599 (handle_deprecated_attribute): New function.
11600 * c-decl.c (deprecated_states): New enum.
11601 deprecated_state: State of "deprecated" handling.
11602 (start_decl): Set deprecated_state based on attributes.
11603 (grokdeclarator): Test for deprecated uses, propagate attribute.
11604 * c-typeck.c (build_component_ref): Test for deprecated fields.
11605 (build_external_ref): Test for deprecated primaries.
11606 * diagnostic.c (warn_deprecated_use) New function to issue
11607 warnings about __attribute__ ((depricated)) references.
11608 * flags.h (warn_deprecated_decl): Extern declared for
11609 -W[no-]deprecated-declarations option.
11610 * print-tree.c (print_node): Show deprecated flag status.
11611 * toplev.c (warn_deprecated_decl): Defined.
11612 (W_options): Added "deprecated-declaration".
11613 * toplev.h (warn_deprecated_use): Extern declared.
11614 * tree.h (struct tree_common): Define deprecated_flag.
11615 (TREE_DEPRECATED): New macro to access flag.
11616 * cp/call.c (build_call): Test for deprecated calls.
11617 * cp/class.c (add_implicitly_declared_members): Set global
11618 flag to tell grokdeclarator to not issue deprecated warnings.
11619 * cp/cp-tree.h: Add extern for adding_implicit_members.
11620 * cp/decl.c (deprecated_states): New enum.
11621 (start_decl): Set deprecated_state based on attributes.
11622 (grokdeclarator): Test for deprecated uses, propagate attribute.
11623 * cp/lex.c (do_identifier): Test for deprecated primaries.
11624 * cp/typeck.c (build_component_ref): Test for deprecated fields.
11626 2002-01-10 Ira Ruben <ira@apple.com>
11628 Fix to assign attributes to inline member functions.
11629 * cp/decl.c (start_method): Handle attrlist.
11631 2002-01-10 Kazu Hirata <kazu@hxi.com>
11633 * combine.c (expand_field_assignment): Use subreg_lsb().
11635 2002-01-10 David Edelsohn <edelsohn@gnu.org>
11637 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
11638 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
11639 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
11640 Recurse for any operand of AND as long as constant is non-zero.
11642 2002-01-10 Kazu Hirata <kazu@hxi.com>
11644 * config/h8300/h8300.md: Remove constraints from expanders.
11646 2002-01-10 Kazu Hirata <kazu@hxi.com>
11648 * varasm.c: Fix formatting.
11649 * varray.c: Likewise.
11650 * vmsdbgout.c: Likewise.
11651 * xcoffout.c: Likewise.
11653 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
11655 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
11656 update edge probabilities to match.
11658 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
11660 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
11662 * doc/languages.texi, doc/sourcebuild.texi: New files.
11663 * doc/configfiles.texi: Make a subsubsection. Update.
11664 * doc/configterms.texi: Add @node. Remove warning that this isn't
11665 instructions for building GCC.
11666 * doc/makefile.texi: Make a subsection.
11667 * doc/gccint.texi: Update.
11669 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
11671 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
11673 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
11675 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
11677 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
11679 * optabs.c (expand_fix): Look for wider integer modes first.
11681 * i386.md (mov?f): Avoid the fake const double trick for medium
11683 (min?f*/max?f*): Prohibit memory operands for i387 variant.
11684 (fop_df_4): Disable for SSE compilation.
11686 2002-01-10 Graham Stott <grahams@redhat.com>
11688 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
11689 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
11691 2002-01-10 Richard Henderson <rth@redhat.com>
11693 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
11695 2002-01-10 Richard Henderson <rth@redhat.com>
11697 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
11698 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
11700 2002-01-10 Kazu Hirata <kazu@hxi.com>
11702 * combine.c (can_combine_p): Fix a comment typo.
11704 2002-01-09 Zack Weinberg <zack@codesourcery.com>
11706 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
11707 empty list correctly. Change loop index $t to $f for
11708 consistency with rest of Makefile.
11710 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
11712 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
11713 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11715 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
11716 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
11717 (altivec_init_builtins): Same.
11718 (altivec_expand_unop_builtin): Return NULL_RTX on error.
11719 (altivec_expand_binop_builtin): Same.
11720 (altivec_expand_ternop_builtin): Same.
11723 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
11724 ("altivec_vctuxs"): Fix typo.
11725 ("altivec_vnmsubfp"): Same.
11726 ("altivec_dssall"): New.
11727 ("altivec_mfvscr"): New.
11728 ("altivec_dss"): New.
11729 ("altivec_lvsl"): New.
11730 ("altivec_lvsr"): New.
11731 ("altivec_dstt"): New.
11732 ("altivec_dstst"): New.
11733 ("altivec_dststt"): New.
11734 ("altivec_dst"): New.
11736 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
11737 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11739 2002-01-09 Richard Henderson <rth@redhat.com>
11741 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
11743 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
11745 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
11747 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
11749 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
11751 2002-01-09 Kazu Hirata <kazu@hxi.com>
11753 * read-rtl.c: Fix formatting.
11754 * real.c: Likewise.
11755 * regclass.c: Likewise.
11756 * regrename.c: Likewise.
11757 * reg-stack.c: Likewise.
11758 * reload1.c: Likewise.
11759 * reload.c: Likewise.
11762 2002-01-09 Kazu Hirata <kazu@hxi.com>
11764 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
11765 to extract items in the expr_list chain.
11767 2002-01-09 Richard Henderson <rth@redhat.com>
11769 * config/vax/vax.c (vax_rtx_cost): Never abort.
11771 * config/vax/vax.h (REAL_ARITHMETIC): Define.
11773 2002-01-09 Jan Hubicka <jh@suse.cz>
11775 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
11777 2002-01-09 Richard Henderson <rth@redhat.com>
11779 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
11780 Unify code from various alternatives.
11782 2002-01-09 Richard Henderson <rth@redhat.com>
11784 * regrename.c (copy_value): Ignore the copy if the source register
11785 is present in the value chain with a narrower mode.
11787 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11789 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
11790 for the c4x target. Also improve layout.
11792 2002-01-09 Richard Henderson <rth@redhat.com>
11794 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
11795 * config/m32r/m32r.md (and ior xor splitters): Swap operands
11796 to match insn patterns.
11798 2002-01-09 Richard Henderson <rth@redhat.com>
11800 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
11801 (copyprop_hardreg_forward_1): Likewise.
11803 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
11805 * pa.md (decrement_and_branch_until_zero): Change predicate for
11806 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
11808 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
11810 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
11811 gets undefined. For Darwin.
11813 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11815 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
11817 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11819 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
11821 2002-01-08 Richard Henderson <rth@redhat.com>
11823 * regrename.c (copy_value): Ignore overlapping copies.
11825 2002-01-08 Richard Henderson <rth@redhat.com>
11827 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
11828 as needed to avoid shared structure.
11830 2002-01-08 Kazu Hirata <kazu@hxi.com>
11832 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
11835 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11837 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
11838 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
11839 documentation of obsolete macros.
11840 * system.h: Poison these macros.
11841 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
11842 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
11843 config/c4x/c4x.h, config/clipper/clipper.h,
11844 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
11845 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
11846 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
11847 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
11848 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
11849 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
11850 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11851 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
11852 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
11853 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11854 config/sparc/sparc.h, config/stormy16/stormy16.h,
11855 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
11856 definitions and commented out definitions of obsolete macros.
11857 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
11858 of MAX_INT_TYPE_SIZE.
11860 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
11862 * config/s390/s390.c (s390_preferred_reload_class): Never
11863 return ADDR_REGS if it isn't a subset of the given class.
11864 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
11865 FP_REGS, but all superclasses as well.
11867 * config/s390/s390.c (s390_function_profiler): Fix thinko.
11869 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
11870 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
11871 must not be a const_int.
11873 2002-01-08 Richard Henderson <rth@redhat.com>
11875 * Makefile.in (toplev.o): Depend on options.h.
11876 (gcc.o): Depend on specs.h.
11878 2002-01-08 Jakub Jelinek <jakub@redhat.com>
11880 * expr.c (store_expr): Convert VOIDmode constants back to target's
11883 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11885 * doc/invoke.texi: Markup gcc as @command. Refer to
11886 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
11887 of http://gcc.gnu.org/thanks.html.
11889 2002-01-08 Dale Johannesen <dalej@apple.com>
11891 * config/rs6000/rs6000.md: Add missing int register
11892 target case to movdf_low.
11894 2002-01-08 Zack Weinberg <zack@codesourcery.com>
11896 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
11897 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
11898 (cppinit.o): Depend on except.h.
11899 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
11900 s-specs): New rules.
11902 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
11903 Don't create specs.h/options.h/gencheck.h here. Remove
11904 unnecessary variable settings from last argument of AC_OUTPUT.
11905 * config.in, configure: Regenerate.
11906 * intl.c: Hardcode package name as "gcc".
11908 * cppinit.c: Include except.h.
11909 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
11911 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
11912 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
11913 (!)USING_SJLJ_EXCEPTIONS.
11914 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
11916 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11918 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
11919 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
11920 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
11921 documentation of obsolete macros.
11922 * system.h: Poison these macros.
11923 * config/d30v/d30v.h, config/ns32k/encore.h,
11924 config/stormy16/stormy16.h: Remove definitions and commented out
11925 definitions of obsolete macros.
11927 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
11929 * objc/objc-act.c (handle_class_ref): Mark the declaration of
11930 %sobjc_class_ref_%s as used - to prevent unwanted compiler
11933 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
11935 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
11936 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
11937 to insn adjusting stack/frame pointer.
11938 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
11939 accept operands that cause the insn to be non-splittable.
11941 2002-01-08 Graham Stott <grahams@redhat.com>
11943 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
11944 (C_TYPE_FIELDS_VOLATILE): Likewise.
11945 (C_TYPE_BEING_DEFINED): Likewise.
11946 (C_IS_RESERVED_WORD): Likewise.
11947 (C_TYPE_VARIABLE_SIZE): Likewise.
11948 (C_DECL_VARIABLE_SIZE): Likewise.
11949 (C_MISSING_PROTOTYPE_WARNED): Likewise.
11950 (C_SET_EXP_ORIGINAL_CODE): Likewise.
11951 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
11953 (C_DECL_ANTICIPATED): Likewise.
11954 (c_build_type_variant): Add parenthesis.
11956 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11958 * gcc.c (option_map): Remove --version.
11959 (process_command): Handle -fversion following the GNU Coding
11960 Standards. Partially addresses PR other/704.
11962 2002-01-08 Graham Stott <grahams@redhat.com>
11964 * combine.c (combine_instructions): Fix typo.
11966 2002-01-08 Graham Stott <grahams@redhat.com>
11968 * debug.h: Use "tree" and "rtx" throughout.
11970 * debug.c: Likewise.
11972 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
11974 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
11975 constant pool, use the pool's version of the symbol instead.
11977 2002-01-07 Richard Henderson <rth@redhat.com>
11979 * regrename.c (find_oldest_value_reg): Ignore the value chain if
11980 the original register was copied in a mode with a fewer number of
11981 hard registers than the desired mode.
11982 (copyprop_hardreg_forward_1): Likewise.
11983 (debug_value_data): Fix loop test.
11984 * toplev.c (parse_options_and_default_flags): Reenable
11985 -fcprop-registers at -O1.
11987 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11989 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
11990 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
11992 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
11995 * config/rs6000/rs6000.md: Add altivec predicate patterns.
11997 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
11999 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
12000 (pa_output_function_prologue): Output local label at the beginning of
12001 the prologue when profiling.
12002 (hppa_profile_hook): Use the local label rather than the function label.
12003 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
12005 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
12007 * config/rs6000/rs6000.c (print_operand): Remove extra space.
12008 (altivec_expand_unop_builtin): Fix thinko.
12009 (altivec_expand_binop_builtin): Same.
12010 (altivec_expand_ternop_builtin): Same.
12011 (altivec_expand_builtin): Same.
12013 2002-01-07 Richard Henderson <rth@redhat.com>
12015 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
12017 2002-01-07 Jason Merrill <jason@redhat.com>
12019 * unwind-dw2.c (execute_cfa_program): Use < again.
12021 2002-01-07 Jakub Jelinek <jakub@redhat.com>
12023 * predict.c (combine_predictions_for_insn): Avoid division by zero.
12025 2002-01-07 Jakub Jelinek <jakub@redhat.com>
12027 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
12028 Don't allow -1 - x -> ~x simplifications in the first pass.
12030 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
12032 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
12034 (altivec_expand_binop_builtin): Same.
12035 (altivec_expand_unop_builtin): Same.
12036 (print_operand): Fix typo.
12037 (bdesc_1arg): Add vupk* variants.
12039 * rs6000.h (rs6000_builtins): Add vupk* enums.
12041 * rs6000.md: Add altivec_vupk* variants.
12043 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
12045 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
12046 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
12047 and last update dates.
12049 2002-01-07 Janis Johnson <janis187@us.ibm.com>
12051 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
12053 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
12055 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
12056 * config/avr/avr.h (CPP_SPEC): Likewise.
12057 (LINK_SPEC): Likewise.
12058 (CRT_BINUTILS_SPECS): Likewise.
12059 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12060 * doc/invoke.texi (AVR Options): Document them.
12062 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
12064 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
12067 2002-01-07 Graham Stott <grahams@redhat.com>
12069 * config/i386/i386.h: Update copyright date.
12070 (HALF_PIC_PTR): Add parenthesis.
12071 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
12072 (CONSTANT_ALIGNMENT): Add parenthesis.
12073 (DATA_ALIGNMENT): Likewise.
12074 (LOCAL_ALIGNMENT): Likewise.
12075 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
12076 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
12077 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
12078 (HARD_REGNO_NREGS): Add paranethesis.
12079 (VALID_SSE_REG_MODE): Whitespace.
12080 (VALID_MMX_REG_MODE): Whitespace.
12081 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
12082 (ix86_hard_regno_mode_ok): Add parenthesis.
12083 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
12084 (RETURN_IN_MEMORY): Whitespace.
12085 (N_REG_CLASSES): Add parenthesis.
12086 (INTEGER_CLASS_P): Add parenthesis and wrap.
12087 (FLOAT_CLASS_P): Likewise.
12088 (SSE_CLASS_P): Likewise.
12089 (MMX_CLASS_P): Likewise.
12090 (MAYBE_INTEGER_CLASS_P): Likewise.
12091 (MAYBE_FLOAT_CLASS_P): Likewise.
12092 (MAYBE_SSE_CLASS_P): Likewise.
12093 (MAYBE_MMX_CLASS_P): Likewise.
12094 (Q_CLASS_P): Likewise.
12095 (GENERAL_REGNO_P): Uppercase macro parameter.
12096 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
12097 (FP_REGNO_P): Likewise.
12098 (ANY_FP_REGNO_P): Uppercase macro parameter.
12099 (SSE_REGNO_P): Likewise.
12100 (SSE_REGNO): Likewise.
12101 (SSE_REG_P): Likewise.
12102 (SSE_FLOAT_MODE_P): Likewise.
12103 (MMX_REGNO_P): Likewise.
12104 (MMX_REG_P):Likewise.
12105 (STACK_REG_P): Likewise.
12106 (NON_STACK_REG_P): Likewise.
12107 (STACK_TOP_P): Likewise.
12108 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
12109 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
12110 (SECONDARY_MEMORY_NEEDED): Likewise.
12111 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
12112 (MD_ASM_CLOBBERS): Whitespace and wrap.
12113 (MUST_PASS_IN_STACK): Whitespace and wrap.
12114 (RETURN_POPS_ARGS): Add parenthesis.
12115 (INIT_CUMULATIVE_ARGS): Likewise.
12116 (FUNCTION_ARG): Likewise.
12117 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
12118 (SETUP_INCOMING_VARARGS): Likewise.
12119 (BUILD_VA_LIST_TYPE): Add parenthesis.
12120 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
12122 (EXPAND_BUILTIN_VA_ARG): Likewise.
12123 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
12124 (INITIALIZE_TRAMPOLINE): Add parenthesis.
12125 (INITIAL_ELIMINATION_OFFSET): Likewise.
12126 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
12127 (REGNO_OK_FOR_BASE_P): Likewise.
12128 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
12129 (REGNO_OK_FOR_DIREG_P): Likewise.
12130 (REG_OK_FOR_INDEX_P): Whitespace.
12131 (REG_OK_FOR_BASE_P): Whitespace.
12132 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
12134 (FIND_BASE_TERM): Fix typo.
12135 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
12136 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
12137 (SYMBOLIC_CONST; Whitespace.
12138 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
12139 (ENCODE_SECTION_INFO): Whitespace.
12140 (FINALIZE_PIC): Remove do { ... } while (0).
12141 (PROMOTE_MODE): Wrap in do { ... } while (0).
12142 (CONST_COSTS): Whitespace.
12143 (RTX_COSTS): Add paramethesis, whitespace and wrap.
12144 (REGISTER_MOVE_COST): Add parenthesis.
12145 (MEMORY_MOVE_COST): Likewise.
12146 (EXTRA_CC_MODES): Whitespace.
12147 (SELECT_CC_MODE): Add parenthesis and whitespace.
12148 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
12149 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
12150 (ASM_OUTPUT_LABEL): Add paramethesis.
12151 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
12152 (ASM_OUTPUT_REG_POP): Likewise.
12153 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
12154 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12156 * config/i386/i386.c: Update copyright.
12157 (CHECK_STACK_LIMIT): Add parenthesis.
12158 (AT_BP): Uppercase macro parameter.
12159 (x86_64_int_parameter_registers): Constify.
12160 (x86_64_int_return_registers): Likewise.
12161 (ix86_compare_op0): Use rtx.
12162 (construct_container): Constify INTREG parameter.
12163 (function_arg): Use rtx.
12165 * diagnostic.h: Update copyright date.
12166 (output_buffer_state): Add parenthesis.
12167 (output_buffer_format_args): Likewise.
12169 * combine.c (combine_instructions): Replace XEXP (links, 0)
12172 2002-01-06 H.J. Lu <hjl@gnu.org>
12174 * cfgcleanup.c (thread_jump): Fix 2 typos.
12176 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
12178 * config.gcc: Add support for --enable-altivec.
12180 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
12182 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
12184 2002-01-06 Jakub Jelinek <jakub@redhat.com>
12186 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
12187 __objc_class_name_*.
12189 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
12191 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
12193 2002-01-06 Richard Henderson <rth@redhat.com>
12195 * reorg.c (emit_delay_sequence): Remove death notes, not merely
12196 nop them out. Increment label reference count for REG_LABEL.
12197 (fill_slots_from_thread): Frob label reference count around
12198 delete_related_insns.
12200 2002-01-05 Richard Henderson <rth@redhat.com>
12202 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
12205 2002-01-05 Richard Henderson <rth@redhat.com>
12207 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
12208 * integrate.c (output_inline_function): Likewise.
12209 * toplev.c (rest_of_compilation): Do it here instead. Move call
12210 to remove_unnecessary_notes after emitting abstract instance.
12211 Force an emitted nested function to have its parent emited as well.
12212 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
12214 (rtl_for_decl_location): Do not look at reload data structures
12215 before reload has run.
12217 2002-01-05 Kazu Hirata <kazu@hxi.com>
12219 * cse.c: Fix formatting.
12220 * dwarf2asm.c: Likewise.
12221 * dwarf2out.c: Likewise.
12222 * explow.c: Likewise.
12223 * expmed.c: Likewise.
12224 * function.c: Likewise.
12225 * gcov.c: Likewise.
12226 * gencheck.c: Likewise.
12227 * genrecog.c: Likewise.
12228 * ggc-common.c: Likewise.
12229 * ggc-page.c: Likewise.
12230 * global.c: Likewise.
12232 2002-01-05 Kazu Hirata <kazu@hxi.com>
12234 * combine.c: Fix formatting.
12236 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
12239 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
12241 2002-01-05 David Edelsohn <edelsohn@gnu.org>
12243 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
12244 as 1 for __powerpc64__ as well.
12246 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
12248 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
12251 2002-01-05 Daniel Berlin <dan@dberlin.org>
12253 * lcm.c: Revert change, due to performance regression it causes on
12254 SPEC because it's slightly more conservative (sigh, I hate
12257 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
12259 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
12261 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
12263 * doc/cppinternals.texi: Update.
12265 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
12267 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
12268 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
12270 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
12271 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
12272 kludge for pre-october-14th mmix versions to handle new-found bug
12273 with PUSHJ/PUSHGO and the register stack.
12274 * config/mmix/mmix.h (struct machine_function): Rename member
12275 has_call_value_without_parameters to has_call_without_parameters.
12276 All referers changed.
12277 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
12278 TARGET_MASK_BRANCH_PREDICT): New macros.
12279 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
12280 -mno-reg-stack-fill-bug-workaround.
12281 * config/mmix/mmix.md ("call"): Set struct machine member
12282 has_call_without_parameters.
12284 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
12286 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
12288 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
12290 * cfgcleanup.c: Include tm_p.h
12291 (mark_effect): Fix handling of hard register; fix handling of SET
12293 2002-01-04 Kazu Hirata <kazu@hxi.com>
12295 * config/h8300/h8300.md (anonymous patterns): Check that
12296 operands are registers before using REGNO on them.
12298 2002-01-03 Roland McGrath <roland@frob.com>
12300 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
12302 2002-01-04 Jakub Jelinek <jakub@redhat.com>
12304 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
12305 * c-common.h (genrtl_expr_stmt_value): Likewise.
12306 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
12307 (expand_expr_stmt_value): Add maybe_last argument.
12308 Don't warn about statement with no effect if it is the last statement
12309 in expression statement.
12310 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
12311 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
12312 expand_expr_stmt_value.
12313 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
12314 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
12315 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
12316 as maybe_last to expand_expr_stmt_value.
12318 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
12320 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
12321 be passed in, do not build it.
12322 (c_begin_if_stmt): New function.
12323 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12324 * c-common.h (c_expand_start_cond): Update prototype.
12325 (c_begin_if_stmt): Prototype new function.
12326 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12327 * c-parse.in (if_prefix): Use c_begin_if_stmt,
12328 c_begin_while_stmt and c_finish_while_stmt_cond.
12330 2002-01-04 William Cohen <wcohen@redhat.com>
12332 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
12333 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12334 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12335 * config/pa/som.h (ASM_FILE_START): Likewise.
12337 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
12339 * lcm.c: Include df.h.
12340 Add available_transfer_function prototype.
12341 (compute_available): Rework to use iterative dataflow framework.
12342 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
12343 with bb_info in df.h
12344 (available_transfer_function): New function.
12346 * Makefile.in (lcm.o): add df.h to dependencies.
12348 2002-01-04 Richard Henderson <rth@redhat.com>
12350 * config/alpha/alpha.c (some_operand): Accept HIGH.
12351 (input_operand): Likewise; accept simple references to globals.
12352 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
12353 (alpha_const_double_ok_for_letter_p): Likewise.
12354 (alpha_extra_constraint): Likewise.
12355 (alpha_preferred_reload_class): Likewise. Do not force
12356 symbolic constants to memory.
12357 (alpha_legitimate_address_p): Accept simple references
12358 to small_symbolic_operand.
12359 (alpha_legitimize_address): New arg scratch. Be prepared to be
12360 called when no_new_pseudos. Emit simple symbolic references.
12361 Split integers into low, high, and rest.
12362 (alpha_expand_mov): Use alpha_legitimize_address.
12363 (some_small_symbolic_mem_operand): New.
12364 (split_small_symbolic_mem_operand): New.
12365 * config/alpha/alpha-protos.h: Update.
12366 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
12367 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
12368 (EXTRA_CONSTRAINT): Likewise.
12369 (PREFERRED_RELOAD_CLASS): Likewise.
12370 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
12371 (PREDICATE_CODES): Update.
12372 * config/alpha/alpha.md: New post-reload splitters to convert
12373 simplfied symbolic operands to the form that references $29.
12374 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
12375 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
12377 2002-01-03 Richard Henderson <rth@redhat.com>
12379 * local-alloc.c (function_invariant_p): Update commentary.
12381 2002-01-04 H.J. Lu <hjl@gnu.org>
12383 * toplev.c (rest_of_compilation): Fix a typo when calling
12386 2002-01-03 Kazu Hirata <kazu@hxi.com>
12388 * c-common.c: Fix formatting.
12389 * diagnostic.c: Likewise.
12390 * doloop.c: Likewise.
12391 * dwarf2out.c: Likewise.
12393 2002-01-03 Kazu Hirata <kazu@hxi.com>
12395 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
12396 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
12398 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
12400 * cpperror.c: Update comments and copyright.
12401 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
12402 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
12404 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
12406 * collect2.c (main): Use strcmp when testing for "-shared".
12408 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
12410 * cppmacro.c: Don't include intl.h. Update comments.
12411 (new_number_token): Allocate enough buffer for 64-bit unsigned
12412 integers; update prototype.
12413 * cppmain.c: Update comments.
12415 2002-01-03 William Cohen <wcohen@redhat.com>
12417 * function.h (struct function): Add profile.
12418 (current_function_profile): New.
12419 doc/extend.texi: Update documentation.
12420 * final.c (final_start_function): Use current_function_profile
12421 instead of profile_flag.
12422 (profile_after_prologue): Likewise.
12423 * function.c (expand_function_start): Likewise.
12424 (expand_function_start): Likewise.
12425 * config/alpha/alpha.c (direct_call_operand):
12426 (alpha_does_function_need_gp): Likewise.
12427 (alpha_expand_prologue): Likewise.
12428 * config/arm/arm.c (arm_expand_prologue): Likewise.
12429 thumb_expand_prologue: Likewise.
12430 * config/d30v/d30v.c (d30v_stack_info): Likewise.
12431 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
12432 (fr30_expand_prologue): Likewise.
12433 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
12434 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
12435 * config/i386/i386.h (FINALIZE_PIC): Likewise.
12436 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
12437 * config/i960/i960.c (i960_output_function_prologue): Likewise.
12438 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12439 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
12440 (m32r_expand_prologue): Likewise.
12441 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
12442 (m88k_expand_prologue): Likewise.
12443 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
12444 * config/mips/mips.c (compute_frame_size): Likewise.
12445 (mips_expand_prologue): Likewise.
12446 (mips_can_use_return_insn): Likewise.
12447 * config/pa/elf.h (ASM_FILE_START): Likewise.
12448 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12449 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12450 * config/pa/som.h (ASM_FILE_START): Likewise.
12451 * config/romp/romp.c (romp_using_r14): Likewise.
12452 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
12453 (rs6000_stack_info): Likewise.
12454 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12455 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12456 * config/v850/v850.c (compute_register_save_size): Likewise.
12458 2002-01-03 Jakub Jelinek <jakub@redhat.com>
12460 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
12461 gen_lowpart_common fails, use gen_lowpart_SUBREG.
12463 2002-01-03 Turly O'Connor <turly@apple.com>
12465 * darwin.c (machopic_output_possible_stub_label): Don't generate
12466 stub routines for pseudo-stubs which we've just defined.
12468 2002-01-03 Kazu Hirata <kazu@hxi.com>
12470 * builtins.c: Fix formatting.
12471 * c-typeck.c: Likewise.
12472 * combine.c: Likewise.
12473 * expr.c: Likewise.
12474 * loop.c: Likewise.
12476 2002-01-03 Andreas Schwab <schwab@suse.de>
12478 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
12479 and return true if _cpp_push_next_buffer pushed a new include
12481 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
12482 _cpp_pop_file_buffer did not push a new file.
12483 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
12485 2002-01-02 Eric Christopher <echristo@redhat.com>
12487 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
12488 FIND_REG_INC_NOTE call. Update copyright.
12489 * loop.c (canonicalize_condition): Ditto.
12490 * reorg.c (delete_scheduled_jump): Ditto.
12492 2002-01-03 Kazu Hirata <kazu@hxi.com>
12494 * gcse.c: Fix formatting.
12496 2002-01-03 Graham Stott <grahams@redhat.com>
12498 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
12499 forward defs for struct tags rtx_def, union_tree, rtvec_def
12500 also output corresponding typedefs for rtx, tree, and rtvec.
12502 * system.h: Move forward defs for struct tags rtx_def, union_tree,
12503 rtvec_def along with corresponding typedefs for rtx, tree, and
12504 rtvec to config.h, hconfig.h, tconfig.h.
12506 2002-01-03 Graham Stott <grahams@redhat.com>
12508 * tree.h: Update copyright date.
12509 (IS_EXPR_CODE_CLASS): Add parenthesis.
12510 (TREE_SET_CODE): Add whitespace.
12511 (TREE_CHECK): Add parenthesis.
12512 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
12513 (CST_OR_CONSTRUCTOR_CHECK):
12514 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
12515 (TREE_SYMBOL_REFERENCED): Whitespace.
12516 (INT_CST_LT): Likewise.
12517 (INT_CST_LT_UNSIGNED): Likewise.
12518 (tree_real_cst): Unwrap comment.
12519 (tree_string): Likewise.
12520 (tree_complex): Likewise.
12521 (IDENTIFIER_POINTER): correct cast.
12522 (SAVE_EXPR_CONTEXT): Whitespace.
12523 (EXPR_WFL_FILENAME_NODE): Likewise.
12524 (EXPR_WFL_FILENAME): Remove parenthesis.
12525 (DECL_ORIGIN): Add parenthesis.
12526 (DECL_FROM_INLINE): Use NULL_TREE.
12527 (build_int_2): Whitespace.
12528 (build_type_variant): Add parenthesis.
12530 * gcc/jcf-parse.c: Update copyright date.
12531 (yyparse): Constify resource_filename.
12533 2002-01-03 Graham Stott <grahams@redhat.com>
12535 * rtl.h: Update copyright date.
12536 (RTL_CHECK1): Wrap long line.
12537 (RTL_CHECK2): Likewise.
12538 (RTL_CHECKC1): Wrap long line and whitespace.
12539 (RTL_CHECKC2): Likewise.
12540 (XWINT): Whitespace.
12546 (XBITMAP): Likewise.
12548 (XBBDEF): Likewise.
12550 (X0WINT): Likewise.
12552 (X0UINT): Likewise.
12556 (X0MODE): Likewise.
12557 (X0BITMAP): Likewise.
12558 (X0TREE): Likewise.
12559 (X0BBDEF): Likewise.
12560 (X0ADVFLAGS): Likewise.
12561 (X0CSELIB): Likewise.
12562 (X0MEMATTR): Likewise.
12563 (XCWINT): Likewise.
12565 (XCUINT): Likewise.
12569 (XCMODE): Likewise.
12570 (XCBITMAP): Likewise.
12571 (XCTREE): Likewise.
12572 (XCBBDEF): Likewise.
12573 (XCADVFLAGS): Likewise.
12574 (XCCSELIB): Likewise.
12575 (XC2EXP): Likewise.
12576 (INSN_UID): Likewise.
12577 (PREV_INSN): Likewise.
12578 (PATTERN): Likewise.
12579 (INSN_CODE): Likewise.
12580 (PUT_REG_NOTE_KIND): Likewise.
12581 (CODE_LABEL_NUMBER): Likewise.
12582 (NOTE_SOURCE_FILE): Likewise.
12583 (NOTE_BLOCK): Likewise.
12584 (NOTE_EH_HANDLER): Likewise.
12585 (NOTE_RANGE_INFO): Likewise.
12586 (NOTE_LIVE_INFO): Likewise.
12587 (NOTE_BASIC_BLOCK): Likewise.
12588 (NOTE_EXPECTED_VALUE): Likewise.
12589 (NOTE_LINE_NUMBER): Likewise.
12590 (LABEL_NAME): Likewise.
12591 (LABEL_NUSES): Likewise.
12592 (LABEL_ALTERNATE_NAME): Likewise.
12593 (ADDRESSOF_DECL): Likewise.
12594 (JUMP_LABEL): Likewise.
12595 (LABEL_NEXTREF): Likewise.
12597 (ORIGINAL_REGNO: Likewise.
12598 (HARD_REGISTER_NUM_P): Add parenthesis.
12599 (SUBREG_REG): Whitespace.
12600 (SUBREG_BYTE): Likewise.
12601 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
12602 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
12603 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
12604 (ASM_OPERANDS_INPUT_VEC): Likewise.
12605 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
12606 (ASM_OPERANDS_INPUT): Likewise.
12607 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
12608 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
12609 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
12610 (ASM_OPERANDS_INPUT_MODE): Likewise.
12611 (ASM_OPERANDS_SOURCE_FILE): Likewise.
12612 (ASM_OPERANDS_SOURCE_LINE): Likewise.
12613 (MEM_SET_IN_STRUCT_P): Minor reformat.
12614 (TRAP_CONDITION): Whitespace.
12615 (TRAP_CODE): Likewise.
12616 (COND_EXEC_TEST): Likewise.
12617 (COND_EXEC_CODE): Likewise.
12618 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
12619 (PHI_NODE_P): Add parenthesis.
12620 (plus_constant): Whitespace and add parenthesis.
12622 2002-01-03 Kazu Hirata <kazu@hxi.com>
12624 * config/avr/avr.c: Fix comment typos.
12625 * config/c4x/c4x.md: Likewise.
12626 * config/dsp16xx/dsp16xx.h: Likewise.
12627 * config/dsp16xx/dsp16xx.md: Likewise.
12628 * config/i386/i386.md: Likewise.
12629 * config/ia64/ia64.c: Likewise.
12630 * config/m32r/m32r.h: Likewise.
12631 * config/m68hc11/m68hc11.md: Likewise.
12632 * config/mmix/mmix.c: Likewise.
12633 * config/mn10200/mn10200.c: Likewise.
12634 * config/romp/romp.c: Likewise.
12635 * config/sh/sh.c: Likewise.
12636 * config/stormy16/stormy16.c: Likewise.
12637 * config/stormy16/stormy16.h: Likewise.
12638 * config/stormy16/stormy16.md: Likewise.
12640 2002-01-03 Graham Stott <grahams@redhat.com>
12642 * loop.h: Update copyright date.
12643 (LOOP_MOVABLES): Fix typo.
12644 (LOOP_REGS): Likewise.
12645 (LOOP_IVS): Likewise.
12647 2002-01-03 Graham Stott <grahams@redhat.com>
12649 * cppinit.c: Update copyright date.
12650 Don't include output.h
12651 * Makefile.in: Update copyright date.
12654 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
12657 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
12658 (-pthread) Add to RS/6000 options.
12660 2002-01-02 Kazu Hirata <kazu@hxi.com>
12662 * except.c: Fix comment typos.
12663 * loop.c: Likewise.
12664 * varasm.c: Likewise.
12665 * doc/tm.texi: Fix a typo.
12667 2002-01-02 Jakub Jelinek <jakub@redhat.com>
12669 * c-typeck.c (output_init_element): Allow initializing static storage
12670 duration objects with compound literals.
12672 2002-01-02 Richard Henderson <rth@redhat.com>
12674 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
12677 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12679 * gcc.c (default_compilers): Const-ify.
12680 * mips-tdump.c (stab_names): Likewise.
12681 * mips-tfile.c (map_coff_types, map_coff_storage,
12682 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
12683 pseudo_ops_t, pseudo_ops): Likewise.
12684 * protoize.c (default_include): Likewise
12686 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
12687 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
12688 Add array size in declaration.
12689 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
12690 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
12691 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
12692 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
12693 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
12694 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
12695 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
12696 emtens, make_nan): Const-ify.
12697 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
12698 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
12700 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
12702 * config.gcc (ia64-*-*): Set extra_headers.
12703 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
12704 * config/alpha/t-osf: Remove.
12705 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
12707 2002-01-02 David Edelsohn <edelsohn@gnu.org>
12709 * config/rs6000/t-aix43: Revert previous change.
12711 2002-01-02 Jason Merrill <jason@redhat.com>
12713 * c-decl.c (c_expand_body): Call outlining_inline_function when
12714 emitting an inline function out of line.
12716 2002-01-02 Richard Henderson <rth@redhat.com>
12718 * dwarf2out.c (limbo_die_node): Add created_for member.
12719 (new_die): New argument created_for. Update all callers.
12720 (mark_limbo_die_list): New.
12721 (dwarf2out_init): Register limbo_die_list as a root.
12722 (dwarf2out_finish): Force insert limbo dies into their function
12725 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
12728 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
12730 2002-01-02 Kazu Hirata <kazu@hxi.com>
12732 * config/h8300/fixunssfsi.c: Update copyright.
12735 * config/h8300/h8300.c: Update copyright.
12736 Eliminate warnings.
12738 2002-01-02 Kazu Hirata <kazu@hxi.com>
12740 * config/romp/romp.c: Fix comment formatting.
12741 * config/romp/romp.h: Likewise.
12742 * config/romp/romp.md: Likewise.
12743 * config/s390/s390.c: Likewise.
12744 * config/stormy16/stormy16.c: Likewise.
12745 * config/stormy16/stormy16.h: Likewise.
12747 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
12749 * c-common.h (genrtl_expr_stmt_value): Declare.
12750 * c-semantics.c (genrtl_goto_stmt): Redirect to...
12751 (genrtl_goto_stmt_value): ... this new function. Pass new
12752 argument down to expand_expr_stmt_value, taking
12753 TREE_ADDRESSABLE into account.
12754 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
12755 STMT_EXPR as addressable, i.e., one whose result we want.
12756 * expr.c (expand_expr): Don't save expression statement value
12757 of labeled_blocks or loop_exprs.
12758 * stmt.c (expand_expr_stmt): Redirect to...
12759 (expand_expr_stmt_value): ... this new function. Use new
12760 argument to tell whether to save expression value.
12761 (expand_end_stmt_expr): Reset last_expr_type and
12762 last_expr_value if we don't have either.
12763 * tree-inline.c (declare_return_variable): Mark its use
12764 statement as addressable.
12765 * tree.h: Document new use of TREE_ADDRESSABLE.
12766 (expand_expr_stmt_value): Declare.
12768 2002-01-01 Tom Rix <trix@redhat.com>
12770 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
12771 rs6000_emit_allocate_stack.
12773 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
12775 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
12776 ${srcdir}/ginclude/ to every entry in extra_headers.
12777 * configure: Regenerate.
12778 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
12779 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
12780 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
12781 * ginclude/proto.h: Rename to config/convex/proto.h.
12783 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12785 * attribs.c (handle_vector_size_attribute): Use host_integerp
12786 and tree_int_cst; remove warnings.
12787 * caller-save.c (insert_restore): Add cast to get rid of warning.
12788 (insert_save): Likewise.
12789 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
12790 * regmove.c (find_matches): Add temporary var to kill a warning.
12792 2002-01-01 Douglas B Rupp <rupp@gnat.com>
12794 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
12795 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
12796 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
12797 (vms-dwarf2eh.o): Add Makefile rule.
12798 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
12799 * config/alpha/vms-dwarf2eh.asm: New file.
12801 * gcc.c (delete_if_ordinary): Delete all versions.
12803 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
12805 * config/mmix/mmix.md: Update FIXME to not mention
12807 (MMIX_rJ_REGNUM): New define_constants constant.
12808 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
12809 "*movdicc_real"): Adjust contraints formatting.
12810 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
12811 for branch prediction.
12812 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
12814 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
12815 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
12816 number. Delete related FIXMEs.
12817 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
12818 from number to MMIX_rJ_REGNUM.
12819 (TARGET_MASK_BRANCH_PREDICT): New.
12820 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
12821 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
12822 value. Add -mbranch-predict and -mno-branch-predict.
12823 (TARGET_VERSION): Drop date.
12824 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
12825 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
12826 for finding out global symbols.
12827 (mmix_asm_output_labelref): Revert condition for global symbol.
12828 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
12829 (mmix_print_operand_punct_valid_p): A '+' is valid.
12831 See ChangeLog.6 for earlier changes.