More verbose changelog entry.
[official-gcc.git] / gcc / ChangeLog
blob34332fb178a42380b607a77217c85b478995ad74
1 2002-05-21  Jeffrey A Law  <law@redhat.com>
3         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
4         (ix86_sched_reorder): Make sure to initialize scheduling
5         data even when there's only one insn in the ready queue.
7 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
9         * genautomata.c (reserv_sets_hash_value): Fix a typo.
11 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
13         * genautomata.c (reserv_sets_hash_value): Define hash_value as
14         set_el_t.  Transform the hash value into unsigned.
15         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
16         (transform_3): Add code to process `(A,B)+(D,E)'.
18 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
20         * reload1.c (do_output_reload): Run delete_output_reload
21         only if optimizing.
23 2002-05-21  Roger Sayle  <roger@eyesopen.com>
25         PR middle-end/6600
26         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
27         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
28         (can_store_by_pieces): ... and here to limit the largest mode used.
29         Add a comment to document this function.
31 2002-05-21  Richard Henderson  <rth@redhat.com>
33         * flow.c (life_analysis): Fix test for deleted label.
35 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
37         * doc/tm.texi: Fix typo.
39 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
41         * c-common.c (c_common_init): Set options->unsigned_char from
42         flag_signed_char.
43         (cb_register_builtins): Define __STRICT_ANSI__ and
44         __CHAR_UNSIGNED__ here...
45         * cppinit.c (init_builtins): Not here.
46         (cpp_create_reader): unsigned_char option defaults to 0, not
47         !DEFAULT_SIGNED_CHAR.
48         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
49         and -funsigned-char.
51         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
52         * cpphash.c (_cpp_init_hashtable): Don't set it.
53         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
54         directly.  Clarify comment.
56 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
58         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
59         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
60         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
61         BASIC_BLOCK (n_basic_blocks - 1).
62         * cfganal.c (can_fallthru, flow_call_edges_add,
63         flow_preorder_transversal_compute): Too.
64         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
65         find_sub_basic_blocks): Too.
66         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
67         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
68         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
69         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
70         * combine.c (this_basic_block): Type changed to basic_block.
71         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
72         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
73         get_last_value, distribute_notes, distribute_links): Too.
74         * final.c (compute_alignments): Too.
75         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
76         * function.c (thread_prologue_and_epilogue_insns): Too.
77         * gcse.c (compute_code_hoist_vbeinout): Too.
78         * global.c (build_insn_chain): Too.
79         * ifcvt.c (find_if_block, find_cond_trap): Too.
80         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
81         * regmove.c (regmove_optimize): Too.
82         * resource.c (find_basic_block): Too.
83         * sched-ebb.c (schedule_ebbs): Too.
84         * ssa-dce.c (find_control_dependence, find_pdom): Too.
86 2002-05-21  Andreas Jaeger  <aj@suse.de>
88         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
90 2002-05-21  Richard Henderson  <rth@redhat.com>
92         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
93         unspec names, not numbers.
95 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
97         * doc/sourcebuild.texi: Mention snapshot-README and
98         snapshot-index.html as needing updating for new front ends.
100 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
102         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
103         disabling checking, and avoid multiple evaluation of RTX.
105 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
107         * bitmap.c (bitmap_find_bit): Return early if we have the correct
108         element cached.
110 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
112         * profile.c (gen_edge_profiler):  Set alias set before the memory is
113         used.
115 2002-05-20  David S. Miller  <davem@redhat.com>
117         * cselib.c (max_value_regs): New.
118         (cselib_lookup, cselib_invalidate_regno): Initialize it when
119         adding new entries to the REG_VALUES table and we are dealing with
120         a hard register.
121         (clear_table): Initialize it.
122         (cselib_invalidate_regno): Use it to determine which hard
123         registers to scan when mode is not VOIDmode.
125 2002-05-20  Duraid Madina   <duraid@fl.net.au>
127         * tradcpp.c (fixup_newlines): Use old-style function header.
129 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
131         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
133 2002-05-20  H.J. Lu  (hjl@gnu.org)
135         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
137         * config/mips/mips.h (DFMODE_NAN): Defined.
138         (SFMODE_NAN): Likewise.
140 2002-05-20  Dale Johannesen  <dalej@apple.com>
142         * combine.c (cant_combine_insn_p):  Back out my
143         previous patch.
145 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
147         * params.c: Fix formatting.
148         * params.h: Likewise.
149         * predict.c: Likewise.
150         * prefix.c: Likewise.
151         * print-rtl.c: Likewise.
152         * print-tree.c: Likewise.
153         * profile.c: Likewise.
155 2002-05-20  H.J. Lu  (hjl@gnu.org)
157         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
159 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
161         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
162         switches straight on to the assembler, do not abbreviate them.
163         * config/arm/elf.h (ASM_SPEC): As above.
164         * config/arm/semi.h (ASM_SPEC): As above.
165         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
166         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
167         -mcpu=xscale on to the assembler by default.
168         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
170 2002-05-20  Richard Henderson  <rth@redhat.com>
172         * cse.c (canon_hash): Reorder do_not_record test.  Always
173         allow pic_offset_table_rtx.
175 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
177         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
178         (expand_binop): Ditto (3 times).
180 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
182         * Makefile.in (distclean): Remove QMTest stuff.
183         (QMTEST_PATH): New variable.
184         (QMTESTFLAGS): Likewise.
185         (QMTESTRUNFLAGS): Likewise.
186         (QMTEST): Likewise.
187         (QMTEST_GPP_TESTS): Likewise.
188         (QMTEST_DIR): Likewise.
189         (QMTEST_DIR/context): New target.
190         (qmtest-g++): Likeise.
191         (qmtest-gui): Likewise.
192         (QMTEST_DIR/gpp-expected.qmr): Likewise.
194 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
196         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
197         an altivec register if TARGET_ALTIVEC.
199         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
200         to ALTIVEC_VECTOR_MODE.
201         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
202         (rs6000_va_arg): Vectors may go in registers if they are not
203         altivec vectors.
205 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
207         * protoize.c: Fix formatting.
209 2002-05-19  Richard Henderson  <rth@redhat.com>
211         * gensupport.c (init_include_reader): Merge into ...
212         (process_include): ... here.  Simplify composite path creation.
213         Plug memory leaks.  Fix file/line number tracking.  Do not
214         process_define_cond_exec.  Return void.
215         (process_rtx): Don't check process_include return value.
217 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
219         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
220         fields.
221         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
222         traversing basic block chain.
223         (create_basic_block_structure, create_basic_block): Declaration changed.
224         (link_block, unlink_block): Declare.
225         * cfg.c (entry_exit_blocks): Initialize new fields.
226         (link_block, unlink_block): New.
227         (expunge_block_nocompact): Unlink basic block.
228         (dump_flow_info): Print prev_bb/next_bb fields.
229         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
230         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
231         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
232         * cfgrtl.c (create_basic_block_structure, create_basic_block,
233         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
234         (verify_flow_info): Check that list agrees with numbering.
236 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
238         * c-common.c (preprocessing_asm): New macro.
239         * c-lex.h (builtin_define, builtin_assert): Use pfile.
240 doc:
241         * tm.texi: Update.
242 config/alpha:
243         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
244         (CPP_SPEC): Simplify.
245         (TARGET_CPU_CPP_BUILTINS): Update.
246         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
247         (CPP_SPEC): Simplify.
248         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
249         (TARGET_OS_CPP_BUILTINS): Update.
250         * osf.h (CPP_XFLOAT_SPEC): Kill.
251         (TARGET_OS_CPP_BUILTINS): Update.
252         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
253         * osf5.h (CPP_XFLOAT_SPEC): Kill.
254         * vms.h (CPP_SUBTARGET_SPEC): Kill.
255         (TARGET_OS_CPP_BUILTINS): Update.
257 2002-05-19  Richard Henderson  <rth@redhat.com>
259         * varasm.c (default_binds_local_p): Fix typo.
261 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
263         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
264         CONST_INT operand to the correct mode after adding 1 to it.
266 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
268         * config.gcc (powerpc-wrs-windiss*): New target.
270 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
272         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
273         (ashrdi3): Use it.
275 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
277         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
278         alphasort.
279         * config.in: Regenerated.
280         * configure: Regenerated.
282 2002-05-19  Richard Henderson  <rth@redhat.com>
284         * target-def.h (TARGET_BINDS_LOCAL_P): New.
285         * target.h (struct gcc_target): Move boolean fields to the end.
286         Add binds_local_p.
287         * varasm.c (default_binds_local_p): New.
288         * output.h: Declare it.
290         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
291         * config/cris/cris.c (cris_encode_section_info): Likewise.
292         * config/i386/i386.c (i386_encode_section_info): Likewise.
293         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
294         * config/sh/sh.c (sh_encode_section_info): Likewise.
296         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
297         (TARGET_BINDS_LOCAL_P): New.
299 2002-05-19  Richard Henderson  <rth@redhat.com>
301         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
302         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
303         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
305         * toplev.c (display_help): Kill -a -ax help.
307         * config/1750a/1750a.h, config/alpha/alpha.h,
308         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
309         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
310         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
311         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
313         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
314         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
316         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
317         (ix86_output_function_block_profiler): Kill.
318         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
319         (m68hc11_function_block_profiler): Kill.
320         * config/m68hc11/m68hc11-protos.h: Update.
321         * config/m88k/m88k.c (output_block_profiler): Kill.
322         (output_function_block_profiler): Kill.
323         * config/m88k/m88k-protos.h: Update.
325 2002-05-19  Richard Henderson  <rth@redhat.com>
327         * system.h (STRIP_NAME_ENCODING): Poison it.
328         * output.h (STRIP_NAME_ENCODING): Remove.
329         (default_strip_name_encoding): Declare.
330         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
331         * target.h (strip_name_encoding): New.
332         * varasm.c (default_strip_name_encoding): New.
334         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
335         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
336         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
337         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
338         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
339         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
340         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
341         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
342         config/v850/v850.h: Use the hook, not the macro.
344         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
345         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
346         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
347         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
348         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
349         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
350         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
351         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
352         config/v850/v850.c, config/v850/v850.h:
353         Move STRIP_NAME_ENCODING to out-of-line function and add
354         TARGET_STRIP_NAME_ENCODING.
356         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
357         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
358         with TARGET_STRIP_NAME_ENCODING referencing existing function;
359         make function static.
361         * xcoffout.c: Include target.h
362         * Makefile.in (xcoffout.o): Update.
364         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
365         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
366         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
367         reloc argument unused.
368         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
370         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
371         STRIP_NAME_ENCODING docs.
373 2002-05-19  Andreas Jaeger  <aj@suse.de>
375         * gengenrtl.c: Add prototype for excluded_rtx.
377         * real.h: Add prototype for exact_real_truncate.
379 2002-05-18  Richard Henderson  <rth@redhat.com>
381         * system.h (ENCODE_SECTION_INFO): Poison it.
382         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
383         * target.h (encode_section_info): New.
384         * varasm.c (make_decl_rtl, output_constant_def): Use it.
385         * hooks.c (hook_tree_int_void): New.
386         * hooks.h: Declare it.
388         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
389         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
390         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
391         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
392         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
393         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
394         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
395         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
396         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
397         config/mcore/mcore-protos.h, config/mcore/mcore.c,
398         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
399         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
400         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
401         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
402         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
403         referencing existing function.  Make function static.
405         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
406         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
407         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
408         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
409         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
410         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
411         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
412         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
413         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
414         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
415         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
416         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
417         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
418         Move ENCODE_SECTION_INFO to out-of-line function and add
419         TARGET_ENCODE_SECTION_INFO.
421         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
422         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
424         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
425         from SUBTARGET_*
426         (switch_to_section): Replace in_rdata case with in_readonly_data.
428         * config/h8300/h8300.c (h8300_encode_label): Make static.
429         * config/h8300/h8300-protos.h: Update.
431         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
432         from rs6000_encode_section_info; make static.
433         (rs6000_xcoff_encode_section_info): New.
435         * config/v850/v850.c (v850_encode_data_area): Make static.
436         * config/v850/v850-protos.h: Update.
438         * config/vax/vax.c: Include flags.h.
439         (vms_select_section): Fix typo.
441         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
442         ENCODE_SECTION_INFO docs.
444 2002-05-18  Richard Henderson  <rth@redhat.com>
446         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
447         REGISTER_TARGET_PRAGMAS.
448         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
450         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
452 2002-05-18  Richard Henderson  <rth@redhat.com>
454         * system.h (SELECT_RTX_SECTION): Poison.
455         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
456         * target.h (select_rtx_section): New.
457         * varasm.c (output_constant_pool): Use it.
458         (default_select_rtx_section, default_elf_select_rtx_section): New.
459         * output.h: Declare them.
461         * config/darwin.h (SELECT_RTX_SECTION): Move ...
462         * config/darwin.c (machopic_select_rtx_section): ... here.
463         * config/darwin-protos.h: Update.
465         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
466         * config/nextstep.c (machopic_select_rtx_section): ... here.
467         (nextstep_select_section): Rename variable to avoid macro clash.
468         * config/nextstep-protos.h: Update.
470         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
471         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
472         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
473         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
474         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
475         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
476         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
477         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
478         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
479         (SELECT_RTX_SECTION): Remove.
481         * config/darwin.h, config/elfos.h, config/nextstep.h,
482         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
483         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
484         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
485         config/sparc/lynx.h, config/xtensa/xtensa.c
486         (TARGET_ASM_SELECT_RTX_SECTION): New.
488         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
489         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
490         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
491         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
492         (ia64_aix_select_rtx_section): New.
493         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
494         redefining.
495         * config/mips/mips.c (mips_select_rtx_section): Make static.
496         Support ELF SHF_MERGE features.
497         * config/mips/mips-protos.h: Update.
498         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
499         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
500         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
501         make static, fall back to default_elf_select_rtx_section.
502         * config/rs6000/rs6000-protos.h: Update.
503         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
504         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
505         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
506         * config/romp/romp.c (romp_select_rtx_section): New.
507         * config/s390/s390.c (s390_select_rtx_section): New.
508         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
509         declarations before target macro definition.
510         (xtensa_emit_call): Use static buffer.
511         (xtensa_select_rtx_section): New.
512         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
513         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
514         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
516         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
517         SELECT_RTX_SECTION docs.
519 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
521         * i386.md (movsi/movdi): Fix template.
522         (sse2 patterns): Set attributes consistently.
524         * i386.md (pushqi2, ashrqi_*): Fix constraint.
526 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
528         * optabs.c (complex_part_zero_p): New.
529         * (expand_cmplxdiv_straight): Use it.
530         * (expand_cmplxdiv_wide): Ditto.
531         * (expand_binop): Ditto.
533 2002-05-18  Richard Henderson  <rth@redhat.com>
535         * final.c (HAVE_READONLY_DATA_SECTION): New.
536         (shorten_branches): Use it instead of ifdefs.
537         * varasm.c (enum in_section): Add in_readonly_data.
538         (text_section, data_section): Tidy.
539         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
541         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
542         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
543         (READONLY_DATA_SECTION): Don't undef.
545         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
546         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
547         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
549         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
550         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
551         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
552         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
554         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
555         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
556         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
557         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
558         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
559         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
560         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
561         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
562         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
564         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
565         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
566         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
567         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
568         config/pa/pa64-hpux.h, config/sparc/litecoff.h
569         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
571         * config/elfos.h, config/netware.h, config/svr3.h,
572         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
573         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
574         config/h8300/h8300.h, config/i386/i386-interix.h,
575         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
576         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
578         * config/elfos.h, config/netware.h, config/svr3.h,
579         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
580         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
581         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
582         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
584         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
585         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
586         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
587         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
588         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
589         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
590         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
591         config/rs6000/sysv4.h, config/v850/v850.h
592         (EXTRA_SECTIONS): Remove in_const/in_rdata.
593         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
595         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
596         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
597         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
598         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
599         * config/alpha/alpha.c (alpha_start_function): Likewise.
600         (alpha_write_linkage): Likewise.
601         * config/m32r/m32r.c (m32r_select_section): Likewise.
602         * config/m88k/m88k.c (m88k_select_section): Likewise.
603         * config/mips/mips.c (mips_select_rtx_section): Likewise.
604         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
605         (rs6000_elf_select_section): Likewise.
606         * config/v850/v850.c (v850_select_section): Likewise.
608         * config/1750a/1750a.h, config/i860/sysv3.h
609         (READONLY_DATA_SECTION_ASM_OP): New.
610         READONLY_DATA_SECTION_ASM_OP.
611         * config/i386/interix.c, config/i386/winnt.c
612         (i386_pe_unique_section): Always use .rdata prefix.
613         * config/pa/som.h (readonly_data): Always switch to read-only section.
614         (READONLY_DATA_SECTION): Predicate on flag_pic.
615         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
616         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
617         (READONLY_DATA_SECTION): Update.
619 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
621         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
622         is used without -Wformat.
623         * c-common.h (warn_format_zero_length): Declare extern.
624         * c-decl.c (warn_options): Add "format-zero-length".
625         * c-format.c (warn_format_zero_length): Declare.
626         (set_Wformat): Set warn_format_zero_length for -Wformat.
627         (check_format_info): Only warn about zero-length formats if
628         warn_format_zero_length is true.  Include the format type
629         name in the warning message.
630         * doc/invoke.texi: Document -Wformat-zero-length.
631         * testsuite/gcc.dg/format/zero-length-1.c: New test.
633 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
635         * timevar.c: Fix formatting.
636         * tlink.c: Likewise.
637         * toplev.c: Likewise.
638         * tree-dump.c: Likewise.
639         * tree-inline.c: Likewise.
641 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
643         * cppinit.c (cpp_post_options): If preprocessed, turn off
644         traditional.  If traditional, turn off column numbers.
645         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
646         * cpptrad.c (handle_newline): Update line_base.
647         (skip_comment): Handle -Wcomment.
649 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
651         * cppinit.c (struct builtin): Remove unused fields.
652         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
653         (operator_array): New - was second half of builtin_array.
654         (init_builtins): Simplify loop over builtin_array/operator_array.
656 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
658         * defaults.h (UNIQUE_SECTION): Remove.
659         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
661 2002-05-17  Richard Henderson  <rth@redhat.com>
663         * expr.c (init_expr_once): Don't use start/end_sequence.
664         Use rtx_alloc instead of emit_insn.
665         * toplev.c (lang_dependent_init): Run init_expr_once here ...
666         (lang_independent_init): ... not here.
668 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
670         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
672 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
674         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
675         for fixed registers, possibly used for global register variables.
676         (initial_elimination_offset, avr_output_function_prologue,
677         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
679 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
681         * Makefile.in: Update for cpptrad.c.
682         * cpphash.h (struct cpp_buffer): New members for buffer
683         overlays.
684         (struct cpp_reader): New members for traditional output.
685         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
686         * cppinit.c (cpp_create_reader): Set trad_line.
687         (cpp_destroy): Free trad_out_base if used.
688         (cpp_read_main_file): Overlay an empty buffer if traditional.
689         (cpp_finish_options): Don't do builtins.
690         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
691         (cpp_handle_option): Handle it.
692         * cpplex.c (continue_after_nul): New.
693         (_cpp_lex_direct): Use handle_nul.
694         * cpplib.h (struct cpp_options): New traditional option.
695         * cpptrad.c: New file.
697 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
699         * c-common.c (c_common_init_options): Use C89 for Objective-C,
700         and set the options flag.
701         * cppinit.c (lang_flags): Remove objc.
702         (lang_defaults): Remove OBJC and OBJCXX.
703         (set_lang): Update.
704         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
705         (cpp_handle_option): Remove -+ and -lang-objc++.
706         For ObjC, just set a flag.
707         (print_help): Update.
708         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
710 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
712         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
713         bootstrap with -mips3.
715 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
717         * final.c: Fix formatting.
718         * fix-header.c: Likewise.
719         * flow.c: Likewise.
720         * fold-const.c: Likewise.
721         * function.c: Likewise.
723 2002-05-17  David S. Miller  <davem@redhat.com>
725         PR c/6689, PR optimization/6615
726         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
727         and make it a pointer to rtx.  Update comments.
728         (update_equiv_regs): When scanning for equivalences, record
729         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
730         it while making the equiv replacements.
732 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
734         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
736 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
738         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
739         when encoding visibility into SYMBOL_REF_FLAG.
741 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
743         * expr.c (force_operand): Fix reversed move.
745 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
747         * doc/install.texi (Testing): Mention two common DejaGnu warnings
748         that can be ignored.
750 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
752         * doc/install.texi (Final install): Recommend to install into a
753         "clean" target directory.
755 2002-05-17  Richard Henderson  <rth@redhat.com>
757         * config/ia64/ia64.md: Use braced strings instead of quoted strings
758         for code blocks.  Tidy whitespace.
760 2002-05-17  Richard Henderson  <rth@redhat.com>
762         * hooks.c (hook_tree_bool_false): New.
763         * hooks.h: Declare it.
764         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
765         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
766         * target.h (select_section, unique_section): New.
767         (in_small_data_p): New.
768         * varasm.c (resolve_unique_section): Use hooks instead of macros.
769         (variable_section, output_constant_def_contents): Likewise.
770         (default_select_section, default_unique_section): New.
771         (categorize_decl_for_section, default_elf_select_section): New.
772         * output.h: Declare them.
774         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
775         (TARGET_ASM_SELECT_SECTION): New.
776         (SELECT_SECTION): Move ...
777         * config/darwin.c (machopic_select_section): ... here.
778         * config/darwin-protos.h: Update.
780         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
781         (SELECT_SECTION): Move ...
782         * config/nextstep.c (nextstep_select_section): ... here.
783         * config/nextstep-protos.h: Update.
785         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
786         (TARGET_ASM_SELECT_SECTION): New.
787         * config/svr3.h (SELECT_SECTION): Remove.
789         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
790         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
791         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
792         (alpha_encode_section_info): Use it.
793         * config/alpha/alpha-protos.h: Update.
794         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
795         (SELECT_SECTION, UNIQUE_SECTION): Remove.
796         (TARGET_ASM_SELECT_SECTION): New.
797         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
799         * config/arm/pe.h (UNIQUE_SECTION): Remove.
800         (TARGET_ASM_UNIQUE_SECTION): New.
802         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
803         (avr_unique_section): Rename from unique_section; make static.
804         * config/avr/avr-protos.h: Update.
805         * config/avr/avr.h (UNIQUE_SECTION): Remove.
807         * config/c4x/c4x.h (SELECT_SECTION): Remove.
809         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
810         (TARGET_ASM_UNIQUE_SECTION): New.
811         * config/i386/i386-interix.h: Likewise.
812         * config/i386/win32.h: Likewise.
813         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
814         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
815         * config/i386/sco5.h (SELECT_SECTION): Remove.
816         (TARGET_ASM_SELECT_SECTION): New.
817         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
819         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
820         instead of SELECT_SECTION.
821         * config/m68k/dpx2.h: Likewise.
822         * config/rs6000/lynx.h: Likewise.
824         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
825         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
826         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
827         (ia64_in_small_data_p): New.
828         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
829         (ia64_aix_select_section, ia64_aix_unique_section): New.
830         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
831         (SELECT_SECTION, UNIQUE_SECTION): Remove.
833         * config/m32r/m32r.h (SELECT_SECTION): Remove.
834         (TARGET_ASM_SELECT_SECTION): New.
835         * config/m32r/m32r.c (m32r_select_section): Take align argument.
836         * config/m32r/m32r-protos.h: Update.
838         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
839         (SELECT_SECTION): Move ...
840         * config/m88k/m88k.c (m88k_select_section): ... here.
842         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
843         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
844         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
845         (mcore_unique_section): Make static.
846         * config/mcore/mcore-protos.h: Update.
848         * config/mips/elf.h (UNIQUE_SECTION): Remove.
849         (TARGET_ASM_UNIQUE_SECTION): New.
850         * config/mips/elf64.h: Likewise.
851         * config/mips/iris6gld.h: Likewise.
852         * config/mips/linux.h: Likewise.
853         * config/mips/mips-protos.h: Update.
854         * config/mips/mips.c (mips_select_section): Add align argument.
855         * config/mips/mips.h (SELECT_SECTION): Remove.
856         (TARGET_ASM_SELECT_SECTION): New.
858         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
859         * config/mmix/mmix.c (mmix_select_section): Remove.
860         (mmix_unique_section): Remove.
861         * config/mmix/mmix-protos.h: Update.
863         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
864         (SELECT_SECTION): Move ...
865         * config/pa/pa.c (pa_select_section): ... here.
866         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
868         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
869         from rs6000_select_section and make static.
870         (rs6000_elf_unique_section): Similarly.
871         (rs6000_xcoff_select_section): From xcoff.h.
872         (rs6000_xcoff_unique_section): Likewise.
873         * config/rs6000/rs6000-protos.h: Update.
874         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
875         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
876         * config/rs6000/xcoff.h: Likewise.
878         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
879         (SELECT_SECTION): Move ...
880         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
882         * config/v850/v850.h (SELECT_SECTION): Move ...
883         * config/v850/v850.c (v850_select_section): ... here.
884         (TARGET_ASM_SELECT_SECTION): New.
886         * config/vax/vms.h (SELECT_SECTION): Move ...
887         * config/vax/vax.c (vms_select_section): ... here.
888         (TARGET_ASM_SELECT_SECTION): New.
890         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
891         for the target hooks.
893 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
895         * config/arm/arm.c (emit_multi_reg_push): Do not set
896         RTX_FRAME_RELATED_P on the SEQUENCE.
898 2002-05-16  Richard Henderson  <rth@redhat.com>
900         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
901         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
903 2002-05-16  Richard Henderson  <rth@redhat.com>
905         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
907         * config/ia64/ia64.c (saveable_obstack): Do not declare.
909 2002-05-16  Richard Henderson  <rth@redhat.com>
911         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
912         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
913         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
914         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
915         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
916         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
917         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
918         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
919         Revert "Basic block renumbering removal", and two followup patches.
921 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
923         * lcm.c (optimize_mode_switching): Revert previous change.
925 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
927         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
928         with only extant block numbers.
930 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
932         * lcm.c (optimize_mode_switching): Fix typo.
934 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
936         * flow.c (calculate_global_regs_live): Queue blocks in program order.
938 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
940         * doc/install.texi (Configuration): Document PWDCMD.
942 2002-05-16  Dale Johannesen  <dalej@apple.com>
944         * combine.c (cant_combine_insn_p):  Reenable combinations
945         involving hard regs unless CLASS_LIKELY_SPILLED_P.
947 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
949         * c-common.c (cb_register_builtins): Handle more built-ins
950         here rather than in gcc.c specs.
951         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
952         (cpp_options): Pass -O flags even when only preprocessing.
953         * toplev.c (set_fast_math_flags): New prototype.
954         (fast_math_flags_set_p): New.
955         (set_no_fast_math_flags): Remove.
956         (decode_f_option): Update.
957         * toplev.h (set_fast_math_flags): Update.
958         (fast_math_flags_set_p): New.
959         (set_no_fast_math_flags): Remove.
960 config:
961         * c4x/c4x.c (c4x_override_options): Update.
963 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
965         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
966         Default-define here.
967         (builtin_define_with_value): Can now wrap the expansion in
968         quotation marks if such is wanted.
969         (cb_register_builtins): Update calls to builtin_define_with_value.
970         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
971         here.
972         (c_common_init): Set options->stdc_0_in_system_headers.
973         * c-lex.h: Update prototype of builtin_define_with_value.
974         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
975         and REGISTER_PREFIX.
977         * cppinit.c (VERS, ULP, C, X): Kill.
978         (builtin_array): Remove entries for __VERSION__,
979         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
980         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
981         a constant.
982         (init_builtins): Kill off a bunch of now-dead code.
983         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
984         -fno-leading-underscore.
985         (cpp_handle_option): Remove code to set user_label_prefix.
986         (cpp_post_options): Likewise.
988         * cpplib.h (struct cpp_options): Remove user_label_prefix.
989         (stdc_0_in_system_headers): New.
990         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
991         stdc_0_in_system_headers) too to decide the value of __STDC__.
993         * tradcpp.c (user_label_prefix): Kill.
994         (main): Remove code handling -f(no-)leading-underscore.
995         (initialize_builtins): Don't define __REGISTER_PREFIX__
996         or __USER_LABEL_PREFIX__.
997         (install_value): Wrap compound statement in dummy loop so the
998         macro works properly in an if statement.
1001 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
1003         * loop.h (struct loop_info): Add member has_prefetch.
1004         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
1005         (prescan_loop): Initialize has_prefetch.
1006         (struct prefetch_info): Change prefetch_in_loop and
1007         prefetch_before_loop from bit fields to ints.
1008         (emit_prefetch_instructions): Several small fixes.
1009         (check_dbra_loop): Don't reverse loop that uses prefetch.
1011 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1013         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
1014         * configure.in: Likewise.
1015         * fixinc/check.tpl: Likewise.
1016         * fixinc/fixinc.dgux: Likewise.
1017         * fixinc/fixinc.svr4: Likewise.
1018         * fixinc/fixinc.winnt: Likewise.
1019         * fixinc/fixincl.sh: Likewise.
1020         * fixproto: Likewise.
1021         * configure: Regenerate.
1023 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1025         Basic block renumbering removal:
1026         * basic_block.h (struct basic_block_def): Renamed index to sindex,
1027         added prev_bb and next_bb fields.
1028         (n_basic_blocks): Renamed to num_basic_blocks.
1029         (last_basic_block): New, index of last basic block.
1030         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1031         traversing basic block chain.
1032         (BLOCK_NUM): index -> sindex.
1033         (create_basic_block_structure, create_basic_block): Declaration changed.
1034         (debug_num2bb): Declare.
1035         (expunge_block_nocompact): Declaration removed.
1036         (link_block, unlink_block, compact_blocks): Declare.
1037         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
1038         * cfg.c (entry_exit_blocks): Initialize new fields.
1039         (clear_edges, alloc_block, expunge_block, cached_make_edge,
1040         redirect_edge_pred, dump_flow_info, dump_edge_info,
1041         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
1042         free_aux_for_edges): Modified.
1043         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
1044         (expunge_block_nocompact): Removed.
1045         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
1046         find_unreachable_blocks, create_edge_list, print_edge_list,
1047         verify_edge_list, flow_edge_list_print, remove_fake_successors,
1048         remove_fake_edges, flow_reverse_top_sort_order_compute,
1049         flow_depth_first_order_compute, flow_preorder_transversal_compute,
1050         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
1051         flow_dfs_compute_reverse_execute): Modified.
1052         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
1053         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
1054         Modified.
1055         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1056         merge_blocks_move_predecessor_nojumps,
1057         merge_blocks_move_successor_nojumps, merge_blocks,
1058         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
1059         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
1060         * cfglayout.c (skip_insns_after_block, label_for_bb,
1061         record_effective_endpoints, scope_to_insns_finalize,
1062         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
1063         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
1064         cfg_layout_duplicate_bb): Modified.
1065         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
1066         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
1067         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
1068         flow_loops_find, flow_loop_outside_edge_p): Modified.
1069         * cfgrtl.c (create_basic_block_structure, create_basic_block,
1070         flow_delete_block, compute_bb_for_insn, split_block,
1071         try_redirect_by_replacing_jump, redirect_edge_and_branch,
1072         force_nonfallthru_and_redirect, tidy_fallthru_edge,
1073         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
1074         commit_edge_insertions, commit_edge_insertions_watch_calls,
1075         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
1076         purge_all_dead_edges): Modified.
1077         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
1078         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1079         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
1080         Modified.
1081         * conflict.c (conflict_graph_compute): Modified.
1082         * df.c (FOR_ALL_BBS): Removed.
1083         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1084         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
1085         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
1086         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
1087         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1088         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
1089         * final.c (compute_alignments, final_scan_insn): Modified.
1090         * flow.c (verify_local_live_at_start, update_life_info,
1091         update_life_info_in_dirty_blocks, free_basic_block_vars,
1092         delete_noop_moves, calculate_global_regs_live,
1093         initialize_uninitialized_subregs, allocate_bb_life_data,
1094         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
1095         mark_used_reg, count_or_remove_death_notes): Modified.
1096         * function.c (thread_prologue_and_epilogue_insns): Modified.
1097         * gcse.c (struct null_pointer_info): Change typo of current_block
1098         to basic_block.
1099         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
1100         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
1101         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
1102         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
1103         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
1104         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
1105         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
1106         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
1107         pre_delete, one_pre_gcse_pass, compute_transpout,
1108         invalidate_nonnull_info, delete_null_pointer_checks_1,
1109         free_code_hoist_mem, compute_code_hoist_vbeinout,
1110         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1111         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
1112         compute_store_table, build_store_vectors, insert_insn_start_bb,
1113         insert_store, replace_store_insn, free_store_memory, store_motion):
1114         Modified.
1115         * global.c (global_alloc, global_conflicts, mark_elimination,
1116         build_insn_chain): Modified.
1117         * graph.c (print_rtl_graph_with_bb): Modified.
1118         * haifa-sched.c (sched_init): Modified.
1119         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
1120         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
1121         if_convert): Modified.
1122         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
1123         compute_insert_delete, pre_edge_lcm, compute_available,
1124         compute_farthest, compute_nearerout, compute_rev_insert_delete,
1125         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
1126         Modified.
1127         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
1128         * loop.c (loop_dump_aux): Modified.
1129         * predict.c (combine_predictions_for_insn, estimate_probability,
1130         last_basic_block_p, process_note_prediction, process_note_predictions,
1131         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
1132         expensive_function_p, estimate_bb_frequencies,
1133         compute_function_frequency): Modified.
1134         * print-rtl.c (print_rtx): Modified.
1135         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
1136         get_exec_counts, compute_branch_probabilities, compute_checksum,
1137         branch_prob, find_spanning_tree): Modified.
1138         * recog.c (split_all_insns, peephole2_optimize): Modified.
1139         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
1140         convert_regs_1, convert_regs_2, convert_regs): Modified.
1141         * regclass.c (scan_one_insn, regclass): Modified.
1142         * regmove.c (mark_flags_life_zones, regmove_optimize,
1143         combine_stack_adjustments): Modified.
1144         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
1145         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
1146         * reorg.c (dbr_schedule): Modified.
1147         * resource.c (find_basic_block, init_resource_info): Modified.
1148         * sbitmap.c (sbitmap_intersection_of_succs,
1149         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
1150         sbitmap_union_of_preds): Modified.
1151         * sched-deps.c (init_dependency_caches): Modified.
1152         * sched-ebb.c (schedule_ebbs): Modified.
1153         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
1154         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
1155         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
1156         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
1157         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
1158         ssa_const_prop): Modified.
1159         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
1160         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
1161         * ssa.c (remove_phi_alternative, find_evaluations,
1162         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
1163         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
1164         make_regs_equivalent_over_bad_edges,
1165         make_equivalent_phi_alternatives_equival,
1166         compute_conservative_reg_partition,
1167         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
1168         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
1169         Modified.
1171 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
1173         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
1175 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
1177         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
1178         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
1179         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
1180         calling CONSTANT_POOL_ADDRESS_P.
1181         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
1182         to decide whether to define __arm__ or __thumb.
1183         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
1184         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
1186 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
1188         * config/arc/arc.h (CPP_PREDEFINES): Remove.
1189         (CPP_SPEC): Update.
1190         (TARGET_CPU_CPP_BUILTINS): New.
1192 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
1194         * cpphash.h (cpp_macro): Move here, and make expansion a union.
1195         * cppmacro.c (cpp_macro): Remove.
1196         (enter_macro_context, replace_args, warn_of_redefinition,
1197         _cpp_create_definition, cpp_macro_definition): Update.
1199 2002-05-16  Jason Merrill  <jason@redhat.com>
1201         * config/mips/mips.c (mips_output_external): Don't do sdata
1202         optimization for a variable with DECL_COMDAT set.
1204 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
1206         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
1207         Cleanups for accepting modifiers on pointers.
1208         Fix predicate typos.
1209         Allow long pointers as well as int pointers.
1211 2002-05-15  Richard Henderson  <rth@redhat.com>
1213         * varasm.c (merge_weak): Remove special case for extern and common.
1215 2002-05-15  Matt Hiller  <hiller@redhat.com>
1217         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
1218         XFAILing.
1219         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
1220         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
1221         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
1222         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
1223         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
1224         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
1226 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
1228         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
1230 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
1232         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
1233         ("altivec_mfvscr"): Read from VSCR.
1235         Add vscr sets for the following insns: altivec_vctuxs,
1236         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
1237         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
1238         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
1239         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
1240         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
1241         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
1242         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
1243         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
1244         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
1245         altivec_vsum2sws, altivec_vsumsws.
1247         * config/rs6000/rs6000.h: Add VSCR fixed register.
1248         (CALL_REALLY_USED_REGISTERS): Add vscr.
1249         (CALL_USED_REGISTERS): Same.
1250         (FIXED_REGISTERS): Same.
1251         (REG_ALLOC_ORDER): Same.
1252         (reg_class): Add VSCR_REGS.
1253         (REG_CLASS_NAMES): Same.
1254         (REG_CLASS_CONTENTS): Same.
1255         (VSCR_REGNO): New.
1256         (REGISTER_NAMES): Add vscr.
1257         (DEBUG_REGISTER_NAMES): Same.
1258         (ADDITIONAL_REGISTER_NAMES): Same.
1259         (FIRST_PSEUDO_REGISTER): Increment.
1260         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
1262 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
1264         * fold-const.c (fold): Fix a typo.
1266 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
1268         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
1269         comparison against the highest or lowest integer value before
1270         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
1271         transformation and that of an unsigned comparison against 0
1272         right after.
1274 2002-05-15  Richard Henderson  <rth@redhat.com>
1276         * varasm.c (merge_weak): Error for any weakening after definition.
1277         Adjust weakening after use warning to catch more cases.
1278         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
1279         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
1281 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
1283         * invoke.texi (-malign-double): Re-add lost warning.
1285         * i386-protos.h (x86_output_mi_thunk): Declare.
1286         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
1287         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
1289         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
1290         when flag_asynchronous_unwind_tables is set.
1292         * flags.h (flag_reorder_functions): Declare.
1293         * function.c (prepare_function_start): Initialize frequnecy.
1294         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
1295         * Makefile.in (predict.o): Add dependency on target.h and params.h
1296         * defaults.h (HOT_TEXT_SECTION_NAME,
1297         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
1298         * predict.c (choose_function_section): New function.
1299         (estimate_bb_frequencies): Use it.
1300         * toplev.c (flag_reorder_functions): New global variable.
1301         (lang_independent_options): New.
1302         (parse_options_and_default_flags): Set.
1303         * varasm.c (assemble_start_function): Bypass functdion alignment
1304         for never executed functions.
1305         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
1306         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
1307         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
1308         Document.
1310         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
1312         * predict.c: Inlude profile.h
1313         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
1314         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
1315         Use the information about maximal counter in the program.
1317         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
1319         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
1320         probably_never_executed_bb_p): New functions.
1321         * cfgcleanup.c (outgoing_edges_match): Use them.
1322         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
1323         (maybe_hot_bb_p, probably_cold_bb_p,
1324         probably_never_executed_bb_p): New functions.
1326         * function.h (function): Add new field function_frequency.
1327         * predict.c (compute_function_frequency): New function.
1328         (estimate_probability): Call it.
1330 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
1332         PR optimization/5172, optimization/5200
1333         * gcse.c (gcse_main): Disable store_motion.
1335 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
1337         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
1338         (c_common_nodes_and_builtins): Use it.
1339         (builtin_define_with_value): New function.
1340         (cb_register_builtins): Define __SIZE_TYPE__,
1341         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
1342         using builtin_define_with_value.  Use consistent notation when
1343         defining __GXX_WEAK__.
1344         (WCHAR_TYPE_SIZE): Don't redefine.
1345         (combine_strings): Don't use WCHAR_TYPE_SIZE.
1347         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
1348         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
1349         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
1350         * tradcpp.c (initialize_builtins): Likewise.
1351         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
1353         * c-lex.h (builtin_define_with_value): Prototype.
1354         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
1355         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
1356         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
1358         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
1359         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
1360         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
1361         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
1362         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
1363         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
1364         config/sparc/sol2-bi.h, config/sparc/sparc.h:
1365         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
1366         to __SIZE_TYPE__ etc from all spec strings. When this makes
1367         extra specs empty, delete them.
1369 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1371         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
1372         for PA8000 or generating dwarf2 call frame information.
1373         (output_call): Remove DO_FRAME_NOTES check from return pointer
1374         optimization.
1375         (following_call): Return 0 when scheduling for PA8000 or generating
1376         dwarf2 call frame information.  Revise comment.
1378 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1380 config/alpha:
1381         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
1382         and __IEEE_FP_INEXACT as appropriate.
1383         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
1384         (CPP_SPEC): Remove ieee defines.
1385         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
1387 2002-05-14  Richard Henderson  <rth@redhat.com>
1389         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
1390         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
1392 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1394         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
1395         (CPP_SPEC): Update.
1396         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
1397         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
1398         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
1399         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
1400         (EXTRA_SPECS): Update.
1401         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
1402         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
1403         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
1404         define TARGET_OS_CPP_BUILTINS if necessary.
1406 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1408         * gcc.c (cpp_options): Must pass -m* and -f* options
1409         to the front end even when only preprocessing.
1410         (cc1_options): Remove redundant -lang-c.
1411         * tradcpp.c (main): Ignore -m options.
1412 objc:
1413         * lang-specs.h: Similarly.
1415 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
1417         * genautomata.c (transform_3): Add code for transformation
1418         `(A,B,...)+C -> A+C,B,...'.
1420 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
1422         * final.c (end_final): Do not output profile_arcs constructor, when
1423         no functions are instrumented.
1425 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
1427         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
1429 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1431         * doc/install.texi: Remove special markup originally required for
1432         HTML generation with texi2html.
1434 2002-05-14  Andreas Schwab  <schwab@suse.de>
1436         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
1437         SELECT_SECTION.
1438         (UNIQUE_SECTION): Define to get small data correctly.
1440         * varasm.c (resolve_unique_section): Add third parameter
1441         flag_function_or_data_sections and use it instead of
1442         flag_function_sections.
1443         (assemble_start_function): Pass flag_function_sections.
1444         (asm_emit_uninitialised): Pass flag_data_sections.
1445         (assemble_variable): Likewise.
1447 2002-05-14  Richard Henderson  <rth@redhat.com>
1449         * config/i386/i386.md: Use define_constants for unspec numbers.
1450         * config/i386/i386.c: Likewise.
1452 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1454         * doc/contrib.texi: Update my entry.
1456 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
1458         * fixinc/inclhack.def (winidss_valist): Limit applicability.
1459         * fixinc/fixincl.x: Regenerated.
1460         * fixinc/tests/base/math.h: Update.
1461         * fixinc/tests/base/testing.h: Likewise.
1463 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
1465         * genattr.c (gen_attr): Don't emit a comma after the last
1466         enumerator.
1468 2002-05-13  Richard Henderson  <rth@redhat.com>
1470         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
1471         by non-local gotos.
1472         * recog.c (peephole2_optimize): Likewise.
1474 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
1476         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
1477         input to O_BINARY.
1479 2002-05-13  Jeffrey A Law  (law@redhat.com)
1481         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
1482         Update prototype and callers.
1483         (propagate_one_insn): Stack pointer adjustments kill MEMs on
1484         the mem_set_list which reference the stack pointer, as do
1485         calls to constant functions as they may clobber outgoing
1486         argument space.
1488         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
1490         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1491         (ia32_multipass_dfa_lookahead): New function.
1493 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1495         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
1496         (translate_options): Remove 'V'.
1497         (process_command): Similarly.
1498 doc:
1499         * invoke.texi: Remove documentation of 'V'.
1501 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1503         * config/s390/linux.h: Revert 2002-04-22 changes.
1505 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
1507         * config/fr30/fr30.md: Only allow splits of immediate loads
1508         if the destination is a register.
1510 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1512         * Makefile.in (c-common.o, cppinit.o): Update.
1513         * c-common.c: Include except.h.
1514         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
1515         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
1516         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
1517         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
1518         CPP_PREDEFINES): Handle here.
1519 config:
1520         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
1521         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
1522         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
1523         TARGET_OS_CPP_BUILTINS.
1524         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
1525         (CPP_SPEC, EXTRA_SPECS): Update.
1526         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
1527         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
1528         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
1529         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
1530         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
1531 doc:
1532         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
1533         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
1535 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
1537         * emit-rtl.c (global_rtl): Update comment.
1538         (const_double_htab, const_double_htab_hash,
1539         const_double_htab_hash, lookup_const_double): New.
1540         (const_int_htab_hash, const_int_htab_eq): Remove const
1541         qualifiers, which cause tons of warnings with RTL checking on.
1542         (gen_rtx_CONST_DOUBLE): Deleted.
1543         (const_double_from_real_value): New function - bears some
1544         resemblance to the former immed_real_const_1.
1545         (immed_double_const): Moved here from varasm.c and
1546         simplified.
1547         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
1548         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
1549         (gen_rtx): Use immed_double_const.
1550         (init_emit_once): Initialize the const_double_htab.  Use
1551         REAL_VALUE_FROM_INT where possible.  Can now use
1552         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
1553         * varasm.c (struct varasm_status): Remove x_const_double_chain.
1554         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
1555         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
1556         (init_varasm_status, mark_varasm_status): Don't touch
1557         x_const_double_chain.
1559         * output.h: Delete prototype for clear_const_double_mem.
1560         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
1561         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
1562         const_double_from_real_value, not immed_real_const_1, and use
1563         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
1564         CONST_DOUBLE_ATOF.
1565         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
1566         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
1567         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
1568         (gen_rtx_REG): Second arg is unsigned.
1570         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
1571         (excluded_rtx): New, return true for CONST_DOUBLE.
1572         (genmacro): Write nothing for excluded codes.
1573         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
1574         * expr.c (expand_expr): Likewise.
1575         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
1576         CONST_DOUBLE_CHAIN.
1577         * toplev.c (rest_of_compilation): Don't call
1578         clear_const_double_mem.
1580         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
1581         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
1582         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
1583         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
1584         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
1585         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
1586         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
1587         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
1589 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1591         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
1593 2002-05-12  Tom Tromey  <tromey@redhat.com>
1595         * tree.h (copy_node): Don't mention TREE_PERMANENT.
1597 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
1599         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
1600         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
1601         * gensupport.h: Prototype new routines.
1602         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
1603         use of printf.
1604         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
1605         (next_comma_elt): Use scan_comma_elt.
1607         * config/i386/i386.md: Use new attribute notation to break up
1608         long lines in define_attr forms.
1610 2002-05-12  Richard Henderson  <rth@redhat.com>
1612         * expr.c (compress_float_constant): New.
1613         (emit_move_insn): Use it.
1614         (float_extend_from_mem): New.
1615         (init_expr_once): Initialize it.
1616         * real.c (exact_real_truncate): New.
1618         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
1619         dropped into memory; penalize for size.
1620         (RTX_COSTS): FLOAT_EXTEND is free.
1621         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
1622         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
1624 2002-05-12  Richard Henderson  <rth@redhat.com>
1626         * profile.h (profile_info): Add missing extern to declaration.
1627         * profile.c (profile_info): Define it.
1629 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1631         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
1632         used for DImode and TImode.
1634 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
1636         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
1637         fake a newline.
1639 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
1641         * config/rs6000/rs6000.c (rs6000_default_long_calls,
1642         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
1643         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
1644         (rs6000_override_options): Handle -m(no-)longcall.
1645         (init_cumulative_args, output_mi_thunk): Check for both
1646         longcall and shortcall attributes on the function.
1647         (rs6000_attribute_table): Add "shortcall".
1648         (rs6000_handle_longcall_attribute): Update comment.
1649         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
1650         altivec_expand_ternop_builtin): Add default clauses to switches
1651         to silence warnings.
1653         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
1654         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
1655         (TARGET_OPTIONS): Add longcall and no-longcall.
1657         * config/rs6000/rs6000.md (call_nonlocal_sysv,
1658         call_value_nonlocal_sysv): Split by alternatives.  One pair
1659         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
1660         the call cookie.  The other pair accepts only LR/CTR and has
1661         no restriction.
1663         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
1664         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
1665         tmake_file.
1666         * config/rs6000/rs6000-c.c: New file.
1667         * config/rs6000/t-rs6000-c-rule: New file.
1668         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
1669         Prototype rs6000_pragma_longcall.
1671         * doc/extend.texi: Document shortcall attribute.
1672         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
1674 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1676         * reorg.c (dbr_schedule): Remove unnecessary test.
1678 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
1680         * i386.md (testsi to testqi spliters): New.
1682         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
1684         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
1686         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
1688         * basic-block.h: New flag EDGE_CAN_FALLTHRU
1689         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
1690         that can be made fallthru.
1692         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
1694         * cfglayout.c (cleanup_unconditional_jumps): New static function.
1695         (cfg_layout_initialize): Use it.
1697 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1699         * config/avr/avr.c (avr_mcu_types): Update supported devices.
1700         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1701         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1703 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
1705         * dbxout.c: Fix formatting.
1706         * dependence.c: Likewise.
1707         * df.c: Likewise.
1708         * diagnostic.c: Likewise.
1709         * doloop.c: Likewise.
1710         * dominance.c: Likewise.
1711         * doschk.c: Likewise.
1712         * dwarf2asm.c: Likewise.
1713         * dwarf2out.c: Likewise.
1714         * dwarfout.c: Likewise.
1716 2002-05-10  Richard Henderson  <rth@redhat.com>
1718         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
1719         Convert integers constants as needed.  Replace "nwords" field with
1720         "sizeof_bb".
1721         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
1722         * function.h: Fix typo in comment.
1723         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
1725 2002-05-10  Roger Sayle  <roger@eyesopen.com>
1727         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
1728         into the equivalent (signed char)c > 0.
1730 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
1732         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
1733         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
1734         (struct prefetch_info): Fix spelling of member bytes_accessed.
1735         (emit_prefetch_instructions): Make dump messages more regular;
1736         restructure code to add more dump messages; use new macros for
1737         heuristics. (There are no code generation changes in any of this).
1739 2002-05-10  David S. Miller  <davem@redhat.com>
1741         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
1742         (struct rtx_def): Update unchanging flag comment.
1743         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
1744         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
1745         to be handled to INSN too.
1746         (dbr_schedule): Likewise.
1747         * resource.c (next_insn_no_annul): Likewise.
1749         * cse.c (rtx_cost): Remove multiplication by power of 2 special
1750         casing.
1752 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1754         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
1755         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
1756         (possibly) work around broken /bin/sh.
1758 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1760         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
1761         . as N64/N32 libgcc_s.so subdirs.
1763 2002-05-10  David S. Miller  <davem@redhat.com>
1765         * config/sparc/sparc.md: Use define_constants for unspec numbers.
1767         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
1768         more accurately.
1769         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
1770         comment.
1771         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
1772         * doc/rtl.texi: Document these macros more accurately.
1773         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
1774         JUMP_INSNs and CALL_INSNs.
1775         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
1776         or INSN_FROM_TARGET_P if the code is appropriate.
1778 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1780         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
1781         before using SYMBOL_REF_FLAG (addr).
1783         * config/avr/avr-protos.h (avr_io_address_p): Declare.
1784         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
1785         Make non-static.  Update all callers.
1786         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
1787         New insns to clear/set/test a single bit in I/O address space.
1789 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1791         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
1793 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1795         * Makefile.in: Update.
1796         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
1797         builtin_define_std): New.
1798         (c_common_init): Register CPP builtins callback.
1799         * c-common.h (flag_iso, flag_undef): New.
1800         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
1801         * c-lex.c: Don't include target.h.
1802         (cb_register_builtins): Move to c-common.c.
1803         (init_c_lex): Don't register hook here.
1804         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
1805         (cpp_define, cpp_assert): Remove.
1806         * gcc.c (cc1_options): Pass -undef to front end.
1807         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
1808         (TARGET_INITIALIZER): Update.
1809         * target.h (struct cpp_reader): Don't predeclare.
1810         (struct gcc_target): Remove cpp builtin hook.
1811         * tree.c (default_register_cpp_builtins): Remove.
1812 doc:
1813         * tm.texi: Update.
1815 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1817         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
1819 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1821         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
1822         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
1824 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
1826         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
1827         * config/sparc/libgcc-sparc-glibc.ver: New file.
1828         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
1829         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
1831 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
1833         PR target/6429
1834         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
1835         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
1836         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
1837         base multilibs.
1838         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
1839         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
1840         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1841         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1843 2002-05-09  Richard Henderson  <rth@redhat.com>
1845         * config/ia64/ia64.md: Use define_constants for unspec numbers.
1846         * config/ia64/ia64.c: Likewise.
1848 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
1850         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
1851         (save_restore_insns): Likewise.
1852         (mips_expand_prologue, mips_expand_epilogue): Update callers.
1853         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
1855 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@cygnus.com)
1857         * athlon.md, k6.md, pentium.md, ppro.md): New files.
1858         * i386.md: Move scheduling information into new files.
1860         * i386.md (type attribute): Add "rotate" for rotate insns.
1861         (rotate insns): Set type to "rotate".
1862         (various attributes and function units): Treat rotate like shift.
1863         (pent_pair attribute): Only rotates by one bit position are
1864         pairable.
1865         (sbb insns): Explicitly set pent_pair attribute on a couple
1866         that were missing it.
1868 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
1870         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
1871         make sure that buffer starts on odd word address.
1872         (sh_va_arg): Skip odd fp registers when reading a double precision
1873         value.
1875 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1877         * tree.h (preserve_data, object_permanent_p, type_precision):
1878         Remove.
1880 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1882         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
1883         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
1884 doc:
1885         * cpp.texi: Update for removal of obsolete features.
1887 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
1888                           Jeffrey A Law  (law@redhat.com)
1890         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
1891         the DFA interface for Pentium processors.
1892         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
1893         (attr_pent_pair, ix86_pent_find_pair): Remove.
1894         (ix86_sched_reorder_pentium): Remove.
1895         (ix86_sched_reorder): Remove reordering for Pentium.
1896         * i386.md (Pentium scheduling): Rewrite using DFA description.
1898 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
1900         * cfganal.c (can_fallthru): Fix fast path.
1901         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
1902         with edges to the next block.
1904 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
1905                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
1907         * final.c (end_final): Use C trees to output data structures for profiling.
1909         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
1910         (profile.o): New dependency profile.h
1911         (final.o): New dependency profile.h
1912         * profile.h: New file. New global structure profile_info.
1913         * final.h (count_edges_instrumented_now): Declare.
1914         (current_function_cfg_checksum): Declare.
1915         (function_list): New structure.
1916         (functions_head, functions_tail): New static variables.
1917         (end_final): Emits more data, removed some -ax stuff.
1918         (final): Stores function names and chcksums.
1919         * gcov-io.h (__write_gcov_string): New function.
1920         (__read_gcov_string): New function.
1921         * gcov.c (read_profile): New function.
1922         (create_program_flow_graph): Uses read_profile instead of reading
1923         da_file.
1924         (read_files): Removed da_file checking, it's done by read_profile now.
1925         * libgcc2.c (bb_function_info): New structure.
1926         (bb): New field in structure, removed some -ax stuff.
1927         (__bb_exit_func): Changed structure of da_file.
1928         * profile.c (count_edges_instrumented_now): New global variable.
1929         (current_function_cfg_checksum): New global variable.
1930         (max_counter_in_program): New global variable.
1931         (get_exec_counts): New function.
1932         (compute_checksum): New function.
1933         (instrument_edges): Sets count_edges_instrumented_now.
1934         (compute_branch_probabilities): Uses get_exec_counts instead of
1935         reading da_file.
1936         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
1937         (init_branch_prob): Removed da_file checking, done in get_exec_counts
1938         now.
1939         (end_branch_prob): Removed da_file checking, done in get_exec_counts
1940         now.
1941         * gcov.texi: Updated information about gcov file format.
1943 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
1945         * sbitmap.c: Fix formatting.
1946         * scan.c: Likewise.
1947         * scan-decls.c: Likewise.
1948         * sched-deps.c: Likewise.
1949         * sched-ebb.c: Likewise.
1950         * sched-rgn.c: Likewise.
1951         * sched-vis.c: Likewise.
1952         * sdbout.c: Likewise.
1953         * sibcall.c: Likewise.
1954         * simplify-rtx.c: Likewise.
1955         * ssa.c: Likewise.
1956         * ssa-ccp.c: Likewise.
1957         * ssa-dce.c: Likewise.
1958         * stmt.c: Likewise.
1959         * stor-layout.c: Likewise.
1960         * stringpool.c: Likewise.
1962 2002-05-09  David S. Miller  <davem@redhat.com>
1964         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
1966 2002-05-07  David S. Miller  <davem@redhat.com>
1968         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
1969         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
1970         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
1971         library implementation clobbers the output before the inputs
1972         are fully consumed, use stack temporary for the output.
1974 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
1976         * config/netbsd.h (CPP_SPEC): Remove.
1977         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
1978         * config/i386/netbsd.h (CPP_SPEC): Define.
1979         * config/ns32k/netbsd.h (CPP_SPEC): Define.
1980         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
1981         * config/sparc/netbsd.h (CPP_SPEC): Define.
1982         * config/vax/netbsd.h (CPP_SPEC): Define.
1984 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
1986         * read-rtl.c: Fix formatting.
1987         * real.c: Likewise.
1988         * recog.c: Likewise.
1989         * regclass.c: Likewise.
1990         * regmove.c: Likewise.
1991         * reg-stack.c: Likewise.
1992         * reload1.c: Likewise.
1993         * reload.c: Likewise.
1994         * resource.c: Likewise.
1995         * rtlanal.c: Likewise.
1996         * rtl.c: Likewise.
1997         * rtl-error.c: Likewise.
1999 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2001         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
2002         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
2004 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
2006         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
2007         use __SSE2__ macro instead.
2008         * config/i386/xmmintrin.h: Likewise.
2010 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
2012         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
2013         and use it in all invocations of these macros.  Clean up comments.
2014         * rtl.c (rtl_check_failed_flag): Add an argument for the name
2015         of the flag access macro whose check failed.
2016         * doc/rtl.texi (Flags): Document additional flag uses.
2018 2002-05-08  Robert Spier <rspier@pobox.com>
2019             Neil Booth  <neil@daikokuya.demon.co.uk>
2021         PR preprocessor/6521
2022         * cppfiles.c (handle_missing_header): Don't do anything
2023         different for <> includes.
2024 doc:
2025         * cppopts.texi: Update documentation for -MG.
2027 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
2029         * cpplex.c (cpp_interpret_charconst): Truncate as well as
2030         sign-extend.
2031 doc:
2032         * cpp.texi: Clarify multichar charconst valuation.
2034 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
2036         * doc/invoke.texi: Document -mwindiss option.
2038 2002-05-08  Jason Merrill  <jason@redhat.com>
2040         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
2042         * dwarf2out.c (gen_type_die): Abort on broken recursion.
2044         PR c++/6381
2045         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
2046         REAL_CST.
2048 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
2050         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
2051         little-endian multilibs to override arm/thumb multilibs.
2052         Do not build hardware floating point multilibs, nor apcs-26
2053         multilibs for the Thumb.
2055 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
2057         PR c/6569.
2058         * varasm.c (mark_weak): New function.
2059         (merge_weak): Use it.  Do not call declare_weak.
2060         (declare_weak): Use merge_weak.
2062 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
2064         * cse.c (dead_libcall_p): Update counts.
2065         (delete_trivially_dead_insns): Update call of dead_libcall_p.
2067 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
2069         * cfglayout.c (function_tail_eff_head): Rename to ...
2070         (function_footer): ... this one.
2071         (unlink_insn_chain): New functions.
2072         (label_for_bb): Only call block_label and emit debug message.
2073         (record_effective_endpoints): Actually unlink the headers and footers.
2074         (fixup_reorder_cahin): Re-insert the unlinked sequences.
2075         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
2076         * cfglayout.h (struct reorder_block_def): New fields footer/header;
2077         remove eff_head/eff_end.
2078         * rtl.h (set_first_insn): Declare.
2079         * emit-rtl.c (set_first_insn): New function.
2081         * cfglayout.c (fixup_reorder_chain): Dump duplicated
2082         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
2083         cfg_layout_duplicate_bb): New global function.
2084         (duplicate_insn_chain): New static function.
2085         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
2086         cfg_layout_duplicate_bb): Declare.
2087         (struct reorder_block_def): Add "original" field.
2088         * emit-rtl.c (emit_copy_of_insn_after): New function.
2089         * rtl.h (emit_copy_of_insn_after): Declare.
2091         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
2092         (fixup_reorder_chain): properly handle edges to exit block.
2094 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2095                                Jan Hubicka  <jh@suse.cz>
2097         * basic-block.h (note_prediction_to_br_prob): declare.
2098         * c-semantics.c: Inlucde predit.h
2099         (expand_stmt): predict GOTO_STMT as not taken.
2100         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
2101         (cleanup_cfg): Do not free tail_recursion_list.
2102         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
2103         (flow_delete_block): Kill predictions past end of basic block.
2104         * output.h (delete_unreachable_blocks): Declare.
2105         * predict.c (predicted_by_p, process_note_predictions,
2106         process_note_prediction, last_block_p): New function.
2107         (estimate_probability): Bypass loop on PRED_CONTINUE;
2108         do not handle noreturn heuristics; kill PRED_RETURN; add
2109         PRED_EARLY_RETURN.
2110         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
2111         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
2112         * predict.h (IS_TAKEN): New constant.
2113         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
2114         * rtl.c (NOTE_INSN_PREDICTION): New.
2115         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
2116         New macro.
2117         (insn_note): add NOTE_INSN_PREDICTION.
2118         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
2119         CFG; free tail_recursion_label_list.
2120         * stmt.c: Include predict.h;
2121         (return_prediction): New.
2122         (expand_value_return): Use it.
2123         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
2125 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
2127         * config/mips/mips.md: Name the unspecs with define_constant.
2128         (*HILO_delay): Rename to 'hilo_delay' (no star).
2129         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
2130         (reload_outdi, reload_outsi): Likewise.
2132 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
2134         * toplev.c: Fix formatting.
2136 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
2138         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
2139         * configure.in (ac_rtlflag_checking): New.
2140         * doc/install.texi (--enable-checking): Document RTL flag checking.
2142 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
2144         * c-common.c (c_common_init): Set options->unsigned_wchar.
2145         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
2146         group target dependencies.
2147         (init_builtins, cpp_handle_option): Update.
2148         * cpplex.c (cpp_interpret_charconst): Update.
2149         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
2150         signed_char to unsigned_char, group target dependencies.
2151         * defaults.h (WCHAR_UNSIGNED): Remove.
2152         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
2153 config:
2154         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
2155         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
2156         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
2157         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
2158         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
2159 doc:
2160         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
2162 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
2164         * fixinc/inclhack.def (windiss_math1): New fix.
2165         (windiss_math2): Likewise.
2166         (windiss_valist): Likewise.
2167         * fixinc/fixincl.x: Regenerated.
2169 2002-05-07  Andreas Jaeger  <aj@suse.de>
2171         * genautomata.c (output_internal_min_issue_delay_func): Add
2172         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
2173         (output_internal_trans_func): Likewise.
2175 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
2177         * pa.c (hppa_profile_hook): Use force_reg to get the address
2178         of the profile hook into an appropriate pseudo register.
2180 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
2182         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
2183         (LINK_START_SPEC): Handle it.
2184         (LINK_OS_SPEC): Likewise.
2185         (CPP_SPEC): Likewise.
2186         (STARTFILE_SPEC): Likewise.
2187         (LIB_SPEC): Likewise.
2188         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
2189         all platforms.
2190         (CRTSAVRES_DEFAULT_SPEC): New macro.
2191         (LIB_WINDISS_SPEC): New macro.
2192         (CPP_OS_WINDISS_SPEC): Likewise.
2193         (STARTFILE_WINDISS_SPEC): Likewise.
2194         (ENDFILE_WINDISS_SPEC): Likewise.
2195         (LINK_START_WINDISS_SPEC): Likewise.
2196         (LINK_OS_WINDISS_SPEC): Likewise.
2197         * config/rs6000/windiss.h: New file.
2199 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
2201         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
2203 2002-05-06  David S. Miller  <davem@redhat.com>
2205         * config/sparc/sparc.md (shift insns): Do not mask off
2206         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
2207         take care of it.
2209 2002-05-06  Richard Henderson  <rth@redhat.com>
2211         PR c++/6212
2212         * expr.c (highest_pow2_factor_for_type): New.
2213         (expand_assignment): Use it.
2215 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
2217         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
2218         unspec_volatile.
2219         ("altivec_mfvscr"): Same.
2221 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
2223         * rtl.h (struct rtx_def): Update comments.
2224         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
2225         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
2226         RTL_FLAG_CHECK macros with list of expected RTL codes.
2227         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
2228         (rtl_check_failed_flag): New.
2229         * reload1.c (reload): Use REG macro before changing rtx to MEM.
2230         (reload_cse_noop_set_p): Check rtx code before using access macro.
2231         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
2232         before using access macro.
2234 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
2236         * doc/rtl.texi (Flags): Update to reflect current usage.
2238 2002-05-06  Roger Sayle  <roger@eyesopen.com>
2240         PR opt/3995
2241         * fold-const.c (sign_bit_p): New function.
2242         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
2243         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
2244         Reapply fold when converting (A & C) == C into (A & C) != 0.
2245         (fold_binary_op_with_conditional_arg): Fix typo in comment.
2247 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
2249         * c-common.c (warn_multichar): New.
2250         (c_common_init): Set CPP's warn_multichar.
2251         * c-common.h (warn_multichar): New.
2252         * c-decl.c (warn_multichar): Remove.
2253         * c-lex.c (lex_charconst): Update.
2254         * c-tree.h (warn_multichar): Remove.
2255         * cppexp.c (eval_token): Sign-extend charconst value.
2256         * cppinit.c (cpp_create_reader): Set warn_multichar.
2257         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
2258         each character.  Update prototype.  Sign-extend the result.
2259         * cpplib.h: Fix conditions.
2260         (struct cpp_options): Add new warning flag.
2261         (cpp_interpret_charconst): Update prototype.
2262 doc:
2263         * cpp.texi: Update documentation.
2265 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
2267         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
2268         Fix typo in usage of allof instead of unit.
2270 2002-05-06  Richard Henderson  <rth@redhat.com>
2272         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
2273         and any jump or call for IN.
2275 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
2277         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
2278         -msse2.
2279         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
2281 2002-05-06  Roger Sayle  <roger@eyesopen.com>
2283         * fold-const.c (lshift-double): Cast the high word to an unsigned
2284         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
2285         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
2286         avoid compiler warning.  (fold): Remove redundant code from
2287         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
2289 2002-05-06  Jeff Law  <law@redhat.com>
2291         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
2292         * pa.c (pa_adjust_cost): Remove all true dependency cost
2293         adjustments.  Also remove support for non-DFA scheduling.
2294         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
2295         to adjust true dependency costs.  Update various comments.
2296         (7100lc, 7200, 7300 scheduling): Simplify by combining the
2297         FP ALU & MPY units into a single unit.
2299 2002-05-06  Catherine Moore  <clm@redhat.com>
2301         * config/v850/v850.c (compute_register_save_size): Make sure
2302         to count all of the registers that will be saved.
2304 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
2306         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
2308 2002-05-06  David S. Miller  <davem@redhat.com>
2310         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
2311         allow result to overlap input operands in memory.
2313 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
2315 doc:
2316         * cpp.texi: Update multichar charconst docs.
2318 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
2320         * cpplex.c (cpp_interpret_charconst): Sign-extend each
2321         character.  Don't ignore excess characters.  Treat
2322         multicharacter character constants as signed.
2323         (cpp_parse_escape): Clarify diagnostic.
2325 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
2327         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
2328         use add instead of shift.
2329         (ashldi3_sp64): Likewise.
2330         (ashlsi3_const1, ashldi3_const1): Remove.
2331         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
2332         * config/sparc/sparc.c (const1_operand): New.
2334 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
2336         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
2338 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
2340         PR target/6561
2341         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
2343 2002-05-05  Richard Henderson  <rth@redhat.com>
2345         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
2346         memory latency adjustments.
2347         (alpha_variable_issue): Remove.
2348         (alpha_use_dfa_pipeline_interface): New.
2349         (alpha_multipass_dfa_lookahead): New.
2350         * config/alpha/alpha.md: Remove define_function_unit scheduling;
2351         include new dfa scheduling.
2352         (attr type): Add none.
2353         (blockage): Use it.
2354         * config/alpha/ev4.md: New.
2355         * config/alpha/ev5.md: New.
2356         * config/alpha/ev6.md: New.
2358 2002-05-05  David S. Miller  <davem@redhat.com>
2360         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
2362 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
2364         * cse.c: Fix formatting.
2365         * emit-rtl.c: Likewise.
2367 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
2369         * genautomata.c (initiate_states): Add additional guard to
2370         initialize `units_array'.
2372 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
2374         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
2375         process_unit_to_form_the_same_automaton_unit_lists,
2376         form_the_same_automaton_unit_lists
2377         check_unit_distributions_to_automata): New prototypes and
2378         functions.
2379         (check_automata): Rename it into `check_automata_insn_issues'.
2380         (unit_decl): New fields `the_same_automaton_unit' and
2381         `the_same_automaton_message_reported_p'.
2382         (unit_decl_t): New typedef.
2383         (the_same_automaton_lists): New gloval variable.
2384         (unit_regexp, unit_set_el, units_array, units_cmp,
2385         output_get_cpu_unit_code_func): Use the typedef.
2386         (evaluate_max_reserv_cycles): Increment
2387         `description->max_insn_reserv_cycles'.
2388         (initiate_states): Don't increment `max_cycles_num'.
2389         (transform_insn_regexps): Move code around transformation of
2390         regexps from `generate'.
2391         (generate): Remove call of `transform_insn_regexps'.
2392         (expand_automata): Call `transform_insn_regexps' and
2393         `check_unit_distributions_to_automata'.  Check errors before
2394         `generate'.
2396         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
2397         automaton `ultrasparc3_1'.
2399 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2401         * c-common.c (c_common_init): Set up CPP arithmetic.
2402         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
2403         something reasonable for the host.
2404         (sanity_checks): Add checks.
2405         (cpp_read_main_file): Call sanity_checks() from here...
2406         (cpp_post_options): ... not here.
2407         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
2408         * cpplib.h (struct cpp_options): New member int_precision.
2410 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2412         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
2414 2002-05-04  David S. Miller  <davem@redhat.com>
2416         * config/sparc/linux.h, config/sparc/linux64.h
2417         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
2419         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
2420         more RTX codes.
2421         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
2423         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
2424         of SETs.
2426 2002-05-05  Tim Josling  <tej@melbpc.org.au>
2428         * treelang; New directory for new sample language treelang.
2430 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2432         * Makefile.in (c-lex.o): Update.
2433         * c-lex.c: Include target.h.
2434         (cb_register_builtins): New.
2435         (init_c_lex): Set builtins callback.
2436         * c-lex.h (cpp_define, cpp_assert): New prototypes.
2437         * cppinit.c (init_builtins): Use callback, including for
2438         GXX_WEAK.
2439         * cpplib.h (struct cpp_callbacks): New member.
2440         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
2441         (TARGET_INITIALIZER): Update.
2442         * target.h (struct gcc_target): New hook.
2443         * tree.c (default_register_cpp_builtins): New.
2444         * tree.h (default_register_cpp_builtins): New.
2445 doc:
2446         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
2448 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2450         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
2451         (cpp_post_options): Move sanity checks to...
2452         (sanity_checks): New.
2453         * cpplex.c (maybe_read_ucs): Fix prototype.
2454         (parse_string, cpp_parse_escape): Cast for %c format specifier.
2455         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
2456         if necessary.
2458 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
2460         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
2461         builtins.  Use V2DI patterns instead of TI for logical operations.
2462         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
2463         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
2464         (ix86_expand_builtins): Change the pattern used for movntdq.
2465         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
2466         sse2_nandv2di3): New patterns.
2467         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
2468         on operands.
2469         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
2470         (cvtdq2pd): Correct mode on operand 1.
2471         (sse2_umulsidi3): Describe without unspec.
2472         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
2473         machine modes.
2474         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
2475         (ashlv2di3): Likewise, from sse2_ashlv2di3.
2476         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
2477         ashlv4si3, ashlv2di3): Use SImode for shift count.
2478         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
2479         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
2480         New patterns.
2481         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
2482         New typedefs.
2483         (__m128i, __m128d): New macros.
2484         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
2485         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
2486         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
2487         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
2488         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
2489         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
2490         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
2491         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
2492         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
2493         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
2494         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
2495         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
2496         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
2497         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
2498         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
2499         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
2500         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
2501         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
2502         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
2503         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
2504         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
2505         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
2506         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
2507         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
2508         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
2509         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
2510         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
2511         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
2512         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
2513         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
2514         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
2515         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
2516         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
2517         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
2518         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
2519         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
2520         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
2521         functions.
2522         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
2523         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
2525 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
2527         * dwarf2out.c: Fix formatting.
2528         * varasm.c: Likewise.
2530 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
2532         PR c/6543
2533         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
2534         clobber and use result as temporary value.
2536 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
2538         * expr.c (force_operand): Use expand_simple_* to handle more
2539         cases.
2541 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2543         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
2544         and sign-extension.
2545         (lex_charconst): Update for change in prototype of
2546         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
2547         appropriately.
2548         * cpphash.h (BITS_PER_CPPCHAR_T): New.
2549         * cppinit.c (cpp_create_reader): Initialize them for no
2550         change in semantics.
2551         (cpp_post_options): Add sanity checks.
2552         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
2553         and truncation issues.  Calculate in type cppchar_t.
2554         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
2555         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
2556         run-time dependent precision correctly.  Return whether the
2557         result is signed or not.
2558         * cpplib.c (dequote_string): Use cppchar_t; update.
2559         * cpplib.h (cppchar_signed_t): New.
2560         struct cpp_options): New precision members.
2561         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
2562         * cppexp.c (eval_token): Update.
2564 2002-05-03  David S. Miller  <davem@redhat.com>
2566         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
2567         * config/sparc/sparc.c (sparc_rtx_costs): New function
2568         implementing RTX_COSTS and CONST_COSTS.
2569         * config/sparc/sparc.h (CONST_COSTS): Delete.
2570         (RTX_COSTS_CASES): Define.
2571         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
2572         the work.
2574         * config/sparc/sparc.md (DFA schedulers): Split out...
2575         * config/sparc/cypress.md, config/sparc/hypersparc.md,
2576         config/sparc/sparclet.md, config/sparc/supersparc.md,
2577         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
2579         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
2580         checks on it, always defined for Sparc.
2582         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
2583         Tweak, and add more detailed comments.
2585 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
2587         * Re-apply patch accidentally reverted with
2588         DFA scheduler merge: remove all rules and variables to slurp
2589         source files out of libiberty and rebuild them with HOST_CC.
2590         ($(HOST_PREFIX_1)varray.o): New rule.
2591         (genattrtab rule): Word wrap.
2593 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
2595         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
2596         (CPP_SUBTARGET_SPEC): Define.
2597         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
2598         cpp_subtarget specs.
2599         (CPP_SPEC): Redefine to include %(cpp_subtarget).
2601 2002-05-03  David S. Miller  <davem@redhat.com>
2603         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
2604         * target.h (struct gcc_target): Delete cycle_display member.
2606         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
2607         (rtx_needs_barrier): Delete reference to cycle_display unspec.
2608         (ia64_sched_reorder2): Mention need for cycle display handling
2609         once such notes exist.
2611 2002-05-03  Richard Henderson  <rth@redhat.com>
2613         * real.c (etoasc): Strip most trailing zeros for clarity.
2614         * sched-vis.c: Include real.h.
2615         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
2616         * Makefile.in (sched-vis.o): Add real.h.
2618 2002-05-03  David S. Miller  <davem@redhat.com>
2620         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
2621         no longer needed.
2623 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
2625         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
2626         when we get an out of range literal.
2627         (altivec_expand_ternop_builtin): Same.
2628         (altivec_expand_unop_builtin): Same.
2629         (altivec_expand_builtin): Same, for dss.
2630         (altivec_expand_builtin): Use trees instead of rtl when
2631         determining literal argument validity.
2633 2002-05-03  David S. Miller  <davem@redhat.com>
2635         Delete cycle display scheduling hook.
2636         * config/ia64/ia64.c (ia64_cycle_display,
2637         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
2638         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
2639         and use emit_insn_before instead of ia64_emit_insn_before.
2640         * config/ia64/ia64.md (unspec usage): Delete cycle display.
2641         (cycle_display): Delete insn pattern.
2642         * config/sparc/sparc.md (unspec usage): Delete cycle display.
2643         (cycle_display): Delete insn pattern.
2644         * config/sparc/sparc.c (sparc_cycle_display,
2645         TARGET_SCHED_CYCLE_DISPLAY): Delete.
2646         * doc/md.texi (cycle_display): Don't mention.
2647         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
2649 2002-05-03  Richard Henderson  <rth@redhat.com>
2651         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
2652         * recog.h: Declare them.
2654         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
2655         * config/sparc/sparc.md: Use store_data_bypass_p instead.
2656         * config/sparc/sparc-protos.h: Update.
2658 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
2660         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
2661         -D__arch64__.  Add -D_LP64.
2662         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
2663         from sparc.h.
2664         (CPP_ARCH64_SPEC): Likewise.
2665         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
2666         (NO_BUILTIN_SIZE_TYPE): Undef.
2668 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
2670         * genautomata.c (min_issue_delay_pass_states): Change return type
2671         in the prototype.
2672         (min_issue_delay_pass_states): Change the algorithm.
2673         (min_issue_delay): Set up min_insn_issue_delay for the state.
2674         (output_min_issue_delay_table): Interchange the nested loops and
2675         and initiate min_insn_issue_delay for states.
2677 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
2679         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
2680         jump is simplejump.
2682 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
2684         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
2685         sequence.
2687 2002-05-03  Richard Henderson  <rth@redhat.com>
2689         PR opt/6534
2690         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2691         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2692         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
2693         code before JUMP, not EARLIEST.
2695 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
2697         * c-format.c (check_format_info_main): Don't check for presence of
2698         parameter for * width until after operand number has been read,
2699         and only check for it if format parameters are available.
2700         Fixes PR c/6547.
2702 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
2704         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
2705         (LINK_SPEC): Undef before defining.
2707 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
2709         PR preprocessor/6489
2710         * tradcpp.c (fixup_newlines): New.
2711         (main, finclude): Use it.
2713 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
2715         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
2716         * config/mips/mips.c (mips_unique_section): Strip encoding from
2717         decl name.
2719 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
2721         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
2722         mode.
2724 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2726         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
2727         (Specific): Removed buildstats references.
2728         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
2729         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
2730         Accomodate Solaris versions beyond 8.
2731         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
2732         (Specific, *-*-solaris2.8): Removed, obsolete.
2734 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
2736         PR target/6542
2737         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
2738         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
2739         fill leaf_reg_remap with identity.
2740         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
2742 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
2744         * config/h8300/crti.asm: Remove trailing spaces.
2745         * config/h8300/h8300.c: Likewise.
2746         * config/h8300/lib1funcs.asm: Likewise.
2748 2002-05-02  Jason Merrill  <jason@redhat.com>
2750         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
2751         * c-decl.c (c_init_decl_processing): Use it.
2752         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
2753         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
2754         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
2756 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
2758         * regrename.c: Fix formatting.
2759         * tree.c: Likewise.
2761 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
2763         * i386.md (attribute memory): Handle compares properly.
2765 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
2767         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
2768         to none.
2770 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
2772         * function.c: Fix formatting.
2774 2002-05-02  Jan Hubicka  <jh@suse.cz>
2776         * haifa-sched.c (schedule_insn): Print table of instructions and
2777         reservations.
2778         (sched_block): Do not print ready list at verbosity level 1.
2779         * sched-vis.c (print_insn): Make global.
2780         * sched-ebb.c (ebb_print_insn): Rename from...
2781         (print_insn): ... this one.
2782         * sched-int.h (print_insn): Declare
2784 2002-05-02  Richard Henderson  <rth@redhat.com>
2786         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
2787         emitted by cycle_display.
2789 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
2791         * doc/install.texi (*-*-freebsd*): Update to latest status.
2793 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
2795         PR target/6540
2796         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
2797         * config/float-sparc.h: Assume 128-bit long double if
2798         __LONG_DOUBLE_128__ is defined.
2800 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
2802         * genattrtab.c (write_function_unit_info): Add a dummy element
2803         when num_units == 0.
2805 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2807         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
2808         TYPE_MODE (double_type_node) instead of DFmode.
2810 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
2812         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
2813         jumps post reload.
2814         * toplev.c (rest_of_compilation): Revert Richard's patch.
2816 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2818         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
2820 2002-05-02  Catherine Moore  <clm@redhat.com>
2822         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
2824 2002-05-02  Kazu Hirata  <kazu@hxi.com>
2826         * combine.c: Fix comment typos.
2827         * expr.c: Likewise.
2828         * genautomata.c: Likewise.
2829         * stmt.c: Likewise.
2830         * tree.h: Likewise.
2832 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
2834         * doc/install.texi: State GNAT version requirements.
2836 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
2838         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
2839         of the frame pointer or arg pointer register which strict register
2840         checking is not enabled.
2842 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
2844         * gcc.dg/altivec-8.c: New.
2846         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
2847         PRE_INC and PRE_DEC for altivec modes.
2849 2002-05-01  Bruce Korb  <bkorb@gnu.org>
2851         * fixinc/check.tpl(set-writable): make sure the function exists first
2852         * fixinc/inclhack.def(alpha_assert): fix test_text
2853         * fixinc/tests/base/assert.h: add in missing result
2855 2002-05-01  Jeff Law  <law@redhat.com>
2857         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
2858         'T' constraint.
2860 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
2862         * dbxout.c (dbxout_type): Emit size information for range types,
2863         as well, but only when using GDB extensions.
2865 2002-05-01  Richard Henderson  <rth@redhat.com>
2867         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
2868         target-independent gnu binutils date test.
2870 2002-05-01  Richard Henderson  <rth@redhat.com>
2872         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
2873         info before expunging the block.
2875 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
2877         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
2878         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
2879         -M -or -MM is in effect.
2881 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
2883         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
2884         A29k configurations.
2885         * doc/install.texi: Update to match.
2887 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2889         PR bootstrap/6514
2890         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
2891         for duplicates. Always loop over whole list.
2893 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2895         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
2897 2002-05-01      Joel Sherrill <joel@OARcorp.com>
2899         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
2900         support routines.
2902 2002-05-01      Joel Sherrill <joel@OARcorp.com>
2904         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
2906 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
2908         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
2909         (nabs_nopower): Same.
2910         (floatdisf2): New pattern.
2911         (absdi2): Convert to define_insn_and_split.
2912         (nabsdi2): Same.
2913         (trunctfsf2): Same.
2914         (floatditf2): Same.
2915         (floatsitf2): Same.
2916         (fix_trunctfdi2): Same.
2917         (fix_trunctfsi2): Same.
2919 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
2921         * doc/install.texi: Update Texinfo version requirement
2922         documentation.
2924 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
2926         PR target/6512, PR target/5628
2927         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
2928         when memory is not aligned.
2929         (movdf_insn_v9only_vis): Likewise.
2930         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
2931         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
2932         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
2934 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
2936         * gcc.dg/altivec-7.c: New.
2938         * config/rs6000/altivec.h: Cleanup.
2940 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
2942         * doc/invoke.texi (Option Summary): Add -mvrsave=.
2943         (RS/6000 and PowerPC Options): Document -mvrsave=.
2945         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
2946         (rs6000_altivec_vrsave_string): Same.
2947         (rs6000_override_options): Call rs6000_parse_vrsave_option.
2948         (rs6000_parse_vrsave_option): New.
2949         (rs6000_stack_info): Only generate vrsave instructions when
2950         TARGET_ALTIVEC_VRSAVE.
2952         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
2953         (rs6000_altivec_vrsave_string): Define extern.
2954         (rs6000_altivec_vrsave): Same.
2955         (TARGET_ALTIVEC_VRSAVE): New.
2957 2002-04-30  Richard Henderson  <rth@redhat.com>
2959         PR opt/6516
2960         * toplev.c (rest_of_compilation): Don't run cross-jump before
2961         bb-reorder.
2963 2002-04-30  Tom Rix  <trix@redhat.com>
2965         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
2966         check which_alternative.
2968 2002-04-30  Kazu Hirata  <kazu@hxi.com>
2970         * cpplex.c: Fix comment formatting.
2971         * function.c: Likewise.
2972         * integrate.c: Likewise.
2973         * regrename.c: Likewise.
2974         * sibcall.c: Likewise.
2975         * simplify-rtx.c: Likewise.
2976         * tree-inline.c: Likewise.
2978 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2980         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
2981         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
2982         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
2983         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
2984         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
2985         * pa/x-ada: New file.  Define ADA_CFLAGS.
2987 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
2989         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
2990         from MMIX_LAST_REGISTER_FILE_REGNUM.
2991         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
2992         (struct machine_function): New member highest_saved_stack_register
2993         previously static variable in mmix.c.
2994         (MACHINE_DEPENDENT_REORG): Define.
2995         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
2996         (MMIX_OUTPUT_REGNO): New.
2997         (mmix_target_asm_function_prologue): Move calculation of last used
2998         saved-stack-register into...
2999         (mmix_machine_dependent_reorg): New function.  Update to also handle
3000         !TARGET_ABI_GNU.
3001         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
3002         register names, simplify somewhat by new variable regno.
3003         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
3004         register.
3005         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
3006         emitting register names.
3007         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
3008         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
3009         Remove fixed FIXME.
3010         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
3011         Declare.
3013         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
3015 2002-04-30  Richard Henderson  <rth@redhat.com>
3017         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
3018         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
3019         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
3020         emit_tfmode_cvt): New.
3021         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
3022         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
3023         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
3024         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
3025         * config/sparc/sparc-protos.h: Update.
3027 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
3029         * install.texi (Final install): Add to the list of info to include
3030         in a report of a successful bootstrap, and add link to 3.1 list.
3032 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
3034         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
3035         (mode): Add vector modes
3036         (i387): Kill attribute.
3037         (unit): New attribute.
3038         (length_immediate): Grok new types.
3039         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
3040         (modrm): Use "unit".
3041         (memory): Handle MMX/SSE properly.
3042         (scheduling descriptions): Kill uses of fop1.
3043         (sse, mmx, fp patterns): Set type and mode properly.
3045 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@cygnus.com)
3047         * pa.c (override_options): Default to PA8000 scheduling.
3048         * doc/invoke.texi (HP-PA options): Mention newly added 7300
3049         scheduling parameter.
3051         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
3052         handling of double precision multiplies.
3054         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
3055         fpdiv and fpsqrt instructions.
3056         (7200 & 7300 scheduling): Fix typo in handling of
3057         store-load and store-store penalties.
3059 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3061         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
3062         mips.  Add two missing commas.
3064 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
3066         * doc/contrib.texi (Contributors): Update Paolo Carlini's
3067         and Benjamin Kosnik's entries.
3069 2002-04-29  David S. Miller  <davem@redhat.com>
3071         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
3072         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
3073         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
3074         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
3076 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3078         * combine.c (find_split_point): Use gen_int_mode.
3080 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
3082         Merging code from dfa-branch:
3084         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
3086         * genautomata.c (output_reserv_sets): Fix typo.
3088         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
3090         * genautomata.c (output_reserv_sets): Remove
3091         next_cycle_output_flag.
3093         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
3095         * sched-rgn.c (init_ready_list): Make the DFA code handle
3096         USE/CLOBBER insns in the same way as the traditional
3097         scheduler.
3098         (new_ready): Similarly..
3100         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
3102         * haifa-sched.c (schedule_block): Change the DFA state only after
3103         issuing insn.
3105         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
3107         * pa.c (hppa_use_dfa_pipeline_interface): New function.
3108         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
3109         (override_options): Add PA7300 scheduling support.
3110         (pa_adjust_cost): Update various comments.  Properly
3111         handle anti and output dependencies when using the
3112         DFA scheduler.
3113         (pa_issue_rate): Add PA7300 scheduling support.
3114         (pa_can_combine_p): Call extract_insn before calling
3115         constrain_operands (taken from mainline tree).
3116         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
3117         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
3118         descriptions using DFA descriptions.  Add PA7300
3119         scheduling support.
3121         2002-03-30  David S. Miller  <davem@redhat.com>
3123         Add UltraSPARC-III DFA scheduling support.
3124         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
3125         Update FP conditional move on register insn patterns to use it, as
3126         appropriate.
3127         (define_attr cpu): Add ultrasparc3.
3128         (define_attr us3load_type): New, update integer load patterns to
3129         set it, as appropriate.
3130         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
3131         (rest): Add UltraSPARC3 scheduling description.
3132         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
3133         (PROCESSOR_ULTRASPARC3): New.
3134         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
3135         ({ASM,CPP}_CPU_SPEC): Likewise.
3136         (REGISTER_MOVE_COST): Likewise.
3137         (RTX_COSTS): Likewise.
3138         * config/sparc/sparc.c (sparc_override_options,
3139         sparc_initialize_trampoline, sparc64_initialize_trampoline,
3140         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
3141         sparc_issue_rate): Likewise.
3142         * config/sparc/sol2.h: Likewise.
3143         * config/sparc/sol2-sld-64.h: Likewise.
3144         * config/sparc/linux64.h: Likewise.
3146         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
3148         * doc/md.texi: Add comments about usage the latency time for the
3149         different dependencies and about case when two or more conditions
3150         in different define_insn_reservations returns TRUE for an insn.
3152         * doc/md.texi: Add reference for automaton based pipeline
3153         description.
3155         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
3157         * doc/passes.texi: Add missed information about genattrtab.
3159         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
3161         * genautomata.c (output_automata_list_transition_code): Check
3162         automata_list on NULL.
3164         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
3166         * genautomata.c (output_insn_code_cases,
3167         output_automata_list_min_issue_delay_code,
3168         output_automata_list_transition_code,
3169         output_automata_list_state_alts_code): Comment the functions.
3171         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
3173         * genautomata.c (automata_list_el_t): New typedef.
3174         (get_free_automata_list_el,free_automata_list_el,
3175         free_automata_list, automata_list_hash, automata_list_eq_p,
3176         initiate_automata_lists, automata_list_start, automata_list_add,
3177         automata_list_finish, finish_automata_lists,
3178         output_insn_code_cases, output_automata_list_min_issue_delay_code,
3179         output_automata_list_transition_code,
3180         output_automata_list_state_alts_code, add_automaton_state,
3181         form_important_insn_automata_lists): New functions and prototypes.
3182         (insn_reserv_decl): Add members important_automata_list and
3183         processed_p.
3184         (ainsn): Add members important_p.
3185         (automata_list_el): New structure.
3186         (first_free_automata_list_el, current_automata_list,
3187         automata_list_table): New global variables.
3188         (create_ainsns): Initiate member important_p.
3189         (output_internal_min_issue_delay_func): Generate the switch and
3190         call output_insn_code_cases.
3191         (output_internal_trans_func, output_internal_state_alts_func):
3192         Ditto.
3193         (generate): Call initiate_automata_lists.
3194         (automaton_states): New global variable.
3195         (expand_automata): Call form_important_insn_automata_lists.
3196         (write_automata): Call finish_automata_lists.
3198         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
3200         * genautomata.c (add_excls, add_presence_absence): Check that
3201         cpu units in the sets belong the same automaton.
3203         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
3204         about that cpu units in the sets belong the same automaton.
3206         * doc/md.texi: Ditto.
3208         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
3209                     Nitin Gupta  <niting@noida.hcltech.com>
3211         * config/sh/sh.c (sh_use_dfa_interface): New function.
3213         (sh_issue_rate): New Function.
3214         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
3215         TARGET_SCHED_ISSUE_RATE: define.
3217         * config/sh/sh.md: Add DFA based pipeline description for SH4.
3219         (define_attr insn_class): New attribute used for DFA
3220          scheduling.
3221         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
3222         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
3223          cmpeqdi_t): Likewise.
3225         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
3226          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
3227          ex_group.
3228         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
3230         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
3232         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
3233         break.
3235         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
3237         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
3238         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
3239         necessary.
3240         (output_dfa_start_func): Initiate new variable insn_codes_length,
3241         (write_automata): Output definition of the new variable.
3243         2001-10-02  David S. Miller  <davem@redhat.com>
3245         * haifa-sched.c (advance_one_cycle): New function.
3246         (schedule_block): Use it.
3247         (queue_to_ready): Use it, and also make sure to advance the DFA
3248         state on all stall cycles, not just those where insn_queue links
3249         are found.
3251         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
3253         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
3254         non-zero if the highest-priority instruction could be scheduled.
3255         (choose_ready): Remove last argument from max_issue call.
3257         2001-09-28  David S. Miller  <davem@redhat.com>
3259         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
3260         ultrasparc and 3 for other multi-issue sparcs.
3262         2001-09-27  David S. Miller  <davem@redhat.com>
3264         * config/sparc/sparc.md (cycle_display): New pattern.
3265         * config/sparc/sparc.c (sparc_cycle_display): New.
3266         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
3268         2001-09-25  David S. Miller  <davem@redhat.com>
3270         Convert all of Sparc scheduling to DFA
3271         * config/sparc/sparc.md: Kill all define_function_unit
3272         directives and replace with DFA equivalent.
3273         * config/sparc/sparc.c (ultrasparc_adjust_cost,
3274         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
3275         ultra_fpmode_conflict_exists, ultra_find_type,
3276         ultra_build_types_avail, ultra_flush_pipeline,
3277         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
3278         ultrasparc_variable_issue, ultrasparc_sched_init,
3279         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
3280         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
3281         ultra_cur_hist, ultra_cycles_elapsed): Kill.
3282         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
3283         ultrasparc_store_bypass_p): New.
3284         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
3285         Declare.
3287         2001-09-24  David S. Miller  <davem@redhat.com>
3289         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
3290         ready->vec[foo] not ready[foo].
3292         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
3294         * doc/md.texi: Correct examples for define_insn_reservations
3295         `mult' and `div'.
3297         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
3299         * genautomata.c (create_automata): Print message about creation of
3300         each automaton.
3301         (generate): Remove printing meease about creation of
3302         automata.
3304         2001-09-05  David S. Miller  <davem@redhat.com>
3306         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
3307         * config/sparc/linux64.h: Likewise.
3309         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
3311         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
3312         schedule_block, sched_init, sched_finish): Add missed calls of
3313         use_dfa_pipeline_interface.
3315         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
3316         Ditto.
3318         * sched-vis.c (get_visual_tbl_length): Ditto.
3320         2001-08-27  Richard Henderson  <rth@redhat.com>
3322         * genattr.c (main): Emit state_t even when not doing scheduling.
3324         2001-08-27  Richard Henderson  <rth@redhat.com>
3326         * genautomata.c (expand_automata): Always create a description.
3328         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
3330         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
3331         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
3332         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
3333         RTL constructions.
3335         * genattr.c (main): New variable num_insn_reservations.  Increase
3336         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
3337         pipeline hazard recognizer interface.
3339         * genattrtab.h: New file.
3341         * genattrtab.c: Include genattrtab.h.
3342         (attr_printf, check_attr_test, make_internal_attr,
3343         make_numeric_value): Move protypes into genattrtab.h.  Define them
3344         as external.
3345         (num_dfa_decls): New global variable.
3346         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
3347         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
3348         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
3349         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
3351         * genautomata.c: New file.
3353         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
3355         * sched-int.h: (curr_state): Add the external definition for
3356         automaton pipeline interface.
3357         (haifa_insn_data): Add comments for members blockage and units.
3359         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3360         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
3361         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
3362         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
3363         TARGET_SCHED_DFA_POST_CYCLE_INSN,
3364         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3365         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
3366         macros.
3367         (TARGET_SCHED): Use the new macros.
3369         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
3370         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
3371         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
3372         dfa_bubble): New members in gcc_target.sched.
3374         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
3375         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
3376         (insn_queue): Redefine it as pointer to array.
3377         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
3378         INSN_QUEUE_SIZE.
3379         (max_insn_queue_index_macro_value): New variable.
3380         (curr_state, dfa_state_size, ready_try): New varaibles for
3381         automaton interface.
3382         (ready_element, ready_remove, max_issue): New function prototypes
3383         for automaton interface.
3384         (choose_ready): New function prototype.
3385         (insn_unit, blockage_range): Add comments.
3386         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
3387         FUNCTION_UNITS_SIZE == 0.
3388         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
3389         actual_hazard, potential_hazard): Add comments.
3390         (insn_cost): Use cost -1 as undefined value.  Remove
3391         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
3392         pipeline interface.
3393         (ready_element, ready_remove): New functions for automaton
3394         interface.
3395         (schedule_insn): Add new code for automaton pipeline interface.
3396         (queue_to_ready): Add new code for automaton pipeline interface.
3397         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
3398         (debug_ready_list): Print newline when the queue is empty.
3399         (max_issue): New function for automaton pipeline interface.
3400         (choose_ready): New function.
3401         (schedule_block): Add new code for automaton pipeline interface.
3402         Print ready list before scheduling each insn.
3403         (sched_init): Add new code for automaton pipeline interface.
3404         Initiate insn cost by -1.
3405         (sched_finish): Free the current automaton state and finalize
3406         automaton pipeline interface.
3408         * sched-rgn.c: Include target.h.
3409         (init_ready_list, new_ready, debug_dependencies): Add new code for
3410         automaton pipeline interface.
3412         * sched-vis.c: Include target.h.
3413         (get_visual_tbl_length): Add code for automaton interface.
3414         (target_units, print_block_visualization):  Add comments.
3416         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
3417         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
3418         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
3419         (getruntime.o, genautomata.o): New entries.
3420         (genattrtab.o): Add new dependency file genattrtab.h.
3421         (genattrtab): Add new dependencies.  Link it with `libm.a'.
3422         (getruntime.o, hashtab.o): New entries for canadian cross.
3424         * doc/md.texi: Description of automaton based model.
3426         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
3427         Add comments.
3428         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3429         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
3430         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
3431         TARGET_SCHED_DFA_POST_CYCLE_INSN,
3432         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
3433         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3434         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
3435         hook descriptions.
3436         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
3437         MAX_DFA_ISSUE_RATE): New macro descriptions.
3439         * doc/contrib.texi: Add dfa based scheduler contribution.
3441         * doc/gcc.texi: Add more information about genattrtab.
3443 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3445         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
3446         adjust_address_nv call.
3448 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
3450         * doc/install.texi (Testing): Provide additional information, and
3451         a stronger encouragement, for running the testsuites.
3453 2002-04-29  DJ Delorie  <dj@redhat.com>
3455         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
3456         given in upper case.
3458 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3460         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
3461         Solaris 2 <widec.h> if missing.
3462         * fixinc/fixincl.x: Regenerate.
3463         * fixinc/tests/base/widec.h: New file.
3465 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
3467         * toplev.c (f_options): Add "profile" switch so that
3468         -fno-profile can be used to disable -p.
3470 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
3472         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
3473         UV2DImode.
3474         * tree.c (build_common_tree_nodes_2): Likewise.
3475         * tree.h (enum tree_index): Likewise.
3476         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
3478         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
3479         entries.
3480         (init_mmx_sse_builtins): Initialize SSE2 builtins.
3481         (ix86_expand_builtin): Add support for SSE2 builtins.
3482         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
3483         (VALID_SSE_REG_MODE): Use it.
3484         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
3485         (enum ix86_builtins): Add SSE2 builtins.
3486         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
3487         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
3488         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
3489         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
3490         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
3491         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
3492         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
3493         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
3494         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
3495         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
3496         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
3497         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
3498         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
3499         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
3500         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
3501         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
3502         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
3503         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
3504         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
3505         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
3506         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
3507         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
3508         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
3509         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
3510         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
3511         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
3512         lfence_insn): New patterns.
3513         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
3514         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
3516 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
3518         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
3520 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3522         * doc/contrib.texi (Contributors): Add Paolo Carlini and
3523         Janis Johnson.
3524         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
3525         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
3526         and CPU instead of cpu.
3528 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
3530         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
3531         variables.
3532         (lang_independent_options): Add -fif-conversion, -fif-conversion2
3533         (rest_of_compilation): Do if conversion only when asked for.
3534         (parse_options_and_default_flags): Set new variables to 1 for -O1
3535         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
3537 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
3539         * i386.c (dbx64_register_map): Fix typo.
3541 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
3543         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
3544         real_one_half, real_bb_freq_max): New static variables.
3545         (debug_profile_bbauxs): Kill.
3546         (process_note_predictions): Kill unused variable.
3547         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
3548         volatile double.
3549         (propagate_freq): Use REAL_ARITHMETICS.
3550         (estimate_bb_frequencies): Likevise; init new static variables.
3551         * Makefile.in (predict.o): Add dependency on real.h
3553 2002-04-28  David S. Miller  <davem@redhat.com>
3555         PR target/6500
3556         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
3557         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
3558         several {reads,writes} instead.
3559         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
3560         Define.
3562 2002-04-27  David S. Miller  <davem@redhat.com>
3564         PR target/6494
3565         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
3566         of the stack bias.
3568         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
3569         including signal.h and sys/ucontext.h, not needed.
3571 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
3573         * varasm.c (output_constant_def): Correct test for not calling
3574         ENCODE_SECTION_INFO for INTEGER_CST.
3576 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3578         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
3579         keep most cases as function eval_token.
3580         (eval_token): New function.
3581         (_cpp_parse_expr): Read token here for improved diagnostics.
3582         Don't use op_as_text.  Detect bad ':' here.
3583         (reduce): Don't detect bad ':' here.
3584         (op_as_text): Remove.
3585         * cpphash.h (_cpp_test_assertion): Change prototype.
3586         * cpplib.c (_cpp_test_assertion): Change prototype.
3588 2002-04-28  Richard Henderson  <rth@redhat.com>
3590         PR c/5154
3591         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
3592         (ggc_mark_rtx_children): New.
3594 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
3596         PR target/6496
3597         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
3598         after call peepholes for UltraSPARC.
3599         (call + jump 64-bit peepholes): Remove.
3601 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3603         PR c/6497
3604         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
3605         result as temporary value.
3607 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
3609         PR c++/6396
3610         * toplev.c (rest_of_compilation): Only run regrename and copy
3611         propagation if optimizing.
3613 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
3615         PR optimization/6475
3616         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
3617         register of REGNO_DECL (i).
3618         * Makefile.in (reload1.o): Add $(TREE_H).
3620 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
3622         * cppexp.c (lex): Update to use state.skip_eval.
3623         (struct op): Remove prio and flags members.
3624         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
3625         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
3626         (LEFT_ASSOC): New macro.
3627         (optab): New table of operator priorities and flags.
3628         (SHIFT): Update.
3629         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
3630         malloc-ed parser stack.
3631         (reduce): New; reduce the operator stack.
3632         (_cpp_expand_op_stack): Expand the operator stack as necessary.
3633         * cpphash.h (struct op): Predeclare.
3634         (struct cpp_reader): New members op_stack, op_limit.
3635         (struct lexer_state): New member skip_eval.
3636         (_cpp_parse_expr): Update.
3637         (_cpp_expand_op_stack): New.
3638         * cpplib.c (do_if): Update.
3639         * cppinit.c (cpp_create_reader): Create op stack.
3640         (cpp_destroy): And destroy it.
3641         * cpplib.h (CPP_LAST_CPP_OP): Correct.
3642         (TTYPE_TABLE): Correct.
3644 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3646         PR c/6343
3647         * c-decl.c (duplicate_decls): Call merge_weak.
3648         * c-pragma.c (apply_pragma_weak): Warn about misuse.
3649         * output.h (merge_weak): Prototype merge_weak.
3650         * varasm.c (merge_weak): New function.
3651         (declare_weak): Make sure we don't give an error on VAR_DECLs.
3652         Mark RTL with SYMBOL_REF_WEAK.
3654 2002-04-27  Kurt Garloff <garloff@suse.de>
3656         * tree-inline.c (inlinable_function_p): Improve heuristics
3657         by using a smoother function to cut down allowable inlinable size.
3658         * param.def: Add parameters max-inline-insns-single,
3659         max-inline-slope, min-inline-insns that determine the exact
3660         shape of the above function.
3661         * param.h: Likewise.
3663 2002-04-26  Richard Henderson  <rth@redhat.com>
3665         * c-parse.in (malloced_yyss, malloced_yyvs): New.
3666         (yyoverflow): Re-add.  Set them.
3667         (free_parser_stacks): New.
3668         * c-common.h: Declare it.
3669         * c-lex.c (c_common_parse_file): Call it.
3671 2002-04-26  Richard Henderson  <rth@redhat.com>
3673         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
3674         for fallthru search.
3676 2002-04-26  Eric Christopher  <echristo@redhat.com>
3678         PR optimization/3700
3679         * config/mips/mips.c (mips_issue_rate): Define.  New function.
3680         (TARGET_SCHED_ISSUE_RATE): Use.
3682 2002-04-25  David S. Miller  <davem@redhat.com>
3684         PR target/6422
3685         * reorg.c (optimize_skip): Do not allow exception causing
3686         instructions to be considered for delay slots.
3687         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
3688         (relax_delay_slots): Do not try to consider exception causing
3689         instructions as redundant.
3691 2002-04-26  Richard Henderson  <rth@redhat.com>
3693         PR c/5225
3694         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
3696 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
3698         PR bootstrap/6445
3699         * config/i386/i386.md (untyped_call): Return the value in a float
3700         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
3701         TARGET_80387.
3703 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
3705         * tree.c (tree_int_cst_lt): Compare constants whose types differ
3706         in unsigned-ness correctly.
3708 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3710         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
3711         portable runtime model.
3713 2002-04-26  Richard Henderson  <rth@redhat.com>
3715         * c-parse.in (yyoverflow): Revert.
3717 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
3718             Richard Henderson  <rth@redhat.com>
3720         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
3721         result as temporary value.
3723 2002-04-26  Richard Henderson  <rth@redhat.com>
3725         PR c/3581
3726         * c-common.c (fix_string_type): Split out of ...
3727         (combine_strings): ... here.  Take a varray, not a tree list.
3728         (c_expand_builtin_printf): Use fix_string_type.
3729         * c-common.h: Update decls.
3730         * c-parse.in (string): Remove.  Update all uses to use STRING
3731         instead, and not call combine_strings.
3732         (yylexstring): New.
3733         (_yylex): Use it.
3734         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
3735         (build_asm_stmt): Likewise.
3736         * objc/objc-act.c (my_build_string): Use fix_string_type.
3737         (build_objc_string_object): Build varray for combine_strings.
3739 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
3741         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
3742         x86-64.
3744 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3746         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
3747         (HAVE_NO_R_OPERAND): Remove.
3748         (HAVE_VALUE): Remove.
3749         (op_to_prio): Update.
3750         (UNARY): Don't alter flags.
3751         (_cpp_parse_expr): want_value used to indicate whether
3752         a number or unary operator is expected next.  Distinguish
3753         unary and binary +/-.
3754         (op_as_text): Update for unary operators.
3756 2002-04-25  Richard Henderson  <rth@redhat.com>
3758         PR c/2161
3759         * c-parse.in (yyoverflow): New.
3761 2002-04-25  Richard Henderson  <rth@redhat.com>
3763         PR c/2098
3764         * c-common.c (shorten_compare): Simplfy conditions leading to
3765         the generation of a warning.
3767 2002-04-25  Richard Henderson  <rth@redhat.com>
3769         PR c/2035
3770         * expmed.c (extract_bit_field): Fall through to generic code rather
3771         than aborting on subreg special case.
3773 2002-04-25  David S. Miller  <davem@redhat.com>
3775         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
3776         for DECL being NULL.
3778 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
3780         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
3782 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
3784         * c-decl.c (grokdeclarator): Remove outdated ??? note
3785         on invalid declaration of flexible array members.
3787 2002-04-25  Richard Henderson  <rth@redhat.com>
3789         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
3791 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
3793         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
3794         needed by the compiler, even if they are used as global regs.
3796 2002-04-25  Matt Hiller  <hiller@redhat.com>
3798         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
3799         functions.
3800         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
3801         of the corresponding functions.
3802         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
3803         New prototypes.
3805 2002-04-25  Matt Hiller  <hiller@redhat.com>
3807         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
3809         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
3810         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
3811         registers, adjust comment accordingly.
3812         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
3813         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
3814         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
3815         for coprocessor registers.
3816         (ADDITIONAL_REGISTER_NAMES): Include
3817         ALL_COP_ADDITIONAL_REGISTER_NAMES.
3819         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
3820         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
3821         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
3822         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
3823         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
3825         (mips_char_to_class): Adjust comment to include coprocessor
3826         constraint letters.
3828         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
3829         New functions.
3830         (mips_reg_names, mips_regno_to_class): Include coprocessor
3831         information.
3832         (mips_sw_reg_names): Ditto, make non-static.
3833         (mips_move_1word): Handle moves to and from coprocessor registers.
3834         (mips_move_2words): Handle moves to and from coprocessor
3835         registers.
3836         (mips_class_max_nregs, mips_register_move_cost): Handle
3837         coprocessor register classes.
3838         (override_options): Initialize mips_char_to_class and
3839         mips_hard_regno_mode_ok properly for coprocessor registers.
3841         * config/mips/mips.md (movdi_internal, movdi_internal2,
3842         movsi_internal1, movsi_internal2): Add constraint-sets for
3843         coprocessor registers.
3844         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
3845         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
3846         isn't mips.
3847         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
3848         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
3849         isn't mips.
3850         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
3851         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
3852         isn't mips.
3853         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
3854         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
3855         isn't mips.
3857         * doc/tm.texi: Document feature.
3859 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3861         * integrate.c (function_attribute_inlinable_p): Simplify.
3862         Check the table pointer is not NULL.
3864 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
3866         * doc/c-tree.texi: Fix typo in introduction.
3868 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3870         * c-common.h (c_common_parse_file): Update.
3871         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3872         * c-lex.c (YYDEBUG): Get from c-lex.h.
3873         (c_common_parse_file): Update.
3874         * c-lex.h (YYDEBUG, yydebug): New.
3875         * c-parse.in (YYDEBUG): Get from c-lex.h.
3876         (c_set_yydebug): Remove.
3877         * c-tree.h (c_set_yydebug): Remove.
3878         * langhooks-def.h (lhd_do_nothing_i): New.
3879         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
3880         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
3881         * langhooks.c  (lhd_do_nothing_i): New.
3882         (lhd_set_yydebug): Remove.
3883         * langhooks.h (struct lang_hooks): Update.
3884         * toplev.c (set_yydebug): New.
3885         (compile_file): Update call to parse_file hook.
3886         (decode_d_option): Update.
3887 objc:
3888         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3890 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
3892         * loop.c (load_mems): Don't change the interface of called functions.
3894         * calls.c (expand_call): Take current_function_pretend_args_size
3895         into account when setting argblock for sibcalls.
3897 2002-04-24  Matt Hiller  <hiller@redhat.com>
3899         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
3900         * c-lex.c: Ditto.
3902         * cpplex.c (skip_line_comment): Process comment one multibyte
3903         character at a time rather than one char at a time, if
3904         appropriate.
3905         (parse_string): Process string one multibyte character at a time
3906         rather than one char at a time, if appropriate.
3907         * c-lex.c (lex_string): Lex and copy multibyte strings
3908         appropriately.
3909         * cpplib.h (cppchar_t): Change to unsigned.
3911 2002-04-24  Richard Henderson  <rth@redhat.com>
3913         PR c/3467
3914         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
3915         for c99.
3917 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
3919         * sh.c (sh_va_arg): If argument was passed by reference,
3920         dereference the pointer.
3922         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3924         * sh.md (divsi3_i4_media): Use match_operand for input values
3925         rather than hard registers.
3926         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
3927         unnecessarily through hard registers.  Keep copies of pseudo
3928         registers outside of the libcall sequence.
3930         * sh.md (casesi_shift_media): Add modes.
3932         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
3933         values in memory.
3935 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3937         * attribs.c (c_common_attribute_table): Move table and handlers
3938         to c-common.c.
3939         (format_attribute_table, lang_attribute_table,
3940         lang_attribute_common): Remove.
3941         (init_attributes): Replace NULL pointers with pointers to the
3942         empty table.
3943         (handle_packed_attribute, handle_nocommon_attribute,
3944         handle_common_attribute, handle_noreturn_attribute,
3945         handle_noinline_attribute, handle_always_inline_attribute,
3946         handle_used_attribute, handle_unused_attribute,
3947         handle_const_attribute, handle_transparent_union_attribute,
3948         handle_constructor_attribute, handle_destructor_attribute,
3949         handle_mode_attribute, handle_section_attribute,
3950         handle_aligned_attribute, handle_weak_attribute,
3951         handle_alias_attribute, handle_visibility_attribute,
3952         handle_no_instrument_function_attribute, handle_malloc_attribute,
3953         handle_no_limit_stack_attribute, handle_pure_attribute,
3954         handle_deprecated_attribute, handle_vector_size_attribute,
3955         vector_size_helper): Move to c-common.c.
3956         * c-common.c (c_common_attribute_table,
3957         handle_packed_attribute, handle_nocommon_attribute,
3958         handle_common_attribute, handle_noreturn_attribute,
3959         handle_noinline_attribute, handle_always_inline_attribute,
3960         handle_used_attribute, handle_unused_attribute,
3961         handle_const_attribute, handle_transparent_union_attribute,
3962         handle_constructor_attribute, handle_destructor_attribute,
3963         handle_mode_attribute, handle_section_attribute,
3964         handle_aligned_attribute, handle_weak_attribute,
3965         handle_alias_attribute, handle_visibility_attribute,
3966         handle_no_instrument_function_attribute, handle_malloc_attribute,
3967         handle_no_limit_stack_attribute, handle_pure_attribute,
3968         handle_deprecated_attribute, handle_vector_size_attribute,
3969         vector_size_helper): Move from attribs.c.
3970         * c-common.h (c_common_attribute_table,
3971         c_common_format_attribute_table): New.
3972         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3973         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3974         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
3975         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
3976         (LANG_HOOKS_INITIALIZER): Update.
3977         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
3978         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
3979         * target.h: Update comment.
3980         * tree.c (default_target_attribute_table): Remove.
3981         * tree.h (default_target_attribute_table, format_attribute_table,
3982         lang_attribute_table, lang_attribute_common): Remove.
3983 objc:
3984         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3985         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3987 2002-04-24  Jason Merrill  <jason@redhat.com>
3989         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
3990         * dwarf2out.c (dwarf_attr_name): Support it.
3991         (gen_array_type_die): Emit it.
3992         (lookup_type_die): No special handling for VECTOR_TYPE.
3993         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
3995 2002-04-24  Richard Henderson  <rth@redhat.com>
3997         * config/mips/mips.md (movdi_usd): Renumber.
3999 2002-04-24  David S. Miller  <davem@redhat.com>
4001         PR target/6420
4002         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
4003         32-bit Sparc and current_function_returns_struct is true.
4005 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
4007         * loop.c (canonicalize_condition): Use gen_int_mode.
4009 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
4011         * config/rs6000/altivec.h: Cleanup file.  Add non individual
4012         variants.
4013         (vec_vaddubm): New.
4014         (vec_vadduhm): New.
4015         (vec_vadduwm): New.
4016         (vec_vaddfp): New.
4017         (vec_vaddcuw): New.
4018         (vec_vaddubs): New.
4019         (vec_vaddsbs): New.
4020         (vec_vadduhs): New.
4021         (vec_vadduws): New.
4022         (vec_vaddsws): New.
4023         (vec_vand): New.
4024         (vec_vandc): New.
4025         (vec_vavgub): New.
4026         (vec_vavgsb): New.
4027         (vec_vavguh): New.
4028         (vec_vavgsh): New.
4029         (vec_vavguw): New.
4030         (vec_vavgsw): New.
4031         (vec_vrfip): New.
4032         (vec_vcmpbfp): New.
4033         (vec_vcmpequb): New.
4034         (vec_vcmpequh): New.
4035         (vec_vcmpequw): New.
4036         (vec_vcmpeqfp): New.
4037         (vec_vcmpgefp): New.
4038         (vec_vcmpgtub): New.
4039         (vec_vcmpgtsb): New.
4040         (vec_vcmpgtuh): New.
4041         (vec_vcmpgtsh): New.
4042         (vec_vcmpgtuw): New.
4043         (vec_vcmpgtsw): New.
4044         (vec_vcmpgtfp): New.
4045         (vec_vcmpgefp): New.
4046         (vec_vcfux): New.
4047         (vec_vcfsx): New.
4048         (vec_vctsxs): New.
4049         (vec_vctuxs): New.
4050         (vec_vexptefp): New.
4051         (vec_vrfim): New.
4052         (vec_lvx): New.
4053         (vec_lvebx): New.
4054         (vec_lvehx): New.
4055         (vec_lde): Add vector float variant.
4056         (vec_lvewx): New.
4057         (vec_lvxl): New.
4058         (vec_vlogefp): New.
4059         (vec_vmaddfp): New.
4060         (vec_vmhaddshs): New.
4061         (vec_vmaxub): New.
4062         (vec_vmaxsb): New.
4063         (vec_vmaxuh): New.
4064         (vec_vmaxsh): New.
4065         (vec_vmaxuw): New.
4066         (vec_vmaxsw): New.
4067         (vec_vmaxsw): New.
4068         (vec_vmaxfp): New.
4069         (vec_vmrghb): New.
4070         (vec_vmrghh): New.
4071         (vec_vmrghw): New.
4072         (vec_vmrglb): New.
4073         (vec_vmrglh): New.
4074         (vec_vmrglw): New.
4075         (vec_vminub): New.
4076         (vec_vminsb): New.
4077         (vec_vminuh): New.
4078         (vec_vminsh): New.
4079         (vec_vminuw): New.
4080         (vec_vminsw): New.
4081         (vec_vminfp): New.
4082         (vec_vmladduhm): New.
4083         (vec_vmhraddshs): New.
4084         (vec_msumubm): New.
4085         (vec_vmsummbm): New.
4086         (vec_vmsumuhm): New.
4087         (vec_vmsumshm): New.
4088         (vec_vmsumuhs): New.
4089         (vec_vmsumshs): New.
4090         (vec_vmuleub): New.
4091         (vec_vmulesb): New.
4092         (vec_vmuleuh): New.
4093         (vec_vmulesh): New.
4094         (vec_vmuloub): New.
4095         (vec_mulosb): New.
4096         (vec_vmulouh): New.
4097         (vec_vmulosh): New.
4098         (vec_vnmsubfp): New.
4099         (vec_vnor): New.
4100         (vec_vor): New.
4101         (vec_vpkuhum): New.
4102         (vec_vpkuwum): New.
4103         (vec_vpkpx): New.
4104         (vec_vpkuhus): New.
4105         (vec_vpkshss): New.
4106         (vec_vpkuwus): New.
4107         (vec_vpkswss): New.
4108         (vec_vpkshus): New.
4109         (vec_vpkswus): New.
4110         (vec_vperm): New.
4111         (vec_vrefp): New.
4112         (vec_vrlb): New.
4113         (vec_vrlh): New.
4114         (vec_vrlw): New.
4115         (vec_vrfin): New.
4116         (vec_vrsqrtefp): New.
4117         (vec_vsel): New.
4118         (vec_vslb): New.
4119         (vec_vslh): New.
4120         (vec_vslw): New.
4121         (vec_vsldoi): New.
4122         (vec_vsl): New.
4123         (vec_vslo): New.
4124         (vec_vspltb): New.
4125         (vec_vsplth): New.
4126         (vec_vspltw): New.
4127         (vec_vspltisb): New.
4128         (vec_vspltish): New.
4129         (vec_vspltisw): New.
4130         (vec_vsrb): New.
4131         (vec_vsrh): New.
4132         (vec_vsrw): New.
4133         (vec_vsrab): New.
4134         (vec_vsrah): New.
4135         (vec_vsraw): New.
4136         (vec_vsr): New.
4137         (vec_vsro): New.
4138         (vec_stvx): New.
4139         (vec_stvebx): New.
4140         (vec_stvehx): New.
4141         (vec_stvewx): New.
4142         (vec_stvxl): New.
4143         (vec_vsububm): New.
4144         (vec_vsubuhm): New.
4145         (vec_vsubuwm): New.
4146         (vec_vsubfp): New.
4147         (vec_vsubcuw): New.
4148         (vec_vsububs): New.
4149         (vec_vsubsbs): New.
4150         (vec_vsubuhs): New.
4151         (vec_vsubshs): New.
4152         (vec_vsubuws): New.
4153         (vec_vsubsws): New.
4154         (vec_vsum4ubs): New.
4155         (vec_vsum4sbs): New.
4156         (vec_vsum4shs): New.
4157         (vec_vsum2sws): New.
4158         (vec_vsumsws): New.
4159         (vec_vrfiz): New.
4160         (vec_vupkhsb): New.
4161         (vec_vupkhpx): New.
4162         (vec_vupkhsh): New.
4163         (vec_vupklsb): New.
4164         (vec_vupklpx): New.
4165         (vec_vupklsh): New.
4166         (vec_vxor): New.
4168 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
4170         PR c/5430
4171         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
4172         added literals from substracted literals.
4173         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
4174         (fold) [associate]: Preserve MINUS_EXPR if needed.
4176 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
4178         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
4179         are obsoleted.
4181 2002-04-23  Tom Tromey  <tromey@redhat.com>
4183         * gcc.c: Added --resource.  For PR java/6314.
4185 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
4187         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
4188         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
4189         these libraries.
4191 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
4193         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
4195 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
4197         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
4198         workaround.
4199         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
4200         (ix86_expand_clrstr): Fix typo.
4201         * loop.c (gen_load_of_final_value): New.
4202         (loop_givs_rescan, strength_reduce, check_dbra_loop):
4203         Use it.
4205 2002-04-23  Roger Sayle  <roger@eyesopen.com>
4207         * builtins.c (builtin_memset_gen_str): New function.
4208         (expand_builtin_memset): Optimize the case of constant length, but
4209         unknown value.
4211 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
4213         * config/rs6000/altivec.h (vec_step): Remove extraneous
4214         parentheses.
4215         (vec_ctu): Cast return.
4217 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
4219         PR target/6413
4220         * function.h: (struct function): Add profile_label_no field.
4221         (current_function_profile_label_no): Define.
4222         * function.c: (profile_label_no): New static var.
4223         (expand_function_start): Increment it, and copy to
4224         current_function_profile_label_no.
4225         * output.h (profile_label_no): Delete.
4226         * final.c (profile_label_no): Delete.
4227         (profile_function): Use current_function_profile_label_no.
4228         (final_end_function): Don't increment profile_label_no here.
4229         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
4230         profile_label_no with current_function_profile_label_no.
4231         * config/pa/pa.c (current_function_number): Delete.
4232         (pa_output_function_prologue): Don't output profile label here.
4233         (hppa_profile_hook): Use label_no param rather than
4234         current_function_number.
4235         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
4236         * config/pa/pa.h: .. here.
4237         (FUNCTION_PROFILER): Output profile label here.
4239 2002-04-22  Eric Christopher  <echristo@redhat.com>
4241         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
4242         patch of 2002-04-09 due to binutils issues.
4243         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
4245 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
4247         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
4248         constraint to 'o' for m=r and r=m alternatives.
4249         ("*movv8hi_internal1"): Same.
4250         ("*movv16qi_internal1"): Same.
4251         ("*movv4sf_internal1"): Same.
4253 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
4255         * rtl.h (RTX_FLAG): New macro.
4256         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
4257         * final.c (alter_subreg): Use macro to access rtx flag.
4258         * integrate.c (copy_rtx_and_substitute): Use new access macro.
4259         * print-rtl.c (print_rtx): Use new access macro.
4261         * cse.c (insert): Check rtx code before accessing flag.
4263         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
4264         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
4265         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
4266         convert_const_symbol_ref, make_canonical, make_alternative_compare,
4267         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
4268         simplify_test_exp, optimize_attrs, simplify_by_exploding,
4269         find_and_mark_used_attributes, unmark_used_attributes,
4270         add_values_to_cover, simplify_with_current_value,
4271         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
4272         copy_rtx_unchanging, main): Use new access macros.
4274 2002-04-22  Tom Rix  <trix@redhat.com>
4276         * expmed.c (init_expmed): Generate shifted constant once.
4278 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
4280         * c-lex.c (lex_charconst): Call convert to get constant in
4281         proper type; don't just smash the type field.
4282         Fixes PR c/6300.
4284         * config.gcc: Add list of obsolete configurations.  Disallow
4285         building these without --enable-obsolete.
4286         * doc/install.texi: Document --enable-obsolete and obsoletion
4287         policy.  Mention obsoletion of individual targets in
4288         appropriate places.
4290 2002-04-22  Richard Henderson  <rth@redhat.com>
4292         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
4294 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
4296         PR f/6138.
4297         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
4298         (walk_fixup_memory_subreg): Likewise.
4299         (fixup_var_refs_insn): Adjust accordingly.
4300         (fixup_var_refs_1): Likewise.
4302 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
4304         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
4305         LIBPATH_ARCH64_SPEC): Define.
4306         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
4307         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
4308         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
4309         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
4311 2002-04-22      Joel Sherrill <joel@OARcorp.com>
4313         * gthr-rtems.h: Correct prototypes to remove warnings.
4315 2002-04-22  Richard Henderson  <rth@redhat.com>
4317         PR c/6344
4318         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
4320         * gcse.c (free_insn_expr_list_list): New.
4321         (clear_modify_mem_tables): Use it.  Fix bit set usage.
4322         (canon_list_insert): Use EXPR_LISTs for expressions.
4323         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
4325 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4327         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
4328         file change and include code to _cpp_pop_buffer.
4329         * cpphash.h (struct pending_option): Predeclare.
4330         (struct cpp_reader): New member next_include_file.
4331         (_cpp_pop_file_buffer): Update.
4332         (_cpp_push_next_buffer): Update, rename.
4333         * cppinit.c (cpp_destroy): Free include chain and pending here.
4334         (cpp_finish_options): Simplify.
4335         (_cpp_push_next_buffer): Rename and clean up.
4336         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
4337         Clarify.
4338         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
4340 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
4342         * config/rs6000/altivec.h (vec_xor): Add variant for both args
4343         being vector signed int.
4344         (vec_andc): Same.
4345         (vec_xor): Add variant for both args being vector signed char.
4346         Remove redundant variant.
4347         (vec_andc): Same.
4349 2002-04-21  David S. Miller  <davem@redhat.com>
4351         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
4352         compare mode in output RTL.
4354 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
4356         * config/rs6000/rs6000.c (rs6000_override_options): Correct
4357         style and formatting of previous patch.
4359 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
4361         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
4362         flag_pic for ABI_AIX.
4364 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4366         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
4367         * cppfiles.c (read_include_file): Similarly.
4368         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
4369         uxstrdup ustrchr, ufputs): Similarly.
4370         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
4371         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
4372         cpp_ideq, parse_identifier, parse_number): Similarly.
4373         * cpplib.c (struct directive, dequote_string, D, run_directive,
4374         cpp_push_buffer): Similarly.
4375         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
4376         _cpp_create_definition, check_trad_stringification,
4377         cpp_macro_definition): Similarly.
4379 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4381         * cppmacro.c (funlike_invocation_p): Don't step back
4382         over CPP_EOF.
4384 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
4386         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
4387         labelno.
4389 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
4391         * doc/invoke.texi: Remove Chill references.
4392         * doc/gcc.texi: Update last modified date.
4394 2002-04-20  Kazu Hirata  <kazu@hxi.com>
4396         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
4397         push and pop.  Replace add.l with add.w.
4399 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
4401         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
4402         multiply instructions for H8/300H case.
4404 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
4406         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
4407         Bum three instructions from each routine.
4409 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
4411         * Makefile.in: Update.
4412         * decl.c (push_c_function_context, pop_c_function_context,
4413         mark_c_function_context): Rename for consistency.
4414         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
4415         * c-tree.h (push_c_function_context, pop_c_function_context,
4416         mark_c_function_context): Rename for consistency.
4417         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4418         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
4419         * function.c (init_lang_status, save_lang_status,
4420         restore_lang_status, mark_lang_status, free_lang_status):
4421         Move to langhooks.h.
4422         (push_function_context_to, pop_function_context_from,
4423         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
4424         Update.
4425         * function.h (init_lang_status, save_lang_status,
4426         restore_lang_status, mark_lang_status, free_lang_status):
4427         Move to langhooks.h.
4428         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
4429         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
4430         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
4431         LANG_HOOKS_FUNCTION_INITIALIZER): New.
4432         (LANG_HOOKS_INITIALIZER): Update.
4433         (lhd_do_nothing_f): New.
4434         * langhooks.h (struct lang_hooks_for_functions): New.
4435         (struct lang_hooks): New hooks.
4436         * langhooks.c (lhd_do_nothing_f): New.
4437 objc:
4438         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4439         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
4441 2002-04-19  David S. Miller  <davem@redhat.com>
4443         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
4444         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
4446 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
4448         PR optimization/3756
4449         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
4450         x = ((int) y < 0) ? cst1 : cst2.
4452 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
4454         PR c/6358
4455         * function.c: Reapply patch for c/6358.
4456         (expand_function_end): Copy decl_rtl's mode, not
4457         current_function_return_rtx mode.
4459 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
4461         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
4462         targets.
4464 2002-04-19  Tom Tromey  <tromey@redhat.com>
4466         * doc/install.texi (Specific): Update status of Solaris 2.8.
4467         For PR libgcj/6158.
4469 2002-04-19  Andreas Schwab  <schwab@suse.de>
4471         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
4472         (PUT_REAL): Restore old definition.
4474 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
4475             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4477         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
4478         binutils 2.11.2 and higher generate smaller binaries than Sun's
4479         native tools.
4481 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
4483         PR c++/6352
4484         * toplev.c (rest_of_compilation): Do not defer functions for which
4485         TREE_SYMBOL_REFERENCED has already been set.
4487 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
4489         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
4490         alternative.
4492 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
4494         * builtins.c: Include langhooks.h.
4495         (lang_type_promotes_to): Remove.
4496         (expand_builtin_va_arg): Use new hook.
4497         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
4498         (simple_type_promotes_to): Move to c-typeck.c.
4499         * c-common.h (simple_type_promotes_to): Remove.
4500         * c-decl.c (duplicate_decls, grokdeclarator): Update.
4501         * c-format.c: Include langhooks.h.
4502         (check_format_types): Update.
4503         * c-tree.h (c_type_promotes_to): New.
4504         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
4505         (type_lists_compatible_p): Update.
4506         * langhooks-def.h (lhd_type_promotes_to): New.
4507         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
4508         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
4509         * langhooks.c (lhd_type_promotes_to): New.
4510         * langhooks.h (struct lang_hooks_for_types): New hook.
4511         * tree.h (lang_type_promotes_to): Remove.
4512 objc:
4513         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
4515 2002-04-18  Richard Henderson  <rth@redhat.com>
4517         * function.c: Revert patch for c/6358.
4519 2002-04-18  Richard Henderson  <rth@redhat.com>
4521         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
4522         blocks.  Handle multiple references to the TRAP block.  Handle
4523         non-adjacent THEN and OTHER blocks.
4525 2002-04-18  Richard Henderson  <rth@redhat.com>
4527         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
4528         crash with no type for by-mode libcalls.
4530         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
4532 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
4534         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
4535         __xtensa_nonlocal_goto): Use a syscall instructions to flush
4536         the register windows.
4538 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
4540         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
4541         appropriate.  Document need for extended precision even when
4542         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
4543         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
4544         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
4545         instead of relying on later syntax error when REAL_WIDTH > 5.
4546         * real.c: Define NE based only on whether or not we have a
4547         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
4548         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
4549         define GET_REAL and PUT_REAL as simple memcpy operations; no
4550         need to byteswap or round.
4551         Use #error instead of #ifdef-ing out the entire file, for
4552         prompt error detection.
4554         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
4556 2002-04-18  David S. Miller  <davem@redhat.com>
4558         * config/sparc/sparc.h (BRANCH_COST): Define.
4560         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
4561         does it.
4563 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
4565         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
4566         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
4567         propagate_block calls after relaxation loop using new variable
4568         stabilized_prop_flags.
4570 2002-04-18  Richard Henderson  <rth@redhat.com>
4572         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
4573         (ia64_va_arg): Expect variable sized types by reference.
4574         * config/ia64/ia64-protos.h: Update.
4575         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
4576         ia64_function_arg_pass_by_reference.
4578 2002-04-18  Richard Henderson  <rth@redhat.com>
4580         * ifcvt.c: Include except.h.
4581         (block_has_only_trap): Break out from find_cond_trap.
4582         (find_cond_trap): Use it.  Always delete the trap block.
4583         (merge_if_block): Allow then block null.  Be less simplistic about
4584         what insns can end a block.
4585         * Makefile.in (ifcvt.o): Depend on except.h.
4587         * config/ia64/ia64.md (trap, conditional_trap): New.
4589 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
4591         PR c/6358
4592         * function.c (assign_parms): Assign hard current_function_return_rtx
4593         register here...
4594         (expand_function_end): ...not here.
4596 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
4598         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4599         * c-tree.h (c_incomplete_type_error): New.
4600         * c-typeck.c (require_complete_type, build_component_ref): Update.
4601         (incomplete_type_error): Rename.
4602         * langhooks-def.h (lhd_incomplete_type_error): New.
4603         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
4604         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
4605         * langhooks.c (lhd_incomplete_type_error): New.
4606         * langhooks.h (struct lang_hooks_for_types): New hook.
4607         * tree.c (size_in_bytes): Use new hook.
4608         * tree.h (incomplete_type_error): Remove.
4609 objc:
4610         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4612 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
4614         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
4615         TARGET_FLOAT_FORMAT blocks.
4617 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4619         * doc/install.texi (Downloading the source): Do not mention Chill
4620         any longer, but mention Ada.
4621         (Configuration): Do not mention Chill any longer.
4623 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
4625         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
4627 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
4629         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
4630         in last patch.
4632 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
4634         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
4635         instead of unsigned_type.
4637 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
4639         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
4640         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
4641         later.
4643 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
4645         * attribs.c (vector_type_node_list): New static variable.
4646         (handle_vector_size_attribute): Use it to avoid generating a
4647         new type node each time we are called.
4649         * combine.c (subst): Avoid trying to make a vector mode subreg of
4650         an integer constant.
4651         (gen_lowpart_for_combine): Likewise.
4653 2002-04-18  Roger Sayle  <roger@eyesopen.com>
4654             Jakub Jelinek  <jakub@redhat.com>
4656         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
4657         for integer constant c (if x has unsigned type or sign bit is not
4658         set in c).  This folds the zero/sign extension into the bit-wise and
4659         operation.
4661 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
4663         PR middle-end/6205
4664         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
4665         otherwise xorps.
4667 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
4669         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
4671 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
4673         * gcc.c (read_specs): Detect and fail if an attempt is made to
4674         rename a spec string to an already existing string.
4676 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
4678         * config/s390/s390.c (legitimize_pic_address): Do not generate
4679         illegal address constant without CONST.
4681 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4683         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
4684         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
4686 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
4688         PR optimization/6305
4689         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
4690         to make sure previous reloads are taken into account.  Generate
4691         better code if one operand is an in-range immediate constant.
4693 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
4695         * doc/install.texi (Building): libgcj requires GNU make.
4697 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
4699         PR bootstrap/6315
4700         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
4701         even if hard quad and register is not floating.
4702         (movtf reg<-mem split): Disallow splitting if hard quad and
4703         register is floating.
4704         (movtf mem<-reg split): Likewise.
4705         * config/sparc/sparc.c (fp_register_operand): New predicate.
4706         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
4708 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
4710         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
4711         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
4712         (unprotoize.o): Ditto.  Build from protoize.c.  Define
4713         UNPROTOIZE on command line.
4714         * protoize.c: Include cppdefault.h.  Delete include_defaults.
4715         (in_system_include_dir): Use cpp_include_defaults (defined in
4716         cppdefault.o).
4717         * unprotoize.c: Delete file.
4719 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
4721         * config/rs6000/altivec.h (vec_ld): Add array variants.
4722         (vec_lde): Same.
4723         (vec_ldl): Same.
4725 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
4726             Aldy Hernandez <aldyh@redhat.com>
4728         * config/rs6000/altivec.h: Define __ALTIVEC__.
4729         (bool): New.
4730         (__pixel): New.
4731         (pixel): New.
4732         (vec_cfux): New.
4733         (vec_vmaddfp): New.
4734         (vec_vsldoi): New.
4735         Add parentheses to all macro arguments.
4737 2002-04-16  Richard Henderson  <rth@redhat.com>
4739         PR c++/6320
4740         * except.c (remove_eh_handler): Insert inner regions at beginning
4741         of sibling chain.  Refactor expressions.
4743 2002-04-16  Richard Henderson  <rth@redhat.com>
4745         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
4746         * config/sparc/sol2-gas-bi.h: New file.
4747         * config.gcc (sparc*-solaris): Add it as needed.
4748         * configure.in (AS_SPARC64_FLAG): Remove check.
4749         * config.in, configure: Regenerate.
4751         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
4753 2002-04-16  Richard Henderson  <rth@redhat.com>
4755         * config/mips/mips.c (override_options): Don't override N32 for
4756         a 64-bit ISA.
4758         PR 6202
4759         * config/mips/mips.md (can_delay): Split out of existing define_delays.
4760         (HILO_delay): Set can_delay false.
4762 2002-04-16  Dale Johannesen <dalej@apple.com>
4764         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
4765         instruction addresses.
4766         (rs6000_output_function_epilogue): Likewise.
4768 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
4770         * c-parse.in (poplevel, compstmt_start,
4771         compstmt_primary_start): Add ending ';', in accordance
4772         with POSIX.
4774 2002-04-16  Richard Henderson  <rth@redhat.com>
4776         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
4777         Adjust tm_file order to get TARGET_DEFAULT set properly.
4778         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
4779         * doc/install.texi (sparc-solaris): Update.
4781 2002-04-16  Dale Johannesen <dalej@apple.com>
4783         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
4784         comparison operands do not match each other or if modes of
4785         conditions do not match result.
4787 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
4789         PR target/6305
4790         * config/s390/s390.md (mulsidi3): Set both subregs of the
4791         multiword register.
4793 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
4795         * config/rs6000/altivec.h (vec_addc): Type check.
4797 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
4799         PR middle-end/6279
4800         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
4802         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
4804 2002-04-15  Richard Henderson  <rth@redhat.com>
4806         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
4807         call_really_used_regs too.
4809 2002-04-15  Richard Henderson  <rth@redhat.com>
4811         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
4813 2002-04-15  David S. Miller  <davem@redhat.com>
4815         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
4816         as being CLOBBERed.
4818 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
4820         PR c/6290
4821         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
4822         CONST_VECTOR is { 0, ... 0 }.
4824 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
4826         * doc/install.texi (Installing GCC: Configuration): Clarify
4827         the only supported ways to configure gcc.
4829 2002-04-15  Roland McGrath  <roland@frob.com>
4831         * config.gcc (alpha*-*-gnu*): New target configuration.
4832         * config/alpha/gnu.h: New file for it.
4833         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
4835 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
4837         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
4838         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
4839         * tree.h (expand_start_stmt_expr): Update prototype.
4840         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
4841         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
4842         on the STMT_EXPR created for the inline function.
4844 2002-04-15  Richard Henderson  <rth@redhat.com>
4846         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
4847         config/i386/linux-aout.h, config/i386/linux-oldld.h,
4848         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
4849         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
4850         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
4851         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
4852         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
4853         Define __gnu_linux__, not gnu_linux.
4854         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
4856 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
4858         Remove Chill front end.
4859         * gcc.c (default_compilers): Remove Chill entries.
4860         * ch: Remove directory.
4861         * doc/frontends.texi: Remove information about Chill.
4862         * doc/sourcebuild.texi: Likewise.
4863         * doc/standards.texi: Likewise.
4865 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
4867         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
4868         (LONGLONG_STANDALONE): Define.
4870 2002-04-15  David S. Miller  <davem@redhat.com>
4872         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
4873         Call emit_library_call with LCT_NORMAL.
4874         (sparc_initialize_trampoline): Use LCT_foo instead of
4875         magic constant in emit_library_call invocations.
4876         (sparc64_initialize_trampoline): Likewise.
4877         (sparc_profile_hook): Likewise.
4878         * config/sparc/sparc.md: Likewise.
4880         * config/sparc/sparc.c (sparc_extra_constraint_check):
4881         Fix type of argument 'c'.
4882         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
4883         Likewise.
4885 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
4887         * diagnostic.h (output_buffer_state): Redefine.
4888         (output_format_decoder): New macro.
4889         (output_prefixing_rule): Likewise.
4890         (output_line_cutoff): Likewise.
4891         (diagnostic_format_decoder): Adjust.
4892         (diagnostic_prefixing_rule): Likewise.
4893         (diagnostic_line_cutoff): Likewise.
4894         (diagnostic_state): Likewise.
4895         (diagnostic_kind_count): Likewise.
4896         (diagnostic_buffer): Now a macro.
4898         * diagnostic.c (diagnostic_buffer): Remove definition.
4899         (output_is_line_wrapping): Adjust.
4900         (set_real_maximum_length): Likewise.
4901         (output_set_maximum_length): Likewise.
4902         (init_output_buffer): Likewise.
4903         (lhd_print_error_function): Likewise.
4904         (output_do_verbatim): Likewise.
4906 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
4908         * cpperror.c (print_location): Don't print include chain
4909         if line == 0.
4910         (cpp_begin_message): Update to use DL_ macros.
4911         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4912         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4913         cpp_notice, cpp_notice_from_errno): Remove.
4914         (cpp_error, cpp_error_with_line): Update to take a diagnostic
4915         level.
4916         (cpp_errno): New.
4917         * cppexp.c (CPP_ICE): Remove.
4918         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
4919         lex, integer_overflow, _cpp_parse_expr): Update.
4920         * cppfiles.c (read_include_file, find_include_file,
4921         handle_missing_header, _cpp_read_file, remap_filename): Update.
4922         * cpphash.h (enum error_type): Remove.
4923         (_cpp_begin_message): Update.
4924         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
4925         cpp_handle_option, cpp_post_options): Update.
4926         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
4927         skip_whitespace, parse_identifier, parse_slow, parse_string,
4928         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
4929         cpp_interpret_charconst): Update.
4930         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
4931         lex_macro_node, do_undef, glue_header_name, parse_include,
4932         do_include_common, read_flag, do_line, do_linemarker, do_ident,
4933         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
4934         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
4935         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
4936         _cpp_pop_buffer, do_diagnostic): Update.
4937         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
4938         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
4939         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4940         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4941         cpp_notice, cpp_notice_from_errno): Remove.
4942         (cpp_error, cpp_error_with_line): Update to take a diagnostic
4943         level.
4944         (cpp_errno): New.
4945         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
4946         collect_args, enter_macro_context, save_parameter, parse_params,
4947         _cpp_create_definition, check_trad_stringification,
4948         cpp_macro_definition): Update.
4949         * cppmain.c (cpp_preprocess_file): Update.
4950         * fix-header.c (read_scan_file): Update.
4952 2002-04-14  Andreas Schwab  <schwab@suse.de>
4954         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
4956 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
4958         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
4960 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
4962         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
4963         not gnu_hurd.
4965 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
4967         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
4969 2002-04-13      Joel Sherrill <joel@OARcorp.com>
4971         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
4972         sparc-elf and sparc-rtems targets.
4974 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
4976         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
4977         defined, and __gnu_hurd__ wherever __GNU__ is defined.
4978         * arm/linux-elf.h: Likewise.
4979         * cris/aout.h: Likewise.
4980         * cris/linux.h: Likewise.
4981         * i370/linux.h: Likewise.
4982         * i386/gnu.h: Likewise.
4983         * i386/linux-aout.h: Likewise.
4984         * i386/linux-oldld.h: Likewise.
4985         * i386/linux.h: Likewise.
4986         * i386/linux64.h: Likewise.
4987         * ia64/linux.h: Likewise.
4988         * m68k/linux-aout.h: Likewise.
4989         * m68k/linux.h: Likewise.
4990         * mips/linux.h: Likewise.
4991         * pa/pa-linux.h: Likewise.
4992         * pj/linux.h: Likewise.
4993         * rs6000/sysv4.h: Likewise.
4994         * s390/linux.h: Likewise.
4995         * sh/linux.h: Likewise.
4996         * sparc/linux-aout.h: Likewise.
4997         * sparc/linux.h: Likewise.
4998         * sparc/linux64.h: Likewise.
4999         * xtensa/linux.h: Likewise.
5001 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
5003         * stmt.c (check_unique_operand_names): Expect operand names to
5004         be strings rather than identifiers.  Use simple_cst_equal to
5005         compare them.
5006         (resolve_operand_name_1): Make same identifier to string change here.
5007         * c-parse.in (asm_operand): Convert a named operand into a string.
5008         * cp/parse.y (asm_operand): Likewise.
5010 2002-04-13  Andreas Schwab  <schwab@suse.de>
5012         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
5014 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
5016         Revert these changes:
5018         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
5020         PR c++/5571
5021         * stor-layout.c (layout_decl): Reset the RTL for the decl.
5023 2002-04-12  Richard Henderson  <rth@redhat.com>
5025         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
5026         (sparc*-*-solaris): Clean up header files.
5027         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
5028         and plan on generating 64-bit code.
5029         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
5030         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
5031         * config/sparc/sol2-sld-64.h: Rename ...
5032         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
5033         for AS_SPARC64_FLAG not defined.
5034         * config/sparc/sol2-gld-bi.h: New.
5035         * config/sparc/sol2-sld.h: Remove.
5036         * config/sparc/sol26-sld.h: New.
5037         * config/sparc/sol2.h: Tidy comments.
5038         * doc/install.texi: Document sparc-solaris configury changes.
5040 2002-04-12  Richard Henderson  <rth@redhat.com>
5042         * recog.c (offsettable_address_p): Match the logic in adjust_address.
5044         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
5045         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
5047 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5049         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
5051 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
5053         * pa.c (pa_can_combine_p): Call extract_insn before calling
5054         constrain_operands.
5056 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
5058         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
5059         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
5060         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
5061         (CPP_PREDEFINES): Handle __declspec.
5062         * config/i386/t-interix (USER_H): Remove.
5064 2002-04-12  DJ Delorie  <dj@redhat.com>
5066         * integrate.c (compare_blocks): Make comparisons safe for when
5067         sizeof(int) < sizeof(char *).
5068         (find_block): Likewise.
5070 2002-04-12  Jan Hubicka  <jh@suse.cz>
5071             David Edelsohn  <edelsohn@gnu.org>
5073         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
5074         registers.
5075         (symbol_ref_operand): New.
5076         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
5077         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
5079 2002-04-12  Andreas Schwab  <schwab@suse.de>
5081         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
5082         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
5083         overrides the definition in config/svr4.h.
5085 2002-04-12      Eric Norum <eric.norum@usask.ca>
5087         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
5088         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
5089         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
5090         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
5091         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
5092         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
5093         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
5094         definitions to config/rtems.h and make the targets more similar.
5096 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5098         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
5099         POINTERS_EXTEND_UNSIGNED.
5100         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
5101         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
5103         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
5104         not specified.
5106 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
5108         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
5109         depends on TARGET_SHMEDIA, not TARGET_SH5.
5111 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
5113         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
5114         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
5116 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
5118         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
5119         no r0 clobber.
5121 2002-04-12  Andreas Schwab  <schwab@suse.de>
5123         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
5125 2002-04-12  Richard Henderson  <rth@redhat.com>
5127         PR bootstrap/4191
5128         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
5130         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
5131         modes spanning multiple hard regs.
5133         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
5135 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5137         * pa.c (pa_output_function_prologue): Don't accumulate the total
5138         number of code bytes when using TARGET_64BIT, or gas, SOM and not
5139         the portable runtime.
5140         (output_deferred_plabels): Handle 64bit plabels.
5141         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
5142         generating pic code using the GAS assembler for object formats that
5143         are not SOM (ie., ELF32 and ELF64).
5144         (output_millicode_call): Check attribute type if attribute length is 28.
5145         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
5146         dbr_sequence_length once.
5147         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
5148         dbr_sequence_length once.
5149         * pa.h (TARGET_SOM): Define if not defined.
5150         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
5151         with GAS and not SOM.
5152         (jump, call_internal_reg, call_value_internal_reg): Likewise.
5153         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
5155 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
5157         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
5158         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
5159         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
5160         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
5161         elfos.h and dbxelf.h values are fine now.
5162         * config/i386/freebsd.h, config/alpha/freebsd.h
5163         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
5165 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
5167         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
5168         or set Acpu or Amachine.  Reformat.
5169         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
5170         define.
5171         (LINK_SPEC): Do not need to undef.
5172         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
5173         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
5174         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
5175         define.
5176         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
5177         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
5178         (LINK_SPEC): Do not need to undef.
5179         (DONT_USE_BUILTIN_SETJMP): Do not define.
5180         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
5181         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
5182         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
5183         Remove trailing spaces.
5184         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
5185         __ELF__, or set Acpu or Amachine.  Reformat.
5186         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
5187         define.
5189 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
5191         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
5192         all other *-*-freebsd* targets.
5194 2002-04-11  Richard Henderson  <rth@redhat.com>
5196         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
5198 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
5200         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
5201         Include {cpu}/{cpu}.h thru tm_file.
5202         (alpha*-*-linux*ecoff): Remove target.
5203         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
5204         (LINK_SPEC): Remove, is not OS independent.
5205         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
5206         (LINK_SPEC): Do not need to #undef any longer.
5207         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
5208         any longer.
5209         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
5210         __ELF__.
5211         (LINK_SPEC): Moved here from alpha/elf.h.
5212         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
5213         SUB_CPP_PREDEFINES.
5214         * config/alpha/linux-ecoff.h: Remove.
5215         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
5216         (CPP_SPEC): Define _POSIX_SOURCE as needed.
5217         (CPP_SUBTARGET_SPEC): Do not define.
5218         (LINK_SPEC): Do not need to #undef any longer.
5219         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
5220         * config/alpha/vms.h: Likewise.
5222 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
5224         * doc/extend.texi: Remove old claim that typedefs cannot have
5225         an alignment attribute.
5227 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
5229         PR optimization/6177
5230         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
5231         bitpos is 0 and bitsize CONCAT size.
5233 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
5235         PR c/6223
5236         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
5238 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
5240         * config/alpha/freebsd.h: Minor reformatting.
5241         (CPP_SPEC): Define ELF and add cpp_subtarget.
5242         (ASM_SPEC): No longer needed.
5244 2002-04-11  Richard Henderson  <rth@redhat.com>
5246         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
5247         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
5248         (dimode mem/zero splitter): New.
5250 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
5252         * config/cris/cris.c (cris_override_options): Tweak error message
5253         for PIC not implemented.
5255         * config/cris/cris.h: Tweak comments related to parameter-passing.
5257         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
5259 2002-04-10  Richard Henderson  <rth@redhat.com>
5261         * except.c (add_ehl_entry): Allow duplicates after landing pad
5262         creation.
5264 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
5266         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
5268 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
5270         * c-decl.c (c_init_decl_processing): Move generation of
5271         decls for g77_integer_type_node and friends from here ...
5272         * c-common.c (c_common_nodes_and_builtins): ... to here.
5274 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
5276         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
5277         is only used as frame pointer when frame_pointer_needed is true.
5279 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
5281         PR target/817
5282         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
5283         for the fact that the pool entry uses two words.
5284         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
5285         1k bytes.
5286         (movdf_soft_insn): Similarly.
5287         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
5288         for the fact that the pool entry uses three words.
5290 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
5292         * config/mips/mips.c (mips_va_arg): When using the struct version
5293         of the EABI va_list, allow arguments in the register save area to
5294         take up less room than a stack argument.
5296 2002-04-10  Richard Henderson  <rth@redhat.com>
5298         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
5299         if EXPAND_INITIALIZER.
5301 2002-04-09  Richard Henderson  <rth@redhat.com>
5303         * config/alpha/alpha.md (movdi_er_maybe_g): New.
5304         * config/alpha/alpha.c (alpha_expand_mov): Use it.
5306 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
5308         PR optimization/6233
5309         * rtlanal.c (pure_call_p): New function.
5310         * rtl.h (pure_call_p): Declare.
5311         * loop.c (prescan_loop): Use it to set has_nonconst_call.
5312         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
5314 2002-04-09  Eric Christopher  <echristo@redhat.com>
5316         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
5317         information to .comm directive.
5319 2002-04-09  Richard Henderson  <rth@redhat.com>
5321         PR c/5078
5322         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
5324 2002-04-09  Richard Henderson  <rth@redhat.com>
5326         * basic-block.h (flow_delete_block_noexpunge): Declare.
5327         (expunge_block_nocompact): Declare.
5328         * cfg.c (expunge_block_nocompact): Split out from ...
5329         (expunge_block): ... here.
5330         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
5331         (flow_delete_block_noexpunge): Split out from ...
5332         (flow_delete_block): ... here.
5333         * cfgcleanup.c (delete_unreachable_blocks): Compact while
5334         removing dead blocks.
5335         * except.c (exception_handler_labels): Remove.
5336         (exception_handler_label_map): New.
5337         (struct eh_region): Add aka member.
5338         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
5339         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
5340         (for_each_eh_label, for_each_eh_label_1): New.
5341         (init_eh): Register exception_handler_label_map.
5342         (free_eh_status): Use free_region.
5343         (find_exception_handler_labels): Use the map, not the list.
5344         (remove_exception_handler_label): Likewise.
5345         (maybe_remove_eh_handler): Likewise.
5346         (remove_eh_handler): Use the region aka bitmap.
5347         * except.h (exception_handler_labels): Remove.
5348         (for_each_eh_label): Declare.
5349         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
5350         * loop.c (invalidate_loops_containing_label): New.
5351         (find_and_verify_loops): Use it.  Use for_each_eh_label.
5352         * sched-rgn.c (is_cfg_nonregular): Use
5353         current_function_has_exception_handlers.
5355 2002-04-09  Richard Henderson  <rth@redhat.com>
5357         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
5358         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
5359         Do not return changed status.
5360         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
5361         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
5362         New functions that do return changed status.
5363         * sbitmap.h: Update decls.
5364         * gcse.c, lcm.c: Use _cg functions as needed.
5366 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
5368         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
5369         (sh64-*-elf*, sh-*-rtemself*): Likewise.
5370         * config/sh/embed_bb.c: New file.
5371         * config/sh/embed-elf.h: New file.
5372         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
5373         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
5374         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
5375         __PTRDIFF_TYPE__ .
5376         (SUBTARGET_CPP_PTR_SPEC): Don't define.
5377         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
5378         Add subtarget_asm_endian_spec.
5379         (ASM_SPEC): Use subtarget_asm_endian_spec.
5380         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
5381         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
5382         (WCHAR_UNSIGNED): Define.
5383         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
5384         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
5385         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
5386         Fix value.
5387         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
5388         (sh_adjust_cost): Likewise.
5389         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
5390         __PTRDIFF_TYPE__ .
5391         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
5392         (WCHAR_TYPE_SIZE): Likewise.
5393         (ASM_SPEC): Use subtarget_asm_endian_spec.
5394         (SH_ELF_WCHAR_TYPE): #undef/ #define.
5395         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
5396         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
5397         (MAX_WCHAR_TYPE_SIZE): Don't #define .
5398         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
5399         (USER_LABEL_PREFIX): Don't #undef /#define .
5400         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
5401         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
5402         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
5403         (ASM_SPEC): Likewise.
5404         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
5405         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
5406         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
5407         (LIB2FUNCS_EXTRA): Define.
5408         * t-sh64 (LIB2FUNCS_EXTRA): Define.
5409         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
5410         (LIB1ASMFUNCS_CACHE): Define.
5411         (LIB2FUNCS_EXTRA): Redefine empty.
5413 2002-04-08  Richard Henderson  <rth@redhat.com>
5415         * reorg.c (get_branch_condition): Use reversed_comparison_code.
5417 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5419         * config/m68hc11/larith.asm (__map_data_section): Fix condition
5420         and optimize for size.
5421         (__do_global_ctors): Fix pointer comparison.
5422         (__do_global_dtors): Likewise.
5424 2002-04-09  David S. Miller  <davem@redhat.com>
5426         * config/sparc/sparc.c (sparc_extra_constraint_check): New
5427         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
5428         allow reloading pseudos.
5429         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
5430         * config/sparc/sparc-protos.h: Declare it.
5432         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
5433         unsigned comparison warning.
5434         (output_restore_regs): Mark leaf_function as unused.
5436 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5438         * expr.c (is_aligning_offset): New function.
5439         (expand_expr, case COMPONENT_EXPR): Call it.
5441 2002-04-08  David S. Miller  <davem@redhat.com>
5443         PR target/6082
5444         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
5446         Make init_priority work on Sparc when using GNU ld.
5447         * config/sparc/linux.h, config/sparc/linux64.h,
5448         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
5449         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
5450         * config/sparc/sol2-gld.h: New file to do the same.
5451         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
5452         sparc/sol2-gld.h to tm_file.
5454         PR optimization/4328
5455         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
5456         * doc/md.texi: Document it.
5457         * config/sparc/sparc.md (movdi_insn_sp64_novis,
5458         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
5459         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
5460         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
5461         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
5463 2002-04-08  Andreas Jaeger  <aj@suse.de>
5465         * stmt.c (expand_asm_operands): Revert last patch from Richard
5466         Henderson.
5468 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5470         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
5471         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
5473 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5475         * doc/contrib.texi (Contributors): Add David O'Brien.
5477 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
5479         * configure.in (auto-build.h): Use target_alias and build_alias
5480         when running configure.
5481         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
5482         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
5483         * configure: Regenerate.
5485 2002-04-07  David S. Miller  <davem@redhat.com>
5487         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
5489 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5491         PR 5933
5492         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
5493         generating 32-bit pic code.
5495 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
5497         * cppinit.c (cpp_create_reader): Initialize
5498         discard_comments_in_macro_exp.
5499         (COMMAND_LINE_OPTIONS): Add "-CC" option.
5500         (cpp_handle_option): Handle "-CC" option.
5501         * cpplex.c (save_comment): If saving a C++ comment in
5502         a directive, convert it to a C comment.
5503         (_cpp_lex_direct): Pass second comment start character to
5504         save_comment to indicate comment type.
5505         * cpplib.c (_cpp_handle_directive): If processing
5506         a "#define" directive and discard_comments_in_macro_exp
5507         is false,  re-enable saving of comments.
5508         (lex_macro_node): If discard_comments_in_macro_exp is false,
5509         discard any comments before the macro identifier.
5510         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
5511         member.
5512         * cppmacro.c (cpp_get_token): If expanding a macro while
5513         processing a directive, discard any comments we might encounter.
5514         (parse_params): If discard_comments_in_macro_exp is false,
5515         ignore comments in the macro parameter list.
5516         * gcc.c (cpp_unique_options): Add "-CC" option.
5517         (option_map): Map "--comments-in-macros" to "-CC".
5518         * doc/cppopts.texi: Document "-CC" option.
5519         * f/lang-specs.h: Add "-CC" option.
5520         * testsuite/gcc.dg/cpp/maccom1.c: New test.
5521         * testsuite/gcc.dg/cpp/maccom2.c: New test.
5522         * testsuite/gcc.dg/cpp/maccom3.c: New test.
5523         * testsuite/gcc.dg/cpp/maccom4.c: New test.
5524         * testsuite/gcc.dg/cpp/maccom5.c: New test.
5525         * testsuite/gcc.dg/cpp/maccom6.c: New test.
5527 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5529         PR middle-end/6180
5530         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
5532 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
5534         PR c++/5571
5535         * stor-layout.c (layout_decl): Reset the RTL for the decl.
5537         PR opt/5120
5538         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
5539         RTX_UNCHANGING_P for the functions arguments when a tail call
5540         is made.
5542 2002-04-06  Jason Merrill  <jason@redhat.com>
5544         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
5545         (parse_options_and_default_flags): Set them appropriately.
5546         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
5548 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
5550         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
5551         here.
5553         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
5554         semicolon.
5556         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
5557         types come in by-reference.  Fix typo in comment.
5559 2002-04-05  David S. Miller  <davem@redhat.com>
5561         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
5562         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
5563         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
5564         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
5566 2002-04-05  David S. Miller  <davem@redhat.com>
5568         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
5569         are not going to emit return instructions, emit at least a nop
5570         for the sake of sane backtraces.
5572 2002-04-05  Richard Henderson  <rth@redhat.com>
5574         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
5576 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
5578         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
5580 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
5582         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
5583         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
5584         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
5586 2002-04-05  Andreas Schwab  <schwab@suse.de>
5588         * c-convert.c: Include c-common.h.
5589         * Makefile.in (c-convert.o): Updated.
5591 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
5593         * mklibgcc.in: Use separate libgcc.map for each multilib.
5594         * Makefile.in (distclean): Don't remove libgcc.map here.
5596 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
5598         * Makefile.in (s-mlib): Handle --disable-multilib by separate
5599         genmultilib invocation.
5601 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
5603         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
5604         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
5605         to num_gprs for symmetry.
5606         * config/mips/mips.c: Adjust accordingly.
5608 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
5610         * c-common.c (truthvalue_conversion): Rename, update.
5611         * c-common.h (c_common_truthvalue_conversion): New.
5612         * c-convert.c (convert): Update.
5613         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
5614         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
5615         * c-typeck.c (build_binary_op, build_unary_op,
5616         build_conditional_expr): Update.
5617         * fold-const.c (constant_boolean_node, fold): Use langhook.
5618         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
5619         * langhooks.h (struct lang_hooks): New hook.
5620         * stmt.c (expand_decl_cleanup): Use langhook.
5621         * tree.h (truthvalue_conversion): Remove.
5622 objc:
5623         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
5625 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
5627         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
5628         Add rules to make null object file.
5630 2002-04-04  Jim Blandy  <jimb@redhat.com>
5632         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
5633         macro formal parameter names.
5635 2002-04-04  David S. Miller  <davem@redhat.com>
5637         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
5639 2002-04-04  Richard Henderson  <rth@redhat.com>
5641         PR middle-end/5099
5642         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
5643         Support copies into and out of memory.  Don't accept allows_reg
5644         and allows_mem as gospel.
5646 2002-04-04  Richard Henderson  <rth@redhat.com>
5648         PR opt/6165
5649         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
5650         (write_dependence_p): Likewise.
5652 2002-04-04  Richard Henderson  <rth@redhat.com>
5654         * predict.c (estimate_bb_frequencies): Do frequency calculation
5655         with a volatile temporary.
5657 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
5659         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
5661 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
5663         PR c++/6119
5664         * final.c (final_start_function): Don't bump profile_label_no here...
5665         (final_end_function): ...but here.
5667 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
5669         * config/sparc/sparc.md (pic): New attribute.
5670         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
5671         into stack slots.
5672         (split after do_builtin_setjmp_setup): New.
5674 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
5676         PR fortran/6106
5677         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
5678         change.
5680 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
5682         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
5683         UNITS_PER_WORD for zero sized aggregates.
5685 2002-04-03  David S. Miller  <davem@redhat.com>
5687         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
5688         one-character spec for this, just use %(link_gcc_c_sequence).
5690 2002-04-03  David S. Miller  <davem@redhat.com>
5692         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
5693         handling.
5695 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5697         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
5698         (DWARF_FRAME_RETURN_COLUMN): Move.
5699         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5700         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
5701         * pa.c (except.h, predict.h): Include.
5702         (FRP): Delete.
5703         (store_reg_modify, set_reg_plus_d): Revise prototypes.
5704         (output_ascii): Add cast.
5705         (store_reg_modify): Revise to add frame notes.
5706         (set_reg_plus_d): Likewise.
5707         (compute_frame_size): Include space for eh data registers in frame if
5708         the current function calls eh_return.
5709         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
5710         function calls eh_return.  Save eh data registers if the current
5711         function calls eh_return.  Fix code to add frame notes.  Emit
5712         blockage to prevent insns with frame notes being scheduled in the
5713         delay slot of calls.
5714         (hppa_expand_epilogue): Restore eh data registers and do final stack
5715         adjustment if the current function calls eh_return.  Don't add frame
5716         notes.
5717         (output_call): Revise for change in length of call insn.  Don't do
5718         return pointer adjustment for an unconditional jump in the delay slot
5719         of a call when using frame notes.
5720         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
5721         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
5722         (ARG_POINTER_CFA_OFFSET): Define.
5723         * pa.md (return_external_pic): New pattern.
5724         (prologue): Correct formatting.  Use return_external_pic if current
5725         function calls eh_return.
5726         (call_internal_symref, call_value_internal_symref,
5727         sibcall_internal_symref, sibcall_value_internal_symref): Change default
5728         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
5729         respectively.
5730         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
5732         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
5733         list of targets to check using "nop" insn.
5734         * configure: Rebuilt.
5736 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
5738         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
5740 2002-04-03  David S. Miller  <davem@redhat.com>
5742         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
5743         library sequence passed to the linker.
5744         (LINK_COMMAND_SPEC): Use it.
5745         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
5746         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
5747         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5749 2002-04-03  Jason Merrill  <jason@redhat.com>
5751         * except.c (struct eh_status): Remove protect_list.
5752         (begin_protect_partials, end_protect_partials): Remove.
5753         (add_partial_entry): Remove.
5754         * except.h: Remove prototypes.
5756         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
5757         expand_decl_cleanup_eh.
5759         PR c++/5636
5760         * tree.h (CLEANUP_EH_ONLY): New macro.
5761         * stmt.c (expand_decl_cleanup_eh): New fn.
5762         (expand_cleanups): Check CLEANUP_EH_ONLY.
5763         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
5764         Use expand_decl_cleanup_eh.
5765         (expand_stmt): Adjust.
5766         * c-common.h: Adjust prototype.
5768 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
5770         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
5771         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
5772         (cris_target_asm_function_epilogue): Ditto.
5773         (cris_initial_frame_pointer_offset): Ditto.
5774         (cris_simple_epilogue): Ditto.
5775         (cris_expand_builtin_va_arg): Variable-size types come in
5776         by-reference.
5778 2002-04-03  David S. Miller  <davem@redhat.com>
5780         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
5781         little-endian.
5782         (set_fast_math): Correct 'fsr' type.
5784 2002-04-03  Richard Henderson  <rth@redhat.com>
5786         PR opt/3569
5787         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
5788         * toplev.c (check_global_declarations): Use it.
5789         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
5790         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5791         (LANG_HOOKS_DECLS): Add it.
5792         * langhooks.c (lhd_warn_unused_global_decl): New.
5793         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5794         * c-objc-common.c (c_warn_unused_global_decl): New.
5795         * c-tree.h (c_warn_unused_global_decl): Declare.
5796         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5798 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
5800         * langhooks-def.h (lhd_set_decl_assembler_name,
5801         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
5802         (LANG_HOOKS_INITIALIZER): Update.
5803         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
5804         * langhooks.h (struct lang_hooks): New hook.
5805         * tree.c (set_decl_assembler_name): Move to langhooks.c.
5806         (lang_set_decl_assembler_name): Remove.
5807         (init_obstacks): Don't set hook.
5808         (decl_assembler_name): New function.
5809         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
5810         (decl_assembler_name): New.
5811         (lang_set_decl_assembler_name): Remove.
5813 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
5815         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
5816         works properly with .hidden symbols.
5817         * configure: Rebuilt.
5818         * config.in: Rebuilt.
5819         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
5820         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
5821         properly with .hidden symbols.
5823 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
5825         PR middle-end/6102
5826         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
5827         USE argument.
5829 2002-04-03  Richard Henderson  <rth@redhat.com>
5831         PR opt/4120
5832         * sched-rgn.c (sets_likely_spilled): New.
5833         (sets_likely_spilled_1): New.
5834         (add_branch_dependences): Use it.
5836 2002-04-02  Richard Henderson  <rth@redhat.com>
5838         PR opt/4311
5839         * loop.h (LOOP_FIRST_PASS): New.
5840         * loop.c (strength_reduce): Mind it when deciding to unroll.
5841         * toplev.c (rest_of_compilation): Set it.
5843 2002-04-02  David S. Miller  <davem@redhat.com>
5845         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
5846         mems_ok_for_ldd_peep when the order of the loads being examined
5847         is reversed.
5848         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
5849         existing comment to increase comprehension of this situation.
5851 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
5853         * config/sh/sh.md: Don't use union real_extract.
5855 2002-04-02  Richard Henderson  <rth@redhat.com>
5857         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
5859 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
5861         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
5862         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
5863         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
5864         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
5865         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
5866         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
5867         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
5868         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
5869         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
5870         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
5871         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
5872         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
5873         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
5874         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
5875         Include as many configury headers via tm_file as possible.  This
5876         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
5877         * config/openbsd-oldgas.h: New file.
5878         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
5879         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
5880         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
5881         config/i386/i386-coff.h, config/i386/i386-interix.h,
5882         config/i386/iscdbx.h, config/i386/linux-aout.h,
5883         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
5884         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
5885         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
5886         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
5887         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
5888         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
5889         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
5890         config/i386/vxi386.h: Do not directly include configury headers.
5891         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
5892         Directly include configury headers that are no longer automatically
5893         included by the above headers.
5894         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
5895         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
5896         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
5897         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
5898         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
5899         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
5900         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
5901         (TARGET_VERSION): Define.
5902         * config/i386/beos-elf.h, config/i386/freebsd.h,
5903         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
5904         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
5905         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
5906         config/i386/sco5.h, config/i386/sysv4.h
5907         (TARGET_VERSION): Do not need to protect.
5908         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
5909         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
5910         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
5911         config/i386/i386-interix.h, config/i386/linux-aout.h,
5912         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
5913         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
5914         (YES_UNDERSCORES): Do not define - not needed.
5915         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
5916         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5917         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
5918         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
5919         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5920         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
5921         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
5922         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
5924 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
5925             Richard Henderson  <rth@redhat.com>
5927         PR c/5484
5928         * function.c (assign_temp): Accept either type or decl argument.
5929         Detect variables whose size is too large to fit into an integer.
5930         * stmt.c (expand_decl): Pass the decl, not the type.
5932 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
5934         * protoize.c: Match include directory usage with cppdefault.c.
5936 2002-04-03  Jeffrey A Law  (law@redhat.com)
5937             Hans-Peter Nilsson  <hp@bitrange.com>
5939         * combine.c (simplify_comparison): Avoid narrowing a comparison
5940         with a paradoxical subreg when doing so would drop signficant bits.
5942 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
5944         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
5945         if POINTERS_EXTEND_UNSIGNED is defined.
5947 2002-04-02  Richard Henderson  <rth@redhat.com>
5949         PR opt/3967
5950         * local-alloc.c (contains_replace_regs): LO_SUM may contain
5951         replace regs.
5953 2002-04-02  Richard Henderson  <rth@redhat.com>
5955         * doc/standards.texi: Document required freestanding libc entry points.
5957 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
5959         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
5960         associated splitter.  Remove MQ constraint.
5961         (ctrdi_internal4): Correct CCmode clobber.
5963 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5965         * milli64.S ($$dyncall): New function.
5966         * t-linux (LIB1ASMFUNCS): Revise module list.
5967         (LIB1ASMSRC): Use pa/milli64.S.
5969 2002-04-02  Richard Henderson  <rth@redhat.com>
5971         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
5972         rename solaris_sys_varargs_h.
5974 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5976         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
5977         the same mode as its component.
5979 2002-04-02  Richard Henderson  <rth@redhat.com>
5981         PR opt/190
5982         * final.c (this_is_asm_operands): Export.
5983         * output.h (this_is_asm_operands): Declare.
5984         * config/i386/i386.c (print_operand): Error odd asm operands.
5986 2002-04-02  Richard Henderson  <rth@redhat.com>
5988         PR opt/420
5989         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
5991 2002-04-01  Richard Henderson  <rth@redhat.com>
5993         PR target/1538
5994         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
5995         * fixinc/fixincl.x: Rebuild.
5997 2002-04-01  Richard Henderson  <rth@redhat.com>
5999         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
6000         (atomic_alloc, atomic_free): New.
6001         (SIZE, MASK_FOR, PTR_IN): New.
6002         (emergency_reg_state, emergency_reg_state_free): New.
6003         (emergency_labeled_state, emergency_labeled_state_free): New.
6004         (reg_state_alloced, labeled_state_alloced): New.
6005         (alloc_reg_state, free_reg_state): New.
6006         (alloc_label_state, free_label_state, free_label_states): New.
6007         (push, pop, dup_state_stack, free_state_stack): Use them.
6008         (desc_label_state): Likewise.
6009         (uw_frame_state_for): Free label states and state stack.
6010         (uw_update_reg_address): Eliminate warnings.
6012 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
6014         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
6015         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
6017 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
6019         * c-decl.c (grokdeclarator): Update.
6020         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
6021         * c-tree.h (c_mark_addressable): New.
6022         * c-typeck.c (default_function_array_conversion, build_unary_op,
6023         build_array_ref, convert_for_assignment): Update.
6024         (mark_addressable): Rename.
6025         * calls.c (try_to_integrate, expand_call): Use langhook.
6026         * expr.c (expand_expr): Use langhook.
6027         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
6028         * langhooks.h (struct lang_hooks): New hook.
6029         * stmt.c (expand_asm_operands): Use langhook.
6030         * tree.h (mark_addressable): Remove.
6031 objc:
6032         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
6034 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
6036         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
6037         in previous change.
6039 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
6041         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
6042         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
6044 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
6046         * c-common.c (unsigned_conversion_warning, convert_and_check,
6047         unsigned_type, signed_type, shorten_compare,
6048         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
6049         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
6050         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
6051         New.
6052         * c-decl.c (grokdeclarator): Update.
6053         * c-format.c (check_format_types): Update.
6054         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
6055         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
6056         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
6057         * convert.c (convert_to_integer): Use new hooks.
6058         * expmed.c (make_tree): Use new hooks.
6059         * expr.c (store_expr): Use new hooks.
6060         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
6061         all_ones_mask_p, unextend, fold): Use new hooks.
6062         * langhooks.h (struct lang_hooks_for_types): New hooks.
6063         * tree.h (signed_or_unsigned_type, signed_type,
6064         unsigned_type): Remove.
6065 objc:
6066         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
6067         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
6069 2002-03-31  Richard Henderson  <rth@redhat.com>
6071         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
6072         (desc_frgr_mem): Fix reference to f16-f31.
6074 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6076         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
6077         RTVEC_ELT): Const-ify.
6078         * varray.h (VARRAY_CHECK): Const-ify.
6079         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
6080         ggc_mark_rtvec, ggc_mark): Const-ify.
6082 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
6084         * diagnostic.c: Include langhooks-def.h.
6085         * Makefile.in (diagnostic.o): Update.
6087 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
6089         * c-common.c (c_unsafe_for_reeval): Rename.
6090         * c-common.h (c_unsafe_for_reeval): Rename.
6091         * c-decl.c (finish_incomplete_decl): Rename.
6092         (c_init_decl_processing): Don't set langhook.
6093         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
6094         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
6095         * c-objc-common.c (c_objc_common_init): Don't set langhook.
6096         * c-tree.h (finish_incomplete_decl): Rename.
6097         * langhooks-def.h (lhd_unsafe_for_reeval): New.
6098         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
6099         (LANG_HOOKS_INITIALIZER): Update.
6100         * langhooks.c (lhd_unsafe_For_reeval): New.
6101         * langhooks.h (struct langhooks): New hooks.
6102         * toplev.c (incomplete_decl_finalize_hook): Remove.
6103         (wrapup_global_declarations): Update.
6104         * tree.c (lang_unsafe_for_reeval): Remove.
6105         (unsafe_for_reeval): Update.
6106         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
6107         Remove.
6108 objc:
6109         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
6110         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
6112 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
6114         * diagnostic.c (print_error_function): Remove.
6115         (default_print_error_function): Rename.
6116         (report_error_function): Update.
6117         * diagnostic.h (print_error_function): Remove.
6118         (default_print_error_function): Remove.
6119         * langhooks-def.h (struct diagnostic_context): Predeclare.
6120         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
6121         (LANG_HOOKS_INITIALIZER): Update.
6122         * langhooks.h (struct diagnostic context): Predeclare.
6123         (struct lang_hooks): New hook.
6125 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6127         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
6128         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
6129         !flag_pic.
6130         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
6131         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
6132         of PIC_OFFSET_TABLE_REGNUM thruout.
6133         * config/rs6000/rs6000.md: Likewise.
6134         * config/rs6000/darwin.h: Likewise.
6136 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6138         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
6139         unsigned HOST_WIDE_INT, not unsigned int.
6141 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
6143         PR middle-end/6096, middle-end/6098, middle-end/6099
6144         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
6145         CODE_LABELs.
6146         (fill_slots_from_thread): Likewise.
6148 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
6150         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
6151         floating fields in float regs.
6152         (function_arg_record_value_2): Likewise.
6154 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
6156         * config/mmix/mmix.md (define_constants): Remove misleading
6157         FIXME.  Add MMIX_fp_rO_OFFSET.
6158         ("nonlocal_goto_receiver"): Don't have stack-frame address of
6159         saved rO as part of the pattern.  Remove FIXME.
6160         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
6161         here, at output-time.
6163 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
6165         PR middle-end/6100
6166         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
6167         REG_BR_PRED.
6168         (output_v9branch): Likewise.
6170 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
6172         * gcc.c: Revert previous patch for now.
6173         * config/i386/djgpp.h: Likewise.
6175 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
6177         * config/mmix/crti.asm (_init): Register _fini with atexit.
6178         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
6180 2002-03-31  Richard Henderson  <rth@redhat.com>
6182         PR target/3997
6183         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
6184         (ASM_OUTPUT_DEF_FROM_DECLS): New.
6186 2002-03-31  Richard Henderson  <rth@redhat.com>
6188         * libgcc2.c (__bb_exit_func): Make static.
6190         * config/alpha/alpha.md (trap): New.
6192 2002-03-31  Richard Henderson  <rth@redhat.com>
6194         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
6195         promoted argument types; build trap.
6196         (expand_builtin_trap): New.
6197         (expand_builtin): Use it.
6198         * stmt.c (expand_nl_goto_receivers): Likewise.
6199         * expr.h (expand_builtin_trap): Declare.
6200         * libfuncs.h (LTI_abort, abort_libfunc): New.
6201         * optabs.c (init_optabs): Init abort_libfunc.
6203 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
6205         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
6206         (LINK_COMMAND_SPEC): ... from here.
6207         (init_gcc_specs): Duplicate it here too, omitting
6208         shared_name in the second copy.
6209         (init_spec): Test for duplicate
6210         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
6212 2002-03-30  David S. Miller  <davem@redhat.com>
6214         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
6215         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
6217 2002-03-30  Roger Sayle <roger@eyesopen.com>
6218             Richard Henderson  <rth@redhat.com>
6220         * regmove.c (combine_stack_adjustments_for_block): Avoid
6221         emitting a stack adjustment of zero bytes.  Let delete_insn
6222         update bb->head.
6224 2002-03-30  Richard Henderson  <rth@redhat.com>
6226         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
6227         (sparc_emitting_epilogue): New.
6228         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
6229         * config/sparc/sparc-protos.h: Update.
6230         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
6231         (TARGET_SWITCHES): Update.
6232         * config/sparc/sparc.md (return): Remove.
6233         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
6234         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
6235         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
6236         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6237         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
6238         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
6239         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
6240         Remove MASK_EPILOGUE.
6241         * doc/invoke.texi: Update.
6243 2002-03-30  Daniel Berlin  <dan@dberlin.org>
6245         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
6246         CPP will start the file for us.
6248 2002-03-30  Richard Henderson  <rth@redhat.com>
6250         PR target/5446
6251         * config/ia64/ia64.c (group_barrier_needed_p): Special case
6252         prologue_allocate_stack.
6253         (ia64_single_set): Use insn codes for recognition of special
6254         cases, not rtl matching.
6255         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
6257 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
6259         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
6261 2002-03-30  Richard Henderson  <rth@redhat.com>
6263         PR target/6032
6264         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
6265         or -fomit-frame-pointer with profiling.
6266         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
6267         (FUNCTION_PROFILER): Do nothing.
6268         (PROFILE_HOOK): New.
6269         * config/sparc/sparc.c (sparc_override_options): Don't check
6270         code models for profiling.
6271         (sparc_function_profiler): Remove.
6272         (sparc_profile_hook): New.
6273         * config/sparc/sparc-protos.h: Update.
6275 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
6277         PR optimization/6086
6278         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
6279         of SUBREG of volatile MEM or because the MEM was mode dependent,
6280         return CLOBBER instead of unmodified SUBREG.
6282 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
6284         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
6285         when not optimizing.
6287         * toplev.c (rest_of_compilation): Cann mark_constant_function
6288         only when optimizing.
6290         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
6291         are NULL.
6293         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
6294         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
6295         (try_optimize_cfg): clear all AUX fields.
6297         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
6298         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
6299         (ix86_address_cost): Be prepared for SUBREGed registers.
6300         (legitimate_address_p): Accept SUBREGed registers.
6302 2002-03-29  Richard Henderson  <rth@redhat.com>
6304         PR target/5672
6305         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
6307 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6309         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
6310         for aggregate and TFmode types.
6312 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
6314         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
6316 2002-03-29  Richard Henderson  <rth@redhat.com>
6318         PR target/5886
6319         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
6320         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
6322 2002-03-29  Richard Henderson  <rth@redhat.com>
6324         PR target/6041
6325         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
6326         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
6327         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
6328         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
6329         conditional.
6330         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
6332 2002-03-29  Dale Johannesen <dalej@apple.com>
6334         * loop.c (combine_movables): Do allow combination of pseudos.
6336 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
6338         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
6339         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
6340         No functional change except ...
6341         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
6342         * doc/install.texi (*-*-freebsd*): Document port configuration.
6344 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
6346         * Makefile.in (convert.o, calls.o, expmed.o): Update.
6347         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
6348         Use new hooks.
6349         * builtin-types.def (BT_PTRMODE): Update.
6350         * c-common.c (type_for_size): Rename c_common_type_for_size.
6351         (type_for_mode): Similarly.
6352         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
6353         Use new hook.
6354         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
6355         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
6356         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
6357         Redefine.
6358         * c-typeck.c (common_type, comptypes, default_conversion):
6359         Use new hooks.
6360         * calls.c: Include langhooks.h.
6361         (emit_library_call_value_1): Use new hooks.  Avoid redundant
6362         calls.
6363         * convert.c: Include langhooks.h
6364         (convert_to_pointer, convert_to_integer): Use new hooks.
6365         * except.c (init_eh): Similarly.
6366         * expmed.c: Include langhooks.h.
6367         (expand_mult_add): Use new hooks.
6368         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
6369         try_casesi): Similarly.
6370         * fold-const.c (optimize_bit_field_compare, make_range,
6371         decode_field_reference, fold_truthop, fold): Similarly.
6372         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
6373         put_var_into_stack): Similarly.
6374         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
6375         LANG_HOOKS_TYPE_FOR_SIZE): New.
6376         (LANG_HOOKS_TYPES_INITIALIZER): Update.
6377         * langhooks.h (lang_hooks_for_types): New hooks.
6378         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
6379         * tree.c (get_unwidened, get_narrower): Similarly.
6380         * tree.h (type_for_mode, type_for_size): Remove.
6381         * varasm.c (force_const_mem): Use new hooks.
6382         * utils2.c (nonbinary_modular_operation): Update.
6383 objc:
6384         * objc-act.c (handle_impent): Update.
6385         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
6386         Redefine.
6388 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
6390         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
6391         * config/ia64/ia64.c (basereg_operand): New.
6392         * config/ia64/ia64-protos.h (basereg_operand): Declare.
6393         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
6395 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
6397         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
6398         unwind information when frame_pointer_needed.
6399         (mmix_assemble_integer): Tweak wording in comment.
6401 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
6403         * Makefile.in (except.o): Update.
6404         * except.c: Include langhooks.h.
6405         (init_eh): Use langhook.
6406         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
6407         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
6408         (LANG_HOOKS_INITIALIZER): Update.
6409         * langhooks.h (lang_hooks_for_types): New.
6410         (struct lang_hooks): Add it.
6411         * tree.c (make_lang_type_fn, make_lang_type): Remove.
6412         * tree.h (make_lang_type_fn, make_lang_type): Remove.
6413 config:
6414         * alpha/alpha.c: Include langhooks.h.
6415         (alpha_build_va_list): Use langhook.
6416         * d30v/d30v.c: Include langhooks.h.
6417         (d30v_build_va_list): Use langhook.
6418         * i386/i386.c: Include langhooks.h.
6419         (ix86_build_va_list): Use langhook.
6420         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
6421         * s390/s390.c: Include langhooks.h.
6422         (s390_build_va_list): Use langhook.
6423         * stormy16/stormy16.c: Include langhooks.h.
6424         (stormy16_build_va_list): Use langhook.
6426 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
6428         PR c++/5964
6429         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
6430         attributes.
6431         (length): Compute variable length for branches/calls/jumps here.
6432         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
6433         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
6434         define branch_type attribute.
6435         (divsi3_sp32): Maximum length is 6 not 7.
6436         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
6437         call_address_untyped_struct_value_sp32,
6438         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
6439         * config/sparc/sparc.c (empty_delay_slot): New function.
6440         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
6441         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
6443 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
6445         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
6446         nonzero_bits if not needed.
6447         (nonzero_bits) [XOR]: Likewise.
6448         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
6449         reg_last_set_mode and mode are both MODE_INT, but not equal.
6450         (record_value_for_reg): Compute reg_last_set_nonzero_bits
6451         in nonzero_bits_mode for MODE_INT modes.
6453 2002-03-28  Richard Henderson  <rth@redhat.com>
6455         PR target/5715
6456         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
6457         to GAS.  Correct drift between alternatives.
6459 2002-03-28  Richard Henderson  <rth@redhat.com>
6461         PR target/6087
6462         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
6464 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
6466         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
6467         emulation to the linker.
6469 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
6471         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
6472         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
6474 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
6476         * combine.c (simplify_and_const_int): Make sure to apply mask
6477         when force_to_mode returns a constant integer.  PR3311.
6479 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6481         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
6483 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6485         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
6486         and Objective-C Dialect Options.
6488 2002-03-28  Richard Henderson  <rth@redhat.com>
6490         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
6491         comparison should be done vs !=0 not >0 return code.  Tidy cases.
6493 2002-03-28  Richard Henderson  <rth@redhat.com>
6495         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
6496         on to c_expand_body.
6497         * c-tree.h (finish_function): Update decl.
6498         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
6500 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
6502         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
6504 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
6506         * rtlanal.c: Include flags.h
6507         (may_trap_p): Do not mark FP operations if trapping
6508         if !flag_trapping_math
6509         * Makefile.in (rtlanal.o): Add dependency on flag.h
6510         * ifcvt.c (noce_operand_ok): Avoid the lameness.
6512 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
6514         * mips.md: Use dconst1, not 1.0, as first argument of
6515         REAL_VALUE_LDEXP.  Don't use union real_extract.
6517 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
6519         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
6520         rather than $target.  Heed program_prefix and
6521         program_transform_name.  Search for gas in cross-compiler case too.
6522         "test -x" rather than "test -f".
6523         (gcc_cv_ld): Likewise.
6524         (gcc_cv_nm): Heed program_prefix and program_transform_name.
6525         (gcc_cv_objdump): Likewise.
6526         * configure: Regenerate.
6528 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6530         * Makefile.in (attribs.o): Update.
6531         * attribs.c: Include langhooks.h.
6532         (decl_attributes): Use langhook.
6533         * c-decl.c (insert_default_attributes): Rename.
6534         * c-tree.h (c_insert_default_attributes): New.
6535         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
6536         (LANG_HOOKS_INITIALIZER): Update.
6537         * langhooks.h (struct lang_hooks): New hook.
6538         * tree.h (insert_default_attributes): Remove.
6539 objc:
6540         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
6542 2002-03-27  Andreas Schwab  <schwab@suse.de>
6544         * config/i386/i386.c (classify_argument): Also check for
6545         QUAL_UNION_TYPE.
6547 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6549         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
6550         any more.
6552 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6554         * i960.md (ret): Set PC.
6555         (nonlocal_goto): Fix expander.
6556         * builtins.c (epxand_builin_longjmp): Check that we've emitted
6557         some jump or call.
6559 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
6561         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
6562         of libcall regions.
6564 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6566         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
6567         assigning to BLOCK_FOR_INSN directly.
6569 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
6571         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
6573 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6575         * c-common.c (c_expand_expr): Fix prototype.
6576         * c-common.h (c_expand_expr): Always declare, update.
6577         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
6578         * c-objc-common.c (c_objc_common_init): No global hook.
6579         * expr.c (expand_expr): Use langhook.
6580         * expr.h (enum expand_modifier): Conditionally declare.
6581         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
6582         (LANG_HOOKS_INITIALIZER): Update.
6583         * langhooks.c (lhd_expand_expr): New.
6584         * langhooks.h (struct lang_hooks): New hook.
6585         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
6586         (lang_independent_init): Don't default hook.
6587 objc:
6588         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
6590 2002-03-27  Richard Henderson  <rth@redhat.com>
6592         PR target/6054
6593         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
6594         TARGET_CONST_GP.  Simplify conditions.
6596 2002-03-27  Richard Henderson  <rth@redhat.com>
6598         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6599         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
6600         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
6602 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
6604         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
6605         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
6606         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
6607         Remove unnecessary masks.
6608         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
6609         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
6610         -mwindows, -mdll switches and their negations.
6612 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6614         * gcc-common.c (lang_mark_false_label_stack): Remove.
6615         * ggc.h (lang_mark_false_label_stack): Similarly.
6617 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
6619         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
6621         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
6622         or __rtems_ is defined.
6624 2002-03-26  Richard Henderson  <rth@redhat.com>
6626         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
6627         if a non-trivial load was emitted.
6628         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
6629         in high+extra+low case.
6631 2002-03-26  Richard Henderson  <rth@redhat.com>
6633         * config.gcc (sparc*-solaris): Use float_format=sparc.
6635 2002-03-26  Richard Henderson  <rth@redhat.com>
6637         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6638         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
6639         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
6640         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
6641         (WINT_TYPE_SIZE): Fix at 32.
6643 2002-03-26  Richard Henderson  <rth@redhat.com>
6645         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
6646         until after eh landing pad generation.
6647         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
6648         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
6650 2002-03-26  Richard Henderson  <rth@redhat.com>
6652         * expr.h (ADD_PARM_SIZE): One more convert for INC.
6654 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
6656         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
6657         and warning switches.
6658         (cc1_options):  Likewise.
6660 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
6662         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
6663         Restore more of the signal context.  Set no_reg_stack_frame.
6664         * config/ia64/unwind-ia64.c (unw_state_record):
6665         Add no_reg_stack_frame, comments.
6666         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
6667         (uw_update_context): Adjust bsp when unwinding from leaf,
6668         but not signal frame.
6670 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
6672         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
6674 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
6676         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
6678 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
6680         PR target/5621
6681         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
6682         "Add a pool_range attribute", which was lost during the ARM/Thumb
6683         merge.
6685 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
6687         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
6688         a register into the MAC16 accumulator.
6690 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
6692         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
6693         (Warning Options): Document -Wswitch-enum.
6694         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
6695         -Wswitch.
6696         (warn_switch_enum): Define variables.
6697         * flags.h (warn_switch_enum): Declare variables.
6698         * stmt.c (expand_end_case_type): When warn_switch_enum /
6699         -Wswitch-enum, perform switch checks.
6700         Fix PR c/5044.
6702 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
6704         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
6705         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
6706         (reload_muladdsi_compare0_scratch): Delete.
6708 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
6710         * doc/install.texi (*-*-freebsd*): Update.
6712 2002-03-26  Richard Henderson  <rth@redhat.com>
6714         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
6715         (SUB_PARM_SIZE): Cast DEC to ssizetype.
6717         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
6718         types from the normal argument frame.
6720         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
6721         variable sized objects by reference.
6722         (sparc_va_arg): Receive them by reference too.
6724 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
6726         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
6727         code to not restoring global registers.
6729 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
6731         * Makefile.in (ggc-common.o): Update.
6732         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
6733         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6734         * c-tree.h (c_mark_tree): New.
6735         * ggc-common.c: Include langhooks.h.
6736         (gcc_mark_trees): Use new langhook.
6737         * ggc-callbacks.c: Delete file.
6738         * ggc.h (lang_mark_tree): Remove.
6739         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
6740         (LANG_HOOKS_INITIALIZER): Update.
6741         * langhooks.h (struct lang_hooks): New hook.
6742 objc:
6743         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6745 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
6747         * doc/cpp.texi: Exclude entire Top node from printed manual.
6748         Move option index after directive index.  Insert page breaks
6749         before GFDL and concept index.  Index environment variables
6750         with command line options.
6751         * doc/cppenv.texi: Use @vtable for environment variable list.
6752         Add paragraph explaining semantics of empty elements in path
6753         variables.  Exclude a cross-reference to Fishkill from the
6754         manpage.  Remove an unnecessary cross-reference of the entry
6755         right above the referer.  Don't use @anchor in text that goes
6756         into manpage.
6757         * doc/cppopts.texi: Cross-reference the environment variables
6758         section, not the specific environment variable, for consistency.
6760 2002-03-25  Richard Henderson  <rth@redhat.com>
6762         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
6763         anywhere in the block.  Don't refer to insns that have been
6764         removed from the chain.  Iterate backward through the new insns.
6765         Don't refer to edges that have been removed.
6767 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
6769         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
6770         test for overflow of constant.
6772 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
6774         PR target/2623
6775         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
6776         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
6777         these patterns on arm_archv4.
6779 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
6781         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
6782         int".
6784 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
6786         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
6787         float_handled, float_handler, float_signal, set_float_handler,
6788         and do_float_handler.  Set handler for SIGFPE to crash_signal.
6789         * toplev.h: Don't prototype do_float_handler.
6791         * c-lex.c: Fold parse_float into lex_number.  Make warning
6792         about portability of hex float constants more informative, and
6793         don't issue it on top of a syntax error.
6794         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
6795         their callers.
6796         * real.h: Define REAL_VALUE_ABS here...
6797         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
6798         simplify_unary_real, simplify_binary_real, and
6799         simplify_binary_is2orm1 into their callers.
6800         * tree.c: Fold build_real_from_int_cst_1 into caller.
6802         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
6804         * tsystem.h: Include float.h here...
6805         * libgcc2.c: ... not here.
6807 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
6809         Fixes for: PR bootstrap/3591, target/5676
6810         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
6811         defined.  Do not disable exceptions or rtti.
6812         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
6813         mcore.h.  Disable exceptions and rtti, since they are not
6814         supported by EPOC.
6816 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
6818         * c-decl.c (maybe_build_cleanup): Remove.
6819         * expr.c (expand_expr): Use langhook.
6820         * langhooks-def.h (lhd_return_null_tree,
6821         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
6822         (LANGHOOKS_INITIALIZER): Update.
6823         * langhooks.c (lhd_return_null_tree): New.
6824         * langhooks.h (struct lang_hooks): New hook.
6825         * tree-inline.c (initialize_inlined_parameters): Use langhook.
6826         * tree.h (maybe_build_cleanup): Remove.
6828 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
6830         * regrename.c (build_def_use): Move recog_memoized
6831         before extract_insn.
6833 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
6835         PR target/6043
6836         * expr.c (emit_group_store): Handle storing into CONCAT.
6838 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
6840         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
6841         corresponding MATCH_DUP.
6843 2002-03-24  Richard Henderson  <rth@redhat.com>
6845         * unroll.c (unroll_loop): Zero label_map.
6847         * gcse.c: Include except.h.
6848         * Makefile.in (gcse.o): Update.
6850 2002-03-24  Richard Henderson  <rth@redhat.com>
6852         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
6853         Do resolve_unique_section before shared data clause.
6855 2002-03-24  Richard Henderson  <rth@redhat.com>
6857         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
6859 2002-03-24  Richard Henderson  <rth@redhat.com>
6861         * recog.c (peephole2_optimize): Split blocks when EH insns are
6862         generated in the middle of a block.  Do global life update if
6863         zapped EH edges.
6865 2002-03-24  Richard Henderson  <rth@redhat.com>
6867         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
6869 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6871         preprocessor/3951
6872         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
6873         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
6874         (init_dependency_output): Don't make no_output decision here.
6876 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
6878         * stmt.c (check_for_full_enumeration_handling): Remove tests of
6879         warn_switch.  Update description.
6880         (expand_end_case_type): Call check_for_full_enumeration_handling
6881         when warn_switch.
6883 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6885         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
6886         (m68hc11_split_move): Call it to see if the source and destination
6887         operands use the same direction auto inc/dec mode, otherwise make the
6888         source an offsetable memory operand and generate an add.
6890 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6892         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
6893         register for operand 2.
6894         ("*subsi3_zero_extendqi"): Likewise.
6895         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
6896         bits so that it is compatible with a pop.
6897         ("*andhi3_gen"): Likewise.
6898         ("xorhi3"): Likewise.
6900 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6902         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
6903         -pedantic here...
6904         (cpp_post_options): ... not here.
6906 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6907             Aldy Hernandez  <aldyh@redhat.com>
6909         Removal of separate preprocessor cpp0.
6911         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
6912         cpp0, install-common): Update.
6913         * c-common.c (flag_preprocess_only): New.
6914         (c_common_init): Preprocess for -E.
6915         * c-common.h (flag_preprocess_only): New.
6916         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
6917         * c-objc-common.c (c_init_decl_processing): Exit quickly
6918         for NULL return from c_common_init.
6919         * cpplib.h (cpp_preprocess_file): New.
6920         * cppmain.c (main, general_init, pfile, progname): Remove.
6921         (do_preprocessing): Rename cpp_preprocess_file, don't call
6922         cpp_finish.  Don't close stdout here.
6923         (setup_callbacks): Update prototype.
6924         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
6925         Update.
6926         * tradcpp.c (main): Ignore -quiet.
6927 objc:
6928         * lang-specs.h (default_compilers): Preprocess with cc1obj.
6930 2002-03-24  Richard Henderson  <rth@redhat.com>
6932         PR optimization/5742
6933         * machmode.def: Add inner mode field to complex modes.
6934         * config/mips/mips.c (mips_function_value): Always define.  Add
6935         new argument to handle libcalls.
6936         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
6937         (FUNCTION_VALUE): Likewise.
6938         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
6939         * config/mips/mips-protos.h: Update.
6941 2002-03-23  Richard Henderson  <rth@redhat.com>
6943         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
6944         * config/sparc/sparc-protos.h: Update.
6945         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
6947 2002-03-23  Richard Henderson  <rth@redhat.com>
6949         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
6950         _start or _init begins the text segment.
6952 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
6954         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
6955         not HOST_WIDEST_INT.
6956         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
6958 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
6960         PR java/5489
6961         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
6962         operand argument to output_return_instruction.
6963         * arm.c (arm_print_operand, case 'd'): If the operand is
6964         const_true_rtx then just return.
6965         (arm_print_operand, case 'D'): If the operand is const_true_rtx
6966         then abort.
6968 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
6970         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
6971         (Warning Options): Document -Wswitch-default.
6972         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
6973         -Wswitch.
6974         (warn_switch_default): Define variable.
6975         (warn_switch): Update comment.
6976         * flags.h (warn_switch_default): Declare variable.
6977         (warn_switch): Update comment.
6978         * stmt.c (expand_end_case): Check for and, when
6979         warn_switch_no_default, warn of a missing default case.
6981 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
6983         * real.h (N): Special case 128 bit doubles.
6985         * combine.c (simplify_comparison): When widening modes, ignore
6986         sign extension on CONST_INTs.
6988 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
6990         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
6991         passed to adjust_address.  Fix comment formatting.
6994 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
6996         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
6997         Always make REAL_VALUE_TYPE a struct containing an array of
6998         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
6999         big it is.  Don't declare or use union real_extract.
7001         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
7002         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
7003         (print_operand), config/arm/arm.c (output_move_double),
7004         config/arm/arm.md (consttable_4, consttable_8),
7005         config/romp/romp.c (output_fpops), config/s390/s390.h
7006         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
7007         (xtensa_output_literal): Don't use union real_extract.
7009         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
7010         (sfmode_constant_to_ulong), config/ns32k/merlin.h
7011         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
7012         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
7013         (PRINT_OPERAND): Don't use local version of union
7014         real_extract.
7016         * config/convex/convex.c (check_float_value), config/vax/vax.c
7017         (vax_float_literal), config/m88k/m88k.md (divdf3),
7018         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
7019         config/pdp11/pdp11.c (output_move_quad): Don't do host
7020         arithmetic on target floating point quantities.
7022         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
7023         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
7025         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
7026         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
7028         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
7029         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
7030         INFINITY.
7031         * print-rtl.c (print_rtx): Disable code which needs
7032         floating-point emulator.
7033         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
7034         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
7035         depending on HOST_FLOAT_FORMAT to be defined properly.
7037         * config/1750a/1750a.c (get_double, float_label): Delete.
7038         (print_operand): Delete huge commented-out chunk.  Use
7039         REAL_VALUE_TO_DECIMAL.
7040         * config/1750a/1750a-protos.h: Delete prototypes of deleted
7041         functions.
7042         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
7043         IEEE_FLOAT_FORMAT.
7044         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
7045         Use REAL_VALUE_TO_DECIMAL as ELF version does.
7046         * config/m88k/m88k.c (real_power_of_2_operand,
7047         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
7048         real_extract out of the union; run the input through
7049         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
7050         from that into the union.
7051         * config/pdp11/pdp11.c (output_move_double): Rearrange
7052         parentheses to make automatic indenter happy.
7054         * doc/tm.texi (Cross-compilation): Rename node to "Floating
7055         Point" and rewrite to describe current situation.  Also adjust
7056         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
7057         match code.
7058         * doc/rtl.texi: Adjust cross reference.
7060 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
7062         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
7063         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
7064         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
7065         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
7066         prevent use of sp as a reload register.
7067         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
7068         non_acc_reg_operand.
7069         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
7070         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
7071         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
7072         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
7074 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
7076         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
7077         * cpplex.c (unterminated): Delete.
7078         (parse_string): No string literal may extend over multiple
7079         lines.  Suppress the error when preprocessing assembly.
7080         * cppmain.c (scan_translation_unit): Strings are single-line.
7082         * doc/cpp.texi: Update to match.
7084 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
7086         PR optimization/5854
7087         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
7088         Shut up warnings.
7089         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
7090         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
7091         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
7092         const0 if scratch register was not allocated.
7093         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
7094         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
7095         with GEN_INT (...).
7096         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
7097         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
7098         with GEN_INT (...) everywhere.  Remove constraints in define_split
7099         patterns.
7100         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
7101         require scratch register for setting 0 into regs/non-pushable memory.
7103 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
7105         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
7106         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
7108 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
7110         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
7111         * cppinit.c (cpp_create_reader):  On by default.
7112         (cpp_handle_option):  Handle -W[no-]endif-labels.
7113         (cpp_post_options):  Also enable if -pedantic.
7114         * cpplib.c (do_else):  Use it.
7115         (do_endif):  Likewise.
7116         * doc/cppopts.texi:  Document new option.
7117         * doc/invoke.texi:  Document new option.
7119 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
7121         * config/i386/i386.c, config/i386/i386.md: Change all occurences
7122         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
7124 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
7126         * flow.c (calculate_global_regs_live): Clear aux fields of
7127         ENTRY and EXIT.
7129 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
7131         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
7132         REG or MEM subregs, pass rtx * instead of rtx to it.
7133         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
7134         rtx * instead of rtx to alter_subreg.
7135         * config/m32r/m32r.c (gen_split_move_double): Likewise.
7136         * config/pj/pj.c (pj_output_rval): Likewise.
7138 2002-03-22  Richard Henderson  <rth@redhat.com>
7140         PR target/3177
7141         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
7142         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
7143         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
7144         (ia64_expand_prologue): Look at int_regs, not words, for number
7145         of incomming int regs.
7147 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
7149         * expr.c (expand_expr): A RESULT_DECL is part of a call.
7151 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
7153         * toplev.c (flag_loop_optimize, flag_crossjumping):
7154         New static variables.
7155         (rest_of_compilation): Conditionalize crossjumping and
7156         loop optimizer.
7157         (parse_options_and_default_flags): Default loop_optimize and
7158         crossjumping.
7159         (lang_independent_options): Add -fcrossjumping and -floop-optimize
7160         * invoke.texi (crossjumping, loop-optimize): Document.
7162 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
7164         * real.c (eiisneg): Move outside #ifdef NANS.
7166 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
7168         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
7169         frequencies match; avoid match on different loop depths.
7170         (try_crossjump_to_bb): Kill tests that no longer brings time
7171         savings.
7172         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
7173         updating code.
7174         (split_edge): Likewise.
7176         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
7177         variable.
7179         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
7180         * cfgrtl.c: Include insn-config.h
7181         (split_block) Dirtify block in presence of conditional execution
7183 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
7185         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
7186         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
7187         (function_arg): Constify CUMULATIVE_ARGS.
7188         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
7189         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
7190         (UNITS_PER_DOUBLE): New macro.
7191         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
7192         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
7193         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
7194         fp_regs and stack_words.
7195         (EABI_FLOAT_VARARGS_P): New macro.
7196         * config/mips/mips.c (struct mips_arg_info): New.
7197         (mips_arg_info): New function.
7198         (function_arg_advance): Use it.  Add adjustment instructions here
7199         rather than in function_arg.
7200         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
7201         for VOIDmode at the beginning of the function.
7202         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
7203         (function_arg_pass_by_reference): Likewise.
7204         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
7205         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
7206         (mips_va_start): Likewise.  Use the new stack_words field of
7207         CUMULATIVE_ARGS to set up overflow area.  Reformat.
7208         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
7209         doubles and other types, aligning the overflow pointer for non-doubles
7210         too.  Remove some code duplication.  Replace hard-coded constants.
7212 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
7214         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
7215         (CLASS_UNITS): Undefine.
7216         (CLASS_MAX_NREGS): Use FP_INC.
7217         * config/mips/mips.c (compute_frame_size): Likewise.
7218         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
7220 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
7222         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
7223         prototype, and handle lexing numbers and identifiers.
7224         (parse_identifier): Update to new form of parse_slow.
7225         (parse_number): Fast path only, use parse_slow otherwise.
7226         (_cpp_lex_direct): Update calls to parse_number.
7228 2002-03-21  DJ Delorie  <dj@redhat.com>
7230         * bb-reorder.c (make_reorder_chain_1): Protect against
7231         when redundant edges are omitted.
7232         * predict.c (dump_prediction): Likewise.
7234 2002-03-21  Richard Henderson  <rth@redhat.com>
7236         PR target/5996
7237         * fixinc/inclhack.def (solaris_stdio_tag): New.
7238         * fixinc/fixincl.x: Regenerate.
7240 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
7242         PR c/5597
7243         * c-typeck.c (process_init_element): Flag non-static
7244         initialization of a flexible array member as illegal.
7246 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
7248         * config/rs6000/t-linux64: New.
7249         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
7250         t-ppccomm.  Use t-rs6000 and t-linux64.
7251         (powerpc64-*-gnu* <tmake_file>): Likewise.
7252         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
7253         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
7254         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
7256 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
7258         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
7259         flag_really_no_inline instead of optimize == 0.
7261         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
7263         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
7265         * flags.h (flag_really_no_inline): New.
7267         * c-common.c (c_common_post_options): Initialize
7268         flag_really_no_inline.
7270         * toplev.c (flag_really_no_inline): New.
7272 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
7274         * config/avr/avr.md (length): Fix length computation for
7275         conditional branches.
7277 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7279         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
7280         sdbout.o, profile.o): Update.
7281         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
7282         langhook.
7283         * c-common.h (gettags): Move here from tree.h.
7284         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
7285         insert_block, getdecls, kept_level_p, global_bindings_p): New.
7286         * dbxout.c (dbxout_init): Use getdecls langhook.
7287         * expr.c (expand_expr): Use insert_block langhook.
7288         * fold-const.c: Include langhooks.h.
7289         (fold_range_test, fold_binary_op_with_conditional_arg,
7290         fold): Use global_bindings_p langhook.
7291         * integrate.c (expand_inline_function): Use insert_block langhook.
7292         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
7293         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
7294         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
7295         LANG_HOOKS_GETDECLS): New.
7296         (LANG_HOOKS_INITIALIZER): Update.
7297         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
7298         langhook.
7299         * langhooks.h (struct lang_hooks_for_decls): New.
7300         (struct lang_hooks): Update.
7301         * profile.c: Include langhooks.h.
7302         (output_func_start_profiler): Use new langhooks.
7303         * sdbout.c: Include langhooks.h.
7304         (sdbout_init, sdbout_finish): Use getdecls langhook.
7305         * stmt.c: Include langhooks.h.
7306         (expand_fixup, fixup_gotos): Use new langhooks.
7307         * stor-layout.c: Include langhooks.h.
7308         (variable_size): Use global_bindings_p langhook.
7309         * toplev.c (compile_file): Use getdecls langhook.
7310         * tree-inline.c (remap_block): Use insert_block langhook.
7311         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
7312         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
7314 2002-03-21  Richard Henderson  <rth@redhat.com>
7316         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
7317         constants in .data when -fpic.
7319 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7321         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
7322         where appropriate.
7324 2002-03-21  Tom Tromey  <tromey@redhat.com>
7326         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
7328 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7330         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
7332         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
7334 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
7335             Richard Henderson  <rth@redhat.com>
7337         PR c/5354
7338         * c-common.c (c_expand_expr): Preserve result of a statement
7339         expression if needed.
7341 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
7343         PR bootstrap/4195
7344         * genrecog.c (maybe_both_true_mode): Remove.
7345         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
7346         * machmode.def (Pmode): Likewise.
7348 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
7350         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
7351         (nonlocal_mentioned_p_1): New function.
7352         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
7353         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
7354         (mark_constant_function): Recognize pure functions.
7355         * rtl.h (global_reg_mentioned_p): New prototype.
7356         * rtlanal.c (global_reg_mentioned_p,
7357         global_reg_mentioned_p_1): New function.
7359 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7361         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
7362         UNIX assert.h.
7363         * fixinc/fixincl.x: Regenerate.
7365 2002-03-20  Jason Merrill  <jason@redhat.com>
7367         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
7369 2002-03-20  Michael Meissner  <meissner@redhat.com>
7371         * doc/invoke.texi (Optimize Options): Document that -O2 sets
7372         -fstrict-aliasing.
7374 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
7376         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
7377         ".literal_position" directive before the constant pool.
7379 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7381         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
7382         Add Craig Rodrigues.
7383         Add Brad Lucier to testers.
7385 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
7387         PR target/4792
7388         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
7389         to if_then_else.
7390         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
7391         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
7392         instead of insn_extract.
7394 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
7396         PR bootstrap/4192
7397         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
7399         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
7400         stmt if some case has been output.
7402 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
7404         PR c/5972
7405         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
7406         movsfcc_1, movdfcc_1): Add %O2.
7407         * config/i386/i386.c (print_operand): Handle %ON.
7408         Print . before float condition codes in Sun as cmov syntax.
7409         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
7410         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
7411         no longer true.
7413 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
7415         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
7416         return instruction if PC was popped.
7418 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
7420         * config/xtensa/xtensa.md: Remove unused type attributes.
7421         (adddi_carry, subddi_carry): Change type attribute to "multi".
7423 2002-03-19  Dale Johannesen  <dalej@apple.com>
7425         PR optimization/5999, middle-end/5731
7426         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
7427         multiplications by reciprocals.
7429 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
7431         * Makefile.in: Update.
7432         * c-common.c: Include langhooks.h.
7433         (inline_forbidden_p): Use new hook.
7434         * diagnostic.c: Include langhooks.h.
7435         (format_with_decl, announce_function,
7436         default_print_error_function): Use new hook.
7437         * dwarf2out.c (dwarf2_name): Use new hook.
7438         * function.c: Include langhooks.h.
7439         (init_function_start): Use new hook.
7440         * langhooks-def.h (lhd_decl_printable_name): New.
7441         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
7442         (LANGHOOKS_INITIALIZER): Update.
7443         * langhooks.c (lhd_decl_printable_name): New.
7444         * langhooks.h (struct lang_hooks): New hook.
7445         * toplev.c (decl_name, decl_printable_name): Remove.
7446         (open_dump_file): Use new hook.
7447         (process_options): Remove old hook.
7448         * tree.h (decl_printable_name): Remove.
7449 objc:
7450         * objc-act.c (objc_init): Remove old hook.
7451         (objc_printable_name): Export.
7452         * objc-act.h (objc_printable_name): New.
7453         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
7455 2002-03-19  Jim Blandy  <jimb@redhat.com>
7457         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
7458         the start_source_file debug hook, not the current line number.
7460 2002-03-19  Richard Henderson  <rth@redhat.com>
7462         * flow.c (EH_USES): Provide default.
7463         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
7464         * doc/tm.texi (EH_USES): New.
7466         * config/ia64/ia64.c (ia64_eh_uses): New.
7467         * config/ia64/ia64-protos.h: Update.
7468         * config/ia64/ia64.h (EH_USES): New.
7470 2002-03-19  Richard Henderson  <rth@redhat.com>
7472         * varasm.c (output_constant_def): Fix stupid typo.
7474 2002-03-19  Richard Henderson  <rth@redhat.com>
7476         PR 5879
7477         * except.c (current_function_has_exception_handlers): New.
7478         * except.h: Declare it.
7479         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
7480         Combine tests that disable all sibcalls for the function.
7482 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
7484         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
7485         for INTEGER_CST.
7487 2002-03-19  Richard Henderson  <rth@redhat.com>
7489         PR 5977, 5991
7490         * config/ia64/ia64.c: Revert 2002-03-01 patch.
7491         * config/ia64/ia64.h (INIT_EXPANDERS): New.
7493 2002-03-19  Jim Blandy  <jimb@redhat.com>
7495         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
7496         name, even if the replacement list contains no tokens, as required
7497         by Dwarf.
7499 2002-03-19  Jason Merrill  <jason@redhat.com>
7501         * varasm.c (globalize_decl): Get the name from the RTL, not
7502         DECL_ASSEMBLER_NAME.
7504         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
7506 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
7508         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
7509         subdi_carry): Define.
7511 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
7513         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
7514         about -fpic/-fPIC if extra_warnings set.
7516 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
7518         * expr.c (expand_expr): Sign-extend CONST_INT generated from
7519         TREE_STRING_POINTER.
7520         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
7522 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7524         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
7525         in favor of SP if FRAME_POINTER_REQUIRED is false.
7527 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
7529         * emit-rtl.c (gen_int_mode): New function.
7530         * rtl.h: Prototype for it.
7531         * combine.c (make_extraction, simplify_comparison), expmed.c
7532         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
7533         (convert_modes, store_field), optabs.c (expand_fix),
7534         simplify-rtx.c (neg_const_int, simplify_unary_real),
7536         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
7537         Use it instead of GEN_INT (trunc_int_for_mode (...)).
7539 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
7541         PR c/5656
7542         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
7543         convert_parm_for_inlining.
7544         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
7545         Define.
7546         * langhooks-def.h: Likewise.
7547         * objc/objc-lang.c: Likewise.
7548         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
7549         function.
7550         * tree-inline.c (initialize_inlined_parameters):
7551         Call convert_parm_for_inlining lang hook if needed.
7552         * c-typeck.c (c_convert_parm_for_inlining): New function.
7553         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
7555 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
7557         * calls.c (precompute_arguments): Do not assume that temporaries
7558         can be destroyed after expanding the argument.
7559         (expand_call): Likewise.
7561 2002-03-15  Eric Christopher  <echristo@redhat.com>
7563         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
7564         Fix register preference on last change.
7565         * config/mips/mips.c (mips_return_in_memory): New function.
7566         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
7567         * config/mips/mips-protos.h: Declare.
7568         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
7569         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
7571 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
7573         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
7574         a register too.
7575         (anddi3, iorsi3): Likewise.
7577         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
7578         use %gprel for symbols that are going to be placed in linkonce
7579         sections.
7581         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
7582         RETURN_ADDRESS_POINTER_REGNUM to $ra.
7583         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
7584         not needed.  Disregard leaf_function_p().
7585         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
7586         mips16 frame pointer.
7587         * config/mips/mips.md (store ra): Only to small SP offsets.
7588         2001-08-22  Graham Stott  <grahams@redhat.com>
7589         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
7590         return a REG rtx for the return address register.
7592 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
7594         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
7595         constant-pool addresses as "mode-dependent".
7596         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
7598 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
7600         PR target/5740
7601         * expr.c (emit_group_load): Use extract_bit_field if
7602         needed for CONCAT arguments.
7604 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
7606         PR target/4863
7607         * arm.md (tablejump): Make this a define_expand.  For PIC add the
7608         offset to the base of the table.
7609         (thumb_tablejump): Matcher for Thumb tablejump insn.
7610         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
7611         as the difference of two labels.
7612         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7613         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
7614         tables in the code.
7615         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
7616         * arm.c (get_jump_table_size): If the table is not in the text
7617         section, return zero.
7619 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
7621         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
7622         of gen_rtx_SUBREG.
7623         (arm_reload_out_hi): Use gen_lowpart instead of
7624         gen_rtx_SUBREG to access QImode components.
7625         * config/arm/arm.md: Disable zero_extend split for QImode
7626         subregs in BIG_ENDIAN mode.
7627         (storehi_bigend): Match use of least significant byte.
7628         (storeinthi): Remove extraneous SUBREG.
7629         Add missing construction of operands[2].
7630         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
7631         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
7632         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
7634 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
7636         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
7637         any_operand.
7639 2002-03-17  Richard Henderson  <rth@redhat.com>
7641         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
7642         explicitly.
7644 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
7646         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
7647         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
7649 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7651         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
7653         * predict.c (estimate_bb_frequencies): Delete unused variables.
7655 2002-03-17  Richard Henderson  <rth@redhat.com>
7657         * config/ia64/ia64.c (ia64_attribute_table): Move before
7658         targetm definition.  Make static.
7660 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
7662         * c-common.h (yyparse, c_common_parse_file): New.
7663         * c-lang.c: Include c-common.h.
7664         (LANG_HOOKS_PARSE_FILE): Redefine.
7665         * c-lex.c: Include c-common.h.
7666         (yyparse): Rename c_common_parse_file.  Call yyparse.
7667         * c-parse.in (yyparse): Remove macro.
7668         * c-tree.h (yyparse_1): Remove.
7669         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
7670         (LANG_HOOKS_INITIALIZER): Update.
7671         * langhooks.h (struct lang_hoooks): New hook parse_file.
7672         * toplev.c (compile_file): Use parse_file hook.
7673         * tree.h (yyparse): Remove.
7674         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
7676 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
7678         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
7679         float_truncate, not fix.
7680         ("*truncdfsf2_real"): Ditto.
7681         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
7683         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
7685 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
7687         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
7688         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
7689         where appropriate.  Make the second reference to
7690         leaf_function_p a function call, as intended.  Reindented.
7692         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
7693         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
7695         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
7696         add register to non-constant into sp.
7698         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
7699         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
7700         (mips16_gp_pseudo_rtx): Lose.
7701         (INIT_EXPANDERS): Deleted.
7702         * config/mips/mips.c (mips_init_machine_status): New.
7703         (mips_free_machine_status): New.
7704         (mips_mark_machine_status): New.
7705         (override_options): Set them.
7706         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
7707         (struct machine_function): ... new.  Replaced all references.
7708         (mips_add_gc_roots): Don't mark them.
7709         (embedded_pic_fnaddr_reg): New, extracted from...
7710         (embedded_pic_offset): ... here.
7711         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
7712         (movsi): Likewise.
7714 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7716         * cppinit.c: Revert -MD removal.
7718 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7720         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
7721         soft registers by default for 68HC12.
7722         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
7723         when compiling with -fomit-frame-pointer.
7724         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
7725         (expand_epilogue): Likewise.
7726         (m68hc11_gen_rotate): Use exg when rotating by 8.
7728 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7730         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
7731         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
7732         (splits): Remove unused add splits.
7733         ("*addhi3_68hc12"): Tune constraints.
7734         ("addhi_sp"): Try to use X instead of Y in all cases and if the
7735         constant fits in 8-bits and D is dead use abx/aby instructions.
7736         ("*addhi3"): Remove extern declaration of ix_reg.
7737         ("*subsi3"): Optimize and provide new split.
7738         ("subhi3"): Cleanup.
7739         ("*subhi3_sp"): Avoid saving X if we know it is dead.
7740         (arith splits): For 68hc12 save the address register on the stack
7741         and do the arithmetic operation with a pop.
7743 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7745         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
7746         allocating QImode in address registers.
7747         ("*movqi_m68hc11"): Likewise.
7749 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
7751         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
7753 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7755         * cppinit.c (print_help): Display -MD and -MMD.
7756         Don't display usage string.  Update assertion syntax and
7757         typo.
7758         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
7759         (cpp_handle_option): Update.
7761 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
7763         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
7764         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
7765         and define it so that regardless of target CPU size,
7766         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
7767         of "int" rather than "long."
7769 2002-03-15  Richard Henderson  <rth@redhat.com>
7771         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
7772         size as a tree.
7774 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7776         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
7777         ("tstqi" split): Avoid using memory for tstqi on address register.
7778         (splits): Remove constraints.
7779         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
7780         ("cmpdf", "cmpsf"): Remove since not used.
7781         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
7782         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
7784 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7786         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
7787         ("neghi2"): Tighten constraints.
7788         ("one_cmplsi2"): Optimize and simplify split.
7789         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
7791 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7793         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
7794         and split of AND operation to clear the upper bits.
7795         ("*logicalsi3_zextqi"): Likewise.
7796         ("*logicallhi3_zexthi_ashift8"): Likewise.
7797         ("*logicalsi3_silshr16"): Likewise.
7798         ("logicalsi3_silshl16"): Likewise.
7799         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
7801 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7803         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
7804         (m68hc11_indirect_p): New function.
7805         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
7806         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
7807         TARGET_M6812.
7808         (asm_print_register): Likewise.
7809         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
7810         (m68hc11_indirect_p): Declare.
7811         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
7812         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
7813         (TARGET_SWITCHES): New option -mrelax.
7814         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
7815         destination.
7816         ("iorsi3", "xorsi3"): Likewise.
7817         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
7818         ("*andhi3_mem"): New to handle destination in memory with bclr
7819         and a scratch register.
7820         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
7821         ("*andhi3_const"): New when operand2 is constant.
7822         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
7823         ("*andhi3_gen"): Cleanup of the old "andhi3".
7824         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
7825         ("xorqi3"): Update constraints.
7827 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7829         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
7830         for reg_equiv_memory_loc when the operand is a register that does
7831         not get a hard register (stack location).
7832         (tst_operand): After reload, accept all memory operand.
7833         (symbolic_memory_operand): Fix detection of symbolic references.
7834         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
7835         accept symbols and any constant.
7837 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7839         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
7840         note on the insn that sets the soft frame register.
7841         (must_parenthesize): ix and iy are also reserved names.
7842         (print_operand_address): One more place where parenthesis are required
7843         to avoid confusion with register names.
7844         (m68hc11_gen_movhi): Allow push of stack pointer.
7845         (m68hc11_check_z_replacement): Fix handling of parallel with a
7846         clobber.
7847         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
7848         the replacement register is.
7849         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
7850         and D8_REGS classes.
7851         (MODES_TIEABLE_P): All modes are tieable except QImode.
7853 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7855         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
7856         (___subdi3): Likewise.
7857         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
7858         (__map_data_section): Optimize 68hc11 case.
7860 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7862         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
7863         than a shift to avoid adding a register with itself.
7864         (m68hc11_memory_move_cost): Take into account NO_REGS.
7865         (m68hc11_register_move_cost): Update and use memory move cost
7866         for soft registers.
7867         (m68hc11_address_cost): Make cost of valid offset not 0 so that
7868         it gives more opportunities to cse to optimize.
7869         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
7870         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
7872 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
7874         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
7875         * c-common.def (CLEANUP_STMT): New tree node.
7876         * c-common.h (CLEANUP_DECL): New macro.
7877         (CLEANUP_EXPR): Likewise.
7878         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
7879         * expr.c (expand_expr): Tidy.
7880         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
7881         * tree-inline.c (initialize_inlined_parameters): Clean up
7882         new local variables.
7884 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
7886         PR bootstrap/4128
7887         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
7888         before movrXX only, use reg_overlap_mentioned_p.
7889         Only special case NE if just one insn can be generated.
7891 2002-03-15  Jason Merrill  <jason@redhat.com>
7893         * varasm.c (assemble_variable): Call resolve_unique_section before
7894         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
7895         of error_mark_node.
7897 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
7899         PR target/5170
7900         * arm.md (split pattern for thumb shiftable immediates): Add comment
7901         explaining non-obvious test.
7903 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
7905         PR target/5712
7906         * arm.md (movaddr, movaddr_insn): Delete.
7908 2002-03-15  Jason Merrill  <jason@redhat.com>
7910         * toplev.c (wrapup_global_declarations): Clarify variable handling.
7911         -fkeep-static-consts doesn't apply to comdats.
7913 2002-03-14  Richard Henderson  <rth@redhat.com>
7915         * c-decl.c: Include c-pragma.h.
7916         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
7917         (finish_function): Tidy.
7918         * c-pragma.c: Include c-common.h.
7919         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
7920         (handle_pragma_weak): Use them.
7921         (init_pragma): Register pending_weaks.
7922         * c-pragma.h (maybe_apply_pragma_weak): Declare.
7923         * print-tree.c (print_node): Print DECL_WEAK.
7924         * varasm.c (mark_weak_decls): Remove.
7925         (remove_from_pending_weak_list): Remove.
7926         (add_weak): Remove.
7927         (asm_emit_uninitialised): Call globalize_decl for weak commons.
7928         (weak_decls): Make a tree_list.
7929         (declare_weak): Cons weak_decls directly.
7930         (globalize_decl): Remove weak_decls elements directly.
7931         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
7932         symbols.  Don't pretend to handle aliases.
7933         (init_varasm_once): Update weak_decls registry.
7934         * Makefile.in: Update dependencies.
7936 2002-03-14  Richard Henderson  <rth@redhat.com>
7938         PR target/5312
7939         * config/ia64/ia64.c: Include tm_p.h last.
7940         (gen_nop_type): Remove duplicate definition.
7941         (cycle_end_fill_slots): Set sched_data for second L slot.
7942         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
7943         (nop_cycles_until): Fix typos.
7945 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
7947         PR optimization/5891
7948         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
7950 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
7952         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
7953           descriptors correctly.
7955 2002-03-14  Michael Meissner  <meissner@redhat.com>
7957         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
7958         100, allowing MAX_UNROLLED_INSNS to be overridden.
7960         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
7961         --param.
7963         * unroll.c (params.h): Include.
7964         (MAX_UNROLLED_INSNS): Delete, now in params.h.
7966         * doc/invoke.texi (--param max-unroll-insns): Document.
7968         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
7970 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
7972         * arm.md: Fix warnings about constraints in peepholes and splits.
7974 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
7976         * cpphash.h (struct lexer_state): Remove line_extension member.
7977         * cpplib.c (dequote_string, do_linemarker): New functions.
7978         (linemarker_dir): New data object.
7979         (DIRECTIVE_TABLE): No longer need to interpret #line in
7980         preprocessed source.  Delete obsolete comment about return
7981         values of handlers.
7982         (end_directive, directive_diagnostics, _cpp_handle_directive):
7983         Don't muck with line_extension.
7984         (directive_diagnostics): No need to issue warnings for
7985         linemarkers here.
7986         (_cpp_handle_directive): Issue warnings for linemarkers here,
7987         when appropriate.  Dispatch linemarkers to do_linemarker, not
7988         do_line.
7989         (do_line): Code to handle linemarkers split out to do_linemarker.
7990         Convert escape sequences in filename argument, both places.
7992         * cppmacro.c (quote_string): Rename cpp_quote_string and
7993         export.  All callers changed.
7994         * cpplib.h (cpp_quote_string): Prototype.
7995         * cppmain.c (print_line): Call cpp_quote_string on to_file
7996         before printing it.
7998         * doc/cpp.texi: Document that escapes are now interpreted in
7999         #line and in linemarkers, and that non-printing characters are
8000         converted to octal escapes when linemarkers are generated.
8002 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
8004         * emit-rtl.c (try_split): Use delete_insns.
8005         * recog.c (split_all_insns): Fix terminating condition.
8007 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
8008             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
8010         PR target/5828
8011         * arm.c (arm_output_epilogue): Fix floating-point register save
8012         adjustment when using a frame pointer.
8014 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
8016         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
8017         * config/mips/mips.c (compute_frame_size): Retrofit them here.
8018         (save_restore_insns, mips_expand_epilogue): And here.
8019         (build_mips16_call_stub): And here.
8020         (mips_function_value): Use the new macros to decide whether a single
8021         or complex float can be returned in floating-point registers.  Return
8022         a parallel rtx in the complex case.
8024 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
8026         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
8027         call after liveness analysis.
8029         * recog.c (split_insn): Use delete_insn_and_edges.
8031         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
8032         instructions to have branch prediction notes.
8033         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
8035 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
8037         * configure.in: Don't pass -Wno-long-long to a ADA compiler
8038         that doesn't support it.
8039         * configure: Regenerate.
8041 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
8043         PR target/5626
8044         * config/sparc/sparc.md (normal_branch, inverted_branch,
8045         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
8046         inverted_fp_branch): Adjust calls to output_cbranch.
8047         Set length attribute.
8048         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
8049         output_v9branch.  Set length attribute.
8050         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
8051         predicates.
8052         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
8053         (output_cbranch): Likewise.  Handle far branches.
8054         (output_v9branch): Handle far branches.
8055         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
8056         Adjust prototypes.
8057         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
8058         noov_compare64_op predicates.
8060 2002-03-13  Jason Merrill  <jason@redhat.com>
8062         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
8063         into the function and constify it.
8064         * gthr-dce.h, gthr-solaris.h: Likewise.
8066 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
8068         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
8069         * config/rs6000/rs6000.c (rs6000_va_arg): Use
8070         std_expand_builtin_va_arg if not ABI_V4.
8072 2002-03-13  Jason Merrill  <jason@redhat.com>
8074         * varasm.c (globalize_decl): New fn.
8075         (assemble_start_function): Use it.
8076         (asm_emit_uninitialized): Use it.
8077         (assemble_alias): Use it.
8078         (assemble_variable): Use it.
8080 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
8082         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
8083         2002-03-12 internal visibility change.
8084         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
8085         visibility into SYMBOL_REF_FLAG.
8087 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
8089         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
8090         VOIDmode operand.  Add compile-time optimization for constant results.
8092 2002-03-12  Jason Merrill  <jason@redhat.com>
8094         * c-typeck.c (convert_for_assignment): Don't allow conversions
8095         between pointers and references.  Only allow lvalues to convert to
8096         reference.
8098 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
8100         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
8101         before prologue, to avoid scheduling problems.
8103 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
8105         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
8106         (ELIMINABLE_REGS): Add sfp->sp.
8107         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
8109 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
8111         PR optimization/5892
8112         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
8114 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
8116         * loop.c (basic_induction_var): Don't call convert_modes if mode
8117         classes are different.
8119 2002-03-12  Richard Henderson  <rth@redhat.com>
8121         PR optimization/5901
8122         * function.c (reposition_prologue_and_epilogue_notes): Position
8123         the markers after/before the last/first insn not deleted.
8125 2002-03-12  Richard Henderson  <rth@redhat.com>
8127         PR optimization/5878
8128         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
8129         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
8130         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
8132         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
8133         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
8134         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
8136         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
8137         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
8138         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
8139         also.  Don't set it if not flag_pic.
8140         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
8141         to be INVALID_REGNUM when not used.
8143 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
8145         * expmed.c (store_bit_field): Reset alias set for memory.
8146         (extract_bit_field): Same.
8148 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8150         * c-common.c (c_tree_code_type, c_tree_code_length,
8151         c_tree_code_name, add_c_tree_codes): Delete.
8152         * c-common.h (add_c_tree_codes): Delete.
8153         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
8154         Define.
8155         * c-objc-common.c (c_objc_common_init): Don't call
8156         add_c_tree_codes, instead set lang_unsafe_for_reeval.
8157         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
8158         objc_tree_code_name, add_objc_tree_codes): Delete.
8159         (objc_init): Don't call add_objc_tree_codes.
8160         * objc/objc-lang.c (tree_code_type, tree_code_length,
8161         tree_code_name): Define.
8162         * toplev.c (lang_independent_init): Don't set
8163         tree_code_length[IDENTIFIER_NODE].
8164         * tree.c (tree_code_type, tree_code_length, tree_code_name):
8165         Delete definitions, moved to language front-ends.
8166         * tree.def (IDENTIFIER_NODE): Hardwire the length.
8167         * tree.h (tree_code_type, tree_code_length, tree_code_name):
8168         Const-ify.
8169         (tree_code_length): Change type to unsigned char.
8171 2002-03-12  Richard Henderson  <rth@redhat.com>
8173         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
8174         internal visibility change.
8176 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
8178         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
8179         validize_mem() instead of change_address to avoid clobbering
8180         memory attributes.
8182 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
8184         * c-lex.h (position_after_whitespace): Remove.
8186 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
8188         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
8189         (lex_string): Use unsigned char pointers.
8191 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
8193         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
8194         is not a valid memory_operand.
8196 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
8198         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
8199         * config/xtensa/lib1funcs.asm: Fix copyright to include
8200         special case for libgcc files.
8201         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
8202         (__divsi3): Likewise.
8203         (__umodsi3): Likewise.
8204         (__modsi3): Likewise.
8205         * config/xtensa/lib2funcs.S: Fix copyright to include
8206         special case for libgcc files.
8208 2002-03-12  Tom Rix  <trix@redhat.com>
8210         * collect2.c (resolve_lib_name): Move outside of
8211         OBJECT_FORMAT_COFF ifdef.
8212         (ignore_library): Same.
8214 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
8216         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
8218 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
8220         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
8221         to function_section before writing out the constant pool.
8223 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
8225         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
8226         zero_constant.
8227         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
8229 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
8231         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
8232         (adddi3): Likewise.
8233         (movdf): Likewise.
8234         (movdi): Likewise.
8235         (cmpsi splitter): Likewise.
8236         (modsi3): Fail if <= 0.
8237         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
8238         redundant test when HOST_BITS_PER_WIDE_INT != 32.
8239         (reg_or_sub_cint64_operand): Likewise.
8240         (num_insns_constant_wide): Optimize sign extension.
8241         (rs6000_legitimize_address): Likewise.
8243 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
8245         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8246         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8248 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
8250         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
8251         address calculation.
8253 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
8255         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
8256         scratch register to DImode / TImode.
8257         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
8258         register used does not overlap the target.
8260 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8262         * Makefile.in (debug.o): Depend on debug.h.
8263         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
8264         * debug.c (do_nothing_debug_hooks): Likewise.
8265         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
8266         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
8267         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
8268         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
8269         * dwarfout.c (dwarf_debug_hooks): Likewise.
8270         * integrate.c (output_inline_function): Likewise.
8271         * objc/objc-act.c (synth_module_prologue): Likewise.
8272         * sdbout.c (sdb_debug_hooks): Likewise.
8273         * toplev.c (debug_hooks): Likewise.
8274         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8276 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8278         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
8279         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
8280         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
8281         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
8282         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
8283         * defaults.h (POINTER_SIZE): Define.
8284         * doc/tm.texi (POINTER_SIZE): Document default.
8286 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8288         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
8290 2002-03-11  Richard Henderson  <rth@redhat.com>
8292         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
8293         if rebuild_label_notes_after_reload.
8295 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
8297         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
8298         emit pic register load if "internal" visibility.
8299         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
8300         (cris_expand_builtin_va_arg): Do all computations on trees.
8302 2002-03-11  Richard Henderson  <rth@redhat.com>
8304         * rtlanal.c: Include recog.h.
8305         (keep_with_call_p): Fix thinko.
8306         * Makefile.in (rtlanal.o): Update dependencies.
8308 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
8310         * genflags.c (gen_insn): Use IS_VSPACE.
8311         * genoutput.c (output_insn_data): Likewise.
8312         (process_template): Likewise.
8314 2002-03-11  Richard Henderson  <rth@redhat.com>
8316         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
8318 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8320         * Makefile.in: Update.
8321         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
8322         Update documentation.
8323         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
8324         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
8326 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
8328         * Makefile.in: Give texi2pod its input file as a command line
8329         argument, not on stdin.
8331 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
8332             Daniel Berlin  <dan@dberlin.org>
8334         C++ alias analysis improvement.
8335         * alias.c (record_component_aliases): Record aliases for base
8336         classes too.
8338 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
8340         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
8342 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
8344         * toplev.c (vms_fopen): Remove, not needed.
8346         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
8348         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
8350         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
8351         for FP, already done later.
8353         * toplev.c (debug_args): Add entry for VMS_DEBUG.
8354         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
8356 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
8358         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
8359         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
8360         LARGEST_EXPONENT_IS_NORMAL for the given mode.
8361         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
8362         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
8363         (ediv, emul, eldexp, esqrt): Likewise.
8364         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
8365         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
8366         (saturate): New function.
8367         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
8368         (make_nan): Use a saturation value instead of a NaN if
8369         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
8370         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
8371         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
8372         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
8373         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
8374         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
8375         !ROUND_TOWARDS_ZERO.
8376         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
8377         (ROUND_TOWARDS_ZERO): Document.
8379 2002-03-11  Andreas Jaeger  <aj@suse.de>
8381         * cfg.c (dump_flow_info): Remove unused variable.
8383 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
8385         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
8386         computations on trees.
8388 2002-03-10  Richard Henderson  <rth@redhat.com>
8390         PR 5693:
8391         * reload.c (copy_replacements_1): New.
8392         (copy_replacements): Use it to recurse through the rtx.
8394 2002-03-10  Richard Henderson  <rth@redhat.com>
8396         * loop.c (strength_reduce): Compute number of iterations as
8397         unsigned HOST_WIDE_INT.
8399 2002-03-10  Richard Henderson  <rth@redhat.com>
8401         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
8402         to move away from the end of the block.
8404 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
8406         PR preprocessor/5899
8407         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
8409 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8411         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
8413         * attribs.c (decl_attributes): Fix signed/unsigned warning.
8415 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
8417         * config/mmix/mmix.c: Improve comments.
8418         (mmix_target_asm_function_prologue): Drop variable
8419         empty_stack_frame.  Don't allocate unused slot above fp.
8420         (mmix_target_asm_function_epilogue): Mirror prologue changes.
8421         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
8422         brace in first column.
8423         (enum reg_class): Ditto.
8424         (FIRST_PARM_OFFSET): Now 0.
8425         (USER_LABEL_PREFIX): Remove #if 0:d definition.
8427 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8429         * combine.c (make_extraction): Fix error in last change.
8431 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8433         * c4x.c (c4x_fp_reglist): Const-ify.
8434         * cris.c (cris_print_operand): Likewise.
8435         * i386.c (ix86_va_arg): Likewise.
8436         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
8437         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
8438         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
8439         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
8440         * mcore.h (regno_reg_class): Likewise.
8441         * mips.c (gen_int_relational): Likewise.
8442         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
8443         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
8444         * pdp11.c (move_costs): Likewise.
8445         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
8446         * s390.c (s390_branch_condition_mnemonic, regclass_map):
8447         Likewise.
8448         * s390.h (regclass_map): Likewise.
8449         * sh.c (shift_amounts): Likewise.
8450         * sh.md (rotlsi3): Likewise.
8452 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
8454         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
8455         (ne0+5): Use new clobber to generate proper shift pattern.
8456         Patch by Michael Matz <matz@kde.org>.
8458 2002-03-09  Andreas Schwab  <schwab@suse.de>
8460         * gcc.c (validate_all_switches): Also handle `%W{...}'.
8462 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
8464         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
8466 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
8468         PR middle-end/5877
8469         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
8470         even for non-representable constants.
8472 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8474         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
8475         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
8476         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
8477         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
8478         (pop_function_context): Compute MAY_SHARE parameter for
8479         fixup_var_refs.
8480         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
8481         (gen_mem_addressof): Call fixup_var_refs with new parm.
8483         * combine.c (make_extraction): Don't make extension of CONST_INT.
8485 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
8487         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
8488         in o32 and o64 ABIs.
8489         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
8490         but getting fixed-size structs passed in registers regardless of
8491         padding in o32 and o64 ABIs.
8493         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
8494         offset before loading address of argument passed by transparent
8495         reference.
8497 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8499         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
8501 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
8503         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
8504         marker such that registers after it are saved.
8506 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8508         * sparc.c (arith_4096_operand): Fix error in last change.
8510 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
8512         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
8513         defaults for MEABI.
8515 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
8517         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
8518         vectors.
8520 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
8522         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
8524 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
8526         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
8527         removed; fix return value.
8528         * combine.c (combine_instructions): Dirtify blocks where we failed to
8529         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
8530         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
8532 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8534         * gcse.c (insert_insn_end_bb): Fix typo in last change.
8536 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
8538         * recog.c (peephole2_optimize): Re-distribute EH edges.
8540 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
8542         * expr.c (expand_expr): Use unsave lang hook.
8543         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
8544         (LANG_HOOKS_INITIALIZER): Update.
8545         * langhooks.h (struct lang_hooks): New hook unsave.
8546         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
8547         (unsave_expr_1): Remove unused lang_unsave_expr_now.
8548         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
8549         (unsave_expr_now): Remove.
8550         * tree.h (unsave_expr_now, lang_unsave,
8551         lang_unsave_expr_now): Remove.
8552         (lhd_unsave): New.
8554 2002-03-08  Andreas Jaeger  <aj@suse.de>
8556         * flow.c (propagate_block_delete_insn): Remove unused variable.
8558 2002-03-08  Kazu Hirata  <kazu@hxi.com>
8560         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
8561         insn length for memory load/store.
8563 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8565         * doc/install.texi (--with-libiconv-prefix): Document.
8567 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
8569         * doc/sourcebuild.texi: Fix typo.
8571 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
8573         PR c/3711
8574         * builtins.c (std_expand_builtin_va_arg): Do all computations on
8575         trees.
8577 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8579         * rtl.c (copy_most_rtx): Move from here ...
8580         * emit-rtl.c (copy_most_rtx): ... to here.
8582 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
8584         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
8585         SUBTARGET_CPP_SIZE_SPEC.
8586         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
8588         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
8590 2002-03-07  Matt Hiller  <hiller@redhat.com>
8592         * gensupport.c (first_dir_md_include): Renamed from include;
8593         change all references.
8594         (last_dir_md_include): Renamed from last_include; change all
8595         references.
8596         (init_md_reader): Unconditionally initialize base_dir whether or
8597         not filename is a relative path.
8599 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
8601         * config/fp-bit.c (_unord_f2): Compile it in even if
8602         US_SOFTWARE_GOFAST is enabled.
8604         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
8605         NULL_RTX.  Set all HFmode operations as NULL_RTX.
8606         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
8607         NULL_RTX, try reversing the comparison and the operands.
8609 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
8611         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
8612         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
8613         and MATCH_OP_DUP.
8615 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
8617         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
8619 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
8621         * basic-block.h (fixup_abnormal_edges): Declare.
8622         * reload1.c (fixup_abnormal_edges): New function.
8623         * reg-stack.c (convert_regs): Use it.
8625         * gcse.c (insert_insn_end_bb): Handle trapping insns.
8627         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
8629 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
8631         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
8632         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
8633         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
8634         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
8635         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
8636         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
8637         unless x and y could be infinite.
8638         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
8639         Check that the common type of both arguments is a real, even for
8640         targets without unordered comparisons.  Allow an integer argument
8641         to be compared against a real.
8642         (expand_tree_builtin): Use expand_unordered_cmp.
8643         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
8644         * cse.c (fold_rtx): Likewise.  Fix indentation.
8645         * fold-const.c (fold_real_zero_addition_p): New.
8646         (fold): Use it, and the new HONOR_... macros.
8647         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
8648         * jump.c (reversed_comparison_code_parts): After searching for
8649         the true comparison mode, use HONOR_NANS to decide whether it
8650         can be safely reversed.
8651         (reverse_condition_maybe_unordered): Remove IEEE check.
8652         * simplify-rtx.c (simplify_binary_operation): Use the new macros
8653         to decide which simplifications are valid.  Allow the following
8654         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
8655         and (a - -b) to (a + b).
8656         (simplify_relational_operation): Use HONOR_NANS.
8657         * doc/tm.texi: Document the MODE_HAS_... macros.
8659 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
8661         * combine.c (simplify_comparison): If simplifying a logical shift
8662         right and compare with constant, force the comparison to unsigned.
8664 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
8666         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
8668         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
8669         -mabi=no-altivec
8670         (alt_reg_names): Remove % for vrsave.
8672 2002-03-06  Richard Henderson  <rth@redhat.com>
8674         PR optimization/5844
8675         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
8676         if used indicates we've already emitted one copy of an operand.
8677         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
8678         (gen_split): Supply a non-null used.
8680 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
8682         * reload1.c (reload): Unshare all rtl after reload is done.
8684         * simplify-rtx.c (simplify_plus_minus): Do not abort,
8685         but simply fail if the expression is too complex to simplify.
8686         (simplify_gen_binary): Handle simplify_plus_minus failures.
8688 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
8690         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
8691         consistently call delete_trivially_dead_insns after CSE and GCSE;
8692         fix DFI_life dumping; do jump threading after liveness; do crossjumping
8693         after liveness2; update comment in last crossjumping.
8694         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
8696 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
8698         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
8699         after completing fast dead code elimination.
8701         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
8702         COMPARE operator.
8704 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
8706         * version.c:  Fix misplaced leading blanks on first line.
8708 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
8710         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
8712 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
8714         * cfgcleanup.c (mentions_nonequal_regs): New function.
8715         (thread_jump): Use it.
8716         * toplev.c (rest_of_compilation): Run jump threading after
8717         liveness.
8719 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8721         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
8722         patch.
8724 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
8726         * predict.c (estimate_bb_frequencies): Do not reload the
8727         frequencies from notes.
8729 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
8731         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
8732         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
8734         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
8735         delete_noop_moves): Return indeger.
8736         * flow.c (ndead): New variable.
8737         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
8738         BB argument; update callers.
8739         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
8740         (life_analysis): Do not call purge_all_dead_edges.
8741         (update_life_info): Return number of deleted insns; print statistics.
8742         (update_life_info_in_dirty_blocks): likewise.
8743         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
8744         return number of insns deleted.
8746         * cse.c: Include timevar.h
8747         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
8748         iterate until stabilizes; print statistics; return number of killed
8749         insns.
8750         * Makefile.in: (cse.o): Add timevar.h dependency
8751         * rtl.h (delete_trivially_dead_insns): New.
8752         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
8753         * toplev.c (rest_of_compilation): Update callers.
8755         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
8756         (try_optimize_cfg): Do not update liveness.
8757         (cleanup-cfg): Loop until try_optimize_cfg and dead code
8758         removal stabilizes; use delete_trivially_dead_insns.
8760         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
8762 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
8764         * cppmain.c (setup_callbacks): Disable #pragma and #ident
8765         callbacks when processing assembly language.
8767 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8769         * pa.h (ASM_FILE_END): Define.
8770         * som.h (ASM_FILE_END): Delete.
8772         * pa.c (function_arg): Don't pass floats in general registers in
8773         indirect calls if TARGET_ELF32.
8775 2002-03-05  Richard Henderson  <rth@redhat.com>
8777         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
8779 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
8781         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
8783 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
8785         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
8786         -r command line.  Don't hide any symbols if not building
8787         shared libgcc.
8789 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
8791         * cfg.c (dump_flow_info): Warn about profile mismatches.
8792         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
8793         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
8795 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
8797         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
8798         wide volatile memory by parts.
8800 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
8802         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
8803         is NULL.
8805 2002-03-05  Richard Henderson  <rth@redhat.com>
8807         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
8809 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
8811         * toplev.c (documented_lang_options): Document more
8812         language-specific options.
8813         * doc/invoke.texi (Warning Options): Correct documentation for
8814         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
8815         * c-decl.c (c_decode_option): Use a table to handle warning options.
8817 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
8819         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
8820         parameter to mmix_encode_section_info.
8821         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
8822         relocatably.  Always produce ELF, not mmo if linking relocatably.
8823         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
8824         first is non-zero, don't add symbol prefix.
8825         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
8826         prototype accordingly.
8828 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
8830         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
8832 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
8834         * configure.in: Increase required makeinfo version to 4.1.
8835         * configure: Regenerate.
8837 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
8839         * .cvsignore: Remove *.info* and genrtl*; these files are generated
8840         elsewhere now.
8842 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
8844         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
8845         * doc/invoke.texi: Fix @math uses.
8847 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
8849         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
8850         removal
8852 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
8854         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
8855         (powerpc-*-eabisimaltivec*): Same.
8857         * config/rs6000/t-ppcendian: New.
8859 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8861         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
8862         nonimmediate_src_operand and nonimmediate_lsrc_operand to
8863         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
8865 2002-03-03  Richard Henderson  <rth@redhat.com>
8867         * toplev.c (rest_of_decl_compilation): Revert last two changes.
8869 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
8871         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
8872         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
8873         tree.c, config/m68k/m68k.c:
8874         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
8875         REAL_ARITHMETIC blocks unconditional.  Delete some further
8876         #ifdef blocks predicated on REAL_ARITHMETIC.
8877         * flags.h, toplev.c: Delete remaining references to
8878         flag_pretend_float.
8880         * doc/invoke.texi: Remove documentation of -fpretend-float.
8881         * doc/tm.texi: Describe the various REAL_* macros as provided by
8882         real.h, not by the target configuration files.
8884         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
8885         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
8886         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8887         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
8888         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
8889         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
8890         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
8891         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
8892         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
8893         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
8894         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
8895         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8896         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
8897         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
8898         config/xtensa/xtensa.h:
8899         Do not define, undefine, or mention in comments any of
8900         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
8901         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
8902         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
8903         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
8904         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
8905         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
8906         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
8907         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
8908         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
8910 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8912         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
8913         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
8914         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
8915         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
8916         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
8917         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
8918         Delete.
8919         * defaults.h (BITS_PER_WORD): Define.
8920         * doc/tm.texi (BITS_PER_WORD): Document default value.
8922         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
8923         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
8924         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
8926 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8928         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
8929         lieu of explicit sizeof/sizeof.
8930         * i386.c (override_options, ix86_init_mmx_sse_builtins,
8931         ix86_expand_builtin): Likewise.
8932         * mips.c (mips_add_gc_roots): Likewise.
8933         * mmix.c (mmix_output_condition): Likewise.
8934         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
8935         altivec_init_builtins): Likewise.
8936         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
8937         * cppexp.c (Nsuff, parse_number): Likewise.
8938         * cppinit.c (builtin_array_end): Likewise.
8939         * gcc.c (n_default_compilers, process_command): Likewise.
8940         * genpreds.c (output_predicate_decls): Likewise.
8941         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
8942         * lcm.c (N_ENTITIES): Likewise.
8943         * stor-layout.c (set_sizetype): Likewise.
8945 2002-03-03  Richard Henderson  <rth@redhat.com>
8947         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
8948         for types or labels.
8950 2002-03-03  Richard Henderson  <rth@redhat.com>
8952         * c-decl.c (start_decl): Initialized variables are not common.
8954 2002-03-02  Per Bothner  <per@bothner.com>
8956         * gcc.c (option_map):  Suport new --bootclasspath option.
8957         --CLASSPATH is now just an alias for --classpath.
8959 2002-03-02  Richard Henderson  <rth@redhat.com>
8961         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
8962         load if "internal" visibility.
8963         * doc/extend.texi: Document visibility meanings.
8965 2002-03-02  Richard Henderson  <rth@redhat.com>
8967         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
8968         to functions as well.
8970 2002-03-02  Richard Henderson  <rth@redhat.com>
8972         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
8973         (handle_visibility_attribute): Don't call assemble_visibility.
8974         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
8975         without asmspec.  Invoke assemble_alias when needed.
8976         * varasm.c (maybe_assemble_visibility): New.
8977         (assemble_start_function, assemble_variable, assemble_alias): Use it.
8979 2002-03-02  Richard Henderson  <rth@redhat.com>
8981         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
8982         invoke ENCODE_SECTION_INFO with first call flag.
8984         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8985         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8986         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
8987         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
8988         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
8989         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
8990         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
8991         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
8992         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
8993         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
8994         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
8995         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
8996         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
8997         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
8998         config/mcore/mcore-protos.h, config/mcore/mcore.c,
8999         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
9000         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
9001         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
9002         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
9003         config/sh/sh.h, config/sparc/sparc.h,
9004         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
9005         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
9006         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
9007         FIRST argument.  As needed, examine it and do nothing.
9009         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
9010         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9011         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
9013         * config/arm/t-pe (pe.o): Add dependencies.
9015 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9017         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
9018         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
9019         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
9020         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
9021         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
9022         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
9023         * defaults.h (BITS_PER_UNIT): Define.
9024         * doc/tm.texi (BITS_PER_UNIT): Document default value.
9026 2002-03-02  Kazu Hirata  <kazu@hxi.com>
9028         * config/h8300/h8300-protos.h: Add a prototype for
9029         compute_a_shift_length.
9030         * config/h8300/h8300.c (h8300_asm_insn_count): New.
9031         (compute_a_shift_length): Likewise.
9032         (h8300_adjust_insn_length): Do not adjust insn length of shift
9033         insns.
9034         * config/h8300/h8300.md (anonymous shift patterns): Use
9035         compute_a_shift_length.
9037 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9039         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
9040         trunc_int_for_mode.
9042         * emit-rtl.c (offset_address): Call update_temp_slot_address.
9044 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9046         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
9047         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
9048         * flags.h (flag_zero_initialized_in_bss): Declare.
9049         * toplev.c (flag_zero_initialized_in_bss): New flag.
9050         (lang_independent_options): Add flag_zero_initialized_in_bss.
9051         * tree.c (initializer_zerop): New function.
9052         * tree.h (initializer_zerop): Declare.
9053         * varasm.c (assemble_variable): If we can emit bss, put zero
9054         initializers in the bss section.
9056 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
9058         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
9059         like more than one symbol per .weak directive.
9061 2002-03-01  Richard Henderson  <rth@redhat.com>
9063         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
9064         adjust argument_pointer by pretend_args_size.
9065         (ia64_va_start): Adjust va_start address by -pretend_args_size.
9067 2002-03-01  Kazu Hirata  <kazu@hxi.com>
9069         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
9071 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
9073         * toplev.c (rest_of_compilation): Delete dead jumptables before
9074         loop.
9075         * flow.c (delete_dead_jumptables): Make global.
9076         * rtl.h (delete_dead_jumptables): Declare.
9078 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
9080         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
9081         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
9082         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
9084 2002-03-01  Kazu Hirata  <kazu@hxi.com>
9086         * config/h8300/h8300-protos.h: Fix formatting.
9087         * config/h8300/h8300.c: Likewise.
9088         * config/h8300/h8300.h: Likewise.
9090 2002-03-01  Kazu Hirata  <kazu@hxi.com>
9092         * config/h8300/h8300.c (print_operand): Support 16-bit
9093         constant addresses.
9094         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
9096 2002-02-28  Richard Henderson  <rth@redhat.com>
9098         * expmed.c (store_bit_field): Prevent generation of CONCATs;
9099         pun complex values as integers; use gen_lowpart instead of
9100         gen_rtx_SUBREG.
9101         (extract_bit_field): Likewise.
9103 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
9104             David Edelsohn  <edelsohn@gnu.org>
9106         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
9107         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
9108         (SUPPORTS_WEAK): Likewise.
9109         * output.h (add_weak): Add tree param.
9110         * varasm.c (add_weak): Likewise.  Save decl.
9111         (struct weak_syms): Add decl field.
9112         (mark_weak_decls): New function.
9113         (init_varasm_once): ggc_add_root mark_weak_decls.
9114         (assemble_start_function): Use ASM_WEAKEN_DECL.
9115         (assemble_variable): Likewise.
9116         (assemble_alias): Likewise.
9117         (declare_weak): Pass decl to add_weak.
9118         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
9119         (remove_from_pending_weak_list): Declare and define for
9120         ASM_WEAKEN_DECL.
9121         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
9122         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
9123         * defaults.h (SUPPORTS_WEAK): Likewise.
9124         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
9125         .weak for code sym.  Do emit .size for descriptor sym.
9126         (ASM_DECLARE_FUNCTION_SIZE): Define.
9127         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
9128         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
9129         .lglobl unless TARGET_XCOFF.  Formatting fixes.
9130         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
9131         .weak for code sym.
9132         (HANDLE_PRAGMA_WEAK): Remove.
9133         (ASM_WEAKEN_LABEL): Remove.
9134         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
9136 2002-03-01  Jason Merrill  <jason@redhat.com>
9138         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
9139         (TARGET_EXPR_CLEANUP): New macro.
9141 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
9143         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
9144         to take ptr_extend into account as third type of extension.
9145         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
9146         fields used by SUBREG_PROMOTED_UNSIGNED_P.
9147         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
9148         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
9149         * calls.c (precompute_arguments): Use new macro.
9150         (expand_call): Ditto.
9151         * combine.c (nonzero_bits): Ditto.
9152         (record_promoted_value): Ditto.
9153         * expr.c (store_expr): Ditto.
9154         (expand_expr): Ditto.
9155         * function.c (assign_parms): Ditto.
9157 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
9159         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
9160         override -shared and -shared-libgcc.
9162 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
9164         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
9165         of "ultrasparc".
9166         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
9167         to be broken.
9169 2002-02-28  Richard Henderson  <rth@redhat.com>
9171         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
9172         4 cycle latency from MM producers.
9173         (ia64_internal_sched_reorder): Likewise with pipeline flush.
9175 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9177         * mklibgcc.in: Don't use GNU make extension.
9179 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
9181         * c-parse.in (STATIC): New terminal.
9182         (scspec): New non-terminal.  Update productions accordingly.
9183         (program): Remove bogus ifc / end ifc.
9184         (array_declarator): Simplify production using STATIC.
9186 2002-02-28  Jim Meyering  <meyering@lucent.com>
9188         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
9189         \a still means TARGET_BELL.
9191 2002-02-28  Richard Henderson  <rth@redhat.com>
9193         * haifa-sched.c (sched_emit_insn): New.
9194         (schedule_block): Use last_scheduled_insn to track last insn.
9195         * sched-int.h (sched_emit_insn): Prototype.
9196         * config/ia64/ia64.c (last_issued): Remove.
9197         (ia64_variable_issue): Don't set it.
9198         (nop_cycles_until): Use sched_emit_insn.
9200 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
9202         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
9203         extended constants.
9205 2002-02-28  Kazu Hirata  <kazu@hxi.com>
9207         * config/h8300/h8300.c: Fix formatting.
9208         * config/h8300/h8300.h: Likewise.
9210 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9212         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
9213         which may overwrite the high byte of the frame pointer.
9215 2002-02-28  Bo Thorsen  <bo@suse.de>
9217         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
9218         (STARTFILE_SPEC): Add 64 bit files.
9219         (ENDFILE_SPEC): Likewise.
9221 2002-02-28  Jason Merrill  <jason@redhat.com>
9223         * c-decl.c (finish_function): Only warn about missing return
9224         statement with -Wreturn-type.
9226 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
9228         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
9230         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
9231         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
9233 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
9235         * basic-block.h (BB_REACHABLE): Renumber.
9236         (BB_DIRTY, BB_NEW): New flags.
9237         (clear_bb_flags): Declare.
9238         (update_life_info_in_dirty_blocks): Declare.
9239         * cfg.c (clear_bb_flags): New function.
9240         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
9241         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
9242         reorder_insns, emit_insn_after): Mark block as dirty.
9243         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
9244         (update_life_info_in_dirty_blocks): New function.
9245         * recog.c (apply_change_group): Dirtify block.
9247         * cse.c (cse_insn): Reorder emitting of jump insn to keep
9248         cfg consistent.
9249         * gcse.c (delete_null_pointer_checks): Likewise.
9251         * toplev.c (dump_file_index): Move cse2 after bp,
9252         add DFI_null
9253         (dump_file_info): Similary.
9254         (rest_of_compilation): Avoid most of CFG rebuilds;
9255         do first if converision after null pointer checks, do cse2
9256         after branch prediction; avoid full liveness rebuild after
9257         initializing subregs.
9258         * invoke.texi (-d options): Document -du, renumber.
9260         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
9261         (notice_new_block): Do not set BB_UPDATE_LIFE.
9262         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
9263          merge_blocks_move_successor_nojumps, merge_blocks,
9264          try_crossjump_to_edge): Likewise.
9265         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
9266         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
9267         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
9268         (merge_of_block): Do not use life_data_ok.
9269         (find_if_case_1): Do not use SET_UPDATE_LIFE.
9270         (if_convert): Use BB_DIRTY mechanizm to update life.
9271         * lcm.c (optimize_mode_switching): Update
9272         update_life_info_in_dirty_blocks
9274 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
9276         * Makefile.in (integrate.o): Update.
9277         * c-decl.c (copy_lang_decl): Rename.
9278         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
9279         * integrate.c: Include langhooks.h.
9280         (copy_decl_for_inlining): Update to use langhook.
9281         * langhooks-def.h (lhd_do_nothing_t,
9282         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
9283         (LANG_HOOKS_INITIALIZER): Update.
9284         * langhooks.c (lhd_do_nothing_t): New.
9285         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
9286         * tree.h (copy_lang_decl): Remove.
9287 objc:
9288         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
9290 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
9292         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
9293         POST_DEC, and POST_MODIFY.
9295 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
9297         * c-typeck.c (digest_init): Remove unused parameter; all
9298         callers changed.
9300 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
9302         * expmed.c (expand_shift): Correctly test for low part of a
9303         subreg.
9305 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
9307         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
9308         insn UIDs with insn addresses.
9310 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
9312         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
9313         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
9314         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
9315         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
9316         gcc.c, toplev.c: Delete code implementing -traditional mode.
9318         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
9319         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
9320         Document removal of -traditional mode for compilation, and
9321         remove documentation only relevant to that mode.
9323         * config/nextstep.h, config/ptx4.h, config/svr4.h,
9324         config/convex/convex.h, config/d30v/d30v.h,
9325         config/i386/dgux.h, config/i386/osf1elf.h,
9326         config/i386/osfelf.h, config/i386/osfrose.h,
9327         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
9328         config/m68k/hp310.h, config/m88k/dgux.h,
9329         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
9330         config/m88k/m88k.h, config/m88k/openbsd.h,
9331         config/mips/abi64.h, config/mips/osfrose.h,
9332         config/mips/svr4-5.h, config/mips/svr4-t.h,
9333         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
9334         config/stormy16/stormy16.h: Remove all references to
9335         -traditional from target specs.  Delete all mention of the
9336         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
9337         delete a couple of commented-out definitions of
9338         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
9339         to -traditional.
9341         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
9342         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
9344 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
9346         * mklibgcc.in: Don't use \n in a line subject to
9347         interpretation by echo.
9349 2002-02-27  Graham Stott  <grahams@redhat.com>
9351         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
9352         Constify NAME.
9354         * loop.c (prescan_loop): Handle PARALLEL.
9356         * unroll.c (loop_iterations): Return 0 if the add_val for
9357         a BIV is REG.
9359         * final.c (output_operand_lossage): Constify PFX_STR.
9361         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
9363 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9365         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
9366         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
9368 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
9370         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9372 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
9374         * cpplex.c (_cpp_lex_token): Handle directives in macro
9375         arguments.
9376         * cpplib.c (_cpp_handle_directive): Save and restore state
9377         if parsing macro args when entering a directive.
9378         * cppmacro.c (collect_args): No need to handle directives
9379         in macro arguments.
9380         (enter_macro_context, replace_args): Use the original macro
9381         definition in case it was redefined whilst collecting arguments.
9382 doc:
9383         * cpp.texi: Update.
9385 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
9387         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
9388         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
9389         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
9390         method on AIX.
9391         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
9392         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
9393         (load_toc_v4_PIC_2): Same.
9395 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
9397         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
9399 2002-02-26  Richard Henderson  <rth@redhat.com>
9401         * config/alpha/alpha.md (ashldi_se): Re-enable.
9403 2002-02-26  Richard Henderson  <rth@redhat.com>
9405         * config/alpha/alpha.c (alpha_encode_section_info): Examine
9406         MODULE_LOCAL_P; improve commentary.
9408 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
9410         * doc/cpp.texi: Clarify documentation of relationship between
9411         #line and #include.
9413 2002-02-26  Kazu Hirata  <kazu@hxi.com>
9415         * config/h8300/h8300-protos.h: Update the prototype for
9416         compute_logical_op_length.  Add the prototype for
9417         compute_logical_op_cc.
9418         * config/h8300/h8300.c (compute_logical_op_length): Figure out
9419         code from operands.
9420         (compute_logical_op_cc): New.
9421         * config/h8300/h8300.md: Combine all the logical op patterns
9422         in HImode and SImode.  Use compute_logical_op_cc.
9424 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
9426         * config/i386/i386.c (print_operand): Don't append ATT-style
9427         length suffixs to x87 opcodes when in Intel mode.
9429 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
9431         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
9432         (init_emit_once): Update calls.
9433         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
9434         (init_syntax_once): Prototype.
9436 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9438         * pa-linux.h (LIB_SPEC): Update definition.
9439         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
9441 2002-02-26  Richard Henderson  <rth@redhat.com>
9443         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
9444         if we emitted a stop bit.
9446 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
9448         * configure.in (libgcc_visibility): Substitute.
9449         * configure: Rebuilt.
9450         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
9451         defined symbols .hidden.
9453 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
9455         * attribs.c (c_common_attribute_table): Add visibility.
9456         (handle_visibility_attribute): New function.
9457         * varasm.c (assemble_visibility): New function.
9458         * output.h (assemble_visibility): Add prototype.
9459         * tree.h (MODULE_LOCAL_P): Define.
9460         * crtstuff.c (__dso_handle): Use visibility attribute.
9461         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
9462         for MODULE_LOCAL_P symbols too.
9463         * config/ia64/ia64.c (ia64_encode_section_info): Handle
9464         MODULE_LOCAL_P symbols the same way as local symbols.
9465         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
9466         into .sdata/.sbss by the user.
9467         * doc/extend.texi (Function Attributes): Document visibility
9468         attribute.
9470 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
9472         PR debug/5770
9473         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
9474         STRING_CST initializer spanning the whole variable without
9475         embedded zeros.
9476         If expand_expr returned MEM, don't use it.
9478 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
9480         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
9481         generate a die for the lexical block.
9483 2002-02-26  Kazu Hirata  <kazu@hxi.com>
9485         * config/h8300/h8300-protos.h: Add a prototype for
9486         compute_logical_op_length.
9487         * config/h8300/h8300.c (compute_logical_op_length): New.
9488         * config/h8300/h8300.md (anonymous logical patterns): Use
9489         compute_logical_op_length for length.
9491 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
9493         * dwarf2out.c (modified_type_die): Do not call type_main_variant
9494         for vectors.
9495         (gen_type_die): Same.
9497         * attribs.c (handle_vector_size_attribute): Set debug information.
9499 2002-02-26  Daniel Egger  <degger@fhm.edu>
9501         * config/rs6000/rs6000.md: Swap define_insn attributes to
9502         fix incorrect generation of merge high instructions instead
9503         of merge low.
9505 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
9507         * c-typeck.c (really_start_incremental_init): Use
9508         bitsize_zero_node for vectors.
9510 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
9512         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
9513         ("*set_vrsave_internal"): Same.
9515 2002-02-25  Richard Henderson  <rth@redhat.com>
9517         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
9518         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
9520 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9522         PR target/5755
9523         * config/i386/i386.c (ix86_return_pops_args): Only pop
9524         fake structure return argument if it was passed on the stack.
9526 2002-02-25  Jason Merrill  <jason@redhat.com>
9528         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
9529         RESULT_DECL.
9531 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
9533         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
9534         link with shared_name only.
9535         * doc/invoke.texi (Link Options): Document new behavior.
9537 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
9539         * c-typeck.c (push_init_level): Handle vectors.
9541 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
9543         * config/sparc/sparc.c (const64_high_operand): Zero-extend
9544         operands of SPARC_SETHI_P.
9545         (input_operand): Likewise.
9546         (sparc_emit_set_const32): Likewise.
9547         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
9548         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
9549         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
9550         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
9551         (movdi_insn_sp64_vis): Likewise.
9552         (movdi split, movdf split): Use SETHI32.
9553         * doc/md.texi: Document SPARC constraints L, M and N.
9555 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
9557         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
9558         ("*set_vrsave_internal"): use mfspr for Darwin.
9560         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
9561         gen_get_vrsave_internal.
9563 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9565         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
9567 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
9569         * cpplex.c (cpp_interpret_charconst): Get signedness or
9570         otherwise of wide character constants correct.
9571         * cppexp.c (lex): Get signedness of wide charconsts correct.
9573 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9575         * optabs.c (widen_operand): Only call convert_modes for
9576         promoted SUBREG if signedness matches.
9577         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
9579 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
9581         * cpplib.c (glue_header_name): Use local buffer to build up
9582         header name.
9584 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
9586         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
9588 2002-02-23  Kazu Hirata  <kazu@hxi.com>
9590         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
9591         H8/300[HS] separately.
9592         * config/h8300/h8300.md: Remove the early clobber constraint
9593         from bit field patterns.
9595 2002-02-23  Kazu Hirata  <kazu@hxi.com>
9597         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
9598         register_operand.
9599         (mulhisi3): Likewise.
9600         (umulqisi3): Likewise.
9601         (umulhisi3): Likewise.
9603 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
9605         * cppinit.c (output_deps): Correct test for stdout output.
9606         (init_dependency_output): Cure warning.
9608 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9610         * expr.c (store_expr): When converting expression to promoted
9611         equivalent type, allow using SUBREG_REG of TARGET as the target
9612         of the expansion of EXP.
9613         * loop.c (basic_induction_var, case SUBREG): Always look inside.
9614         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
9615         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
9616         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
9617         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
9619 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
9621         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
9622         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
9623         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
9625 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
9627         PR optimization/5747
9628         * loop.c (scan_loop): Update reg info if move_movables created new
9629         pseudos.
9631 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
9633         * gcc.c (init_gcc_spec): Revert last change.
9635 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
9637         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
9638         gpc_reg_operand constraint.
9640 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
9642         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
9643         Simplify comparison of `low'.
9644         (add_operand): Fix formatting.
9645         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
9646         (mask_operand): Disallow mask to wrap in 64-bit mode.
9647         (rs6000_stack_info): Remove redundant test setting push_p.
9648         (output_toc): Fix formatting.
9649         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
9650         cc_reg_not_cr0_operand constraint.
9651         (booldi3, boolcdi3 splitters): Same.
9653 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
9655         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
9657 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
9659         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
9660         gcc invoked with -shared-libgcc.
9662 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
9664         PR c++/5748
9665         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
9666         decl if any of elements was TREE_USED.
9668 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
9670         * config/sparc/sol2.h: Don't include sys/mman.h.
9671         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
9672         (arith_4096_operand): Don't throw high bits away.
9673         (const64_operand): Take sign extension of CONST_INTs into account.
9674         (const64_high_operand, sparc_emit_set_const32): Likewise.
9675         (GEN_HIGHINT64): Likewise.
9676         (sparc_emit_set_const64_quick1): Likewise.
9677         (const64_is_2insns): Likewise.
9678         (print_operand): Use trunc_int_for_mode for sign extension.
9679         * config/sparc/sparc.h (SMALL_INT32): Likewise.
9680         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
9681         chars.  Assume CONST_INT is already properly sign-extended.
9682         (movdi split): Sign-extend each SImode part.
9683         (andsi3 split): Don't mask high bits off, so that result
9684         remains properly sign-extend.
9685         (iorsi3 split): Likewise.
9686         (xorsi3 split): Likewise.
9688 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
9690         * fold-const.c (fold): Fix typo in comments.
9692 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
9694         * Makefile.in (langhooks.o): Update dependencies.
9696 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
9698         * langhooks.c: Include flags.h.
9700 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
9702         * testsuite/gcc.dg/attr-alwaysinline.c: New.
9704         * c-common.c (c_common_post_options): Set inline trees by
9705         default.
9707         * doc/extend.texi (Function Attributes): Document always_inline
9708         attribute.
9709         Update documentation about inlining when not optimizing.
9711         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
9713         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
9714         unless DECL_ALWAYS_INLINE.
9716         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
9717         unless DECL_ALWAYS_INLINE.
9718         (c_disregard_inline_limits): Disregard if always_inline set.
9720         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
9721         Disregard if always_inline set.
9722         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
9723         unless DECL_ALWAYS_INLINE.
9725         * attribs.c (handle_always_inline_attribute): New.
9726         (c_common_attribute_table): Add always_inline.
9728         * config/rs6000/altivec.h: Add prototypes for builtins
9729         requiring the always_inline attribute.
9731 2002-02-21  Eric Christopher  <echristo@redhat.com>
9733         * expmed.c (store_bit_field): Try to simplify the subreg
9734         before generating a new one when when the mode size of
9735         value is less than maxmode.
9737 2002-02-21  Richard Henderson  <rth@redhat.com>
9739         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
9740         than gen_rtx_PLUS to form the sum.
9741         * explow.c (force_reg): Rearrange to not allocate new pseudo
9742         when force_operand returns a register.
9743         * expr.c (expand_assignment): Allow offset_rtx expansion to
9744         return a sum.  Do not force addresses into registers.
9745         (expand_expr): Likewise.
9746         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
9747         to canonicalize arithmetic that didn't simpify.
9748         (simplify_plus_minus): New argument force; update
9749         all callers.  Don't split CONST unless we can do something with it,
9750         and wouldn't lose the constness of the operands.
9752         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
9753         that we generated earlier.
9755 2002-02-21  Tom Tromey  <tromey@redhat.com>
9757         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9758         (output_line_info): Use constant `1', with a long explanatory
9759         comment.
9760         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
9762 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
9764         * jump.c (redirect_jump): If old label has no UID, don't try to
9765         delete it.
9767 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
9769         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
9770         If input is constant, do shifts at compile time.
9772 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
9774         * doc/extend.texi: Fix some more overfull hboxes.
9776 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9778         PR optimization/4994
9779         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
9780         register moves.
9782 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9784         PR c++/4574
9785         * expr.h (expand_and): Add mode argument.
9786         * expmed.c (expand_and): Add mode argument.
9787         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
9788         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
9789         * except.c (expand_builtin_extract_return_addr): Likewise.
9790         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9791         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9792         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
9793         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
9794         * config/c4x/c4x.md: Use GEN_INT (x) instead of
9795         gen_rtx (CONST_INT, VOIDmode, x).
9797 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9799         PR c/4697:
9800         * stmt.c (warn_if_unused_value): Move side effects test once more.
9802 2002-02-20  Torbjorn Granlund  <tege@swox.com>
9804         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
9805         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
9807 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
9809         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
9810         SUBREG or ZERO_EXTEND.
9812 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
9814         * sh.h (current_function_anonymous_args): Remove.
9815         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
9816         of current_function_varargs and current_function_stdarg is set.
9817         * sh.c (sh_expand_prologue): Check current_function_varargs /
9818         current_function_stdarg / TARGET_SH5 instead of
9819         current_function_anonymous_args.
9821         * sh64.h (TARGET_VERSION): Define.
9823 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
9825         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
9826         VRSAVE_REGNO on TARGET_ALTIVEC.
9828 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
9830         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
9831         bits of SImode const_int.
9832         (includes_rshift_p): Likewise.
9833         (print_operand): Call mask_operand and mask64_operand with correct
9834         mode.
9835         (rs6000_output_function_epilogue): Pad traceback table to word.
9836         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
9837         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
9838         mask64_operand with correct mode.
9839         (FUNCTION_ARG_REGNO_P): Correct parentheses.
9841 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
9843         PR debug/4461
9844         * varasm.c (get_pool_constant_mark): New.
9845         * rtl.h (get_pool_constant_mark): Add prototype.
9846         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
9847         be represented if it has not been output.
9849 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
9851         * combine.c (do_SUBST): Sanity check substitutions of
9852         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
9853         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
9854         CONST_INT into its operand.
9855         (known_cond): Likewise, for ZERO_EXTEND.
9856         * simplify-rtx.c (simplify_unary_operation): Fix condition to
9857         allow for simplification of wide modes.  Reject CONST_INTs in
9858         ZERO_EXTEND when their actual mode is not given.
9860 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
9862         * c-decl.c (pushdecl): If no global declaration is found for an
9863         extern declaration in block scope, try a limbo one.
9865 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
9867         PR c++/4401
9868         * c-common.c (pointer_int_sum): Moved from...
9869         * c-typeck.c (pointer_int_sum): ...here.
9870         * c-common.h (pointer_int_sum): Add prototype.
9872 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
9874         PR c++/5713
9875         * c-decl.c (duplicate_decls): Return 0 if issued error about
9876         redeclaration.
9878 2002-02-20  Roger Sayle  <roger@eyesopen.com>
9879             Jakub Jelinek  <jakub@redhat.com>
9881         PR c/4389
9882         * tree.c (host_integerp): Ensure that the constant integer is
9883         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
9884         when pos is zero or non-zero respectively.  Clarify comment.
9885         * c-format.c (check_format_info_recurse): Fix host_integerp
9886         usage; the pos argument should be zero when assigning to a
9887         signed HOST_WIDE_INT.
9889 2002-02-20  Richard Henderson  <rth@redhat.com>
9891         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
9892         of the operand, rather than assuming TImode.
9893         (ix86_expand_binop_builtin): Cope with commutative patterns
9894         using nonimmediate_operand for both operands.
9895         (ix86_expand_timode_binop_builtin): Likewise.
9896         (ix86_expand_store_builtin): Validate operand 1.
9897         (ix86_expand_unop1_builtin): Likewise.
9899 2002-02-20  Philip Blundell  <philb@gnu.org>
9901         PR 5705
9902         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
9904 2002-02-20  Richard Henderson  <rth@redhat.com>
9906         PR c/5615
9907         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
9909 2002-02-20  Tom Tromey  <tromey@redhat.com>
9911         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9912         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9913         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9914         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9915         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
9916         unconditionally.
9918 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
9920         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
9921           for (const_int 0) in X not just INTVAL.
9923 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
9925         * doc/extend.texi: Avoid or reduce overfull hboxes.
9927 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
9929         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
9930         operations if the field does not start at a mode boundary.
9932 2001-02-20      Joel Sherrill <joel@OARcorp.com>
9934         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
9935         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
9936         Also done for -Acpu and -Amachine.
9938 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9940         * cppinit.c (init_dependency_output): Take deps output file
9941         from -o if none given with -MF.  Suppress normal output.
9942         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
9943         * doc/cpp.texi, doc/invoke.texi: Update.
9945 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
9947         * toplev.c (output_quoted_string): Write unprintable
9948         characters with octal escapes.
9950 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
9952         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
9953         really_call_used[VRSAVE_REGNO] if not Altivec.
9955 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
9957         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
9958         MODE_MASK.
9959         (constant_pool_expr_1): Fix formatting.
9960         (rs6000_legitimize_reload_address): Likewise.
9962 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9964         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
9965         now that we have one.
9967 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
9969         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
9970         end of first block of bitfields (which was only seven bits);
9971         rename dummy to unused_1; remove comment which is no longer true.
9973 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
9975         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
9977 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
9979         PR 5399
9980         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
9981         if generating PIC.
9983         PR 5054
9984         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
9985         arm_is_longcall_p rather than inspecting call-type cookie
9986         directly.
9987         (call_value_insn) [TARGET_THUMB]: Likewise.
9989 2002-02-19  Graham Stott  <grahams@redhat.com>
9991         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
9993 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
9995         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
9996         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
9997         (FP_SAVE_INLINE): Delete.
9999         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
10000         * config/rs6000/eabi.asm: Remove ABI save restore routines.
10001         * config/rs6000/t-ppccomm: Build crtsavres.o.
10002         * config/rs6000/crtsavres.asm: New file.
10004 2002-02-19  Philip Blundell  <philb@gnu.org>
10006         * config/arm/arm.c (use_return_insn): Don't reject interrupt
10007         functions.
10008         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
10009         (output_return_instruction): Allow interrupt functions to return with
10010         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
10011         (arm_expand_prologue): Subtract 4 before stacking LR in an
10012         interrupt function.
10014 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
10016         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
10017         decl, not just FUNCTION_DECL.
10018         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
10019         (arm_assemble_integer): Likewise.
10020         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
10021         marked local.
10023 2002-02-19  matthew green  <mrg@eterna.com.au>
10025         * config.gcc (sparc-*-netbsdelf*): Enable target.
10026         (sparc64-*-netbsd*): New target.
10027         * config/sparc/netbsd-elf.h: New file.
10028         * config/sparc/t-netbsd64: New file.
10030 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
10032         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
10034 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
10036         * doc/invoke.texi: explicitly list the style guidelines that
10037         -Weffc++ checks for.
10039 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
10041         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
10043 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
10045         PR other/5718
10046         * gcc.c (cpp_unique_options): Treat -o as indicating object file
10047         only if not -E.  If -E, pass -o through to the preprocessor.
10049 2002-02-19  Kazu Hirata  <kazu@hxi.com>
10051         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
10052         register number with an appropriate macro.
10054 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
10056         * doc/rtl.texi (Constants): Close @code tag.
10058 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
10060         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
10061         ("mmx_uavgv4hi3"): Same.
10062         ("pmulhrwv4hi3"): Same.
10064         * tree-inline.c (walk_tree): Handle vectors.
10066         * c-common.c (constant_expression_warning): Handle vectors.
10067         (overflow_warning): Same.
10069         * sched-deps.c (sched_analyze_2): Handle vectors.
10071         * rtlanal.c (rtx_unstable_p): Handle vectors.
10072         (rtx_varies_p): Same.
10073         (count_occurrences): Same.
10074         (regs_set_between_p): Same.
10075         (modified_between_p): Same.
10076         (modified_in_p): Same.
10077         (volatile_insn_p): Same.
10078         (volatile_refs_p): Same.
10079         (side_effects_p): Same.
10080         (may_trap_p): Same.
10081         (inequality_comparisons_p): Same.
10082         (replace_regs): Same.
10083         (computed_jump_p_1): Same.
10085         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
10086         argument.
10087         (inner_mode_array): New.
10088         (copy_rtx): Handle vectors.
10089         (copy_most_rtx): Same.
10090         (rtx_equal_p): Same.
10091         (get_mode_alignment): Adjust for vectors.
10093         * resource.c (mark_referenced_resources): Handle vectors.
10094         (mark_set_resources): Same.
10096         * reload1.c (eliminate_regs): Handle vectors.
10097         (elimination_effects): Same.
10098         (scan_paradoxical_subregs): Same.
10100         * reload.c (subst_reg_equivs): Handle vectors.
10102         * regrename.c (scan_rtx): Handle vectors.
10104         * regclass.c (reg_scan_mark_refs): Handle vectors.
10106         * recog.c (find_single_use_1): Handle vectors.
10108         * local-alloc.c (equiv_init_varies_p): Handle vectors.
10109         (contains_replace_regs): Same.
10110         (memref_referenced_p): Same.
10112         * integrate.c (copy_rtx_and_substitute): Handle vectors.
10113         (subst_constants): Same.
10115         * genattrtab.c (attr_copy_rtx): Handle vectors.
10116         (encode_units_mask): Same.
10117         (clear_struct_flag): Same.
10118         (count_sub_rtxs): Same.
10120         * gcse.c (want_to_gcse_p): Handle vectors.
10121         (oprs_unchanged_p): Same.
10122         (hash_expr_1): Same.
10123         (oprs_not_set_p): Same.
10124         (expr_killed_p): Same.
10125         (compute_transp): Same.
10126         (store_ops_ok): Same.
10128         * function.c (purge_addressof_1): Do not allow paradoxical subregs
10129         of vectors.
10130         (fixup_var_refs_1): Same.
10131         (instantiate_virtual_regs_1): Same.
10133         * fold-const.c (operand_equal_p): Handle vectors.
10134         (fold): Same.
10135         (rtl_expr_nonnegative_p): Same.
10137         * flow.c (mark_used_regs): Handle vectors.
10139         * df.c (df_uses_record): Handle vectors.
10141         * cselib.c (cselib_subst_to_values): Handle vectors.
10142         (cselib_mem_conflict_p): Same.
10143         (hash_rtx): Same.
10145         * cse.c (canon_reg): Handle vectors.
10146         (fold_rt): Same.
10147         (cse_process_notes): Same.
10148         (count_reg_usage): Same.
10149         (canon_hash): Same.
10151         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
10153         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
10155         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
10156         (gen_rtx): Handle CONST_VECTOR.
10157         (gen_const_vector_0): New.
10158         (copy_rtx_if_shared): CONST_VECTORs can be shared.
10159         (reset_used_flags): Same.
10160         (copy_insn_1): Same.
10161         (initializer_constant_valid_p): Handle VECTOR_CST.
10163         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
10165         * doc/rtl.texi (Constants): Document const_vector.
10166         (CONST0_RTX): Update for vectors.
10167         (RTL sharing): Same.
10169         * print-tree.c (print_node): Add case for VECTOR_CST.
10171         * tree.h (TREE_VECTOR_CST_ELTS): New.
10172         (struct tree_vector): New.
10173         (union tree_node): Add vector node.
10174         (build_vector): Add prototype.
10176         * tree.def (VECTOR_CST): New.
10178         * tree.c (build_vector): New.
10180         * expmed.c (make_tree): Handle CONST_VECTOR.
10182         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
10183         (CONST_VECTOR_ELT): New.
10184         (CONST_VECTOR_NUNITS): New.
10186         * machmode.h (GET_MODE_INNER): New.
10187         (DEF_MACHMODE): Accept 8th arg.
10189         * machmode.def: Add 8th argument for vector inner mode.
10190         Add inner vector modes for vectors.
10192         * rtl.def (VEC_CONST): Remove.
10193         (CONST_VECTOR): New.
10195         * expr.c (clear_storage): Allow vectors.
10196         (is_zeros_p): Handle VECTOR_CST.
10198         * varasm.c (output_constant_pool): Handle vectors.
10199         (rtx_const): Add veclo and vechi fields.
10200         (kind): Add RTX_VECTOR.
10201         (decode_rtx_const): Add case for vector.
10203         * config/rs6000/rs6000-protos.h: Add zero_constant.
10205         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
10206         constants.  Force easy vector constants into memory.
10207         (easy_vector_constant): New.
10208         (emit_easy_vector_constant): New.
10209         (rs6000_legitimize_reload_address): Do not generate bad reloads on
10210         darwin.
10212         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
10213         instruction does.
10214         ("altivec_lvxl"): Same.
10215         (altivec_lvebx): Same.
10216         (altivec_lvehx): Same.
10217         (altivec_lvewx): Same.
10218         ("*movv4si_const0"): New.
10219         ("*movv4sf_const0"): New.
10220         ("*movv8hi_const0"): New.
10221         ("*movv16qi_const0"): New.
10223 2002-02-18  Kazu Hirata  <kazu@hxi.com>
10225         * config/h8300/h8300.c (notice_update_cc): Use
10226         cc_status.value2.
10228 2002-02-18  Kazu Hirata  <kazu@hxi.com>
10230         * config/h8300/h8300.md (divmod patterns): Change the
10231         constraints for operands[1] to register_operand.
10233 2002-02-18  Kazu Hirata  <kazu@hxi.com>
10235         * config/h8300/h8300-protos.h: Remove the prototype for
10236         p_operand.
10237         * config/h8300/h8300.c (p_operand): Remove.
10238         * config/h8300/h8300.md: Replace p_operand with
10239         const_int_operand.
10241 2002-02-18 Philip Blundell <pb@nexus.co.uk>
10243         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
10244         comment.
10245         (output_return_instruction): Allow use of LDR to unstack
10246         return addresss even for interrupt handlers or when
10247         interworking.  If compiling for ARMv5, use interworking-safe
10248         return instructions by default.  Remove duplicated code and
10249         lengthy "strcat" sequences.
10251 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10253         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
10254         (LINK_EH_SPEC): Define.
10255         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
10257 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
10259         * config/s390/s390.c (s390_emit_prologue): Do not set the
10260         frame_related flag for call-clobbered registers.
10262 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
10264         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
10265         (construct_container): Fix handling of SSE operands.
10266         (ix86_expand_builtin): Fix handling of 64bit pointers.
10267         (mmx_maskmovq_rex): New pattern.
10269 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
10271         * regrename.c (kill_set_value): Handle subregs properly.
10273 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
10275         * objc/objc-act.c (handle_impent): Remove leading '*'
10276         from objc_class_name.
10278 2002-02-17  Richard Henderson  <rth@redhat.com>
10280         * config/alpha/alpha.c (some_small_symbolic_operand,
10281         some_small_symbolic_operand_1, split_small_symbolic_operand,
10282         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
10283         Handle small SYMBOL_REFs anywhere, not just inside memories.
10284         * config/alpha/alpha-protos.h: Update.
10285         * config/alpha/alpha.h (PREDICATE_CODES): Update.
10286         * config/alpha/alpha.md (small symbolic operand splitter): Update.
10288 2002-02-17  Roland McGrath  <roland@frob.com>
10290         * config.gcc (powerpc-*-gnu-gnualtivec*,
10291         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
10292         * config/rs6000/gnu.h: New file.
10293         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
10294         Grok "gnu" in rs6000_abi_name.
10295         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
10296         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
10297         Grok -mcall-gnu analogous to -mcall-linux et al.
10298         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10299         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
10300         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
10302 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
10304         PR c/3444:
10305         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
10306         shortening.
10308 2002-02-17  Philipp Thomas  <pthomas@suse.de>
10310         * config/cris/cris.h: Undefine STARTFILE_SPEC and
10311         ENDFILE_SPEC before (re)defining them.
10313 2002-02-17  Kazu Hirata  <kazu@hxi.com>
10315         * config/h8300/h8300.c: Fix formatting.
10316         * config/h8300/h8300.h: Likewise.
10318 2002-02-17  Philipp Thomas  <pthomas@suse.de>
10320         * doc/tm.texi: Explain why empty strings should not be
10321         marked for translation.
10323 2002-02-17  Philipp Thomas  <pthomas@suse.de>
10325         * final.c (output_operand_lossage): Changed to accept
10326         printf style arguments. Change calls where necessary.
10327         * output.h (output_operand_lossage): Change declaration
10328         accordingly. Update copyright.
10329         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
10330         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
10331         Update copyright date where necessary.
10333         * config/i386/i386.c (print_operand): Likewise. Remove use of
10334         sprintf.
10336         * config/cris/cris.c (cris_operand_lossage): Likewise.
10337         Rename parameter so that exgettext recognizes it as
10338         translatable message.
10339         (LOSE_AND_RETURN): Rename parameter to msgid.
10341 2002-02-17  Kazu Hirata  <kazu@hxi.com>
10343         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
10344         hard coded register number with an appropriate macro.
10345         (HARD_REGNO_MODE_OK): Likewise.
10346         (ARG_POINTER_REGNUM): Likewise.
10347         (STATIC_CHAIN_REGNUM): Likewise.
10348         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
10349         * config/h8300/h8300.md (define_constants): Define more
10350         register numbers.
10352 2002-02-17  Philipp Thomas  <pthomas@suse.de>
10354         * config/i386/i386.h: Don't mark empty strings for translation.
10356 2002-02-16  H.J. Lu <hjl@gnu.org>
10358         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
10360 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
10362         * cppinit.c (merge_include_chains): Check for brack being
10363         NULL before attempting to merge it with qtail.
10365 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
10367         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
10368         DBX_DEBUG.
10370 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10372         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
10374 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10376         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
10377         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
10378         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
10380 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10382         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
10383         now only if !TARGET_FIX.
10384         (*movsi_nt_vms_fix): New pattern.
10386 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
10388         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
10389         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
10390         (alpha_sa_mask, alpha_sa_size): Reflect above change.
10391         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
10392         (alpha_start_function, alpha_expand_epilogue): Likewise.
10393         (unicosmk_gen_dsib): Likewise.
10395 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10397         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
10399 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
10401         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
10402         check_and_change_labels, s390_final_chunkify): Delete.
10403         (s390_split_branches, s390_chunkify_pool): New functions.
10404         (s390_function_prologue): Call them.
10406         * config/s390/s390.h (S390_REL_MAX): Delete.
10407         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
10409         * config/s390/s390.md (cjump, icjump, jump): Fix length
10410         attribute calculation.
10413 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
10415         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
10416         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
10418 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10420         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
10421         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
10422         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
10424 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
10426         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
10428 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
10430         * reload.c (find_dummy_reload): Check that an output register
10431         is valid for its mode.
10433 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
10435         * combine.c (known_cond): After replacing the REG of a SUBREG, try
10436         to simplify it.
10438         * function.c (assign_parms): Demote promoted argument passed by
10439         transparent reference.
10441 2001-02-14      Joel Sherrill <joel@OARcorp.com>
10443         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
10444         -Acpu() and -Amachine() to eliminate warnings.
10446 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
10448         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
10450 2002-02-14  Kazu Hirata  <kazu@hxi.com>
10452         * config/h8300/h8300-protos.h: Update the prototype for
10453         const_costs.
10454         * config/h8300/h8300.c (const_costs): Treat SET as a little
10455         more expensive operation.
10456         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
10457         reference to const_costs.
10459 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
10461         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
10463 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
10465         PR c/5503:
10466         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
10467         use arguments from newtype.
10469 2002-02-13  Eric Christopher  <echristo@redhat.com>
10471         * config/mips/mips.c (override_options): Add check for march/mipsX
10472         on the same command line. Fix error message in cpu processing.
10473         Remove architecture and ISA checks.
10475 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
10477         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
10479         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
10481 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
10483         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
10484         alternatives.
10485         ("*movv8hi_internal1"): Same.
10486         ("*movv16qi_internal1"): Same.
10487         ("*movv4sf_internal1"): Same.
10489         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
10490         not push_reload for altivec modes.
10492 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
10494         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
10495         all RTEMS targets including removal of #includes from config/*/rtems*.h
10496         file and adding them to tm_file setting. Added xm_defines=POSIX to
10497         many targets.
10498         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
10499         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
10500         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
10501         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
10502         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
10503         config/m68k/rtemself.h: Ditto.
10504         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
10505         config/mips/rtems64.h: Ditto.
10506         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
10507         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
10508         Ditto.
10509         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
10510         config/sparc/rtemself.h: Ditto.
10511         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
10512         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
10513         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
10514         more like arm-elf.
10515         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
10516         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
10517         target made more similar to i386-elf.
10518         * config/i386/t-rtems-i386: Added soft float support and multilibs.
10519         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
10520         be similar to config/m68k/t-m68kelf.
10521         * gthr-rtems.h: Encapsulate with extern "C" for C++.
10523 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
10525         * regmove.c (kill_value): Handle subregs.
10527 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
10529         * i386.md (mul patterns): Allow memory operand to be first;
10530         add expanders where needed; fix constraints.
10531         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
10532         Allow memory operand to be the first.
10534         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
10535         operands.
10537 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
10539         PR c/5681:
10540         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
10541         GET_MODE (x).
10543 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
10545         PR optimization/5547:
10546         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
10547         all valid IA-32 address modes involving non-scaled %ebx and
10548         GOT/GOTOFF as displacement.
10550 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
10552         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
10553         after emitting ltorg insns.
10555         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
10556         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
10557         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
10558         *abssf2): Fix "op_type" attribute.
10560 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
10562         * mkconfig.sh: Avoid using a subshell redirect.
10563         ($output.T): Change to $(output)T.
10564         (ENABLE_NLS): Remove unneeded undef.
10566         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
10567         * config/alpha/x-vms (libsubdir): Define.
10569         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
10570         register frame procedures. Optimize retrieving context.
10572         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
10573         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
10574         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
10576 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10578         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
10579         Make same change as for find_base_value.
10581 2002-02-13  Kazu Hirata  <kazu@hxi.com>
10583         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
10584         of QImode and SImode.
10586 2002-02-13  Kazu Hirata  <kazu@hxi.com>
10588         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
10589         length computation of movsi.
10590         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
10592 2002-02-13  Kazu Hirata  <kazu@hxi.com>
10594         * config/h8300/h8300.md (subqi3): Tighten the predicate for
10595         operands[2] to register_operand.
10597 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
10599         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
10601 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
10603         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
10604         for altivec_lvx* and altivec_stvx*.
10605         ("*movv4si_internal"): Add constraint for loading from GPRs.
10606         ("*movv8hi_internal1"): Same.
10607         ("*movv16qi_internal1"): Same.
10608         ("*movv4sf_internal1"): Same.
10610         * config/rs6000/rs6000.c (altivec_register_operand): New.
10612         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
10613         altivec_register_operand.
10615 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
10617         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
10618         handle SYMBOL_REF.
10620 2002-02-13  Stan Shebs  <shebs@apple.com>
10622         * c-typeck.c (digest_init): Handle vectors.
10623         (really_start_incremental_init): Same.
10624         (pop_init_level): Same.
10625         (process_init_element): Same.
10627         * varasm.c (output_constant): Same.
10629         * expr.c (clear_storage): Same.
10630         (store_constructor): Same.
10632 2002-02-12  Eric Christopher  <echristo@redhat.com>
10634         * explow.c (hard_function_value): Add comment explaining
10635         signed/unsigned comparison.
10637 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
10639         * jump.c (never_reached_warning): Add finish argument.
10640         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
10641         real insn after end.
10642         * rtl.h (never_reached_warning): Adjust prototype.
10643         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
10644         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
10645         never_reached_warning.
10647 2002-02-12  Graham Stott  <grahams@redhat.com>
10649         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
10651 2002-02-12  Kazu Hirata  <kazu@hxi.com>
10653         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
10654         logical shifts on H8/300.
10655         (shift_alg_si): Improve several shifts on H8/300.
10656         (get_shift_alg): Likewise.
10658 2002-02-12  Graham Stott  <grahams@redhat.com>
10660         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
10662 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10664         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
10665         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
10667 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
10669         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
10670         non-CONST_INT through default_assemble_integer.
10671         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
10672         <case 8>: Abort for CONST_DOUBLE.
10674 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10676         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
10677         is specified.
10678         * config/pa/pa-linux.h (LIB_SPEC): Delete.
10679         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10681 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
10683         * config/stormy16/stormy16.md (zero_extendqihi2): New.
10685 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
10687         * regrename.c (regrename_optimize): Don't accept a
10688         part-clobbered register if the replaced register is not part
10689         clobbered.
10691         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
10692         take padding into account when computing the argument value.
10694         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
10696         * combine.c (try_combine): Apply substitutions in
10697         CALL_INSN_FUNCTION_USAGE too.
10699 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
10701         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
10702         __builtin_altivec_abs*.
10703         (bdesc_abs): New.
10705         * config/rs6000/rs6000.h (rs6000_builtins): Add
10706         ALTIVEC_BUILTIN_ABS*.
10708         * config/rs6000/altivec.h: Use const char for builtins expecting
10709         literals.
10710         (vec_abs): New versions for C and C++.
10711         (vec_abss): Same.
10713 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10715         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
10716         using Pmode.
10718 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10720         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
10721         constant definition from h8300.md.
10722         (FRAME_POINTER_REGNUM): Likewise.
10723         * config/h8300/h8300.md (define_constants): Add FP_REG.
10725 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10727         * config/h8300/h8300.c (print_operand): Remove redundant code.
10729 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10731         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
10732         * config/h8300/h8300.c (byte_reg): Make it static.
10734 2002-02-10  Richard Henderson  <rth@redhat.com>
10736         PR c/5623
10737         * c-typeck.c (incomplete_type_error): Handle flexible array members.
10739 2002-02-10  Richard Henderson  <rth@redhat.com>
10741         PR c++/5624
10742         * tree.c (append_random_chars): Don't abort if main_input_filename
10743         does not exist.
10745 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
10747         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
10749 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10751         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
10752         (pushhi1): Likewise.
10754 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10756         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
10757         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
10759 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
10761         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
10762         remove MASK_VIS.
10763         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
10765 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10767         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
10768         a half of an SImode register on H8/300.
10770 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
10772         * i386.md (movdi_2): Add missing '!'.
10774 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10776         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
10777         definitions.
10779 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10781         * config/h8300/h8300.md (length): Correct the distance valid
10782         for the short branch.
10784 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10786         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
10788 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
10790         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
10791         registers in SImode.
10792         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
10793         part-clobbered.
10795         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
10796         patch.
10798         Contribute sh64-elf.
10799         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
10800         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
10801         (sh_cannot_modify_jumps_p): New function.
10802         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
10803         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
10804         (sh_ms_bitfield_layout_p): New function.
10805         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
10806                     Zack Weinberg  <zack@codesourcery.com>
10807         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
10808         expand_simple_binop instead of expand_binop.
10809         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
10810         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
10811         use of .quad and .uaquad.
10812         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
10813         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
10814         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10815         * config/sh/sh.md (movdi_const, movdi_const_32bit,
10816         movdi_const_16bit): Make sure all CONSTs have modes.
10817         (sym2PIC): Ditto, but by adjusting all callers.
10818         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
10819         if the prologue calls the SHmedia argument decoder or register
10820         saver.
10821         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10822         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
10823         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
10824         (sh_expand_epilogue): Don't emit USE of return target register.
10825         (prepare_move_operands): Legitimize DImode PIC addresses.
10826         (sh_media_register_for_return): Skip tr0, used to initialize the
10827         PIC register.
10828         (sh_expand_prologue): Remove explicit USE of return register.
10829         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
10830         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
10831         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
10832         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
10833         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
10834         EXTRA_CONSTRAINT_T.
10835         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
10836         (MOVI_SHORI_BASE_OPERAND_P): New.
10837         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
10838         (EXTRA_CONSTRAINT_T): Define in terms of them.
10839         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
10840         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
10841         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
10842         alternatives supporting TARGET_REGS.
10843         (UNSPEC_GOTPLT): New constant.
10844         (movdi split): Move incrementing of LABEL_NUSES...
10845         (movdi_const, movdi_const_32bit): Here.  Use
10846         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
10847         (movdi_const_16bit): New.
10848         (call, call_value) [flag_pic]: Use GOTPLT.
10849         (call_pop, call_value_pop): New expands.
10850         (call_pop_compact, call_pop_rettramp): New insns.
10851         (call_value_pop_compact, call_value_pop_rettramp): New insns.
10852         (sibcall) [flag_pic]: Use GOT.
10853         (builtint_setjmp_receiver): Remove bogus, unused expand.
10854         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
10855         (*pt, *ptb, ptrel): New insns.
10856         (sym2GOT): Handle DImode GOT.
10857         (sym2GOTPLT, symGOTPLT2reg): New expands.
10858         (sym2PIC): New expand.
10859         (shcompact_return_tramp): Use GOTPLT to return trampoline.
10860         (shcompact_return_tramp_i): Use return register explicitly.
10861         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
10862         disable flag_reorder_blocks.
10863         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
10864         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
10865         clobbers, for clarity.
10866         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
10867         restoring of r0 in macl as MAYBE_DEAD.
10868         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
10869         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
10870         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
10871         alter_subreg all over.
10872         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
10873         reload, instead of emitting instructions that would require
10874         reloading.
10875         (casesi_load_media): Add missing modes.
10876         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
10877         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
10878         as used if the argument decoder is called.
10879         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
10880         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
10881         Pmode, then extend it to DImode if necessary.
10882         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
10883         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
10884         constants in FPU-enabled SHmedia, let them be loaded from memory.
10885         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
10886         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
10887         Adjust whitespace in assembly output templates.
10888         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
10889         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
10890         mode of if_then_else.
10891         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
10892         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
10893         sh.h.
10894         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
10895                     Joern Rennecke <amylaar@redhat.com>
10896         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
10897         (SUBTARGET_CPP_PTR_SPEC): New.
10898         (SUBTARGET_CPP_SPEC): Remove.
10899         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
10900         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10901         Fix typo in previous checkin.
10902         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
10903         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
10904         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
10905                     Alexandre Oliva  <aoliva@redhat.com>
10906         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
10907         what single FP register can hold for SHmedia target.
10908         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
10909                     Alexandre Oliva  <aoliva@redhat.com>
10910         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10911         Do not split into SUBREG.
10912         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
10913         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
10914         and added new functions as specified in SH5 ABI r9.
10915         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
10916         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
10917         8-byte boundary.
10918         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
10919         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
10920         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
10921         and consttable_window_ends.
10922         2001-06-03  Graham Stott  <grahams@redhat,com>
10923         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
10924         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
10925         * config/sh/sh.c (print_operand): Handle floating-point pair,
10926         vector and matrix registers.
10927         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
10928         vector modes into account.
10929         * config/sh/sh.md (movv2sf): Split move between registers into
10930         movdf.
10931         (movv4sf, movv16sf): Introduce insns that get split only after
10932         reload.
10933         * config/sh/shmedia.h: Fix Copyright dates.
10934         * config/sh/ushmedia.h: Likewise.  Move loop counter
10935         declarations into conditionals that uses them.
10936         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
10937         loop boundary.
10938         * config/sh/sshmedia.h: Fix Copyright dates.
10939         (sh_media_PUTCFG): Fix constraints.
10940         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
10941         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
10942         ptrmemfunc_vbit_in_delta for SH5.
10943         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
10944         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
10945         * invoke.texi: Likewise.
10946         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
10947         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
10948         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
10949         GCC_pop_shmedia_regs_nofpu): New global symbols.
10950         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
10951         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
10952         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
10953         compact function with nonlocal labels.
10954         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
10955         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
10956         (initial_elimination_offset): Account for their stack space.
10957         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
10958         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
10959         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
10960         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
10961         least one of the operands to be a register.
10962         (movv2sf): Likewise.  Renamed to movv2sf_i.
10963         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
10964         prepare_move_operands() before emitting SHmedia insns.
10965         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
10966         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
10967         Don't save nor initialize r12.  Don't mis-align the stack.
10968         Pad the code with a nop.
10969         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
10970         stack.
10971         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
10972         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
10973         [__SHMEDIA__]: Implement.
10974         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
10975         * config/sh/sh.md: Set latency of `pt' closer to reality.
10976         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
10977         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
10978         Set move, load and store type attributes.
10979         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
10980         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
10981         profiling.
10982         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
10983         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
10984         * config/sh/sh.c (sh_media_register_for_return): New function.
10985         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
10986         branch-target register.
10987         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
10988         * config/sh/sh.md (return_media_i): Use any call-clobbered
10989         branch-target register.
10990         (return_media): If r18 wasn't copied in the prologue, copy it
10991         here.
10992         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
10993         Clear class FP0_REGS.
10994         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
10995         from elf.h.
10996         2001-03-08  DJ Delorie  <dj@redhat.com>
10997         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
10998         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
10999         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
11000         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
11001         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
11002         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
11003         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
11004         return value correctly for call_cookie.
11005         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
11006         * config/sh/crt1.asm (start): Modified so as to call
11007         ___setup_argv_and_call_main.
11008         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
11009         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
11010         SHmedia mode.
11011         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
11012         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
11013         (STRIP_NAME_ENCODING): Use it.
11014         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
11015         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
11016         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
11017         prepare_scc_operands().
11018         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
11019         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
11020         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
11021         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
11022         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
11023         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
11024         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
11025         used in shcompact_incoming_args.
11026         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
11027         change.
11028         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
11029         mode.
11030         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
11031         Adjust accordingly.
11032         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
11033         Simplify.  Adjust.  Add sanity check.
11034         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
11035         FPU_SINGLE_BIT.
11036         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
11037         TARGET_SHCOMPACT.
11038         (udivsi3, divsi3): Use them.
11039         (force_mode_for_call): New insn.
11040         (call, call_value, sibcall_value): Emit it before SHcompact
11041         calls.
11042         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
11043         * config/sh/sh.md (call, call_value, sibcall): Make sure the
11044         call cookie is non-NULL before taking its value.
11045         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
11046         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
11047         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
11048         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
11049         block.
11050         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
11051         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
11052         temporary for stack adjusts.  Use MACL and MACH to pass
11053         arguments to shcompact_incoming_args.
11054         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
11055         clobber r1.
11056         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
11057         (nested_trampoline): Load static chain address into r1.
11058         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
11059         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
11060         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
11061         fp_arith_reg_operand().
11062         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
11063         * config/sh/sh.md (casesi): Sign-extend the first two operands,
11064         and use signed compares for them.
11065         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
11066         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
11067         ones properly aligned.
11068         (find_barrier): Account for extra alignment needed for 8-byte wide
11069         constants.
11070         (machine_dependent_reorg): Require a label for the second 4-byte
11071         constant after an 8-byte one.
11072         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
11073         change.
11074         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
11075         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
11076         last_float when switching float modes.
11077         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
11078         auto-increment for general-purpose registers.
11079         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
11080         result.
11081         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
11082         for stack adjust.
11083         * config/sh/sh.c (sh_builtin_saveregs): Support using all
11084         registers for varargs.
11085         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
11086         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
11087         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
11088         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
11089         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
11090         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
11091         call_cookie accordingly.
11092         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
11093         (SHCOMPACT_BYREF): Likewise.
11094         (SHCOMPACT_FORCE_ON_STACK): New macro.
11095         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
11096         (sh_builtin_saveregs): Likewise.
11097         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
11098         shcompact_incoming_args): Use new shift values.  Support
11099         sequences of consecutive and non-consecutive pushes/pops.
11100         * config/sh/sh.md (return): Don't explicitly use PR_REG.
11101         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
11102         * config/sh/sh.h (TEXT_SECTION): Define.
11103         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
11104         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
11105         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
11106         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
11107         return values on FPU-enabled SHmedia.
11108         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
11109         FPU-enabled SHmedia.
11110         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
11111         value is returned in a non-FP reg and is not returned by
11112         reference.
11113         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
11114         jump_ind.
11115         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
11116         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
11117         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
11118         quad-aligned to be passed by callee-copy reference.
11119         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
11120         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
11121         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
11122         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
11123         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
11124         copying low-numbered FP regs to r7 and r8.
11125         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
11126         FP regs to general-purpose regs only if the copy was passed on the
11127         stack.
11128         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
11129         copying FP reg to r9.
11130         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
11131         copy FP regs to general-purpose regs only in outgoing calls.
11132         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
11133         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
11134         HOST_WIDE_INT.
11135         * config/sh/sh.h (struct sh_args): Document all fields.
11136         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
11137         passed partially on the stack should not consider making
11138         sibcalls.
11139         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
11140         stack_regs only for incoming calls.  When passing FP args,
11141         make sure there are FP regs available before modifying
11142         call_cookie.
11143         (SHCOMPACT_BYREF): Pass double args in general-purpose
11144         registers by reference.
11145         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
11146         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
11147         attempt to generate sibcalls if the caller got any arguments
11148         by reference.
11149         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
11150         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
11151         to 8-byte boundaries.
11152         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
11153         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
11154         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
11155         stored in the stack.
11156         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
11157         for the offsets to have the ISA bit set.
11158         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
11159         invocation.  Use beq instead of bgt to mark end of sequence of
11160         loads.
11161         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
11162         bgt to mark end of sequence of stores.
11163         * config/sh/sh.c (arith_operand): Don't check whether
11164         CONST_OK_FOR_J for now.
11165         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
11166         instead of long for conversion.
11167         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
11168         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
11169         before passing it to fprintf.
11170         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
11171         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
11172         Call set_fpscr before reading/writing SR.
11173         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
11174         Call set_fpscr.
11175         * config/sh/lib1funcs.asm: Add `.align 2' directives before
11176         SHmedia code.
11177         (FMOVD_WORKS): Define on SH5 with FPU.
11178         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
11179         setting.
11180         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
11181         _fpscr_values.
11182         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
11183         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
11184         address.
11185         (ia_main_table): Ditto.
11186         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
11187         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
11188         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
11189         the definitions from sh.h.
11190         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
11191         TARGET_SH5.
11192         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
11193         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
11194         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
11195         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
11196         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
11197         Increment LABEL_NUSES.
11199         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
11200         TARGET_SH5.
11201         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
11202         defined.
11203         * config/sh/elf.h (SIZE_TYPE): Likewise.
11204         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
11205         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
11206         shcompact_incoming_args): Load switch table addresses using
11207         datalabel.
11208         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
11209         (NO_BUILTIN_SIZE_TYPE): Define.
11210         (SIZE_TYPE): Don't define.
11211         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
11212         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
11213         definition of __SH5__=32 for -m5-compact-nofpu.
11214         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
11215         ADDR_DIFF_VEC.
11216         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
11217         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
11218         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
11219         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
11220         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
11221         (INSN_LENGTH_ALIGNMENT): Likewise.
11222         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
11223         * config/sh/sh.md (call, call_value, sibcall): Simplify
11224         copying of non-branch-target register.
11225         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
11226         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
11227         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
11228         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
11229         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
11230         floating-point values as structs.
11231         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
11232         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
11233         general-purpose register.
11234         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
11235         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
11236         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
11237         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
11238         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
11239         (ENCODE_SECTION_INFO): Enclose variables and constants in
11240         DATALABEL unspecs.
11241         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
11242         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
11243         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
11244         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
11245         only for LABEL_REFs.  For SYMBOL_REFs, prepend
11246         SH_DATALABEL_ENCODING to the symbol name.
11247         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
11248         convert_mode().
11249         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
11250         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
11251         UNSPEC_DATALABEL.
11252         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
11253         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
11254         (DATALABEL_REF_P): Don't require CONST.
11255         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
11256         REL label.
11257         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
11258         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
11259         right.
11260         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
11261         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
11262         Use shallow_copy_rtx and PUT_MODE to change the mode of
11263         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
11264         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
11265         on SHmedia using GENERAL_REGs.
11266         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
11267         bltu_media_i): Fix reversion of conditions.
11268         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
11269         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
11270         * config/sh/sh.c (output_far_jump): Save r13 in macl.
11271         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
11272         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
11273         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
11274         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
11275         (GCC_nested_trampoline): Likewise.
11276         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
11277         * config/sh/sh.c (gen_datalabel_ref): Define.
11278         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
11279         (INITIALIZE_TRAMPOLINE): Likewise.
11280         (TRAMPOLINE_ADJUST_ADDRESS): Define.
11281         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
11282         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
11283         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
11284         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
11285         (ic_invalidate): Adjust for SH5.
11286         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
11287         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
11288         _nested_trampoline.
11289         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
11290         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
11291         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
11292         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
11293         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
11294         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
11295         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
11296         * config/sh/sh.c (target_reg_operand): Match only target-branch
11297         registers and pseudos that aren't virtual registers.
11298         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
11299         Copy operands that don't match target_reg_operand to pseudos.
11300         (call_media, call_value_media, sibcall_media): Use
11301         target_reg_operand instead of target_operand.
11302         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
11303         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
11304         * config/sh/sh.c (target_reg_operand): Match hardware registers
11305         other than branch-target registers.
11306         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
11307         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
11308         (fpscr_values) [SH5 == 32]: Define.
11309         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
11310         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
11311         Handle function addresses coming in SUBREGs.
11312         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
11313         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
11314         shcompact_return_trampoline): Use datalabel where appropriate.
11315         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
11316         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
11317         general-purpose register to copy one branch-target register to
11318         another.
11319         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
11320         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
11321         SYMBOL_REFs with VOIDmode.
11322         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
11323         bltu_media_i): New insns.
11324         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
11325         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
11326         (INIT_CUMULATIVE_ARGS): Likewise.
11327         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
11328         * machmode.def (V16SFmode): New mode.
11329         * c-common.c (type_for_mode): Support V2SF and V16SF.
11330         * tree.c (build_common_tree_nodes_2): Likewise.
11331         * tree.h (tree_index): Likewise.
11332         * calls.c (emit_call_1): Take args_so_far.  Adjust all
11333         callers.  Introduce CALL_POPS_ARGS.
11334         * tm.texi (CALL_POPS_ARGS): Document.
11335         * config/sh/crt1.asm: Implement in SHmedia mode.
11336         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
11337         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
11338         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
11339         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
11340         Implement divsi and udivsi in SHmedia mode.  Introduce
11341         SHcompact trampolines.
11342         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
11343         only in SHmedia64.
11344         (regno_reg_class): Rewrite.
11345         (fp_reg_names): Remove.
11346         (sh_register_names, sh_additional_register_names): New.
11347         (print_operand): Added `u'.  Support SUBREGs in addresses.
11348         Add parentheses around shifted CONSTs.
11349         (output_file_start): Output .mode and .abi directives.
11350         (shiftcosts, addsubcosts, multcosts): Adjust.
11351         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
11352         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
11353         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
11354         bytes, not registers.  Take into account the need for the
11355         SHcompact incoming args trampoline.  Adjust all callers.
11356         (sh_expand_prologue): Take stack_regs into account.  Call
11357         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
11358         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
11359         stack aligned as per SH5 ABI.
11360         (sh_builtin_saveregs): Support SH5 ABI.
11361         (sh_build_va_list, sh_va_start): Likewise.
11362         (initial_elimination_offset): Take alignment into account.
11363         Compute location of PR according to the SH5 stack frame.
11364         (arith_reg_operand): Reject branch-target registers.
11365         (shmedia_6bit_operand): New.
11366         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
11367         (target_reg_operand): Match DImode only.  Accept SUBREGs.
11368         (target_operand): New.
11369         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
11370         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
11371         SIBCALL_REGS for SHmedia.
11372         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
11373         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
11374         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
11375         (TARGET_SWITCHES): New SH5 flags.
11376         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
11377         VALID_REGISTER_P to disable unsupported registers.
11378         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
11379         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
11380         (FUNCTION_ARG_PADDING): Define.
11381         (FASTEST_ALIGNMENT): Adjust.
11382         (SH_REGISTER_NAMES_INITIALIZER): New.
11383         (sh_register_names): Declare.
11384         (DEBUG_REGISTER_NAMES): Define.
11385         (REGISTER_NAMES): Define based on sh_register_names.
11386         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
11387         (sh_additional_register_names): Declare.
11388         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
11389         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
11390         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
11391         (REGISTER_NATURAL_MODE): Define.
11392         (FIRST_PSEUDO_REGISTER): Adjust.
11393         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
11394         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
11395         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
11396         (VECTOR_MODE_SUPPORTED_P): Define.
11397         (REG_CLASS_CONTENTS): Adjust.
11398         (SMALL_REGISTER_CLASSES): Adjust.
11399         (REG_ALLOC_ORDER): Adjust.
11400         (INDEX_REG_CLASS): Adjust.
11401         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
11402         (CONST_OK_FOR_LETTER_P): Adjust.
11403         (PREFERRED_RELOAD_CLASS): Adjust.
11404         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
11405         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
11406         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
11407         (FIRST_FP_PARM_REG): Adjust.
11408         (CALL_POPS_ARGS): Define.
11409         (FUNCTION_ARG_REGNO_P): Adjust.
11410         (struct sh_args): New fields.
11411         (GET_SH_ARG_CLASS): Adjust.
11412         (INIT_CUMULATIVE_ARGS): Adjust.
11413         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
11414         (FUNCTION_ARG_ADVANCE): Adjust.
11415         (FUNCTION_ARG): Adjust.
11416         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
11417         (FUNCTION_ARG_CALLEE_COPIES): Define.
11418         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
11419         (STRICT_ARGUMENT_NAMING): Define.
11420         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
11421         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
11422         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
11423         (SETUP_INCOMING_VARARGS): Adjust.
11424         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
11425         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
11426         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
11427         (SUBREG_OK_FOR_INDEX_P): Adjust.
11428         (EXTRA_CONSTRAINT_S): Update.
11429         (EXTRA_CONSTRAINT_T): New.
11430         (EXTRA_CONSTRAINT): Adjust.
11431         (GO_IF_LEGITIMATE_INDEX): Adjust.
11432         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
11433         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
11434         (MOVE_MAX): Adjust.
11435         (MAX_MOVE_MAX): Define.
11436         (Pmode): Adjust.
11437         (CONST_COSTS): Adjust.
11438         (REGISTER_MOVE_COST): Adjust.
11439         (BRANCH_COST): Adjust.
11440         (TEXT_SECTION_ASM_OP): Adjust.
11441         (DBX_REGISTER_NUMBER): Adjust.
11442         (ASM_OUTPUT_DOUBLE_INT): New.
11443         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
11444         (PREDICATE_CODES): Adjust.
11445         (PROMOTE_MODE): Adjust.
11446         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
11447         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
11448         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
11449         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
11450         (DR0_REG, DR2_REG, DR4_REG): Renumber.
11451         (TR0_REG, TR1_REG, TR2_REG): New.
11452         (XD0_REG): Renumber.
11453         (UNSPEC_COMPACT_ARGS): New.
11454         (type): Added pt and ptabs.
11455         (length): Default to 4 on SHmedia.  Default pt length to 12
11456         and     20 on SHmedia32 and SHmedia64, respectively.
11457         (pt): New function unit.
11458         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
11459         Add whitespace between operands of SHmedia instructions.
11460         (movdicc): Fix.
11461         (adddi3_media, addsi3_media): Adjust constraints.
11462         (subsi3) [SHmedia]: Force operand 1 into a register.
11463         (udivsi3_i1_media, udivsi3_i4_media): New.
11464         (udivsi3): Support SHmedia.
11465         (divsi3_i1_media, divsi3_i4_media): New.
11466         (divsi3): Support SHmedia.
11467         (anddi3, iordi3, xordi3): Adjust constraints.
11468         (zero_extendhidi2, zero_extendqidi2): New.
11469         (extendsidi2, extendhidi2, extendqidi2): New.
11470         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
11471         (pop_e, pop_fpul, pop_4): Likewise.
11472         (movsi_media): Support FP and BT registers.
11473         (movsi_media_nofpu): New.  Adjust splits to DImode.
11474         (lduw, ldub): Renamed to zero_extend* above.
11475         (movqi_media): Fix typo.
11476         (movdi_media): Support FP and BT registers.
11477         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
11478         (movdi_const_32bit): New.
11479         (shori_media): Require immediate operand.  Use `u' for output.
11480         (movdf_media, movsf_media): Simplified.
11481         (movdf_media_nofpu, movsf_media_nofpu): New.
11482         (movdf, movsf): Adjust
11483         (movv2sf, movv2sf, movv16sf): New.
11484         (beq_media, beq_media_i): Adjust constraints.  Don't use
11485         scratch BT register.
11486         (bne_media, bne_media_i): Likewise.
11487         (bgt_media, bgt_media_i): Likewise.
11488         (bge_media, bge_media_i): Likewise.
11489         (bgtu_media, bgtu_media_i): Likewise.
11490         (bgeu_media, bgeu_media_i): Likewise.
11491         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
11492         bunordered): Emit jump insn.  Force operands to registers when
11493         needed.
11494         (jump_media, jump): Simplify.
11495         (call_compact, call_compact_rettramp): New.
11496         (call_value_compact, call_value_compact_rettramp): New.
11497         (call_media, call_value_media): Simplify.
11498         (sibcall_compact, sibcall_media): New.
11499         (call, call_value): Adjust for SHmedia and SHcompact.
11500         (sibcall, sibcall_value, untyped_call): Likewise.
11501         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
11502         (indirect_jump): Adjust for SHmedia.
11503         (casesi_jump_media): New.
11504         (nop): Re-enable for SHmedia.
11505         (call_site): Restrict to SH1.
11506         (casesi): Adjust for SHmedia.
11507         (casesi_shift_media, casesi_load_media): New.
11508         (return): Explicitly use PR register.  Call return trampoline
11509         on SHcompact.
11510         (return_i): Explicitly use PR register.
11511         (shcompact_return_tramp, shcompact_return_tramp_i): New.
11512         (return_media): Adjust.
11513         (shcompact_incoming_args): New.
11514         (epilogue): Adjust.
11515         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
11516         (movstrsi): Disable on SH5.
11517         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
11518         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
11519         (subsf3, subsf3_media): Likewise.
11520         (mulsf3, mulsf3_media, mac_media): Likewise.
11521         (divsf3, divsf3_media): Likewise.
11522         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
11523         (floatsisf2, fux_truncsfsi2): Likewise.
11524         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
11525         constraints.
11526         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
11527         (cmpunsf_media, cmpsf): Likewise.
11528         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
11529         (abssf2, abssf2_media): Likewise.
11530         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
11531         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
11532         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
11533         (floatsidf2, fix_truncdfsi2): Likewise.
11534         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
11535         constraints.
11536         (cmpeqdf_media, cmpgtdf_media): Likewise.
11537         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
11538         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
11539         (absdf2, absdf2_media): Likewise.
11540         (extendsfdf2, extendsfdf2_media): Likewise.
11541         (truncsfdf2, truncsfdf2_media): Likewise.
11542         * config/sh/sh64.h: New file.
11543         * config/sh/t-sh64: New file.
11544         * config/sh/shmedia.h: New file.
11545         * config/sh/ushmedia.h: New file.
11546         * config/sh/sshmedia.h: New file.
11547         * configure.in: Added sh64-*-elf.
11548         * configure: Rebuilt.
11549         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
11550         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
11551         (reg_class_from_letter): Use `b' for TARGET_REGS.
11552         (print_operand): Support `%M', `%m', `AND' and
11553         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
11554         (andcosts): Adjust for SHmedia.
11555         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
11556         Likewise.
11557         (target_reg_operand): New function.
11558         * config/sh/sh-protos.h (target_reg_operand): Declare.
11559         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
11560         FP registers on SH5.
11561         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
11562         on SH4.
11563         (TARGET_REGISTER_P): New macro.
11564         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
11565         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
11566         (EXTRA_CONSTRAINT_S): New macro.
11567         (EXTRA_CONSTRAINT): Adjust.
11568         (FLOAT_TYPE_SIZE): Define to 32.
11569         (Pmode): DImode on SHmedia.
11570         (CONST_COSTS): Adjust for SHmedia literals.
11571         (PREDICATE_CODES): Added target_reg_operand.
11572         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
11573         * config/sh/sh.md: Remove all attrs from SHmedia insns.
11574         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
11575         (cmpdi): Accept SHmedia.
11576         (movdicc_false, movdicc_true): New insns.
11577         (movdicc): New expand.
11578         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
11579         no_new_pseudos.
11580         (addsi3_media): Match `S' constraint.
11581         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
11582         (negdi2): Expand for SHmedia.
11583         (one_cmpldi2): New expand.
11584         (zero_extendsidi2): Change from expand to insn.
11585         (extendsidi2): Add constraints.
11586         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
11587         LD/ST address.  Fix SI immediate loading split.
11588         (movhi_media, movqi_media, lduw, ldub): New insns.
11589         (movhi, movqi): Accept SHmedia.
11590         (shori_media, movdi_media): Relax input constraints.  Split
11591         symbolic constants.
11592         (movdf_media, movsf_media): New insn.  New split to movdi.
11593         (movdf, movsf): Match on SHmedia.
11594         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
11595         bgeu_media): New insns and splits.  New insns with `_i' suffix.
11596         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
11597         (bunordered): New expand.
11598         (jump_compact): Renamed from `jump'.
11599         (jump_media): New insn.
11600         (jump): New expand.
11601         (call_media, call_value_media): New insns.
11602         (call, call_value): Adjust.
11603         (indirect_jump_compact): Renamed from `indirect_jump'.
11604         (indirect_jump_media): New insn.
11605         (indirect_jump): New expand.
11606         (untyped_call, return): Accept SHmedia.
11607         (return_media): New insn.
11608         (prologue, epilogue, blockage): Accept SHmedia.
11609         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
11610         (sunordered): New expand.
11611         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
11612         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
11613         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
11614         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
11615         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
11616         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
11617         abssf2_media): New insns.
11618         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
11619         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
11620         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
11621         floatdidf2, floatsidf2_media, fix_truncdfdi2,
11622         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
11623         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
11624         absdf2_media): New insns.
11625         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
11626         (extendsfdf2_media, truncdfsf2_media): New insns.
11627         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
11628         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
11629         * config/sh/sh.h (CONST_OK_FOR_J): Document.
11630         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
11631         * config/sh/sh.md (adddi3): New expand.
11632         (adddi3_media, adddi3z_media): New insns.
11633         (adddi3_compact): Renamed from adddi3.
11634         (addsi3_media): Use add.l r63 to add constant zero.
11635         (subdi3): New expand.
11636         (subdi3_media): New insn.
11637         (subdi3_compact): Renamed from subdi3.
11638         (mulsidi3): New expand.
11639         (mulsidi3_media): New insn.
11640         (mulsidi3_compact): Renamed from mulsidi3.
11641         (umulsidi3): New expand.
11642         (umulsidi3_media): New insn.
11643         (umulsidi3_compact): Renamed from umulsidi3.
11644         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
11645         (ashlsi3, ashrsi3, lshrsi3): Use them.
11646         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
11647         (ashldi3, ashrdi3, lshrdi3): Use them.
11648         (zero_extendsidi2): New expand.
11649         (extendsidi2): New insn.
11650         (movsi_media): New insn.  Split to movdi to load constants.
11651         (movsi): Enable for shmedia.
11652         (movdi_media): New insn.  Use shori_media to load wide constants.
11653         (short_media): New insn.
11654         (movdi): Enable for shmedia.
11655         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
11656         * config/sh/sh.h (CPP_SPEC): Added `m5'.
11657         (SUBTARGET_CPP_SPEC): Added `!m5'.
11658         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
11659         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
11660         to all other SH variants.
11661         (TARGET_DEFAULT): Set to SH1_BIT.
11662         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
11663         (BITS_PER_WORD): Raise to 64 on shmedia.
11664         (MAX_BITS_PER_WORD): Change to 64.
11665         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
11666         (INT_TYPE_SIZE): Keep as 32.
11667         (UNITS_PER_WORD): Raise to 8 on shmedia.
11668         (MIN_UNITS_PER_WORD): Keep as 4.
11669         (POINTER_SIZE): Raise to 64 on shmedia.
11670         (CONST_OK_FOR_J): New macro.
11671         (CONST_OK_FOR_LETTER_P): Use it.
11672         (processor_type): Add PROCESSOR_SH5.
11673         * config/sh/sh.md: Conditionalize all expands, insns and
11674         splits to TARGET_SH1.
11675         (cpu): Added sh5.
11676         (addsi3_compact): Renamed from...
11677         (addsi3): Now an expand.
11678         (addsi3_media, subsi3_media): New insns.
11679         (subsi3): Don't negate constants with SHmedia.
11681         * hooks.c: New file.
11682         * hooks.h: New file.
11683         * Makefile.in (HOOKS_H): New.
11684         (TARGET_DEF_H): Added $(HOOKS_H).
11685         (OBJS): Added hooks.o.
11686         (cfgcleanup.o, bb-reorder.o): Added target.h.
11687         (hooks.o): Added dependencies.
11688         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
11689         (TARGET_INITIALIZER): this.
11690         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
11691         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
11692         * bb-reorder.c: Include target.h.
11693         (reorder_basic_blocks): Skip if cannot modify jumps.
11694         * cfgcleanup.c: Include target.h.
11695         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
11697 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
11699         * config/mips/mips.md (casesi_internal, casesi_internal_di):
11700         Protect jump delay slot instructions with .set noreorder and
11701         .set nomacro.
11703 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
11705         * config/mips/mips.md (casesi_internal_di): Calculate
11706         the index into the target offset table correctly.
11708 2002-02-08  Richard Henderson  <rth@redhat.com>
11710         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
11711         * final.c (output_addr_const): Accept and discard SUBREG.
11712         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
11713         mark them unknown instead.
11714         (simplify_subtraction): Handle RTX_UNKNOWN.
11715         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
11717 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
11719         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
11721 2002-02-08  Richard Henderson  <rth@redhat.com>
11723         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
11725 2002-02-08  Andreas Jaeger  <aj@suse.de>
11727         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
11728         * config/i386/t-linux64: New file.
11730 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
11732         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
11733         * c-parse.in (compstmt): Clear last_expr_type.
11735 2002-02-07  Richard Henderson  <rth@redhat.com>
11737         * loop.c (strength_reduce): Sink final_value when not
11738         eliminating a biv.
11740 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
11742         * config/sparc/freebsd.h: Fix mismatched spec {.
11744 2002-02-07  Richard Henderson  <rth@redhat.com>
11746         * cfgrtl.c: Include recog.h and insn-config.h.
11747         (keep_with_call_p): Fix general_operand invocation.
11748         * Makefile.in (cfgrtl.o): Update dependencies.
11750 2002-02-07  Kazu Hirata  <kazu@hxi.com>
11752         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
11753         comment.  Accept HImode only if TARGET_H8300.
11755 2002-02-07  Eric Christopher  <echristo@redhat.com>
11757         * config/mips/crtn.asm: Cleanup #ifdefs.
11759 2002-02-07  Eric Christopher  <echristo@redhat.com>
11761         * config/mips/crti.asm: Add changes for mips16. mips16 uses
11762         register 7 as RA instead of $31.
11763         * config/mips/crtn.asm: Ditto.
11764         * config/mips/mips.c (mips_move_2words): Add case for
11765         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
11766         (compute_frame_size): Fix typo.
11767         (save_restore_insns): Ditto.  Make documentation about using
11768         register $7 as return register more precise.
11769         (mips_expand_epilogue): Fix comment. Add code to work around not
11770         being able to add to the stack pointer directly.
11771         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
11772         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
11773         epilogue.
11775 2002-02-07  Tom Rix  <trix@redhat.com>
11777         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
11778         immediates in ldu and stdu DS opcode field.
11779         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
11780         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
11781         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
11783 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
11785         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
11786         offset for stack bias.
11788 2002-02-07  H.J. Lu <hjl@gnu.org>
11790         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
11792 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
11794         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
11796 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
11798         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
11799         * i386.c (x86_order_regs_for_local_alloc): New global function.
11800         * i386.h (REG_ALLOC_ORDER): CLeanup.
11801         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
11803 2002-02-07  Richard Henderson  <rth@redhat.com>
11805         PR optimization/2463
11806         * alias.c (find_base_value): Recall base values for fixed hard regs.
11807         * loop.c (loop_regs_update): Don't use single_set on non-insns.
11809 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
11811         * config/mips/mips.md (define_delay) [mips16]: Adjust required
11812         length.
11814 2002-02-06  Richard Henderson  <rth@redhat.com>
11816         PR c/5609
11817         * stmt.c (resolve_operand_name_1): Take more care with mixed
11818         named and unnamed operands.
11820 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
11821             Jan Hubicka  <jh@suse.cz>
11823         * loop.c (remove_constant_addition): Avoid clobbering a shared
11824         CONST expression.
11826 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
11828         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
11829         * config/s390/t-linux64: New file.
11830         * config/s390/libgcc-glibc.ver: New file.
11832 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
11834         * config/s390/linux64.h: Delete file.
11835         * config/s390/s390x.h: New file.
11836         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
11837         as target header file.
11838         * config/s390/linux.h (TARGET_VERSION): Define depending on
11839         DEFAULT_TARGET_64BIT.
11840         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
11841         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
11842         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
11843         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
11844         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
11845         (EXTRA_SPEC): New define.
11846         * config/s390/s390.h (TARGET_VERSION): Define depending on
11847         DEFAULT_TARGET_64BIT.
11848         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
11850 2002-02-06  Jason Merrill  <jason@redhat.com>
11852         * c-decl.c (finish_function): Warn about a non-void function with
11853         no return statement and no abnormal exit.
11854         (current_function_returns_abnormally): New variable.
11855         (start_function): Clear it.
11856         (struct c_language_function): Add returns_abnormally.
11857         (push_c_function_context): Save it.
11858         (pop_c_function_context): Restore it.
11859         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
11860         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
11861         an explicit return type.
11862         * c-tree.h: Declare current_function_returns_abnormally.
11863         (C_FUNCTION_IMPLICIT_INT): New macro.
11864         * c-typeck.c (build_function_call): Set it.
11865         (c_expand_return): Set current_function_returns_value even if the
11866         value is erroneous.
11868 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
11870         PR c/5420:
11871         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
11872         unsafe for reevaluation.
11874 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
11876         PR c/5482:
11877         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
11878         EXPR_STMT, but COMPOUND_STMT, recurse into it.
11880 2002-02-06  Richard Henderson  <rth@redhat.com>
11882         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
11883         be a general_operand.  Dest for function value must be a pseudo.
11885 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
11887         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
11888         as SYMBOL_REFs from the constant pool.
11890 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
11892         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
11893         passed by invisible reference.
11895 2002-02-05  Richard Henderson  <rth@redhat.com>
11897         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
11899 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
11901         Implement using "base addresses" in insn operands as default.
11902         * config/mmix/mmix.c (mmix_conditional_register_usage): if
11903         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
11904         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
11905         used to read the rtx value.
11906         (mmix_target_asm_function_epilogue): Fix spacing.
11907         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
11908         (mmix_legitimate_address): Ditto.
11909         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
11910         should be loaded with a GETA insn.  Don't allocate needless extra
11911         char for nul termination and fix misleading comment.
11912         (mmix_print_operand_address): Handle constants if
11913         TARGET_BASE_ADDRESSES.
11914         (mmix_output_register_setting): Use base addressing if
11915         TARGET_BASE_ADDRESSES and the number of insns is 3.
11916         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
11917         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
11918         to use R as constraint, add LDA to match s.
11919         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
11920         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
11921         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
11922         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
11923         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
11924         order with other fixed registers.
11925         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
11926         other parameter/call-clobbered registers.
11927         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
11928         -mbase-addresses, -mno-base-addresses.
11929         (MMIX Options): Ditto.
11931 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11933         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
11935 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
11937         * config/rs6000/altivec.h: Change elem to _S_elem.
11939 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
11941         * config/netbsd.h (WCHAR_TYPE): Define.
11942         (WCHAR_TYPE_SIZE): Ditto.
11943         (WINT_TYPE): Ditto.
11944         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
11945         (WCHAR_UNSIGNED): Ditto.
11946         (WCHAR_TYPE_SIZE): Ditto.
11947         (WINT_TYPE): Ditto.
11948         * config/arm/netbsd.h: Likewise.
11949         * config/i386/netbsd-elf.h: Likewise.
11950         * config/i386/netbsd.h: Likewise.
11951         * config/m68k/netbsd-elf.h: Likewise.
11952         * config/m68k/netbsd.h: Likewise.
11953         * config/ns32k/netbsd.h: Likewise.
11954         * config/sparc/netbsd.h: Likewise.
11955         * config/vax/netbsd.: Likewise.
11957 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
11959         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
11960         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
11961         (TARGET_INITIALIZER): this.
11962         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
11963         (BITFIELD_NBYTES_LIMITED): Markup fix.
11964         * tree.h (default_ms_bitfield_layout_p): Declare.
11965         (record_layout_info): Added prev_field.
11966         * tree.c (default_ms_bitfield_layout_p): New fn.
11967         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
11968         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
11969         * stor-layout.c: Include target.h.
11970         (start_record_layout): Initialize prev_field.
11971         (place_field): Handle MS bit-field layout, and disregard
11972         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
11973         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
11974         * Makefile.in (stor-layout.o): Adjust dependencies.
11976 2002-02-05  Jason Merrill  <jason@redhat.com>
11978         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
11980 2002-02-05  Andreas Jaeger  <aj@suse.de>
11982         * crtstuff.c: Fix comments.
11984 2002-02-05  Richard Henderson  <rth@redhat.com>
11986         PR fortran/3393
11987         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
11988         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
11990         PR fortran/3392
11991         * config/mips/mips.c (function_arg): Handle TImode.
11992         (function_arg_advance): Likewise.
11994 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
11996         * config/rs6000/altivec.h (vec_step_help): Rename to
11997         __vec_step_help.
11999 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
12001         * config/rs6000/altivec.h: Fix typos.
12003 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
12005         * config/arm/netbsd.h: Correct a comment.
12007 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
12009         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
12010         building void typed builtins.
12012         * config/rs6000/altivec.h (vec_ld*): Fix typos.
12013         (vec_step): Implement for C++.
12015 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12017         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
12019 2002-02-04  Richard Henderson  <rth@redhat.com>
12021         * combine.c (nonzero_bits): Re-introduce special case for
12022         sp/fp/ap wrt REGNO_POINTER_ALIGN.
12024 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
12026         * doc/extend.texi: Warn about unsupported usage of altivec
12027         builtins.
12029         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
12030         (altivec_predicate_*): New.
12032         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
12033         Add C++ version of vec_*() functions.
12035         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
12036         (bdesc_2arg): Remove altivec predicates.
12037         (altivec_expand_builtin): Handle predicates.
12038         (altivec_init_builtins): Handle predicates.
12039         (altivec_expand_predicate_builtin): New.
12041 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12043         * pa.c (DO_FRAME_NOTES): Move forward.
12044         (store_reg): Revise handling of frame notes.
12045         (load_reg): Likewise.
12046         (set_reg_plus_d): Likewise.
12047         (hppa_expand_prologue): Likewise.
12048         (hppa_expand_epilogue): Likewise.
12050 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12052         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
12054 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
12056         PR c/4475, c++/3780:
12057         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
12058         * c-common.h (SWITCH_TYPE): Define.
12059         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
12060         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
12061         Rename spareness variable to sparseness.
12062         (expand_end_case_type): Renamed from expand_end_case, use orig_type
12063         if non-NULL instead of TREE_TYPE (orig_index).
12064         * tree.h (expand_end_case_type): Renamed from expand_end_case.
12065         (expand_end_case): Define using expand_end_case_type.
12066         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
12067         to expand_end_case_type.
12068         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
12070 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12072         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
12073         (BIGGEST_ALIGNMENT): Change to 128.
12075 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12077         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
12079 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12081         * pa.md (call_internal_reg_64bit): Remove unused variable.
12083 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
12085         * config/arm/arm.h (machine_function): Add uses_anonymous_args
12086         field.
12087         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
12088         * config/arm/arm.c (current_function_anonymous_args): Delete,
12089         replace uses with cfun->machine->uses_anonymous_args.
12090         (arm_reorg): Do not reset uses_anonymous_args.
12092         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
12093         any geenral register.
12095 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
12097         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
12098         the entry block.
12100 2002-02-04  Richard Henderson  <rth@redhat.com>
12102         * combine.c (force_to_mode): Remove STACK_BIAS code.
12103         (nonzero_bits): Likewise.  Replace sp/fp special case with
12104         REGNO_POINTER_ALIGN.
12106         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
12107         (HARD_FRAME_POINTER_REGNUM): New.
12108         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
12109         (FIXED_REGS, CALL_USED_REGS): Update.
12110         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
12111         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
12112         (HARD_REGNO_NREGS): Update for SFP.
12113         (STACK_POINTER_OFFSET): Include bias here ...
12114         (FIRST_PARM_OFFSET): ... not here.
12115         (STACK_BIAS): Remove.
12116         (INIT_EXPANDERS): New.
12117         (STARTING_FRAME_OFFSET): Do not include bias.
12118         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
12119         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
12120         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
12121         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
12122         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
12123         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
12124         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
12125         (MUST_SAVE_REGISTER): Likewise.
12126         (sparc_flat_function_prologue): Likewise.
12127         (sparc_flat_function_epilogue): Likewise.
12128         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
12129         (sparc_init_modes): SFP is GENERAL_REGS.
12130         (sparc_builtin_saveregs): SFP does not have bias applied.
12132 2002-02-04  Richard Henderson  <rth@redhat.com>
12134         * config/alpha/alpha.c (current_function_is_thunk): Don't check
12135         current_function_is_thunk.
12136         (alpha_sa_mask): Distinguish between current_function_is_thunk
12137         called from ASM_OUTPUT_MI_THUNK and not.
12138         (alpha_does_function_need_gp): Thunks always need gp.
12139         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
12140         (alpha_output_mi_thunk_osf): New.
12141         * config/alpha/alpha-protos.h: Update.
12142         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
12144 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
12146         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
12147         function types, not when they're taken away.
12149 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
12151         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
12152         CODE_LABEL and jump table when replacing a table jump with a
12153         simple jump.
12155 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12157         * config/s390/s390-protos.h (legitimize_la_operand,
12158         s390_secondary_input_reload_class, s390_plus_operand,
12159         s390_expand_plus_operand): Add prototypes.
12161         config/s390/s390.c (s390_secondary_input_reload_class,
12162         s390_plus_operand, s390_expand_plus_operand): New functions.
12164         (struct s390_address): New member 'pointer'.
12165         (s390_decompose_address): Compute it.
12166         (legitimate_la_operand_p): Use it.
12167         (legitimize_la_operand): New function.
12168         (movti, movdi, movdf splitters): Call it.
12170         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
12171         (PREDICATE_CODES): Add s390_plus_operand.
12173         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
12174         (la_ccclobber): Allow GENERAL_REGS as output operand.
12176         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
12177         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
12178         (*la_64, *la_31, reload_indi, reload_insi): ... these.
12180 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12182         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
12183         register names for regular asm () construct.
12185 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
12187         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
12188         registers.
12190 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
12192         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
12193         pat for recog.
12195 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
12197         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
12198         constant pool to be identical by string address and index.
12200 2002-02-04  Anthony Green  <green@redhat.com>
12202         * output.h (SECTION_OVERRIDE): Define.
12203         * varasm.c (named_section): Obey SECTION_OVERRIDE.
12205 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
12207         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
12208         by existing arm*-*-netbsd* (a.out) target.
12209         (ns32k-*-netbsdelf*): Likewise.
12210         (sparc-*-netbsdelf*): Likewise.
12211         (vax-*-netbsdelf*): Likewise.
12213 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
12215         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
12216         headers and libobjc headers.
12218 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
12220         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
12221         (_mingw.h): Remove duplicate include.
12223 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
12225         * config.gcc: Set cpu_type to m68k for 68010, as well.
12226         (m68010-*-netbsdelf*): New...
12227         (m68k*-*-netbsdelf*): ...targets.
12228         * config/m68k/netbsd-elf.h: New file.
12230 2002-02-02  Kazu Hirata  <kazu@hxi.com>
12232         * config/h8300/h8300.c (hand_list): Move inside function_arg.
12234 2002-02-02  Kazu Hirata  <kazu@hxi.com>
12236         * config/h8300/h8300.c (h8_push_ops): Move inside
12237         h8300_init_once.
12238         (h8_pop_ops): Likewise.
12239         (h8_move_ops): Likewise.
12241 2002-02-02  Kazu Hirata  <kazu@hxi.com>
12243         * config/h8300/h8300.c (os_task): Make it static.
12244         (monitor): Likewise.
12245         (pragma_saveall): Likewise.
12247 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
12249         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
12250         constant is a valid sign-extension for Pmode.
12252 2002-02-02  Kazu Hirata  <kazu@hxi.com>
12254         * config/h8300/h8300.c: Fix formatting.
12256 2002-02-02  Kazu Hirata  <kazu@hxi.com>
12258         * config/h8300/h8300.md: Fix formatting.
12260 2002-02-02  Kazu Hirata  <kazu@hxi.com>
12262         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
12263         predicates of operands[1].  Split the patterns for each
12264         processor variant.
12266 2002-02-02  Kazu Hirata  <kazu@hxi.com>
12268         * config/h8300/h8300.md (xor patterns): Tighten the predicates
12269         of operands[1] to register_operand.
12271 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
12273         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
12274         * cpphash.c (_cpp_init_hashtable): Similarly.
12275         * cppinit.c (cpp_create_reader): Default the signed_char flag.
12276         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
12277         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
12278         (cpp_handle_option): Handle the new options.
12279         * cpplex.c (cpp_interpret_charconst): Use new flag.
12280         * cpplib.h (struct cpp_options): New member signed_char.
12281         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
12282         (cpp_options): Handle -fsigned-char and -funsigned-char.
12283         (static_specs): Remove signed_char_spec.
12284         (do_spec1): Don't handle %c.
12285         * system.h: Poison SIGNED_CHAR_SPEC.
12286         * tradcif.y (yylex): Use flag_signed_char.
12287         * tradcpp.h (flag_signed_char): New.
12288         * tradcpp.c (flag_signed_char): New.
12289         (main): Handle new command-line options.
12290         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
12291 config:
12292         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
12293         * avr/avr.h: Remove old comments.
12294         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
12295         (CC1_SPEC): Pass -fsigned-char if -mic*.
12296         (SIGNED_CHAR_SPEC): Remove.
12297 doc:
12298         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
12300 2002-02-01  Eric Christopher  <echristo@redhat.com>
12302         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
12303         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
12304         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
12305         (ASM_OUTPUT_REG_POP): Ditto.
12307 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
12309         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
12310         patch.
12312 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
12314         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
12316 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
12318         PR c/5304:
12319         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
12320         unconditionally.
12322 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
12324         * cfganal.c: Include tm_p.h.
12325         (keep_with_call_p): Fix the test that determines if a register holds
12326         the return value of a call.
12328 2002-02-01  DJ Delorie  <dj@redhat.com>
12330         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
12331         we are given conflicting registers, switch to the other one we
12332         had allocated for us.
12333         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
12334         as TImode so we know when the "other" register is available.
12336 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
12338         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
12339         sparc/sparc_bi.h.
12341 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
12343         * cfganal.c (keep_with_call_p): New function.
12344         (flow_call_edges_add): Prevent splitting a block between a call and
12345         a single-set instruction that should be kept in the same block.
12347 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12349         * doc/install.texi (avr): Update outdated URL.
12351 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
12353         * config/stormy16/stormy16.md (pushqi): New.
12354         (popqi): New.
12355         (pushhi): New.
12356         (pophi): New.
12357         (movhi): Remove stack operands.
12358         (movqi): Likewise.
12359         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
12360         nonimmediate_nonstack_operand.
12361         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
12362         New.
12363         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
12364         New.
12366 2002-01-31  Jason Merrill  <jason@redhat.com>
12368         * Makefile.in (c-parse.c): Handle .output file.
12369         * objc/Make-lang.in (objc-parse.c): Likewise.
12371 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
12373         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
12374         the -me[lb] option is given.  Don't output the default flag
12375         twice.
12377 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
12379         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
12380         the primary source file; this has not been done yet.
12381         * c-decl.c (c_expand_body): Reset input_filename from
12382         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
12384 2002-01-31  Kazu Hirata  <kazu@hxi.com>
12386         * rtlanal.c (subreg_regno_offset): Do not use
12387         SUBREG_REGNO_OFFSET.
12388         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
12389         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
12391 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
12393         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
12394         version rather than GNATS version in --version output.
12396 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
12398         * ifcvt.c (noce_process_if_block): Make a copy of the destination
12399         when copying back from a temporary.
12401 2002-01-30  Richard Henderson  <rth@redhat.com>
12403         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
12404         and new_dest are the same.
12406 2002-01-30  Richard Henderson  <rth@redhat.com>
12408         PR opt/5076
12409         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
12410         * rtl.c (note_insn_name): Update.
12411         * emit-rtl.c (remove_unnecessary_notes): Kill it.
12412         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
12413         to perform loop rotation.
12414         (expand_exit_loop_top_cond): New.
12415         * tree.h (expand_exit_loop_top_cond): Declare it.
12416         * c-semantics.c (genrtl_while_stmt): Use it.
12417         (genrtl_for_stmt): Likewise.
12419 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
12421         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
12422         arguments to 64-bit boundaries on 64-bit ABIs.
12424 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
12426         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
12428 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
12430         * c-decl.c (grokdeclarator): Handle type being a typedef for an
12431         invalid type.
12433 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
12435         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
12436         * config/sparc/sparc_bi.h: Remove file.
12437         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
12439 2002-01-30  Richard Henderson  <rth@redhat.com>
12441         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
12443 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
12445         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
12447 2002-01-30  Jason Merrill  <jason@redhat.com>
12449         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
12450         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
12451         (reg_save): Use DW_CFA_offset_extended_sf instead.
12453         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
12455 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
12457         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
12458         in cselib_lookup.
12460 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
12462         * rs6000.md ("*call_value_local32"): Remove constraints.
12463         ("*call_value_local64"): Same.
12464         ("*call_value_indirect_nonlocal_aix32"): Same.
12465         ("*call_value_nonlocal_aix32"): Same.
12466         ("*call_value_indirect_nonlocal_aix64"): Same.
12467         ("*call_value_nonlocal_aix64"): Same.
12468         ("*call_value_nonlocal_sysv"): Same.
12470 2002-01-29  Richard Henderson  <rth@redhat.com>
12472         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
12474 2002-01-29  Richard Henderson  <rth@redhat.com>
12476         * expr.c (force_operand): Ignore flag_pic for detecting pic
12477         address loads.
12478         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
12479         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
12480         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
12481         instead of open-coded loop.
12482         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
12483         be fixed when in use.
12485 2002-01-29  Richard Henderson  <rth@redhat.com>
12487         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
12488         * sched-rgn.c (propagate_deps): Update them.
12489         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
12490         clobbers list when either gets too long.
12492 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
12494         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
12495         and INDEX_REGS the same as GENERAL_REGS.
12496         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
12498 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12500         * tree.c (build_nonstandard_integer_type): Correct prototype.
12502 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
12504         * config/s390/s390.md (movstrsico, movstrdix_64,
12505         movstrsix_31): Remove, replace by ...
12506         (movstrdi_short, movstrsi_short, movstrdi_long,
12507         movstrsi_long): ... these.  New.
12508         (movstrdi, movstrsi): Adapt.
12510         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
12511         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
12512         Remove unnecessary CC clobber.
12513         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
12514         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
12516         (divmoddi4): Don't partially initialize TImode register.
12518 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
12520         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
12522 2002-01-29  Richard Henderson  <rth@redhat.com>
12524         * flow.c (print_rtl_and_abort): Remove.
12525         (print_rtl_and_abort_fcn): Remove.
12526         (verify_local_live_at_start): Use dump_bb instead.
12527         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
12528         (verify_wide_reg_1): Return 2 on mode test failure.
12530 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12532         PR c/3325, c/3326, c/2511, c/3347
12533         * c-decl.c (enum_decl_context): Remove BITFIELD.
12534         (grokdeclarator): Take bitfield width as an input.
12535         Ensure bitfields are given the correct type.  Perform
12536         bitfield width validation with build_bitfield_integer_type
12537         rather than waiting for finish_struct.
12538         (grok_typename, grok_typename_in_parm_context, start_decl,
12539         push_parmdecl, grokfield, start_function): Update calls to
12540         grokdeclarator.
12541         (build_bitfield_integer_type): New function.
12542         (finish_struct): Move bitfield validation to grokdeclarator
12543         and build_bitfield_integer_type.
12544         * tree.c (build_nonstandard_integer_type): New function.
12545         * tree.h (build_nonstandard_integer_type): New prototype.
12546 objc:
12547         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
12549 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
12551         PR other/1502:
12552         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
12553         don't ignore unrecognized -W* options.
12554         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
12555         * cpplib.h (cpp_handle_option): Adjust prototype.
12556         * c-decl.c (c_decode_options): Pass 0 as last argument to
12557         cpp_handle_option.
12559         PR c/2896:
12560         * gcc.c (cpp_unique_options): Split from cpp_options.
12561         (cpp_options): Source cpp_unique_options.
12562         (default_compilers): Use cpp_unique_options instead of cpp_options
12563         when used together with cc1_options.
12564         (static_specs): Add cpp_unique_options.
12565         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
12566         when used together with cc1_options.
12568 2002-01-29  Kazu Hirata  <kazu@hxi.com>
12570         * config/h8300/h8300-protos.h: Update the prototype of
12571         output_a_shift.
12572         * config/h8300/h8300.c (output_a_shift): Remove an unused
12573         argument 'insn'.  Remove redundant code.
12574         * config/h8300/h8300.md: Adust to the new prototype of
12575         output_a_shift.
12577 2002-01-29  Kazu Hirata  <kazu@hxi.com>
12579         * config/h8300/h8300-protos.h: Update the prototypes of
12580         emit_a_rotate and expand_a_rotate.
12581         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
12582         first argument to 'enum rtx_code'.
12583         (expand_a_rotate): Likewise.
12585 2002-01-28  Kazu Hirata  <kazu@hxi.com>
12587         * config/h8300/h8300-protos.h: Update the prototype of
12588         output_simode_bld.
12589         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
12590         'log2'.
12591         * config/h8300/h8300.md: Adjust to the new prototype.
12593 2002-01-28  Kazu Hirata  <kazu@hxi.com>
12595         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
12596         redundant code.
12598 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12600         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
12601         is a fixed register before returning pic_offset_table_rtx.
12602         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
12603         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
12605 2002-01-28  Jason Merrill  <jason@redhat.com>
12607         * dwarf2.h: Sync with src version.
12609 2002-01-28  Paul Koning  <pkoning@equallogic.com>
12611         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
12612         BT_FN_VOID_PTR_VAR.
12613         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
12614         * doc/extend.texi (__builtin_prefetch): Update documentation:
12615         first argument is now const void ptr.
12617 2002-01-28  Kazu Hirata  <kazu@hxi.com>
12619         * config/h8300/h8300-protos.h: Remove an unused prototype.
12621 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
12623         * toplev.c (lang_independent_init): Round up identifier size.
12625 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
12627         * config.gcc: Revert previous change.
12629 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
12631         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
12633 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
12635         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
12636         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
12637         other non-elf netbsd config frags.
12638         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
12639         collect2 will does that.
12640         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
12641         shared-lib frobbing will work.
12643 2002-01-28  Kazu Hirata  <kazu@hxi.com>
12645         * config/h8300/h8300.h: Fix formatting.
12646         * config/h8300/h8300.md: Likewise.
12648 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
12650         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
12651         the old, removed AAA_standards fix.
12652         * fixinc/fixincl.x: Rebuilt.
12654 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
12656         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
12657         atexit call in crtbegin, hooked in after call to frame_dummy;
12658         register EH before registering __fini__start.
12660 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
12662         * config/rs6000/altivec.h: Remove spurious semicolons.
12664 2002-01-27  Kazu Hirata  <kazu@hxi.com>
12666         * config/h8300/h8300.md: Replace dead bit extraction patterns
12667         with ones that work.
12669 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12671         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
12672         if not STRICT_ALIGNMENT.
12673         * rtl.h (MEM_ALIGN): Likewise.
12675 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12677         * doc/invoke.texi (-fdump-translation-unit): Revert this
12678         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12680 2002-01-27  Kazu Hirata  <kazu@hxi.com>
12682         * config/h8300/h8300.md (define_constants): New.
12683         (anonymous patterns) Use defined constants appropriately.
12685 2002-01-27  Kazu Hirata  <kazu@hxi.com>
12687         * config/h8300/h8300.c (function_arg): Remove redundant code.
12689 2002-01-26  Richard Henderson  <rth@redhat.com>
12691         * sched-deps.c (reg_pending_uses_head): New.
12692         (reg_pending_barrier): Rename from reg_pending_sets_all.
12693         (find_insn_list): Don't mark inline.
12694         (find_insn_mem_list): Remove.
12695         (add_dependence_list, add_dependence_list_and_free): New.
12696         (flush_pending_lists): Replace only_write param with separate
12697         for_read and for_write parameters.  Update all callers.  Use
12698         add_dependence_list_and_free.
12699         (sched_analyze_1): Do not add reg dependencies here; just set
12700         the pending bits.  Use add_dependence_list.
12701         (sched_analyze_2): Likewise.
12702         (sched_analyze_insn): Replace schedule_barrier_found with
12703         reg_pending_barrier.  Add all dependencies for pending reg
12704         uses, sets, and clobbers.
12705         (sched_analyze): Don't add reg dependencies for calls, just
12706         set pending bits.  Use regs_invalidated_by_call.  Treat
12707         sched_before_next_call as a normal list, not a fake insn.
12708         (init_deps): No funny init for sched_before_next_call.
12709         (free_deps): Free pending mems lists.  Don't zero reg_last.
12710         (init_deps_global): Init reg_pending_uses.
12711         (finish_deps_global): Free it.
12712         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
12713         (find_insn_mem_list): Remove.
12714         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
12715         (propagate_deps): Use them.  Zero temp mem lists.
12717 2002-01-26  Richard Henderson  <rth@redhat.com>
12719         * Makefile.in (CRTSTUFF_CFLAGS): New.
12720         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
12721         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
12722         crtstuff.c instead of alpha assembly version.
12723         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
12724         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
12725         not FORCE_{INIT,FINI}_SECTION_ALIGN.
12726         (__do_global_dtors_aux): Mark used.
12727         (frame_dummy, __do_global_ctors_aux): Mark used.
12728         (fini_dummy, init_dummy): Remove.
12730         * config/alpha/crtbegin.asm: Remove file.
12731         * config/alpha/crtend.asm: Remove file.
12732         * config/alpha/t-crtbe: Remove file.
12733         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
12734         (LINK_EH_SPEC): New.
12736         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
12737         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
12738         calling constructors.
12739         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
12741         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
12742         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
12743         CRT_END_INIT_DUMMY hack.
12744         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
12745         FORCE_{INIT,FINI}_SECTION_ALIGN.
12747         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
12748         FORCE_{INIT,FINI}_SECTION_ALIGN.
12750         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
12751         invocation sequence.
12752         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
12754         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
12755         (FORCE_CODE_SECTION_ALIGN): New.
12757 2002-01-26  Richard Henderson  <rth@redhat.com>
12759         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
12761 2002-01-26  Richard Henderson  <rth@redhat.com>
12763         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
12764         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
12766 2002-01-26  Kazu Hirata  <kazu@hxi.com>
12768         * config/h8300/h8300.md: Remove bit extraction patterns that
12769         cannot be triggered.
12770         Restrict each bit extraction pattern to a variant on which the
12771         pattern is tested.
12773 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
12775         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
12777 2002-01-26  Kazu Hirata  <kazu@hxi.com>
12779         * config/h8300/h8300.md: Remove bit test patterns that cannot
12780         be triggered.
12781         Restrict each bit test pattern to a variant on which the
12782         pattern is tested.
12784 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12786         * builtins.c (expand_builtin_strncat): Remove redundant check for
12787         INTEGER_CST.
12789 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
12791         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
12792         default setting.
12793         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
12794         existing setting.
12796 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
12798         * dbxout.c (dbxout_init): Use assemble_name rather than just
12799         stripping off the first character.
12800         (dbxout_source_file): Likewise.
12802 2002-01-25  DJ Delorie  <dj@redhat.com>
12804         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
12805         using rtx_equal_p, not by comparing pointers.
12807 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
12809         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
12810         for PIC_OFFSET_TABLE_REGNUM.
12811         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
12813 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
12815         * config.gcc (x86_64-*-freebsd*): New target.
12816         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
12817         value.
12818         (i[34567]86-*-freebsd*): Don't include svr4.h.
12819         * config/i386/freebsd64.h: New file.
12821 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
12823         * config/alpha/x-vms (version): Make static.
12825         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
12826         in previous checkin.
12828         * Makefile.in (install-headers-cp): New target.
12829         * config.gcc (alpha-dec-*vms*): Install headers with
12830         install-headers-cp
12832 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
12834         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
12835         avoid it's copies.
12837 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12839         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
12840         of compare_tree_int.
12841         (expand_builtin_strncat): Likewise.
12842         * c-decl.c (finish_struct): Use tree_low_cst.
12843         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
12844         * tree.c (compare_tree_int): Likewise.
12846 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
12848         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
12849         adjustments even if they are implemented by more than two insns.
12851 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12853         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
12854         * df.h (struct ref): Kill B.
12855         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
12857         * basic-block.h (PROP_EQUAL_NOTES): New flag.
12858         * flow.c (propagate_one_insn): Use it.
12859         (mark_used_regs): Handle NIL.
12861 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
12863         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
12864         to help folding.
12866 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
12868         * rs6000.md (prefetch): Make address V4SI mode so that the address
12869         is restricted to legitimate form for instruction.
12871 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
12873         * doc/install.texi (xtensa-*-elf): New target.
12874         (xtensa-*-linux*): New target.
12875         * doc/contrib.texi: Add myself.
12877 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
12879         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
12880         purpose register to hold an SImode (or smaller) value.
12882 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
12884         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
12885         registry only.
12886         * crtstuff.c: Likewise.
12888 2002-01-25  Kazu Hirata  <kazu@hxi.com>
12890         * config/h8300/h8300.md (negation patterns): Tighten
12891         predicates to register_operand.
12893 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
12895         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
12896         mode, not Pmode.
12898         * builtins.c (expand_builtin_prefetch): Same.
12900 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12902         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
12903         modes.
12905 2002-01-24  Kazu Hirata  <kazu@hxi.com>
12907         * config/h8300/h8300.c (print_operand): Remove support for
12908         operand character 'A'.
12909         * config/h8300/h8300.md (three anonymous patterns): Replace
12910         operand character 'A' with either 'T' or 'S'.
12912 2002-01-24  Kazu Hirata  <kazu@hxi.com>
12914         * config/h8300/h8300.c (print_operand): Remove support for
12915         operand character 'U'.
12917 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
12919         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
12921 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
12923         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
12924         values to be assigned to the stack pointer.
12926 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
12928         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
12929         to const_double needs to be done right for big-endian systems.
12931 2002-01-24  Jason Merrill  <jason@redhat.com>
12933         PR c++/2432
12934         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
12935         to can_throw_internal.
12937 2002-01-23  Richard Henderson  <rth@redhat.com>
12939         * fold-const.c (fold): Change UINT_MAX test to check vs precision
12940         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
12942 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12944         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
12945         (symGOT2reg): Use them, then set as GOT value as unchanging.
12946         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
12947         as a temporary, if possible.
12948         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
12949         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
12951 2002-01-23  Kazu Hirata  <kazu@hxi.com>
12953         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
12954         accept to accept 0x80 as operands[2].
12956 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12958         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
12960 2002-01-23  Richard Henderson  <rth@redhat.com>
12962         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
12964 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
12966         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
12967         (parmlist_or_identifiers_1): Verify that only a parmlist follows
12968         an attribute.
12970 2002-01-23  Richard Henderson  <rth@redhat.com>
12972         * expr.c (move_by_pieces_1): Extend size before negation.
12974         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
12975         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
12976         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
12977         * config/m68k/t-m68kelf: Likewise.
12979 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
12981         * config/xtensa/elf.h: New file.
12982         * config/xtensa/lib1funcs.asm: New file.
12983         * config/xtensa/lib2funcs.S: New file.
12984         * config/xtensa/linux.h: New file.
12985         * config/xtensa/t-xtensa: New file.
12986         * config/xtensa/xtensa-config.h: New file.
12987         * config/xtensa/xtensa-protos.h: New file.
12988         * config/xtensa/xtensa.c: New file.
12989         * config/xtensa/xtensa.h: New file.
12990         * config/xtensa/xtensa.md: New file.
12991         * config.gcc (xtensa-*-elf*): New target.
12992         (xtensa-*-linux*): New target.
12993         * cse.c (canon_hash): Compare rtx pointers instead of register
12994         numbers.  This is required for the Xtensa port.
12995         * integrate.c (copy_insn_list): Handle case where the static
12996         chain is in memory and the memory address has to be copied to
12997         a register.
12998         * doc/invoke.texi (Option Summary): Add Xtensa options.
12999         (Xtensa Options): New node.
13000         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
13002 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
13004         * diagnostic.c (internal_error): Do ICE suppression only
13005         when ENABLE_CHECKING is not defined.
13007         * c-typeck.c (require_complete_type): Return error_mark_node
13008         if type is error_mark_node.
13010 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
13012         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
13013         -Os and issue a warning.
13015 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
13017         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
13018         current (lack of) need for host configuration by hand.
13020         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
13021         references.  Documentation of some target macros moved from
13022         hostconfig.texi to tm.texi.
13024 2002-01-23  Will Cohen  <wcohen@redhat.com>
13026         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
13027         defined.
13029 2002-01-23  Kazu Hirata  <kazu@hxi.com>
13031         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
13032         operand[3].
13034 2002-01-23  Jason Merrill  <jason@redhat.com>
13036         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
13038         * function.c (assign_parms): Don't put args of inline functions
13039         into registers when not optimizing.
13041 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
13043         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
13044         (prologue_use): New pattern.
13045         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
13046         preference to gen_rtx_USE.
13047         (thumb_expand_prologue): Use gen_prologue_use in preference to
13048         gen_rtx_USE.
13049         (thumb_expand_epilogue): Use gen_prologue_use in preference to
13050         gen_rtx_USE.
13052 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
13054         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
13056 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
13058         PR c/3504
13059         * doc/extend.texi: Correct documentation of __alignof__.
13061 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
13063         * params.h: Rename arguments of DEFPARAM so that it will be
13064         recognized as a translation keyword.
13066 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
13068         * extend.texi: Document altivec functions.
13069         Fix N-bit adjectives in X86 builtin documentation.
13071 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
13073         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
13074         auto_inc_dec values.
13076 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
13078         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
13079         after backslash.
13080         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
13082 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
13084         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
13086 2002-01-22  Richard Henderson  <rth@redhat.com>
13088         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
13089         copy_insn not copy_rtx.
13091 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
13093         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
13094         "nonzero" as that might add "1" bits.  Ensure "constop" is
13095         properly sign extened.
13096         (force_to_mode): Tweak for sign extended constop.
13098 2002-01-22  Richard Henderson  <rth@redhat.com>
13100         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
13101         for_each_rtx instead of assuming we're already looking at the MEM.
13102         (split_small_symbolic_mem_operand): Likewise.
13103         * config/alpha/alpha.h (PREDICATE_CODES): Update.
13104         * config/alpha/alpha.md (small symbolic memory splitters): Update.
13106 2002-01-22  Richard Henderson  <rth@redhat.com>
13108         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
13109         sequence number for the literal.
13110         (divmoddi_internal_er): Likewise.
13112 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13114         PR java/4972
13115         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
13116         in LIBICONV variable.
13117         * configure: Regenerated.
13119 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
13121         * dependence.c (build_def_use): Remove array_idx.
13123         * dwarfout.c (last_filename): Remove.
13124         (output_compile_unit_die): Remove last_filename.
13126 2002-01-22  Roger Sayle  <roger@eyesopen.com>
13127             Richard Henderson  <rth@redhat.com>
13129         PR opt/3640
13130         * fold-const.c (fold): Optimize unsigned comparisons against
13131         UINT_MAX (and similar unsigned constants).
13133 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
13135         * Makefile.in (loop.o): Depend on OPTABS_H.
13136         * loop.c (emit_prefetch_instructions): Check the prefetch operand
13137         against the predicate.
13139         PR target/5379
13140         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
13141         for the address operand.
13143 2002-01-22  Richard Henderson  <rth@redhat.com>
13145         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
13147 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13149         PR other/5450
13150         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
13151         preprocessor flags.
13153 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
13155         * config.gcc (x86_64-*-netbsd*): New target.
13156         * config/i386/netbsd64.h: New file.
13158 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
13160         * regrename.c (kill_value): Fix typo.
13162 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
13164         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
13166         * config/rs6000/rs6000.h: Same.
13168         * function.c (instantiate_virtual_regs): Remove
13169         STARTING_FRAME_PHASE.
13170         (assign_stack_local_1): Same.
13171         Calculate frame phase.
13173 2002-01-22  Nick Clifton  <nickc@redhat.com>
13175         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
13176         variable declaration to outer scope in order to simplify
13177         future extensions.
13178         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
13179         arm_hard_regno_mode_ok.
13180         * config/arm/arm-protos.h: Add a prototype for
13181         arm_hard_regno_mode_ok.
13182         * config/arm/arm.c (soft_df_operand): Remove now redundant
13183         check for DImode values using IP_REGNUM.
13184         (nonimmediate_soft_df_operand): Remove now redundant check for
13185         DImode values using IP_REGNUM.
13186         (arm_hard_regno_mode_ok): New function. New check: make sure
13187         that DImode values are not stored in IP_REGNUM.
13189         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
13190         note with a USE.
13191         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
13193 2002-01-22  Jason Merrill  <jason@redhat.com>
13195         * c-semantics.c (genrtl_compound_stmt): Only check nesting
13196         consistency if this COMPOUND_STMT is scoped.
13198 2002-01-22  Kazu Hirata  <kazu@hxi.com>
13200         * predict.c: Fix formatting.
13201         * print-tree.c: Likewise.
13202         * protoize.c: Likewise.
13203         * real.h: Likewise.
13204         * rtl.h: Likewise.
13205         * sbitmap.h: Likewise.
13206         * scan.c: Likewise.
13207         * sched-deps.c: Likewise.
13208         * sched-vis.c: Likewise.
13209         * sdbout.c: Likewise.
13210         * sibcall.c: Likewise.
13211         * ssa.c: Likewise.
13212         * ssa-ccp.c: Likewise.
13213         * ssa-dce.c: Likewise.
13214         * stmt.c: Likewise.
13215         * stor-layout.c: Likewise.
13216         * system.h: Likewise.
13218 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13220         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
13221         if fits in bounds of base type.
13223         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
13224         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
13225         (add_bound_info, default): If can't find a context, make a
13226         SAVE_EXPR.
13227         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
13229 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
13231         * c-typeck.c (parser_build_binary_op): If result from
13232         build_binary_op is ERROR_MARK just return error_mark_node without
13233         further processing.
13235 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
13237         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
13238         Split a.out-specific bits into...
13239         * config/netbsd-aout.h: ...this.
13240         * config/netbsd-elf.h: New file.
13241         * config/alpha/netbsd-elf.h: Remove.
13242         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
13243         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
13244         (STARTFILE_SPEC): Remove redundant definition.
13245         (ENDFILE_SPEC): Likewise.
13246         (LINK_SPEC): Likewise.
13247         (CPP_SPEC): Likewise.
13248         (ASM_SPEC): Likewise.
13249         (LIB_SPEC): Likewise.
13250         (SWITCH_TAKES_ARG): Likewise.
13251         (TARGET_MEM_FUNCTIONS): Likewise.
13252         (CPP_PREDEFINES): Redefine.
13253         (ASM_FINAL_SPEC): Remove redefinition.
13254         (ASM_COMMENT_START): Redefine.
13255         (FUNCTION_PROFILER): Define.
13256         (TARGET_VERSION): Redefine.
13257         Comment and formatting cleanup.
13258         * config/i386/netbsd.h: Include <netbsd-aout.h>.
13259         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
13260         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
13261         big- or little-endian.
13262         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
13263         * config.gcc (*-*-netbsd*): Add definitions common to all
13264         NetBSD configs.
13265         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
13266         gnu_ld definitions.  Add netbsd-elf.h to and remove
13267         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
13268         tmake_file, and don't lose previous tmake_file contents.
13269         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
13270         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
13271         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
13272         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
13273         (mipsel-*-netbsd*): Rename this to...
13274         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
13275         mips/little.h to tm_file for mips*el-*.
13276         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
13277         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
13278         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
13280 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13282         * pa-protos.h (reg_before_reload_operand): New function prototype.
13283         * pa.c (reg_before_reload_operand): New function implementation.
13284         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
13285         contraints to "*m".
13287 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13289         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
13291 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13293         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
13294         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
13295         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
13296         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
13297         (ENDFILE_SPEC): Undefine.
13298         (STARTFILE_SPEC): Redefine for PA.
13300 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13302         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
13304 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
13306         * config.gcc: Add entries to supported PowerPC --with-cpu
13307         types.
13309 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
13311         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
13312         true for 64-bit mode only SSE registers in 32-bit mode.
13314 2002-01-21  Kazu Hirata  <kazu@hxi.com>
13316         * unwind-dw2.c: Fix formatting.
13317         * unwind-dw2-fde.c: Likewise.
13318         * unwind-dw2-fde.h: Likewise.
13319         * unwind-pe.h: Likewise.
13320         * varasm.c: Likewise.
13321         * varray.h: Likewise.
13323 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
13325         Remove workaround for register stack overwrite bug in mmix.
13326         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
13327         support for TARGET_REG_STACK_FILL_BUG.
13328         * config/mmix/mmix.h: Remove member has_call_without_parameters.
13329         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
13330         Delete.
13331         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
13332         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
13333         -mno-reg-stack-fill-bug-workaround.
13334         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
13335         machine member has_call_without_parameters.
13336         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
13337         -mreg-stack-fill-bug-workaround and
13338         -mno-reg-stack-fill-bug-workaround.
13339         (MMIX Options): Ditto.
13341 2002-01-21  Kazu Hirata  <kazu@hxi.com>
13343         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
13344         as appropriate.
13345         Remove redundant code.
13347 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
13349         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
13350         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
13351         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
13352         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
13353         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
13354         out target macro definitions and non-target-specific comments
13355         mostly taken from old versions of the manual.
13357 2002-01-20  Kazu Hirata  <kazu@hxi.com>
13359         * config/h8300/h8300.h: Fix comment formatting.
13360         * config/ia64/aix.h: Likewise.
13361         * config/ia64/ia64-protos.h: Likewise.
13362         * config/ia64/ia64.c: Likewise.
13363         * config/ia64/ia64.h: Likewise.
13364         * config/ia64/ia64intrin.h: Likewise.
13365         * config/ia64/linux.h: Likewise.
13366         * config/ia64/unwind-aix.c: Likewise.
13367         * config/ia64/unwind-ia64.c: Likewise.
13369 2002-01-20  Kazu Hirata  <kazu@hxi.com>
13371         * config/h8300/h8300.c: Revise comments about shift code.
13373 2002-01-20  Kazu Hirata  <kazu@hxi.com>
13375         * config/h8300/h8300.c (function_arg): Update a comment.
13377 2002-01-20  Kazu Hirata  <kazu@hxi.com>
13379         * config/h8300/h8300.md: Update the comments at the beginning
13380         of the file.
13382 2002-01-20  Kazu Hirata  <kazu@hxi.com>
13384         * config/i370/i370.c: Fix comment formatting.
13385         * config/i370/i370.h: Likewise.
13386         * config/i370/i370.md: Likewise.
13387         * config/i370/linux.h: Likewise.
13389 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13391         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
13393         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
13394         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
13395         in incomplete case.
13397 2002-01-20  Graham Stott  <grahams@redhat.com>
13399         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
13401 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13403         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
13405 2002-01-19  Tom Rix  <trix@redhat.com>
13407         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
13409 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
13411         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
13413         * function.c (assign_stack_local_1): Adjust x_frame_offset with
13414         STARTING_FRAME_PHASE.
13415         (STARTING_FRAME_PHASE): New.
13416         (instantiate_virtual_regs): Check saneness of
13417         STARTING_FRAME_PHASE.
13419         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
13421 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
13423         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
13425 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13427         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
13428         be used for bootstrapping GCC 3.0.
13430 2002-01-18  Kazu Hirata  <kazu@hxi.com>
13432         * config/h8300/h8300.md: Fix an insn length.
13434 2002-01-18  Kazu Hirata  <kazu@hxi.com>
13436         * bitmap.h: Fix comment formatting.
13437         * combine.c: Likewise.
13438         * cppfiles.c: Likewise.
13439         * c-pragma.h: Likewise.
13440         * c-typeck.c: Likewise.
13441         * df.c: Likewise.
13442         * dwarf2out.c: Likewise.
13443         * function.c: Likewise.
13444         * gcc.c: Likewise.
13445         * genattrtab.c: Likewise.
13446         * gthr-win32.h: Likewise.
13447         * haifa-sched.c: Likewise.
13448         * predict.c: Likewise.
13449         * rtlanal.c: Likewise.
13450         * rtl.h: Likewise.
13451         * unwind-dw2-fde.h: Likewise.
13452         * unwind-pe.h: Likewise.
13453         * vmsdbgout.c: Likewise.
13455 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13457         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
13458         if type_required and passed decl.
13460 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
13462         * config.gcc (cpu_type): Include altivec.h in powerpc
13463         extra_headers.
13464         Same for darwin.
13466         * config/rs6000/altivec.h: New.
13468 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
13470         * doc/install.texi (*-ibm-aix*): Update assembler and exception
13471         handling information.
13472         * doc/trouble.texi (Interoperation): Add libstdc++ information
13473         for AIX.
13474         (Misunderstandings): Add template instantiation and static template
13475         member information for AIX.
13477 2002-01-17  Jason Merrill  <jason@redhat.com>
13479         * dbxout.c (dbxout_type): Support const and volatile.
13481         * except.c (add_partial_entry): Remove backwards compatibility code.
13482         (end_protect_partials): Likewise.
13484 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
13486         * config/ia64/ia64.md (prologue_use): New.
13487         * config/ia64/ia64.c (ia64_expand_prologue): Use
13488         gen_prologue_use instead of gen_rtx_USE.
13489         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
13490         as CODE_FOR_pred_rel_mutex.
13491         (ia64_sched_reorder2): Likewise.
13493 2002-01-16  Eric Christopher  <echristo@redhat.com>
13495         * config/mips/r3900.h: Reformat.
13496         (SUBTARGET_CPP_SIZE_SPEC): Remove.
13497         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
13498         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
13499         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
13500         * config/mips/t-elf: Remove mips3 multilib.
13502 2002-01-16  H.J. Lu <hjl@gnu.org>
13504         * config/mips/linux.h: Include "mips/abi64.h".
13506 2002-01-16  H.J. Lu <hjl@gnu.org>
13508         * config/mips/t-linux: New.
13510         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
13512         * config/mips/linux.h: Don't include "gofast.h".
13513         (INIT_SUBTARGET_OPTABS): Removed.
13515 2002-01-16  Kazu Hirata  <kazu@hxi.com>
13517         * config/h8300/h8300-protos.h: Replace emit_a_shift with
13518         output_a_shift.
13519         * config/h8300/h8300.c: Likewise.
13520         * config/h8300/h8300.md: Likewise.
13522 2002-01-16  Kazu Hirata  <kazu@hxi.com>
13524         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
13525         spaces after an opcode name.
13526         (pushqi1_h8300hs): Likewise.
13527         (pushhi1_h8300hs): Likewise.
13529 2002-01-16  Kazu Hirata  <kazu@hxi.com>
13531         * doc/extend.texi: Replace "option" with "attribute"
13532         appropriately.
13534 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
13536         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
13537         (and:DI () (const_int -8)).
13538         (split_small_symbolic_mem_operand): Split
13539         (mem (and:DI () (const_int -8)).
13541 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
13543         PR target/5309:
13544         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
13545         same way as TYPE_IMUL.
13546         (ultrasparc_sched_reorder): Likewise.
13547         * config/sparc/sparc.md (type): Add comment to update
13548         ultrasparc_sched_reorder when making changes.
13550 2002-01-16  Kazu Hirata  <kazu@hxi.com>
13552         * doc/invoke.texi: Change the dump file name of block
13553         reordering pass from 28.bbro to 29.bbro.
13554         Mention -dk option.
13556 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
13558         * i386.md (minsf splitter): Fix pasto.
13560 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
13562         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
13563         to frame pointer initialisation instruction.
13564         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
13565         initialisation instruction.
13566         (soft_df_operand): Do not accept the IP register.
13567         (nonimmediate_soft_df_operand): Do not accept the IP register.
13569 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
13571         PR target/5357:
13572         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
13573         MASK_V8 being both set.
13575 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
13577         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
13578         insn for GOT register; add REG_MAYBE_DEAD notes instead.
13579         config/s390/s390.md (call, call_value): Add GOT register to
13580         CALL_INSN_FUNCTION_USAGE where needed.
13581         (call_exp, call_value_exp): New.
13583 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
13585         * config/arm/arm.c: General formatting tidy up.
13587 2002-01-16  Graham Stott  <grahams@redhat.com>
13589         * calls.c (try_to_integrate): Use "(size_t)" intermediate
13590         cast and when casting an integer literal to "rtx" pointer.
13591         (expand_call): Likewise.
13592         * flow.c (try_pre_increment): Likewise.
13593         (find_use_as_address): Likewise.
13594         * integrate.c (expand_iline_function): Likewise.
13595         * regmove.c (try_auto_increment): Likewise.
13597 2002-01-16  Graham Stott  <grahams@redhat.com>
13599         * sched-rgn.c (passed): Use sbitmap_free.
13600         (header): Likewise.
13601         (inner): Likewise.
13602         (in_queue): Likewise.
13603         (in_stack): Likewise.
13605 2002-01-15  Eric Christopher  <echristo@redhat.com>
13607         * flow.c (propagate_one_insn): Change to use fatal_insn.
13609 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13611         * expmed.c (extract_fixed_bit_field): Remove unused code.
13612         * system.h: Poison SLOW_ZERO_EXTEND.
13613         * doc/tm.texi: Remove.
13614         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
13615         * config/arm/arm.h: Likewise.
13616         * config/avr/avr.h: Likewise.
13617         * config/clipper/clipper.h: Likewise.
13618         * config/convex/convex.h: Likewise.
13619         * config/d30v/d30v.h: Likewise.
13620         * config/dsp16xx/dsp16xx.h: Likewise.
13621         * config/elxsi/elxsi.h: Likewise.
13622         * config/fr30/fr30.h: Likewise.
13623         * config/h8300/h8300.h: Likewise.
13624         * config/i370/i370.h: Likewise.
13625         * config/i386/i386.h: Likewise.
13626         * config/m68k/m68k.h: Likewise.
13627         * config/mips/mips.h: Likewise.
13628         * config/ns32k/ns32k.h: Likewise.
13629         * config/pdp11/pdp11.h: Likewise.
13630         * config/pj/pj.h: Likewise.
13631         * config/s390/s390.h: Likewise.
13632         * config/sh/sh.h: Likewise.
13633         * config/stormy16/stormy16.h: Likewise.
13634         * config/v850/v850.h: Likewise.
13635         * config/vax/vax.h: Likewise.
13636         * config/we32k/we32k.h: Likewise.
13638 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
13640         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
13641         (altivec_lvsl): Change constraint to b.
13642         (altivec_lvsr): Same.
13643         (altivec_lvebx): Same.
13644         (altivec_lvehx): Same.
13645         (altivec_lvewx): Same.
13646         (altivec_lvxl): Same.
13647         (altivec_lvx): Same.
13648         (altivec_stvx): Add parallel.
13649         (altivec_stvxl): Same.
13650         (altivec_stvehx): Same.
13651         (altivec_stvebx): Same.
13652         (altivec_stvebx): Same.
13654 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
13656         * config.gcc: Change altivec.h to altivec-defs.h.
13658         * config/rs6000/altivec.h: Delete.
13660         * config/rs6000/altivec-defs.h: Add.
13662 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13664         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
13665         and UMOD modes.
13667         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
13668         less than or equal to eight bytes.
13670         * vax.md (andsi3): Remove constraints and change SET destination
13671         operand type to nonimmediate_operand.
13672         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
13673         when it is a CONST_INT.
13675 2002-01-15  Jason Merrill  <jason@redhat.com>
13677         * c-common.def (FILE_STMT): New code.
13678         * c-common.c (statement_code_p): It's a statement.
13679         * c-common.h (stmt_tree_s): Add x_last_filename.
13680         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
13681         (last_expr_filename): New macro.
13682         * c-semantics.c (begin_stmt_tree): Initialize it.
13683         (add_stmt): If the filename changed, also insert a
13684         FILE_STMT.
13685         (expand_stmt): Handle seeing one.
13687 2002-01-15  Eric Christopher  <echristo@redhat.com>
13689         * flow.c (propagate_one_insn): Add error message and print out
13690         insn for debugging.
13692 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
13694         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
13695         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
13696         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
13697         TRAMPOLINE_ALIGNMENT.
13698         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
13699         to be in bits.
13700         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
13701         PCC_BITFIELD_TYPE_MATTERS.
13702         * config/interix.h (STDC_VALUE): Remove.  Use
13703         STDC_0_IN_SYSTEM_HEADERS.
13704         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
13705         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
13706         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
13708 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13710         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
13711         not work on this platform currently.
13713 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
13715         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
13716         readonly_warning in _().
13718 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
13720         * gcc.c (delete_if_ordinary): Backout previous change.
13722 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13724         * config/h8300/h8300.c (print_operand): Remove support for
13725         unused operand characters.
13727         * read-rtl.c: Fix formatting.
13728         * real.c: Likewise.
13729         * recog.c: Likewise.
13730         * regclass.c: Likewise.
13731         * regmove.c: Likewise.
13732         * reg-stack.c: Likewise.
13733         * reload1.c: Likewise.
13734         * rtlanal.c: Likewise.
13736 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13738         * config/i386/i386.c: Fix formatting.
13740 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
13742         * c-typeck.c (process_init_element): Don't save_expr
13743         COMPOUND_LITERAL_EXPR if just its initializer will be used.
13745 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
13747         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
13748         emit optional traceback table if optimize_size or TARGET_ELF.
13749         * config/rs6000/rs6000.md (prefetch): New.
13751 2002-01-15  Andreas Jaeger  <aj@suse.de>
13753         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
13755 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13757         * mips-tfile.c: Fix formatting.
13759 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
13761         * unroll.c (final_reg_note_copy): Fix previous commit.
13763 2002-01-14  Kazu Hirata  <kazu@hxi.com>
13765         * config/h8300/h8300-protos.h: Remove the prototype for
13766         eq_operator.
13767         * config/h8300/h8300.c (eq_operator): Remove.
13769 2002-01-14  Richard Henderson  <rth@redhat.com>
13771         * config/i386/i386.md (prefetch): Tidy.
13772         (prefetch_3dnow): Fix locality operand.
13774 2002-01-14  Richard Henderson  <rth@redhat.com>
13776         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
13777         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
13779 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
13781         * reload1.c (reload_combine): Pass reg_sum replacement through
13782         copy_rtx in loop performing multiple changes.
13784 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
13786         * except.c (remove_unreachable_regions): New.
13787         (free_eh_status): Clear exception_handler_labels.
13788         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
13789         (find_exception_handler_labels): Don't add the same label more than
13790         once.
13791         (remove_exception_handler_label): Don't die if
13792         find_exception_handler_labels hasn't been called for the current
13793         function yet.
13795 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
13797         * toplev.c (rest_of_compilation): Rebuild jump labels after
13798         gcse.
13800 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
13802         * doc/extend.texi: Move documentation of X86 built-in functions
13803         here.
13804         * doc/invoke.texi: From here.
13805         * doc/sourcebuild.texi: Document location of documentation for
13806         machine built-in functions.
13808 2002-01-13  Christopher Faylor  <cgf@redhat.com>
13810         * cppfiles.c (TEST_THRESHOLD): New macro.
13811         (SHOULD_MMAP): Ditto.
13812         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
13813         be used.
13815 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
13817         * unroll.c (final_reg_note_copy): Properly handle
13818         REG_LABEL
13819         (unroll_loops): Fix LOOP_CONDITION heuristics.
13821 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
13823         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
13824         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
13826 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
13828         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
13829         threaded loop.
13831 2002-01-14  Tom Rix  <trix@redhat.com>
13833         * config/rs6000/rs6000.md: Fix typo with sradi.
13835 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
13837         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
13838         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
13839         (clrstrdi, clrstrsi): Adapt callers.
13841         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
13843         (movti splitter): Never use register 0 as base register.
13845 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
13847         * combine.c (simplify_shift_const): Always generate new rtx
13848         for shift expression instead of reusing given expression.
13850 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13852         * config/alpha/alpha.c (alpha_expand_mov): Don't call
13853         alpha_legitimize_address unless mode is Pmode.
13855 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
13857         * doc/md.texi (Modifiers): Document the '*' constraint for the
13858         user.
13860         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
13861         * doc/extend.texi (Function Attributes): 'interrupt' is valid
13862         for xstormy16 too.
13864 2002-01-13  Richard Henderson  <rth@redhat.com>
13866         * reload.c (find_reloads): Use a hard reg destination as reload reg
13867         for an input reload of the source.
13869 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13871         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
13872         more generic.
13874 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
13876         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13877         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13879         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
13881 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13883         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
13885 2002-01-12  Tom Rix  <trix@redhat.com>
13887         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
13888         TARGET_POWERPC64.
13890 2002-01-12  Richard Henderson  <rth@redhat.com>
13892         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
13894         * doc/invoke.texi: Update Alpha options.
13896         * doc/invoke.texi: Update i386 built-in function lists.
13898 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
13900         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
13901         referencing outside.
13903 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13905         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
13906         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
13907         offsets, and change line folding.
13908         * optabs.c (expand_binop): Remove warnings.
13909         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
13911 2002-01-12  Graham Stott <grahams@redhat.com>
13913         * attribs.c (handle_deprecated_attribute): constify WHAT.
13914         * diagnostic.c (warn_deprecated_use): Add braces, fixes
13915         dangling else warning and constify WHAT.
13916         * except.h (struct function, struct inline_remap): Move
13917         struct tag forward defs before all prototypes.
13918         (duplicate_eh_regions): Whitespace.
13920 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
13922         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13923         MODE_BASE_REG_CLASS.
13924         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
13926 2002-01-12  Richard Henderson  <rth@redhat.com>
13928         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
13929         (ix86_expand_vector_move): New.
13930         (bdesc_2arg): Remove andps, andnps, orps, xorps.
13931         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
13932         Remove old prefetch builtins.  Special case the logicals removed above.
13933         (ix86_expand_builtin): Likewise.
13934         (safe_vector_operand): Use V4SFmode, not TImode.
13935         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
13936         (ix86_expand_timode_binop_builtin): New.
13937         * config/i386/i386-protos.h: Update.
13938         * config/i386/i386.h (enum ix86_builtins): Update.
13939         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
13940         Use ix86_expand_vector_move in vector move expanders.
13941         (movti_internal, movti_rex64): Add xorps alternative.
13942         (sse_clrv4sf): Rename and adjust from sse_clrti.
13943         (prefetch): Don't work so hard.
13944         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
13945         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
13946         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
13948 2002-01-11  Richard Henderson  <rth@redhat.com>
13950         * config/i386/mmintrin.h: New file.
13951         * config/i386/xmmintrin.h: New file.
13952         * config.gcc (i?86-*-*): Add extra_headers.
13953         * simplify-rtx.c (simplify_unary_operation): Handle saturating
13954         truncation codes.
13955         (simplify_binary_operation): Handle saturating arithmetic codes.
13956         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
13957         not the lowpart subreg.
13958         (ix86_expand_builtin): Return a TImode dummy register instead of 0
13959         on error.
13960         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
13962 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13964         * conflict.c (conflict_graph_compute): Free regsets when finished.
13965         * ssa.c (compute_coalesced_reg_partition): Likewise.
13967 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13969         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
13970         every where we allocate a register.
13972 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13974         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
13975         * lcm.c (compute_earliest, compute_farthest): Likewise.
13977 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
13979         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
13981 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
13983         * doc/rtl.texi (Insns): Fix 2 typos.
13985 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
13987         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
13988         options.  Use @table @gcctabopt for MMIX options.  Add index
13989         entries for MMIX options.  Start new paragraph with first
13990         heading of the machine-dependent options.
13992 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13994         PR other/5299
13995         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
13996         * combine.c (force_to_mode): Same.
13997         * reload1.c (clear_reload_reg_in_use): Same.
13999 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
14001         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
14002         and 'subtargets'.
14004 2002-01-11  Andreas Jaeger  <aj@suse.de>,
14005             Brad Lucier <lucier@math.purdue.edu>
14007         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
14008         mcpu.
14010 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
14012         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
14013         Protect with IN_LIBGCC.
14014         (LINK_EH_SPEC): Add required trailing space.
14016 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
14018         * c-tree.h: Move function declarations so that they are listed
14019         under the filename which contains them.
14020         (check_identifier, finish_decl_top_level,
14021         lookup_name_current_level_global, shadow_record_fields): Remove.
14023 2002-01-11  Andreas Jaeger  <aj@suse.de>
14025         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
14026         march.
14028 2002-01-10  Richard Henderson  <rth@redhat.com>
14030         * config/alpha/alpha.c (print_operand): Add 'J'.
14031         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
14032         new operand with the sequence number for the lituse.  When splitting
14033         the insns, use gen_movdi_er_high_g and generate a sequence number.
14034         (gen_movdi_er_high_g): Print the sequence number if non-zero.
14036 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
14038         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
14039         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
14040         stvxl.
14041         (altivec_expand_builtin): Same.
14042         (altivec_expand_stv_builtin): New.
14044         * config/rs6000/rs6000.h (rs6000_builtins): Same.
14046         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
14047         ("altivec_lvehx"): New.
14048         ("altivec_lvewx"): New.
14049         ("altivec_lvxl"): New.
14050         ("altivec_lvx"): New.
14051         ("altivec_stvx"): New.
14052         ("altivec_stvebx"): New.
14053         ("altivec_stvehx"): New.
14054         ("altivec_stvewx"): New.
14055         ("altivec_stvxl"): New.
14057 2002-01-10  Richard Henderson  <rth@redhat.com>
14059         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
14060         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
14061         care not to delete instructions twice.
14063 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
14065         * toplev.c: Don't declare environ (it's not used anywhere).
14066         * configure.in: Don't check for declaration of environ.
14067         * config/i386/xm-mingw32.h: Don't #define environ.
14068         * config.in, configure: Regenerate.
14070 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
14072         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
14073         * configure: Regenerate.
14075         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
14076         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
14077         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
14078         alpha/xm-vms.h.
14079         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
14080         LIMITS_H_TEST here, not in m68k/x-next.
14081         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
14082         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
14084         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
14085         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
14086         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
14088         * config/i386/x-djgpp: Renamed i386/t-djgpp.
14089         * config/m88k/x-dolph: Renamed m88k/t-dolph.
14090         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
14091         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
14092         replacement of quadlib.asm with quadlib.c.
14094         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
14095         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
14096         config/rs6000/xm-beos.h: Delete file.
14098         * config.gcc: Update to match above changes.
14100 2002-01-10  Kazu Hirata  <kazu@hxi.com>
14102         * config/h8300/h8300.h: Fix comment typos.
14103         * config/h8300/h8300.md: Likewise.
14104         * config/h8300/lib1funcs.asm: Likewise.
14106 2002-01-10  Dale Johannesen  <dalej@apple.com>
14108         PR optimization/5269
14109         * unroll.c (precondition_loop_p): Make *increment be the correct
14110         sign when n_iterations known, to avoid confusing caller.
14112 2002-01-10  Kazu Hirata  <kazu@hxi.com>
14114         * doc/extend.texi (deprecated): Fix a typo.
14116 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
14118         * basic-block.h (update_br_prob_note): Declare.
14119         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
14120         (try_forward_edges): Care negative frequencies and update note.
14121         (outgoing_edges_match): Tweek conditional merging heuristics.
14122         (try_crossjump_to_edge): use update_br_prob_note.
14123         * cfglayout.c (fixup_reorder_chain): Likewise.
14124         * cfrtl.c (update_br_prob_note): New.
14125         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
14127         * i386.c (ix86_decompose_address): Return -1 if address contains
14128         shift.
14129         (legitimate_address_p): Require ix86_decompose_address to return 1.
14131         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
14132         (cprop_insn): Likewise.
14134 2002-01-10  Kazu Hirata  <kazu@hxi.com>
14136         * toplev.c: Fix formatting.
14137         * tree.c: Likewise.
14138         * tree-dump.c: Likewise.
14139         * unroll.c: Likewise.
14140         * unwind-dw2.c: Likewise.
14141         * unwind-dw2-fde.c: Likewise.
14142         * unwind-dw2-fde-glibc.c: Likewise.
14143         * unwind-sjlj.c: Likewise.
14145 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
14147         * doc/invoke.texi: Document PDP-11 options.
14149 2002-01-10  Kazu Hirata  <kazu@hxi.com>
14151         * config/h8300/h8300.h: Fix formatting.
14153 2002-01-10  Ira Ruben   <ira@apple.com>
14155         Add __attribute__ ((deprecated)).
14156         * extend.texi: Document __attribute__ ((deprecated)).
14157         * invoke.texi: Document -Wno-deprecated-declarations.
14158         * testsuite/g++.dg/other/deprecated.C: New C++ test.
14159         * testsuite/gcc.dg/deprecated.c: New C test.
14160         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
14161         (c_common_attribute_table): Add "deprecated" entry.
14162         (handle_deprecated_attribute): New function.
14163         * c-decl.c (deprecated_states): New enum.
14164         deprecated_state: State of "deprecated" handling.
14165         (start_decl): Set deprecated_state based on attributes.
14166         (grokdeclarator): Test for deprecated uses, propagate attribute.
14167         * c-typeck.c (build_component_ref): Test for deprecated fields.
14168         (build_external_ref): Test for deprecated primaries.
14169         * diagnostic.c (warn_deprecated_use) New function to issue
14170         warnings about __attribute__ ((depricated)) references.
14171         * flags.h (warn_deprecated_decl): Extern declared for
14172         -W[no-]deprecated-declarations option.
14173         * print-tree.c (print_node): Show deprecated flag status.
14174         * toplev.c (warn_deprecated_decl): Defined.
14175         (W_options): Added "deprecated-declaration".
14176         * toplev.h (warn_deprecated_use): Extern declared.
14177         * tree.h (struct tree_common): Define deprecated_flag.
14178         (TREE_DEPRECATED): New macro to access flag.
14179         * cp/call.c (build_call): Test for deprecated calls.
14180         * cp/class.c (add_implicitly_declared_members): Set global
14181         flag to tell grokdeclarator to not issue deprecated warnings.
14182         * cp/cp-tree.h: Add extern for adding_implicit_members.
14183         * cp/decl.c (deprecated_states): New enum.
14184         (start_decl): Set deprecated_state based on attributes.
14185         (grokdeclarator): Test for deprecated uses, propagate attribute.
14186         * cp/lex.c (do_identifier): Test for deprecated primaries.
14187         * cp/typeck.c (build_component_ref): Test for deprecated fields.
14189 2002-01-10  Ira Ruben   <ira@apple.com>
14191         Fix to assign attributes to inline member functions.
14192         * cp/decl.c (start_method): Handle attrlist.
14194 2002-01-10  Kazu Hirata  <kazu@hxi.com>
14196         * combine.c (expand_field_assignment): Use subreg_lsb().
14198 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
14200         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
14201         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
14202         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
14203         Recurse for any operand of AND as long as constant is non-zero.
14205 2002-01-10  Kazu Hirata  <kazu@hxi.com>
14207         * config/h8300/h8300.md: Remove constraints from expanders.
14209 2002-01-10  Kazu Hirata  <kazu@hxi.com>
14211         * varasm.c: Fix formatting.
14212         * varray.c: Likewise.
14213         * vmsdbgout.c: Likewise.
14214         * xcoffout.c: Likewise.
14216 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
14218         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
14219         update edge probabilities to match.
14221 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
14223         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
14224         dependencies.
14225         * doc/languages.texi, doc/sourcebuild.texi: New files.
14226         * doc/configfiles.texi: Make a subsubsection.  Update.
14227         * doc/configterms.texi: Add @node.  Remove warning that this isn't
14228         instructions for building GCC.
14229         * doc/makefile.texi: Make a subsection.
14230         * doc/gccint.texi: Update.
14232 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
14234         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
14236 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
14238         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
14240 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
14242         * optabs.c (expand_fix): Look for wider integer modes first.
14244         * i386.md (mov?f): Avoid the fake const double trick for medium
14245         memory model.
14246         (min?f*/max?f*): Prohibit memory operands for i387 variant.
14247         (fop_df_4): Disable for SSE compilation.
14249 2002-01-10  Graham Stott  <grahams@redhat.com>
14251         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
14252         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
14254 2002-01-10  Richard Henderson  <rth@redhat.com>
14256         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
14258 2002-01-10  Richard Henderson  <rth@redhat.com>
14260         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
14261         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
14263 2002-01-10  Kazu Hirata  <kazu@hxi.com>
14265         * combine.c (can_combine_p): Fix a comment typo.
14267 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
14269         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
14270         empty list correctly.  Change loop index $t to $f for
14271         consistency with rest of Makefile.
14273 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
14275         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
14276         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
14278         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
14279         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
14280         (altivec_init_builtins): Same.
14281         (altivec_expand_unop_builtin): Return NULL_RTX on error.
14282         (altivec_expand_binop_builtin): Same.
14283         (altivec_expand_ternop_builtin): Same.
14284         (bdesc_dst): New.
14286         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
14287         ("altivec_vctuxs"): Fix typo.
14288         ("altivec_vnmsubfp"): Same.
14289         ("altivec_dssall"): New.
14290         ("altivec_mfvscr"): New.
14291         ("altivec_dss"): New.
14292         ("altivec_lvsl"): New.
14293         ("altivec_lvsr"): New.
14294         ("altivec_dstt"): New.
14295         ("altivec_dstst"): New.
14296         ("altivec_dststt"): New.
14297         ("altivec_dst"): New.
14299         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
14300         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
14302 2002-01-09  Richard Henderson  <rth@redhat.com>
14304         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
14306 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
14308         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
14309         function.
14310         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
14311         prototype.
14312         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
14314 2002-01-09  Kazu Hirata  <kazu@hxi.com>
14316         * read-rtl.c: Fix formatting.
14317         * real.c: Likewise.
14318         * regclass.c: Likewise.
14319         * regrename.c: Likewise.
14320         * reg-stack.c: Likewise.
14321         * reload1.c: Likewise.
14322         * reload.c: Likewise.
14323         * rtl.c: Likewise.
14325 2002-01-09  Kazu Hirata  <kazu@hxi.com>
14327         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
14328         to extract items in the expr_list chain.
14330 2002-01-09  Richard Henderson  <rth@redhat.com>
14332         * config/vax/vax.c (vax_rtx_cost): Never abort.
14334         * config/vax/vax.h (REAL_ARITHMETIC): Define.
14336 2002-01-09  Jan Hubicka  <jh@suse.cz>
14338         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
14340 2002-01-09  Richard Henderson  <rth@redhat.com>
14342         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
14343         Unify code from various alternatives.
14345 2002-01-09  Richard Henderson  <rth@redhat.com>
14347         * regrename.c (copy_value): Ignore the copy if the source register
14348         is present in the value chain with a narrower mode.
14350 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
14352         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
14353         for the c4x target. Also improve layout.
14355 2002-01-09  Richard Henderson  <rth@redhat.com>
14357         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
14358         * config/m32r/m32r.md (and ior xor splitters): Swap operands
14359         to match insn patterns.
14361 2002-01-09  Richard Henderson  <rth@redhat.com>
14363         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
14364         (copyprop_hardreg_forward_1): Likewise.
14366 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14368         * pa.md (decrement_and_branch_until_zero): Change predicate for
14369         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
14371 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
14373         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
14374         gets undefined. For Darwin.
14376 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14378         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
14380 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14382         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
14384 2002-01-08  Richard Henderson  <rth@redhat.com>
14386         * regrename.c (copy_value): Ignore overlapping copies.
14388 2002-01-08  Richard Henderson  <rth@redhat.com>
14390         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
14391         as needed to avoid shared structure.
14393 2002-01-08  Kazu Hirata  <kazu@hxi.com>
14395         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
14396         H8/300H and H8/S.
14398 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14400         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
14401         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
14402         documentation of obsolete macros.
14403         * system.h: Poison these macros.
14404         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
14405         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
14406         config/c4x/c4x.h, config/clipper/clipper.h,
14407         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
14408         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
14409         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
14410         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
14411         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
14412         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
14413         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
14414         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
14415         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
14416         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
14417         config/sparc/sparc.h, config/stormy16/stormy16.h,
14418         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
14419         definitions and commented out definitions of obsolete macros.
14420         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
14421         of MAX_INT_TYPE_SIZE.
14423 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
14425         * config/s390/s390.c (s390_preferred_reload_class): Never
14426         return ADDR_REGS if it isn't a subset of the given class.
14427         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
14428         FP_REGS, but all superclasses as well.
14430         * config/s390/s390.c (s390_function_profiler): Fix thinko.
14432         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
14433         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
14434         must not be a const_int.
14436 2002-01-08  Richard Henderson  <rth@redhat.com>
14438         * Makefile.in (toplev.o): Depend on options.h.
14439         (gcc.o): Depend on specs.h.
14441 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
14443         * expr.c (store_expr): Convert VOIDmode constants back to target's
14444         mode.
14446 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14448         * doc/invoke.texi: Markup gcc as @command.  Refer to
14449         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
14450         of http://gcc.gnu.org/thanks.html.
14452 2002-01-08  Dale Johannesen  <dalej@apple.com>
14454         * config/rs6000/rs6000.md: Add missing int register
14455         target case to movdf_low.
14457 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
14459         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
14460         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
14461         (cppinit.o): Depend on except.h.
14462         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
14463         s-specs): New rules.
14465         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
14466         Don't create specs.h/options.h/gencheck.h here.  Remove
14467         unnecessary variable settings from last argument of AC_OUTPUT.
14468         * config.in, configure: Regenerate.
14469         * intl.c: Hardcode package name as "gcc".
14471         * cppinit.c: Include except.h.
14472         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
14473         appropriate.
14474         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
14475         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
14476         (!)USING_SJLJ_EXCEPTIONS.
14477         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
14479 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14481         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
14482         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
14483         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
14484         documentation of obsolete macros.
14485         * system.h: Poison these macros.
14486         * config/d30v/d30v.h, config/ns32k/encore.h,
14487         config/stormy16/stormy16.h: Remove definitions and commented out
14488         definitions of obsolete macros.
14490 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
14492         * objc/objc-act.c (handle_class_ref): Mark the declaration of
14493         %sobjc_class_ref_%s as used - to prevent unwanted compiler
14494         warnings.
14496 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
14498         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
14499         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
14500         to insn adjusting stack/frame pointer.
14501         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
14502         accept operands that cause the insn to be non-splittable.
14504 2002-01-08  Graham Stott  <grahams@redhat.com>
14506         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
14507         (C_TYPE_FIELDS_VOLATILE): Likewise.
14508         (C_TYPE_BEING_DEFINED): Likewise.
14509         (C_IS_RESERVED_WORD): Likewise.
14510         (C_TYPE_VARIABLE_SIZE): Likewise.
14511         (C_DECL_VARIABLE_SIZE): Likewise.
14512         (C_MISSING_PROTOTYPE_WARNED): Likewise.
14513         (C_SET_EXP_ORIGINAL_CODE): Likewise.
14514         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
14515         parenthesis.
14516         (C_DECL_ANTICIPATED): Likewise.
14517         (c_build_type_variant): Add parenthesis.
14519 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14521         * gcc.c (option_map): Remove --version.
14522         (process_command): Handle -fversion following the GNU Coding
14523         Standards.  Partially addresses PR other/704.
14525 2002-01-08  Graham Stott  <grahams@redhat.com>
14527         * combine.c (combine_instructions): Fix typo.
14529 2002-01-08  Graham Stott  <grahams@redhat.com>
14531         * debug.h: Use "tree" and "rtx" throughout.
14533         * debug.c: Likewise.
14535 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
14537         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
14538         constant pool, use the pool's version of the symbol instead.
14540 2002-01-07  Richard Henderson  <rth@redhat.com>
14542         * regrename.c (find_oldest_value_reg): Ignore the value chain if
14543         the original register was copied in a mode with a fewer number of
14544         hard registers than the desired mode.
14545         (copyprop_hardreg_forward_1): Likewise.
14546         (debug_value_data): Fix loop test.
14547         * toplev.c (parse_options_and_default_flags): Reenable
14548         -fcprop-registers at -O1.
14550 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
14552         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
14553         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
14555         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
14556         predicates.
14558         * config/rs6000/rs6000.md: Add altivec predicate patterns.
14560 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14562         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
14563         (pa_output_function_prologue): Output local label at the beginning of
14564         the prologue when profiling.
14565         (hppa_profile_hook): Use the local label rather than the function label.
14566         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
14568 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
14570         * config/rs6000/rs6000.c (print_operand): Remove extra space.
14571         (altivec_expand_unop_builtin): Fix thinko.
14572         (altivec_expand_binop_builtin): Same.
14573         (altivec_expand_ternop_builtin): Same.
14574         (altivec_expand_builtin): Same.
14576 2002-01-07  Richard Henderson  <rth@redhat.com>
14578         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
14580 2002-01-07  Jason Merrill  <jason@redhat.com>
14582         * unwind-dw2.c (execute_cfa_program): Use < again.
14584 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
14586         * predict.c (combine_predictions_for_insn): Avoid division by zero.
14588 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
14590         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
14591         Don't allow -1 - x -> ~x simplifications in the first pass.
14593 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
14595         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
14596         arguments.
14597         (altivec_expand_binop_builtin): Same.
14598         (altivec_expand_unop_builtin): Same.
14599         (print_operand): Fix typo.
14600         (bdesc_1arg): Add vupk* variants.
14602         * rs6000.h (rs6000_builtins): Add vupk* enums.
14604         * rs6000.md: Add altivec_vupk* variants.
14606 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
14608         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
14609         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
14610         and last update dates.
14612 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
14614         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
14616 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
14618         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
14619         * config/avr/avr.h (CPP_SPEC): Likewise.
14620         (LINK_SPEC): Likewise.
14621         (CRT_BINUTILS_SPECS): Likewise.
14622         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
14623         * doc/invoke.texi (AVR Options): Document them.
14625 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
14627         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
14628         LABEL_NUSES.
14630 2002-01-07  Graham Stott  <grahams@redhat.com>
14632         * config/i386/i386.h: Update copyright date.
14633         (HALF_PIC_PTR): Add parenthesis.
14634         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
14635         (CONSTANT_ALIGNMENT): Add parenthesis.
14636         (DATA_ALIGNMENT): Likewise.
14637         (LOCAL_ALIGNMENT): Likewise.
14638         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
14639         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
14640         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
14641         (HARD_REGNO_NREGS): Add paranethesis.
14642         (VALID_SSE_REG_MODE): Whitespace.
14643         (VALID_MMX_REG_MODE): Whitespace.
14644         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
14645         (ix86_hard_regno_mode_ok): Add parenthesis.
14646         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
14647         (RETURN_IN_MEMORY): Whitespace.
14648         (N_REG_CLASSES): Add parenthesis.
14649         (INTEGER_CLASS_P): Add parenthesis and wrap.
14650         (FLOAT_CLASS_P): Likewise.
14651         (SSE_CLASS_P): Likewise.
14652         (MMX_CLASS_P): Likewise.
14653         (MAYBE_INTEGER_CLASS_P): Likewise.
14654         (MAYBE_FLOAT_CLASS_P): Likewise.
14655         (MAYBE_SSE_CLASS_P): Likewise.
14656         (MAYBE_MMX_CLASS_P): Likewise.
14657         (Q_CLASS_P): Likewise.
14658         (GENERAL_REGNO_P): Uppercase macro parameter.
14659         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
14660         (FP_REGNO_P): Likewise.
14661         (ANY_FP_REGNO_P): Uppercase macro parameter.
14662         (SSE_REGNO_P): Likewise.
14663         (SSE_REGNO): Likewise.
14664         (SSE_REG_P): Likewise.
14665         (SSE_FLOAT_MODE_P): Likewise.
14666         (MMX_REGNO_P): Likewise.
14667         (MMX_REG_P):Likewise.
14668         (STACK_REG_P): Likewise.
14669         (NON_STACK_REG_P): Likewise.
14670         (STACK_TOP_P): Likewise.
14671         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
14672         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
14673         (SECONDARY_MEMORY_NEEDED): Likewise.
14674         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
14675         (MD_ASM_CLOBBERS): Whitespace and wrap.
14676         (MUST_PASS_IN_STACK): Whitespace and wrap.
14677         (RETURN_POPS_ARGS): Add parenthesis.
14678         (INIT_CUMULATIVE_ARGS): Likewise.
14679         (FUNCTION_ARG): Likewise.
14680         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
14681         (SETUP_INCOMING_VARARGS): Likewise.
14682         (BUILD_VA_LIST_TYPE):  Add parenthesis.
14683         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
14684         parenthsis.
14685         (EXPAND_BUILTIN_VA_ARG): Likewise.
14686         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
14687         (INITIALIZE_TRAMPOLINE): Add parenthesis.
14688         (INITIAL_ELIMINATION_OFFSET): Likewise.
14689         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
14690         (REGNO_OK_FOR_BASE_P): Likewise.
14691         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
14692         (REGNO_OK_FOR_DIREG_P): Likewise.
14693         (REG_OK_FOR_INDEX_P): Whitespace.
14694         (REG_OK_FOR_BASE_P): Whitespace.
14695         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
14696         parenthesis.
14697         (FIND_BASE_TERM): Fix typo.
14698         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
14699         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
14700         (SYMBOLIC_CONST; Whitespace.
14701         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
14702         (ENCODE_SECTION_INFO): Whitespace.
14703         (FINALIZE_PIC): Remove do { ... } while (0).
14704         (PROMOTE_MODE): Wrap in do { ... } while (0).
14705         (CONST_COSTS): Whitespace.
14706         (RTX_COSTS): Add paramethesis, whitespace and wrap.
14707         (REGISTER_MOVE_COST): Add parenthesis.
14708         (MEMORY_MOVE_COST): Likewise.
14709         (EXTRA_CC_MODES): Whitespace.
14710         (SELECT_CC_MODE): Add parenthesis and whitespace.
14711         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
14712         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
14713         (ASM_OUTPUT_LABEL): Add paramethesis.
14714         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
14715         (ASM_OUTPUT_REG_POP): Likewise.
14716         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
14717         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14719         * config/i386/i386.c: Update copyright.
14720         (CHECK_STACK_LIMIT): Add parenthesis.
14721         (AT_BP): Uppercase macro parameter.
14722         (x86_64_int_parameter_registers): Constify.
14723         (x86_64_int_return_registers): Likewise.
14724         (ix86_compare_op0): Use rtx.
14725         (construct_container): Constify INTREG parameter.
14726         (function_arg): Use rtx.
14728         * diagnostic.h: Update copyright date.
14729         (output_buffer_state): Add parenthesis.
14730         (output_buffer_format_args): Likewise.
14732         * combine.c (combine_instructions): Replace XEXP (links, 0)
14733         with link.
14735 2002-01-06  H.J. Lu <hjl@gnu.org>
14737         * cfgcleanup.c (thread_jump): Fix 2 typos.
14739 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
14741         * config.gcc: Add support for --enable-altivec.
14743 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14745         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
14747 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
14749         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
14750         __objc_class_name_*.
14752 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14754         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
14756 2002-01-06  Richard Henderson  <rth@redhat.com>
14758         * reorg.c (emit_delay_sequence): Remove death notes, not merely
14759         nop them out.  Increment label reference count for REG_LABEL.
14760         (fill_slots_from_thread): Frob label reference count around
14761         delete_related_insns.
14763 2002-01-05  Richard Henderson  <rth@redhat.com>
14765         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
14766         jump threading.
14768 2002-01-05  Richard Henderson  <rth@redhat.com>
14770         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
14771         * integrate.c (output_inline_function): Likewise.
14772         * toplev.c (rest_of_compilation): Do it here instead.  Move call
14773         to remove_unnecessary_notes after emitting abstract instance.
14774         Force an emitted nested function to have its parent emited as well.
14775         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
14776         for null.
14777         (rtl_for_decl_location): Do not look at reload data structures
14778         before reload has run.
14780 2002-01-05  Kazu Hirata  <kazu@hxi.com>
14782         * cse.c: Fix formatting.
14783         * dwarf2asm.c: Likewise.
14784         * dwarf2out.c: Likewise.
14785         * explow.c: Likewise.
14786         * expmed.c: Likewise.
14787         * function.c: Likewise.
14788         * gcov.c: Likewise.
14789         * gencheck.c: Likewise.
14790         * genrecog.c: Likewise.
14791         * ggc-common.c: Likewise.
14792         * ggc-page.c: Likewise.
14793         * global.c: Likewise.
14795 2002-01-05  Kazu Hirata  <kazu@hxi.com>
14797         * combine.c: Fix formatting.
14799 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
14801         PR middle-end/1557
14802         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
14804 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
14806         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
14807         as 1 for __powerpc64__ as well.
14809         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
14811         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
14812         return it.
14814 2002-01-05  Daniel Berlin  <dan@dberlin.org>
14816         * lcm.c: Revert change, due to performance regression it causes on
14817         SPEC because it's slightly more conservative (sigh, I hate
14818         edge-based LCM).
14820 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
14822         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
14824 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
14826         * doc/cppinternals.texi: Update.
14828 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
14830         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
14831         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
14832         negatives.
14833         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
14834         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
14835         kludge for pre-october-14th mmix versions to handle new-found bug
14836         with PUSHJ/PUSHGO and the register stack.
14837         * config/mmix/mmix.h (struct machine_function): Rename member
14838         has_call_value_without_parameters to has_call_without_parameters.
14839         All referers changed.
14840         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
14841         TARGET_MASK_BRANCH_PREDICT): New macros.
14842         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
14843         -mno-reg-stack-fill-bug-workaround.
14844         * config/mmix/mmix.md ("call"): Set struct machine member
14845         has_call_without_parameters.
14847 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
14849         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
14851 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
14853         * cfgcleanup.c: Include tm_p.h
14854         (mark_effect): Fix handling of hard register; fix handling of SET
14856 2002-01-04  Kazu Hirata  <kazu@hxi.com>
14858         * config/h8300/h8300.md (anonymous patterns): Check that
14859         operands are registers before using REGNO on them.
14861 2002-01-03  Roland McGrath  <roland@frob.com>
14863         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
14865 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
14867         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
14868         * c-common.h (genrtl_expr_stmt_value): Likewise.
14869         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
14870         (expand_expr_stmt_value): Add maybe_last argument.
14871         Don't warn about statement with no effect if it is the last statement
14872         in expression statement.
14873         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
14874         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
14875         expand_expr_stmt_value.
14876         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
14877         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
14878         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
14879         as maybe_last to expand_expr_stmt_value.
14881 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
14883         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
14884         be passed in, do not build it.
14885         (c_begin_if_stmt): New function.
14886         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14887         * c-common.h (c_expand_start_cond): Update prototype.
14888         (c_begin_if_stmt): Prototype new function.
14889         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14890         * c-parse.in (if_prefix): Use c_begin_if_stmt,
14891         c_begin_while_stmt and c_finish_while_stmt_cond.
14893 2002-01-04  William Cohen  <wcohen@redhat.com>
14895         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
14896         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14897         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14898         * config/pa/som.h (ASM_FILE_START): Likewise.
14900 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
14902         * lcm.c: Include df.h.
14903         Add available_transfer_function prototype.
14904         (compute_available): Rework to use iterative dataflow framework.
14905         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
14906         with bb_info in df.h
14907         (available_transfer_function): New function.
14909         * Makefile.in (lcm.o): add df.h to dependencies.
14911 2002-01-04  Richard Henderson  <rth@redhat.com>
14913         * config/alpha/alpha.c (some_operand): Accept HIGH.
14914         (input_operand): Likewise; accept simple references to globals.
14915         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
14916         (alpha_const_double_ok_for_letter_p): Likewise.
14917         (alpha_extra_constraint): Likewise.
14918         (alpha_preferred_reload_class): Likewise.  Do not force
14919         symbolic constants to memory.
14920         (alpha_legitimate_address_p): Accept simple references
14921         to small_symbolic_operand.
14922         (alpha_legitimize_address): New arg scratch.  Be prepared to be
14923         called when no_new_pseudos.  Emit simple symbolic references.
14924         Split integers into low, high, and rest.
14925         (alpha_expand_mov): Use alpha_legitimize_address.
14926         (some_small_symbolic_mem_operand): New.
14927         (split_small_symbolic_mem_operand): New.
14928         * config/alpha/alpha-protos.h: Update.
14929         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
14930         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
14931         (EXTRA_CONSTRAINT): Likewise.
14932         (PREFERRED_RELOAD_CLASS): Likewise.
14933         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
14934         (PREDICATE_CODES): Update.
14935         * config/alpha/alpha.md: New post-reload splitters to convert
14936         simplfied symbolic operands to the form that references $29.
14937         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
14938         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
14940 2002-01-03  Richard Henderson  <rth@redhat.com>
14942         * local-alloc.c (function_invariant_p): Update commentary.
14944 2002-01-04  H.J. Lu <hjl@gnu.org>
14946         * toplev.c (rest_of_compilation): Fix a typo when calling
14947         cleanup_cfg.
14949 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14951         * c-common.c: Fix formatting.
14952         * diagnostic.c: Likewise.
14953         * doloop.c: Likewise.
14954         * dwarf2out.c: Likewise.
14956 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14958         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
14959         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
14961 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
14963         * cpperror.c: Update comments and copyright.
14964         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
14965         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
14967 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14969         * collect2.c (main): Use strcmp when testing for "-shared".
14971 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
14973         * cppmacro.c: Don't include intl.h.  Update comments.
14974         (new_number_token): Allocate enough buffer for 64-bit unsigned
14975         integers; update prototype.
14976         * cppmain.c: Update comments.
14978 2002-01-03  William Cohen  <wcohen@redhat.com>
14980         * function.h (struct function): Add profile.
14981         (current_function_profile): New.
14982         doc/extend.texi: Update documentation.
14983         * final.c (final_start_function): Use current_function_profile
14984         instead of profile_flag.
14985         (profile_after_prologue): Likewise.
14986         * function.c (expand_function_start): Likewise.
14987         (expand_function_start): Likewise.
14988         * config/alpha/alpha.c (direct_call_operand):
14989         (alpha_does_function_need_gp): Likewise.
14990         (alpha_expand_prologue): Likewise.
14991         * config/arm/arm.c (arm_expand_prologue): Likewise.
14992         thumb_expand_prologue: Likewise.
14993         * config/d30v/d30v.c (d30v_stack_info): Likewise.
14994         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
14995         (fr30_expand_prologue): Likewise.
14996         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
14997         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
14998         * config/i386/i386.h (FINALIZE_PIC): Likewise.
14999         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
15000         * config/i960/i960.c (i960_output_function_prologue): Likewise.
15001         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
15002         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
15003         (m32r_expand_prologue): Likewise.
15004         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
15005         (m88k_expand_prologue): Likewise.
15006         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
15007         * config/mips/mips.c (compute_frame_size): Likewise.
15008         (mips_expand_prologue): Likewise.
15009         (mips_can_use_return_insn): Likewise.
15010         * config/pa/elf.h (ASM_FILE_START): Likewise.
15011         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
15012         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
15013         * config/pa/som.h (ASM_FILE_START): Likewise.
15014         * config/romp/romp.c (romp_using_r14): Likewise.
15015         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
15016         (rs6000_stack_info): Likewise.
15017         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15018         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
15019         * config/v850/v850.c (compute_register_save_size): Likewise.
15021 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
15023         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
15024         gen_lowpart_common fails, use gen_lowpart_SUBREG.
15026 2002-01-03  Turly O'Connor  <turly@apple.com>
15028         * darwin.c (machopic_output_possible_stub_label): Don't generate
15029         stub routines for pseudo-stubs which we've just defined.
15031 2002-01-03  Kazu Hirata  <kazu@hxi.com>
15033         * builtins.c: Fix formatting.
15034         * c-typeck.c: Likewise.
15035         * combine.c: Likewise.
15036         * expr.c: Likewise.
15037         * loop.c: Likewise.
15039 2002-01-03  Andreas Schwab  <schwab@suse.de>
15041         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
15042         and return true if _cpp_push_next_buffer pushed a new include
15043         file.
15044         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
15045         _cpp_pop_file_buffer did not push a new file.
15046         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
15048 2002-01-02  Eric Christopher  <echristo@redhat.com>
15050         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
15051         FIND_REG_INC_NOTE call. Update copyright.
15052         * loop.c (canonicalize_condition): Ditto.
15053         * reorg.c (delete_scheduled_jump): Ditto.
15055 2002-01-03  Kazu Hirata  <kazu@hxi.com>
15057         * gcse.c: Fix formatting.
15059 2002-01-03  Graham Stott  <grahams@redhat.com>
15061         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
15062         forward defs for struct tags rtx_def, union_tree, rtvec_def
15063         also output corresponding typedefs for rtx, tree, and rtvec.
15065         * system.h: Move forward defs for struct tags rtx_def, union_tree,
15066         rtvec_def along with corresponding typedefs for rtx, tree, and
15067         rtvec to config.h, hconfig.h, tconfig.h.
15069 2002-01-03  Graham Stott  <grahams@redhat.com>
15071         * tree.h: Update copyright date.
15072         (IS_EXPR_CODE_CLASS): Add parenthesis.
15073         (TREE_SET_CODE): Add whitespace.
15074         (TREE_CHECK): Add parenthesis.
15075         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
15076         (CST_OR_CONSTRUCTOR_CHECK):
15077         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
15078         (TREE_SYMBOL_REFERENCED): Whitespace.
15079         (INT_CST_LT): Likewise.
15080         (INT_CST_LT_UNSIGNED): Likewise.
15081         (tree_real_cst): Unwrap comment.
15082         (tree_string): Likewise.
15083         (tree_complex): Likewise.
15084         (IDENTIFIER_POINTER): correct cast.
15085         (SAVE_EXPR_CONTEXT): Whitespace.
15086         (EXPR_WFL_FILENAME_NODE): Likewise.
15087         (EXPR_WFL_FILENAME): Remove parenthesis.
15088         (DECL_ORIGIN): Add parenthesis.
15089         (DECL_FROM_INLINE): Use NULL_TREE.
15090         (build_int_2): Whitespace.
15091         (build_type_variant): Add parenthesis.
15093         * gcc/jcf-parse.c: Update copyright date.
15094         (yyparse): Constify resource_filename.
15096 2002-01-03  Graham Stott  <grahams@redhat.com>
15098         * rtl.h: Update copyright date.
15099         (RTL_CHECK1): Wrap long line.
15100         (RTL_CHECK2): Likewise.
15101         (RTL_CHECKC1): Wrap long line and whitespace.
15102         (RTL_CHECKC2): Likewise.
15103         (XWINT): Whitespace.
15104         (XINT): Likewise.
15105         (XSTR): Likewise.
15106         (XEXP): Likewise.
15107         (XVEC): Likewise.
15108         (XMODE): Likewise.
15109         (XBITMAP): Likewise.
15110         (XTREE): Likewise.
15111         (XBBDEF): Likewise.
15112         (XTMPL): Likewise.
15113         (X0WINT): Likewise.
15114         (X0INT):Likewise.
15115         (X0UINT): Likewise.
15116         (X0STR): Likewise.
15117         (X0EXP): Likewise.
15118         (X0VEC): Likewise.
15119         (X0MODE): Likewise.
15120         (X0BITMAP): Likewise.
15121         (X0TREE): Likewise.
15122         (X0BBDEF): Likewise.
15123         (X0ADVFLAGS): Likewise.
15124         (X0CSELIB): Likewise.
15125         (X0MEMATTR): Likewise.
15126         (XCWINT): Likewise.
15127         (XCINT): Likewise.
15128         (XCUINT): Likewise.
15129         (XCSTR): Likewise.
15130         (XCEXP): Likewise.
15131         (XCVEC): Likewise.
15132         (XCMODE): Likewise.
15133         (XCBITMAP): Likewise.
15134         (XCTREE): Likewise.
15135         (XCBBDEF): Likewise.
15136         (XCADVFLAGS): Likewise.
15137         (XCCSELIB): Likewise.
15138         (XC2EXP): Likewise.
15139         (INSN_UID): Likewise.
15140         (PREV_INSN): Likewise.
15141         (PATTERN): Likewise.
15142         (INSN_CODE): Likewise.
15143         (PUT_REG_NOTE_KIND): Likewise.
15144         (CODE_LABEL_NUMBER): Likewise.
15145         (NOTE_SOURCE_FILE): Likewise.
15146         (NOTE_BLOCK): Likewise.
15147         (NOTE_EH_HANDLER): Likewise.
15148         (NOTE_RANGE_INFO): Likewise.
15149         (NOTE_LIVE_INFO): Likewise.
15150         (NOTE_BASIC_BLOCK): Likewise.
15151         (NOTE_EXPECTED_VALUE): Likewise.
15152         (NOTE_LINE_NUMBER): Likewise.
15153         (LABEL_NAME): Likewise.
15154         (LABEL_NUSES): Likewise.
15155         (LABEL_ALTERNATE_NAME): Likewise.
15156         (ADDRESSOF_DECL): Likewise.
15157         (JUMP_LABEL): Likewise.
15158         (LABEL_NEXTREF): Likewise.
15159         (REGNO): Likewise.
15160         (ORIGINAL_REGNO: Likewise.
15161         (HARD_REGISTER_NUM_P): Add parenthesis.
15162         (SUBREG_REG): Whitespace.
15163         (SUBREG_BYTE): Likewise.
15164         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
15165         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
15166         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
15167         (ASM_OPERANDS_INPUT_VEC): Likewise.
15168         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
15169         (ASM_OPERANDS_INPUT): Likewise.
15170         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
15171         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
15172         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
15173         (ASM_OPERANDS_INPUT_MODE): Likewise.
15174         (ASM_OPERANDS_SOURCE_FILE): Likewise.
15175         (ASM_OPERANDS_SOURCE_LINE): Likewise.
15176         (MEM_SET_IN_STRUCT_P): Minor reformat.
15177         (TRAP_CONDITION): Whitespace.
15178         (TRAP_CODE): Likewise.
15179         (COND_EXEC_TEST): Likewise.
15180         (COND_EXEC_CODE): Likewise.
15181         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
15182         (PHI_NODE_P): Add parenthesis.
15183         (plus_constant): Whitespace and add parenthesis.
15185 2002-01-03  Kazu Hirata  <kazu@hxi.com>
15187         * config/avr/avr.c: Fix comment typos.
15188         * config/c4x/c4x.md: Likewise.
15189         * config/dsp16xx/dsp16xx.h: Likewise.
15190         * config/dsp16xx/dsp16xx.md: Likewise.
15191         * config/i386/i386.md: Likewise.
15192         * config/ia64/ia64.c: Likewise.
15193         * config/m32r/m32r.h: Likewise.
15194         * config/m68hc11/m68hc11.md: Likewise.
15195         * config/mmix/mmix.c: Likewise.
15196         * config/mn10200/mn10200.c: Likewise.
15197         * config/romp/romp.c: Likewise.
15198         * config/sh/sh.c: Likewise.
15199         * config/stormy16/stormy16.c: Likewise.
15200         * config/stormy16/stormy16.h: Likewise.
15201         * config/stormy16/stormy16.md: Likewise.
15203 2002-01-03  Graham Stott  <grahams@redhat.com>
15205         * loop.h: Update copyright date.
15206         (LOOP_MOVABLES): Fix typo.
15207         (LOOP_REGS): Likewise.
15208         (LOOP_IVS): Likewise.
15210 2002-01-03  Graham Stott  <grahams@redhat.com>
15212         * cppinit.c: Update copyright date.
15213         Don't include output.h
15214         * Makefile.in: Update copyright date.
15215         Update dependency.
15217 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15219         PR c/5226
15220         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
15221         (-pthread) Add to RS/6000 options.
15223 2002-01-02  Kazu Hirata  <kazu@hxi.com>
15225         * except.c: Fix comment typos.
15226         * loop.c: Likewise.
15227         * varasm.c: Likewise.
15228         * doc/tm.texi: Fix a typo.
15230 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
15232         * c-typeck.c (output_init_element): Allow initializing static storage
15233         duration objects with compound literals.
15235 2002-01-02  Richard Henderson  <rth@redhat.com>
15237         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
15238         after abusing it.
15240 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15242         * gcc.c (default_compilers): Const-ify.
15243         * mips-tdump.c (stab_names): Likewise.
15244         * mips-tfile.c (map_coff_types, map_coff_storage,
15245         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
15246         pseudo_ops_t, pseudo_ops): Likewise.
15247         * protoize.c (default_include): Likewise
15249         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
15250         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
15251         Add array size in declaration.
15252         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
15253         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
15254         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
15255         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
15256         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
15257         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
15258         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
15259         emtens, make_nan): Const-ify.
15260         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
15261         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
15263 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
15265         * config.gcc (ia64-*-*): Set extra_headers.
15266         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
15267         * config/alpha/t-osf: Remove.
15268         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
15270 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
15272         * config/rs6000/t-aix43: Revert previous change.
15274 2002-01-02  Jason Merrill  <jason@redhat.com>
15276         * c-decl.c (c_expand_body): Call outlining_inline_function when
15277         emitting an inline function out of line.
15279 2002-01-02  Richard Henderson  <rth@redhat.com>
15281         * dwarf2out.c (limbo_die_node): Add created_for member.
15282         (new_die): New argument created_for.  Update all callers.
15283         (mark_limbo_die_list): New.
15284         (dwarf2out_init): Register limbo_die_list as a root.
15285         (dwarf2out_finish): Force insert limbo dies into their function
15286         context.
15288 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
15290         PR c++/5089
15291         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
15293 2002-01-02  Kazu Hirata  <kazu@hxi.com>
15295         * config/h8300/fixunssfsi.c: Update copyright.
15296         Fix comment typos.
15297         Fix formatting.
15298         * config/h8300/h8300.c: Update copyright.
15299         Eliminate warnings.
15301 2002-01-02  Kazu Hirata  <kazu@hxi.com>
15303         * config/romp/romp.c: Fix comment formatting.
15304         * config/romp/romp.h: Likewise.
15305         * config/romp/romp.md: Likewise.
15306         * config/s390/s390.c: Likewise.
15307         * config/stormy16/stormy16.c: Likewise.
15308         * config/stormy16/stormy16.h: Likewise.
15310 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
15312         * c-common.h (genrtl_expr_stmt_value): Declare.
15313         * c-semantics.c (genrtl_goto_stmt): Redirect to...
15314         (genrtl_goto_stmt_value): ... this new function.  Pass new
15315         argument down to expand_expr_stmt_value, taking
15316         TREE_ADDRESSABLE into account.
15317         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
15318         STMT_EXPR as addressable, i.e., one whose result we want.
15319         * expr.c (expand_expr): Don't save expression statement value
15320         of labeled_blocks or loop_exprs.
15321         * stmt.c (expand_expr_stmt): Redirect to...
15322         (expand_expr_stmt_value): ... this new function.  Use new
15323         argument to tell whether to save expression value.
15324         (expand_end_stmt_expr): Reset last_expr_type and
15325         last_expr_value if we don't have either.
15326         * tree-inline.c (declare_return_variable): Mark its use
15327         statement as addressable.
15328         * tree.h: Document new use of TREE_ADDRESSABLE.
15329         (expand_expr_stmt_value): Declare.
15331 2002-01-01  Tom Rix  <trix@redhat.com>
15333         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
15334         rs6000_emit_allocate_stack.
15336 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
15338         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
15339         ${srcdir}/ginclude/ to every entry in extra_headers.
15340         * configure: Regenerate.
15341         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
15342         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
15343         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
15344         * ginclude/proto.h: Rename to config/convex/proto.h.
15346 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15348         * attribs.c (handle_vector_size_attribute): Use host_integerp
15349         and tree_int_cst; remove warnings.
15350         * caller-save.c (insert_restore): Add cast to get rid of warning.
15351         (insert_save): Likewise.
15352         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
15353         * regmove.c (find_matches): Add temporary var to kill a warning.
15355 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
15357         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
15358         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
15359         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
15360         (vms-dwarf2eh.o): Add Makefile rule.
15361         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
15362         * config/alpha/vms-dwarf2eh.asm: New file.
15364         * gcc.c (delete_if_ordinary): Delete all versions.
15366 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
15368         * config/mmix/mmix.md: Update FIXME to not mention
15369         define_constants.
15370         (MMIX_rJ_REGNUM): New define_constants constant.
15371         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
15372         "*movdicc_real"): Adjust contraints formatting.
15373         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
15374         for branch prediction.
15375         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
15376         output template.
15377         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
15378         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
15379         number.  Delete related FIXMEs.
15380         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
15381         from number to MMIX_rJ_REGNUM.
15382         (TARGET_MASK_BRANCH_PREDICT): New.
15383         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
15384         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
15385         value.  Add -mbranch-predict and -mno-branch-predict.
15386         (TARGET_VERSION): Drop date.
15387         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
15388         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
15389         for finding out global symbols.
15390         (mmix_asm_output_labelref): Revert condition for global symbol.
15391         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
15392         (mmix_print_operand_punct_valid_p): A '+' is valid.
15394 See ChangeLog.6 for earlier changes.