PR c/8224
[official-gcc.git] / gcc / ChangeLog
blob596e91e09848b6f356eabcf6adca6d16a8d3c26e
1 2003-03-23  Glen Nakamura <glen@imodulo.com>
3         PR c/8224
4         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
5         when signedness changes for division or modulus.
7 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
9         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
10         globalize_label.
12 2003-03-23  Roger Sayle  <roger@eyesopen.com>
14         PR c/10178
15         * stmt.c (expand_end_case_type): Check for overflow in range when
16         determining whether to use a bit-test implementation.
18 2003-03-23  Richard Henderson  <rth@redhat.com>
20         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
21         before flow2.
22         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
24 2003-03-23  Richard Henderson  <rth@redhat.com>
26         PR opt/10116
27         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
28         from then_bb or else_bb after flow2.
30 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
32         * configure.in: Check whether it is necessary to link against
33         libm to use ldexp.
34         * configure: Regenerate.
35         * Makefile.in: Add LDEXP_LIB substitution variable.
37 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
39         * config/h8300/h8300.md: Fix comment typos.
41 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
43         * pa.c (output_cbranch): Fix typo in comment.
45 2003-03-22  Richard Henderson <rth@redhat.com>
47         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
48         after reload.
50 2003-03-22  DJ Delorie  <dj at redhat dot com>,
51         Bruce Korb  <bkorb at gnu dot org>
53         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
54         buggy Solaris 2.6 mutex/cond initializers.
55         (solaris_mutex_init): Rename to solaris_mutex_init_2.
56         * fixinc/fixincl.x: Regenerate.
57         * fixinc/tests/base/pthread.h: Update.
58         * fixinc/fixincl.c(initialize): be explicit about the default case
59         and indicate verbose level when being very, very verbose.
60         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
62 2003-03-22  Andreas Jaeger  <aj@suse.de>
64         * config/i386/i386.c (ix86_init_machine_status): Return value.
66 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
68         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
69         conditional branch to the following instruction.  Use next_real_insn
70         instead of next_active_insn.
71         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
72         instead of next_active_insn.
74 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
76         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
77         instead of 'm' constraint in forced-split alternatives.
78         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
79         VALIDATE_ADDRESS parameter to operand_subword.
81 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
83         * config/h8300/h8300.c (notice_update_cc): Correctly handle
84         the case where the set destination is STRICT_LOW_PART.
86 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
88         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
89         c30 instead of a c40 processor.
91 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
93         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
95 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
97         * c-common.c: Include intl.h.
98         (shadow_warning): Rewrite to allow better diagnostic translations.
99         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
100         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
101         use it throughout.
102         * Makefile.in (c-common.o): Add intl.h.
104 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
106         * config.gcc: Remove 'float_format'.
108         * fixproto: Define NULL and size_t in generated stdlib.h and
109         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
110         Rearrange file generation loop for readability.  Generate time.h,
111         string.h if missing.
112         * tsystem.h: Include <string.h>, <time.h> unconditionally.
113         * config.gcc: Blow away POSIX defines.
115 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
117         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
119 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
121         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
122         writing .interrupt command.
123         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
124         if it's a far or near function.
125         ("call_value"): Likewise.
126         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
127         near attributes.
128         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
129         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
130         (m68hc11_initial_elimination_offset): Set current_function_far
131         according to attributes.
132         (expand_prologue): Likewise.
133         (trap_handler_symbol): New global to keep track of trap handlers.
134         (m68hc11_encode_section_info): Mark symbol as far if needed; set
135         trap symbol.
136         (m68hc11_is_far_symbol): New function.
137         (m68hc11_is_trap_symbol): New function.
138         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
139         (m68hc11_is_trap_symbol): Declare.
141 2003-03-21  Jan Hubicka  <jh@suse.cz>
143         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
144         only when amount of saved regs changed.
145         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
146         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
148 2003-03-21  Jan Hubicka  <jh@suse.cz>
150         PR inline-asm/7916
151         * function.c (instantiate_virtual_regs_lossage): New function.
152         (instantiate_virtual_regs_1): Use it.
153         (instantiate_virtual_regs): Do not continue in substition when insn has
154         been deleted.
156 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
158         * combine.c (make_field_assignment): Fix a warning.
160 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
162         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
164 2003-03-21  Dale Johannesen  <dalej@apple.com>
166         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
167         priority for R2 on Darwin.
168         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
170 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
172         * combine.c (make_field_assignment): Remove unnecessary AND
173         when storing into zero_extract.
175 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
177         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
178         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
179         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
180         in comment.
182 2003-03-21  DJ Delorie  <dj@redhat.com>
184         * optabs.c (init_integral_libfuncs): Make sure we init at least up
185         to "long long" size words.
187 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
189         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
190         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
191         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
193 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
195         PR doc-bug/9813
196         * doc/extend.texi: Move misplaced paragraph about underscores in
197         variables in macros.
199 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
200             Richard Henderson  <rth@redhat.com>
202         PR optimization/8366
203         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
204         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
205         PIC+SYMBOLIC_CONST in other modes than Pmode.
206         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
207         the form PIC+SYMBOLIC_CONST as mode dependent.
209 2003-03-21  DJ Delorie  <dj@redhat.com>
211         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
212         sure we always emit at least one insn.
214 2003-03-21  Christopher Faylor  <cgf@redhat.com>
216         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
217         stub t-cygming. Use common target header cygming.h. Add extra
218         c_target_obj and cxx_target_obj file. Default cygwin to posix
219         threading. Enforce i386 as float format.
220         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
221         Remove cygwin.h as target header. Use common target header
222         cygming.h  Enforce i386 as float format. Correct typo.
223         * config/i386/cygming.h: New file, containing definitions
224         common to mingw32 and cygwin.
225         * config/i386/cygwin.h: Remove definitions common to cygwin and
226         mingw.  Simplify special spec logic.  Define "wrappers" around
227         certain include path defines to accommodate -mno-cygwin.
228         Remove some #if 0'ed code.
229         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
230         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
231         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
232         * config/i386/mingw32.h: Remove definitions common to cygwin and
233         mingw.
234         (EXTRA_OS_CPP_BUILTINS): Adjust.
235         (TARGET_VERSION): Define.
236         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
237         mingw32.h definitions.
238         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
239         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
240         Add compilation rules for cygwin1.o cygwin2.o.
241         * config/i386/cygwin1.c: New file.
242         * config/i386/cygwin2.c: New file.
243         * config/i386/t-cygming: New makefile stub.
245 2003-03-20  Richard Henderson  <rth@redhat.com>
247         * fold-const.c (extract_muldiv_1): Revert changing order of
248         operands in case MULT_EXPR of 2003-02-16 patch.
250 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
251         Merge changes from new-regalloc-branch
253         From Michael Matz  <matz@suse.de>
254         * df.c (df_ref_record_1): Move init of loc to safe point.
255         Only recurse on interesting things in parallels.
256         Handle CLASS_CANNOT_CHANGE_MODE smarter.
257         (df_uses_record): Ditto.
259         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
260         it's already okay to use memory operands in (IE doesn't require
261         adding another insn or anything).
263 2003-03-20  Richard Henderson  <rth@redhat.com>
265         PR middle-end/6348
266         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
267         different from word_mode.
269 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
271         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
272         source operand to those that can be extracted with bld.
274 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
276         PR 10066
277         * arm.md (UNSPEC_PIC_BASE): New constant.
278         (pic_add_dot_plus_four): Wrap with unspec.
279         (pic_add_dot_plus_eight): Likewise.
281 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
283         * config/h8300/h8300.md (*insv_si_1_n): New.
284         (*insv_si_1_n_lshiftrt): Likewise.
286 2003-03-20  Roger Sayle  <roger@eyesopen.com>
288         * fold-const.c (fold_mathfn_compare): New function to simplify
289         comparisons against built-in math functions.  Fold comparisons
290         of sqrt against constants.
291         (fold): Call fold_mathfn_compare when appropriate.
293 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
295         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
296         information.
298 2003-03-20  Per Bothner  <pbothner@apple.com>
300         Various cleanups to help compile server.
302         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
303         and pass that to _cpp_init_hashtable.
304         (cpp_read_main_file):  Drop hash_table* argument; don't call
305         _cpp_init_hashtable.
306         * cpplib.h:  Update declarations to match.
307         * c-opts.c (c_common_init_options):  Pass ident_hash to
308         cpp_create_reader.
309         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
310         * fix-header.c (read_scan_file):  Likewise pass NULL table to
311         cpp_create_reader rather than cpp_read_main_file.
313         * cppfiles.c (cpp_rename_file):  Generalized and renamed
314         to cpp_change_file.
315         * cpplib.h:  Update declaration to match.
316         * c-opts.c (push_command_line_line, finish_options):  Change
317         cpp_rename_file calls to cpp_change_file.
319         * line-map.c (add_line_map):  Allow leaving the outermost file.
320         Allowing entering an outermost-file after the initial time.
322         * toplev.c (pop_srcloc):  Allow popping from initial file.
324 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
326         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
328 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
330         * config/h8300/h8300.md (a peephole2): New.
332 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
334         * config/h8300/h8300.md (*addsi3_and_r_1): New.
335         (*addsi3_and_not_r_1): Likewise.
337 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
339         * Makefile.in (STRICT2_WARN): Add @WERROR@.
340         (GCC_WARN_CFLAGS): Remove $(WERROR).
341         (fixinc.sh-warn): New.
342         * ada/Make-lang.in (ada-warn): Add $(WERROR).
343         * cp/Make-lang.in (cp-warn): Add $(WERROR).
344         * f/Make-lang.in (f-warn): Add $(WERROR).
345         * java/Make-lang.in (java-warn): Add $(WERROR).
346         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
348 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
350         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
351         langhooks-def.h (lhd_tree_dump_dump_tree),
352         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
353         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
354         true and false in return statements.
356 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
358         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
359         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
360         DWARF_INITIAL_LENGTH_SIZE.
361         (output_compilation_unit_header, output_pubnames, output_aranges)
362         (output_line_info): Output 0xffffffff escape value for 64-bit
363         DWARF extension.
364         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
366 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
368         * config/s390/s390.c (s390_preferred_reload_class): Do not
369         force constants to the pool unless necessary.
370         (s390_decompose_address): Prefer to use pointer as base,
371         not index register.
372         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
373         Q alternative.
374         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
375         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
376         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
377         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
378         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
380 2003-03-19  Jan Hubicka  <jh@suse.cz>
382         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
383         * i386.c (use_fast_prologue_epilogue): Remove.
384         (ix86_frame): New field save_regs-using_mov;
385         (ix86_compute_frame_layout):  Decide on fast prologues;
386         allocate saved registers in red zone.
387         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
389 2003-03-19  Nick Clifton  <nickc@redhat.com>
391         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
393 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
395         PR 10062
396         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
397         * pa-protos.h (output_lbranch): New prototype.
398         * pa.c (compute_frame_size): Change size of the frame marker on the
399         64-bit ports to 48 bytes.
400         (pa_output_function_prologue): Document why SAVE_SP is set.
401         (hppa_expand_prologue): Save previous stack pointer into frame marker
402         on targets which use the hpux unwind library.
403         (output_cbranch): Use output_lbranch.
404         (output_lbranch): New function to output long unconditional branches.
405         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
406         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
407         64-bit ports.
408         * pa.md (jump): Use output_lbranch.
409         (allocate_stack): New expander for dynamic stack allocation.
411 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
413         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
414         when debugging on XCOFF targets.  Delete "abi" temp.
416         PR target/10073
417         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
419 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
421         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
422         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
423         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
425         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
426         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
427         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
429 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
431         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
432         the result of machopic_function_base_name.
433         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
434         string rather than a static array.
436         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
438         * gengtype.c: Include rtl.h.
439         (enum rtx_code): Don't define.
440         (rtx_format): Make declaration match rtl.h.
441         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
442         users.
443         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
444         * Makefile.in (gengtype.o): Update dependencies.
446 2003-03-18  Andreas Schwab  <schwab@suse.de>
448         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
449         martin@blom.org.
451 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
453         * function.c (next_block_index): Mark with GTY.
455         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
457 2003-03-18  Richard Henderson  <rth@redhat.com>
459         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
460         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
461         until after reload.
463 2003-03-18  Richard Henderson  <rth@redhat.com>
465         * builtins.c (expand_builtin_unop): New target_mode operand;
466         use it to convert the result to the correct mode.
467         (expand_builtin): Update all callers.
469 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
471         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
473 2003-03-18  Jan Hubicka  <jh@suse.cz>
475         * i386.md:  Fix previous commit that mistakely applied the patch
476         twice.
478         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
479         canonicalized.
480         (memrefs_conflict_p): Likewise.
481         (addr_side_effect_eval): Canonicalize the constructed address.
483 2003-03-18  Jan Hubicka  <jh@suse.cz>
485         * i386.md (cvtts?2si peep2): New.
487 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
489         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
491 2003-03-18  Andreas Schwab  <schwab@suse.de>
493         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
494         for format.
496 2003-03-17  Jason Merrill  <jason@redhat.com>
498         PR c++/10091
499         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
500         an unaligned member of TREE_ADDRESSABLE type.
502 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
504         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
505         (TARGET_PROFILE_KERNEL): Define.
506         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
507         (PROFILE_BEFORE_PROLOGUE): Don't define.
508         (PROFILE_KERNEL): Remove hacks.
509         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
510         (rs6000_stack_info): No need to save lr if just for profiling when
511         TARGET_PROFILE_KERNEL.
512         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
513         (output_function_profiler): Localize label generation.  Emit code
514         for kernel profiling.
516 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
518         * config/h8300/h8300-protos.h: Add a prototype for
519         byte_accesses_mergeable_p.
520         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
521         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
522         (a splitter): Likewise.
523         (*iorsi3_ashift_16_ashift_24): Likewise.
524         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
526 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
528         * dwarf2asm.h: Delete obsolete comment.
529         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
530         dw2_asm_output_pcrel, dw2_asm_output_addr,
531         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
532         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
533         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
534         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
536 2003-03-17  Zack Weinberg <zack@codesourcery.com>
538         * c-tree.h (struct lang_identifier): Remove error_locus field.
539         (IDENTIFIER_ERROR_LOCUS): Kill.
540         (record_function_scope_shadow): New prototype.
541         * c-typeck.c (build_external_ref): Don't complain if
542         decl is error_mark_node.  When not at file scope, bind the
543         decl's local value to error_mark_node to suppress further
544         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
546         * c-decl.c (get_function_binding_level): New static function.
547         (record_function_scope_shadow): New exported function.
548         (c_make_fname_decl): Use get_function_binding_level.
550 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
552         * stmt.c (tail_recursion_args): Call promote_mode to set
553         unsignedp flag correctly before calling convert_move.
555 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
557         * loop-unroll.c (decide_peel_completely,
558         decide_unroll_constant_iterations, decide_unroll_stupid,
559         decide_unroll_runtime_iterations, decide_peel_simple): Set
560         loop->has_desc.
562 2003-03-17  Jan Hubicka  <jh@suse.cz>
564         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
566 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
568         * function.c (assign_parms): For a struct value address passed as
569         first argument, delay the function's result RTL setup code until
570         after the emission of parameter conversions.
572 2003-03-17  Dave Love  <fx@gnu.org>
573             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
575         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
576         __arch64__ to match Compaq cc.
578 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
580         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
581         (c_common_init): Set EBCDIC in cpp options.
582         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
583         not conditional compilation.
584         * cpplib.h (struct cpp_options): New entry EBCDIC.
586 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
588         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
590 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
592         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
593         argument to 0 for redirect_jump.
595 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
597         PR c++/8805
598         * except.c (eh_region_u_cleanup): Add prev_try.
599         (expand_eh_region_end_cleanup): Set it.
600         (reachable_handlers): Use it to skip over cleanup blocks.
602 2003-03-17  Andreas Jaeger  <aj@suse.de>
604         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
606 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
608         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
609         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
610         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
611         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
613 2003-03-16  Richard Henderson  <rth@redhat.com>
615         * simplify-rtx (simplify_binary_operation): Don't abort for
616         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
618 2003-03-16  Richard Henderson  <rth@redhat.com>
620         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
621         optimize_size as well.
623 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
625         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
626         for D register to specify the low part of it, aka B.
627         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
628         the register if we are loading 1 or -1 to it; avoid using temp
629         register when moving X/Y to Y/X.
630         (m68hc11_gen_movqi): Likewise.
631         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
633 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
635         PR optimization/9016
636         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
637         into the constant pool.
639 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
641         PR target/9164
642         * tree.c (get_narrower): For extensions with unchanged bit number,
643         return the unsignedness of the outer mode.
645 2003-03-16  Roger Sayle  <roger@eyesopen.com>
647         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
648         to avoid "may be used uninitialized" warning on ia64-hpux.
649         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
651 2003-03-16  Andreas Jaeger  <aj@suse.de>
653         * configure.in: Improve check for memcheck.h.
654         * configure: Regenerated.
656 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
658         * doc/cppopts.texi: Remove documentation of -A-.
660 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
662         * doc/libgcc.texi: Remove @tie.
664 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
666         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
667         (rtx_pair): Added new element update_label_nuses, renamed to
668         replace_label_data.
669         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
670         replace_label_data instead of rtx_pair.
671         * loop.c (load_mems): Likewise.
672         * rtlanal.c (replace_label): Replace label in pool constants and in
673         INSN_LIST (in REG_LABEL note).
674         (subrtx_p): Renamed to rtx_referenced_p.
675         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
676         LABEL_REF with CODE_LABEL, traverse constants from pool.
678 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
679             Zack Weinberg  <zack@codesourcery.com>
681         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
682         * doc/libgcc.texi: New file.
683         * doc/interface.texi: Delete paragraph about libgcc interface.
684         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
686 2003-03-15  Jason Merrill  <jason@redhat.com>
688         PR debug/9039
689         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
691         PR debug/6387
692         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
693         function DIEs at toplevel.
694         (decls_for_scope): At -g1, don't descend into subblocks.
696 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
698         * varasm.c (struct rtx_const): Change type of un.addr member
699         to struct holding an additional 'symbol' member.
700         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
701         with equal string addresses as equal.
702         (simplify_subtraction): Adapt to struct rtx_const change.
704 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
706         * fix-header.c (read_scan_file): Read main file before handling -D.
708 2003-03-15  Roger Sayle  <roger@eyesopen.com>
710         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
711         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
712         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
713         (find_sub_basic_blocks): Likewise.
714         * cgraphunit.c (cgraph_expand_functions): Likewise.
715         * dwarf2out.c (prune_unused_types): Likewise.
716         * expr.c (store_field): Likewise.
717         * genextract.c (print_path): Likewise.
718         * haifa-sched.c (schedule_insn): Likewise.
719         * lcm.c (compute_antinout_edge): Likewise.
720         * loop-unroll.c (decide_peel_once_rolling): Likewise.
721         * ra-colorize.c (ra_colorize_free_all): Likewise.
722         * ra-debug.c (dump_igraph): Likewise.
723         (debug_hard_reg_set): Likewise.
724         * reg-stack.c (reg_to_stack): Likewise.
725         * rtlanal.c (refers_to_regno_p): Likewise.
726         * tracer.c (layout_superblocks): Likewise.
728 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
730         * fix-header.c (read_scan_file): Fix thinko.
732 2003-03-15  Glen Nakamura  <glen@imodulo.com>
734         * reload1.c (choose_reload_regs): Use && instead of ||
735         with REG_CANNOT_CHANGE_MODE_P condition.
737 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
739         * Makefile.in: Update.
740         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
741         * c-lex.c (init_c_lex): Register builtins hook is dead.
742         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
743         (c_common_decode_option): Don't call cpp_handle_option.
744         Handle -A, -D and -U.
745         (handle_deferred_opts): Simplify.
746         (finish_options): Define builtins and command line macros.
747         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
748         * cppinit.c: Don't include intl.h.
749         (init_builtins): Rename cpp_init_builtins.  No hook to call.
750         (init_library): Don't need to sort options.
751         (cpp_create_reader): Don't set pending.
752         (cpp_destroy): Don't free pending.
753         (struct pending_option, cl_directive_handler, struct cpp_pending,
754         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
755         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
756         cl_options, cpp_handle_option): Remove.
757         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
758         cpp_finish_options): Remove.
759         (cpp_init_builtins): New.
760         * fix-header.c (read_scan_file): Update to handle -D.  Fix
761         handling of -I.  Replace call to cpp_finish_options.
763 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
765         PR optimization/9387
766         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
767         for conditional returns.
769 2003-03-14  Jason Merrill  <jason@redhat.com>
771         PR optimization/6871
772         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
774 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
776         * c-opts.c (finish_options): New.
777         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
778         (missing_arg): Handle OPT_include and OPT_imacros.
779         (c_common_init, c_common_parse_file): Use finish_options.
780         (handle_deferred_opts): Update.
781         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
782         (cpp_finish_options): Don't handle -imacros here.
783         (no_fil): Remove.
784         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
786 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
788         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
789         rs6000_maybe_dead if !fromprolog.
791 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
793         * Makefile.in: Update.
794         * c-common.h (fe_file_change, pp_file_change): New.
795         * c-lex.c (init_c_lex): Don't set cb_file_change.
796         (c_common_parse_file): Move to c-opts.c.
797         (cb_file_change): Rename fe_file_change.
798         * c-opts.c: Include debug.h.
799         (warn_unused_macros, include_cursor): New.
800         (push_command_line_include, cb_file_change): New.
801         (COMMAND_LINE_OPTIONS): Handle -include.
802         (c_common_decode_option): Use local warn_unused_macros.
803         Handle OPT_include.
804         (c_common_post_options): Set file change callback.
805         (handle_deferred_opts): Skip -include.  Don't free the array.
806         (c_common_init): Call cpp_finish_options here, and push an
807         initial -include file.
808         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
809         (preprocess_file): Don't call cpp_finish_options.
810         (init_pp_output): Don't set the file change callback.
811         (pp_file_change): Return if no line commands or no output.
812         * cpphash.h (next_include_file, first_unused_line): Remove.
813         * cppinit.c (include_head, include_tail): Remove.
814         (cpp_destroy): Don't free -include chain.
815         (cpp_finish_options): Don't handle -include, or worry about
816         -Wunused-macros.
817         (_cpp_maybe_push_include_file): Remove.
818         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
819         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
820         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
821         Used flag is set based upon the state of the warn_unused_macros
822         flag, and so use of first_unused_line is unnecessary.
824 2003-03-13  Jan Hubicka  <jh@suse.cz>
826         * cselib.c (clear_table): Do not take argument; always clear just
827         used slots.
828         (cselib_process_insn):  Update call of clear_table
829         (cselib_init): Do not call clear_table.
830         (cselib_finish): Clear table.
832         * cse.c (count_reg_usage): Do not check side_effects_p.
833         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
834         like noop.
835         (find_reg_equal_equiv_note): Do not use find_reg_note.
837 2003-03-14  Richard Henderson  <rth@redhat.com>
839         PR target/9700
840         * config/alpha/alpha.c (alpha_va_start): Account for
841         current_function_pretend_args_size in the AP offset.
843         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
844         (INITIAL_ELIMINATION_OFFSET): Move out of line.
845         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
846         (alpha_initial_elimination_offset) New.
847         * config/alpha/alpha-protos.h: Update.
849 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
851         * stmt.c (expand_start_case): Call emit_queue ().
853 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
854             Alexandre Oliva  <aoliva@redhat.com>
856         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
857         words in new abis.
859 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
861         PR optimization/8396
862         * tree-inline.c (initialize_inlined_parameters): Make sure the value
863         of read-only constant arguments is passed with the right type.
865 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
867         * doc/extend.texi (Function Names): Make the example compilable.
869 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
871         * config/rs6000/rs6000.c (processor_target_table): Really allow
872         GP optional instructions on Power4.
874 2003-03-13  Roger Sayle  <roger@eyesopen.com>
876         * calls.c (flags_from_decl_or_type): Factor and remove redundant
877         conditional tests.
879 2003-03-13  Mike Stump  <mrs@apple.com>
881         * ggc-page.c (struct page_entry): Remove varray.h header.
882         Add index_by_depth field.
883         Remove save_in_use_p field.
884         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
885         by_depth_max, by_depth, and save_in_use fields.
886         (INITIAL_PTE_COUNT): Add.
887         (save_in_use_p_i): Add.
888         (save_in_use_p): Add.
889         (adjust_depth): Add.
890         (move_ptes_to_front): Add.
891         (push_depth): Add.
892         (push_by_depth): Add.
893         (prefetch): Add.
894         (free_page): Add support for and use faster data structures.
895         (ggc_alloc): Likewise.
896         (init_ggc): Likewise.
897         (ggc_recalculate_in_use_p): Likewise.
898         (ggc_pop_context): Likewise.
899         (clear_marks): Likewise.
900         (ggc_pch_read): Likewise.
901         * Makefile.in (ggc-page.o): Remove varray.h.
903 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
905         * ChangeLog: Rotated last year's entries to...
906         * ChangeLog.8: New.
908         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
909         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
910         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
911         config/ia64/ia64-protos.h, config/ia64/ia64.c,
912         config/ia64/ia64.h, config/ia64/ia64.md,
913         config/ia64/itanium1.md, config/ia64/itanium2.md,
914         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
915         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
917 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
919         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
920         Differentiate endianness.
921         (s6000_override_options): Use cpu type instead of TARGET_SPE.
923 2003-03-13  Nick Clifton  <nickc@redhat.com>
925         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
926         LDM instructions with writeback enabled.
927         (output_return_instruction): Likewise.
929         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
930         (CALL_USED_REGISTERS): Remove definition.
931         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
933 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
935         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
936         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
937         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
938         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
939         (rs6000_legitimize_address): Formatting.
940         (rs6000_emit_move): Likewise.
941         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
942         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
943         (rs6000_elf_select_section): Comment reason for shlib being
944         set for ABI_AIX.
945         (rs6000_elf_unique_section): Likewise.
946         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
947         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
948         as well as flag_pic.
949         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
950         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
951         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
953 2003-03-13  Richard Henderson  <rth@redhat.com>
955         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
957         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
958         (ia64_gp_save_reg): Remove.
959         (struct ia64_frame_info): Move to the beginning of the file;
960         add reg_save_gp.
961         (ia64_expand_call): Rearrange for new call patterns.
962         (ia64_reload_gp): New.
963         (ia64_split_call): New.
964         (ia64_compute_frame_size): Allocate reg_save_gp.
965         (ia64_expand_prologue): Save reg_save_gp.
966         (ia64_expand_epilogue): Don't restore gp.
967         (ia64_hard_regno_rename_ok): Remove R4 hack.
968         (ia64_function_ok_for_sibcall): New.
969         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
970         call try_split on sibcall pattern.
971         * config/ia64/ia64-protos.h: Update.
972         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
973         Rename from nopic versions.  Confiscate 2nd argument to call as
974         a marker.
975         (call_pic, call_value_pic, sibcall_pic): Remove.
976         (call_gp, call_value_gp, sibcall_gp): New.
977         (builtin_setjmp_setup): Remove.
978         (builtin_setjmp_receiver): Call ia64_reload_gp.
980 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
982         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
983         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
984         "GNU CC" with "GCC".
986         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
987         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
988         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
989         GCC, not GNU CC.
991         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
992         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
994         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
995         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
996         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
997         "GNU CC" with "GCC".
999         * config/v850/lib1funcs.asm, config/v850/rtems.h,
1000         config/v850/v850-c.c, config/v850/v850-protos.h,
1001         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
1002         GCC, not GNU CC.
1004         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
1005         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
1006         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
1007         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
1008         GNU CC.
1010 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
1012         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
1014 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
1016         * fixinc/fixinc.interix: Remove dead code (most of it).
1017         * fixinc/fixinc.dgux: Remove.
1019         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
1020         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
1022 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1024         * pa.c (pa_init_builtins): Fix warning.
1026 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
1028         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
1029         (ASM_OUTPUT_XDATA_SHORT): Remove.
1030         (ASM_OUTPUT_XDATA_INT): Remove.
1031         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
1032         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
1033         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
1034         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
1036 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
1038         PR c++/7050
1039         * expr.c (store_expr): Don't attempt to store void-typed trees,
1040         just evaluate them for side effects.
1042 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
1044         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
1045         * cppinit.c (push_include): Move with changes to cppfiles.c.
1046         (cpp_read_main_file): Mark named operators here...
1047         (cpp_finish_options): ...not here.  Update.
1048         (_cpp_maybe_push_include_file): Update.
1049         * cpplib.h (cpp_push_include, cpp_rename_file): New.
1051 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
1053         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
1054         _gcc_COMPUTE_GAS_VERSION.
1055         * configure.in: Use them.
1056         * configure: Regenerate.
1058 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
1060         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
1061         to detect carry.
1062         (subdi3): Reorder emitted instructions.
1064 2003-03-12  Andreas Jaeger  <aj@suse.de>
1066         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
1067         NETBSD_OS_CPP_BUILTINS_LP64.
1069 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
1071         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
1072         Rearrange.  Reorganize.
1073         * configure.in: Rearrange.
1074         * configure: Regenerate.
1076 2003-03-12  Andreas Jaeger  <aj@suse.de>
1078         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
1079         LP64 targets.
1081         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
1082         _LP64.
1084         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
1085         _LP64 macros here.
1086         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
1088         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
1089         NETBSD_OS_CPP_BUILTINS_LP64.
1090         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
1091         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
1093         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
1095 2003-03-12  Jan Hubicka  <jh@suse.cz>
1097         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
1099 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
1101         Fix PR target/9797 and PR c/9853.
1102         * stmt.c (expand_decl_init): Call push_temp_slots () and
1103         pop_temp_slots ().
1105 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
1107         * sh.c: Include basic-block.h.
1108         (sh_output_mi_thunk, emit_load_ptr): New functions.
1109         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
1111 2003-03-12  Nick Clifton  <nickc@redhat.com>
1113         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
1114         (CALL_USED_REGISTERS): Likewise.
1115         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
1116         describing how this value is calculated.
1118 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
1120         * configure.in (rlim_t): Define to long if no valid definition
1121         found in sys/resource.h.
1122         * config.in, configure: Regenerate.
1124 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
1126         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
1127         TARGET_OS_CPP_BUILTINS.
1128         * config/mcore/mcore-pe.h: Similarly.
1129         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
1130         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
1132 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
1134         PR c/9928
1135         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
1136         only if it is a VAR_DECL.
1138 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
1140         PR optimization/9888
1141         * config/i386/i386.md (jcc_1): Fix range.
1142         (jcc_2): Likewise.
1143         (jump): LIkewise.
1144         (doloop_end_internal): Likewise.
1146 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
1148         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
1149         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
1150         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
1151         DLL_IMPORT_EXPORT_PREFIX and "i."
1152         (i386_pe_dllexport_name_p): Here.
1153         (i386_pe_dllimport_name_p): Here.
1154         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
1155         not 9 chars when getting identifier name.
1156         (i386_pe_mark_dllimport): Here.
1157         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
1158         not 9 chars when getting identifier name. Correct comment.
1159         (i386_pe_strip_name_encoding): Here. Add comments for different
1160         cases.
1161         (gen_fastcall_suffix): Break down xmalloc() argument to
1162         components.
1163         (gen_stdcall_suffix): Likewise.
1164         Update copyright year.
1166 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
1168         PR optimization/9888
1169         * config/i386/i386.md (movsi_1): Remove special alternatives
1170         for %eax register.
1171         (movsi_1_nointernunit): Likewise.
1172         (movhi_1): Likewise.
1173         * config/i386/i386.c (memory_address_length): Do not use
1174         short displacement when there is no base.
1175         (ix86_attr_length_address_default): Handle LEA instructions.
1177 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
1179         * c-cppbuiltin.c (builtin_define_std): Make non-static.
1181 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
1183         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
1184         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
1185         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
1186         * config/freebsd.h (CPP_PREDEFINES): Remove.
1187         (TARGET_OS_CPP_BUILTINS): New.
1188         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
1189         instead of TARGET_OS_CPP_BUILTINS.
1190         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
1192 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
1194         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
1196 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
1198         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
1199         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
1201         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
1203 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
1205         * toplev.c (independent_decode_option): Return success for --help,
1206         --target-help and --version.
1208 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
1210         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
1211         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
1212         specified.
1213         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
1214         DRIVER_SELF_SPECS.
1215         (LINK_SPEC): Let endian options affect the linker emulation name.
1217 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
1219         * sh.md (reload_inqi): Fix mode for source in second set.
1221 2003-03-11  Jan Hubicka  <jh@suse.cz>
1223         * cselib.c (cselib_invalidate_mem_1): Move too ...
1224         (cselib_invalidate_mem): ... here; use new list
1225         (dummy_val, first_containing_mem): New static variables.
1226         (clear_table): Initialize first_containing_mem.
1227         (discard_useless_values):  Compact the containing_mem list.
1228         (add_mem_for_addr): Add to the list.
1229         * cselib.h (cselib_val): Add next_containing_mem.
1231 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
1233         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
1234         instructions for e500.
1236 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
1238         * Makefile.in: Update.
1239         * c-cppbuiltin.c: Include tm_p.h.
1241 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
1243         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
1245         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
1246         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
1247         (_Unwind_SetGR): Same.
1248         (_Unwind_GetGRPtr): New.
1249         (_Unwind_SetGRPtr): New.
1250         (uw_update_context_1): Use accesor functions instead of accessing
1251         context->reg[] directly.
1252         (uw_install_context_1): Same.
1253         (execute_cfa_program): Same.
1254         (__frame_state_for): Same.
1256         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
1257         the synthetic register offset.
1259         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
1261 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
1263         * config/cris/cris.md: Remove lingering EGCS reference.
1264         ("*extopqihi_side_biap"): For HI operation, match
1265         cris_additive_operand_extend_operator, not
1266         cris_operand_extend_operator.  Adjust condition.
1267         ("*extopqihi_side", "*extopqihi"): Ditto.
1268         ("*extopqisi_side_biap"): Correct operand numbers in condition.
1269         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
1270         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
1271         ("*extophisi_swap"): Ditto.
1272         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
1273         PLUS, not cris_operand_extend_operator.  Adjust condition and
1274         output template.
1275         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
1276         * config/cris/cris.h (PREDICATE_CODES): Add
1277         cris_additive_operand_extend_operator.
1278         * config/cris/cris.c (cris_additive_operand_extend_operator):
1279         New predicate.
1281 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
1283         * df.c (read_modify_subreg_p): Change from static to global.
1284         * df.h (read_modify_subreg_p): Add prototype.
1285         * sched-deps.c (sched_analyze_1): Generate true dependency for
1286         strict_low_part, certain subregs and zero/sign_extract.
1288 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
1290         * Makefile.in: Update.
1291         * c-common.c: Don't include real.h or except.h.
1292         (REGISTER_PREFIX): Remove.
1293         (builtin_define_std, builtin_define_with_value,
1294         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
1295         builtin_define_type_max, builtin_define_type_precision,
1296         builtin_define_float_constants): Move to c-cppbuiltin.c.
1297         (c_stddef_cpp_builtins): New.
1298         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
1299         * c-cppbuiltin.c: New, extracted from c-common.c.
1300         (define__GNUC__): New.
1301         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
1302         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
1303         (cpp_unique_options): Don't support no-gcc.
1304         (do_spec_1): Remove support of version specs.
1305         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
1306         * doc/passes.texi: Update.
1307         * doc/tm.texi: Update.
1309 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
1311         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
1313 2003-03-10  Andrew Pinski  <apinski@apple.com>
1315         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
1316         is on should not get here.
1317         (machopic_indirect_data_reference): If dynamic-no-pic is on just
1318         generate high/low parts of the address.
1319         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
1320         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
1321         symbol and labels with a new reg.  Dynamic-no-pic does not have a
1322         pic_offset_table_rtx.
1323         (machopic_select_section): Change references of flag_pic to
1324         MACHOPIC_INDIRECT.
1325         (machopic_asm_out_destructor): Likewise.
1326         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
1327         reference of flag_pic to MACHOPIC_INDIRECT.
1328         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
1329         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
1330         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
1331         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
1332         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
1333         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
1334         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
1335         (TARGET_DYNAMIC_NO_PIC): Define.
1336         (SUBTARGET_SWITCHES): Define, have sub-target switches for
1337         dynamic-no-pic.
1338         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
1339         rs6000_override_options to here. Dynamic-no-pic overrides
1340         pic.
1341         (CC1_SPEC): Change from not static then pic to not static and not
1342         dynamic-no-pic then pic.
1343         * config/rs6000/rs6000.c (rs6000_override_options): Move the
1344         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
1345         (rs6000_legitimize_reload_address): Add case for loading floating in
1346         dynamic-no-pic.
1347         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
1348         of flag_pic to MACHOPIC_INDIRECT.
1349         (secondary_reload_class): Conditional change the reference of
1350         flag_pic to MACHOPIC_INDIRECT.
1351         (rs6000_output_mi_thunk): Change reference of flag_pic to
1352         MACHOPIC_INDIRECT.
1353         (output_profile_hook): Likewise.
1354         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
1355         * config/rs6000/rs6000.md (movdf_low): Add the case for
1356         MACHO_DYNAMIC_NO_PIC_P.
1357         (call): Change references for flag_pic in TARGET_MACHO to
1358         MACHOPIC_INDIRECT.
1359         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
1360         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
1361         * doc/invoke.texi (-mdynamic-no-pic): Document.
1363 2003-03-10  Devang Patel  <dpatel@apple.com>
1365         PR c++/9394
1366         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
1367         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
1368         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
1369         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
1370         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
1371         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
1373 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1375         PR optimization/7189
1376         * toplev.c (rest_of_compilation):  Move
1377         check_function_return_warnings up to just after
1378         delete_unreachable_blocks.
1380 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
1382         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
1383         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
1384         Declare.
1385         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
1386         for reg rename optimization to avoid using Z and Y registers.
1388 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
1390         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
1391         when adding to X and Y since leax/leay are fast.
1392         ("*addhi3"): Accept 'I' constraint when adding to address register.
1393         ("rotlhi3"): Operand 1 must be a register_operand.
1394         (peephole2): New peephole to optimize some adds.
1395         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
1396         to represent -2 .. 2 small integer range.
1398 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
1400         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
1401         each 16-bit rotation.
1403 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
1405         * c-opts.c (add_prefixed_path): Don't use concat.  When
1406         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
1407         cpp_GCC_INCLUDE_DIR_len characters.
1409 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
1411         * testsuite/gcc.dg/altivec-9.c: New file.
1413         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
1414         (rs6000_emit_prologue): Use rs6000_frame_related instead.
1416 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
1418         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
1419         vectors.
1420         (__ev_convert_u64): Remove macro.  Define as inline.
1421         (__ev_convert_s64): Same.
1423 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
1425         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
1426         (rs6000_stack_t): Add spe_64bit_regs_used.
1428         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
1429         spe_64bit_regs_used, and use it to determine the size of the
1430         frame.
1431         (spe_func_has_64bit_regs_p): New.
1432         (spe_synthesize_frame_save): New.
1433         (rs6000_frame_related): Handle SPE synthetic registers.
1434         (rs6000_emit_prologue): Only save in 64-bits if the function used
1435         any registers in 64-bit mode.
1436         (rs6000_emit_epilogue): Same, but for restore.
1438 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
1440         * arm.h (enum floating_point_type): Delete.  Replace with...
1441         (enum fputype): ... new.
1442         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
1443         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
1444         * arm.md (attr fpu): Reworked for new underlying enum values.
1445         * arm.c (arm_fpu_arch): Now enum fputype.
1446         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
1447         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
1448         Update uses of arm_fpu_arch and arm_fpu_tune.
1450 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
1452         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
1453         (try_crossjump_to_edge): Replace refereces to one jump table by
1454         references to identical jump table.
1455         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
1456         (replace_label): Moved to rtlanal.c.
1457         (struct rtx_pair): Moved to rtl.h.
1458         * rtl.h (struct rtx_pair): Moved from loop.c.
1459         (replace_label): New extern function.
1460         (subrtx_p): New extern function.
1461         (tablejump_p): New extern function.
1462         * rtlanal.c (replace_label): Moved from loop.c.
1463         (subrtx_p_1): New static function.
1464         (subrtx_p): New function.
1465         (tablejump_p): New function.
1467 2003-03-10  Jan Hubicka  <jh@suse.cz>
1469         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
1471         * cfgcleanup.c (merge_blocks): Return where to iterate next.
1472         (try_optimize_cfg): Use return value of merge_blocks
1474 2003-03-10  Michael Matz  <matz@suse.de>
1476         * cfg.c (unchecked_make_edge): New.
1477         (cached_make_edge): Use it.
1478         * basic-block.h (unchecked_make_edge): Declare.
1479         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
1481 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
1483         * fpa.md: New file.  Move all patterns relating to FPA co-processor
1484         to here...
1485         * arm.md: ... from here.
1486         (cirrus.md, fpa.md): Include at end of description.
1487         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
1488         (pic_load_addr_based): Remove register constraint from expander.
1489         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
1490         (sordered, sungt, sunle, sunge, sunlt): Likewise.
1491         (eh_epilogue, tablejump): Likewise.
1493 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
1494             Mostafa Hagog
1496         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
1497         condition.
1499 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
1501         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
1502         * config/ip2k/ip2k.h: Similarly.
1503         * config/m32r/m32r.h: Similarly.
1504         * config/m68hc11/m68hc11.h: Similarly.
1505         * config/mn10200/mn10200.h: Similarly.
1506         * config/mn10300/mn10300.h: Similarly.
1507         * config/pdp11/pdp11.h: Similarly.
1508         * config/v850/v850.h: Similarly.
1509         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
1510         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
1511         * config/mips/iris3.h: Remove #if 0 block.
1513 2003-03-09  Roger Sayle  <roger@eyesopen.com>
1514             Joern Rennecke <joern.rennecke@superh.com>
1516         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
1517         pending argument upon return from handle_braces here.
1518         (do_spec_2): Instead handle it upon return from do_spec_1 here.
1520 2003-03-09  Roger Sayle  <roger@eyesopen.com>
1521             Joern Rennecke <joern.rennecke@superh.com>
1523         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
1524         pending argument upon return from handle_braces here.
1525         (do_spec_2): Instead handle it upon return from do_spec_1 here.
1527 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1529         * varasm.c (make_decl_one_only): Use declare_weak().
1531 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1533         PR middle-end/9986
1534         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
1535         after the common builtins.
1536         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
1537         * pa.c (TARGET_INIT_BUILTINS): Define.
1538         (pa_init_builtins): New function.
1540         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
1541         space has been allocated for the outgoing arguments, set the arg
1542         pointer for a call emitted after virtuals have been instantiated
1543         using the stack pointer offset, otherwise abort.
1545 2003-03-09  DJ Delorie  <dj@redhat.com>
1547         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
1549 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
1551         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
1552         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
1553         conversion to integer.
1554         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
1556 2003-03-09  Roger Sayle  <roger@eyesopen.com>
1558         * builtins.def: Fix typo and improve grammar.
1559         * loop-unroll.c (decide_peel_completely): Tidy log message.
1561 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
1563         * config/h8300/h8300.md (*tstsi_upper_bit): New.
1564         (*iorsi3_e2f): Likewise.
1566 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
1568         * config/h8300/h8300.c (h8300_and_costs): Return the number of
1569         assembly instructions needed.
1570         (h8300_shift_costs): Likewise.
1572 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
1574         * config/cris/aout.h (ENDFILE_SPEC): Undef.
1576         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
1577         moves from here ...
1578         * expr.c (emit_move_insn_1): ... to here.
1580         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
1581         (TARGET_OS_CPP_BUILTINS): New macro.
1582         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
1583         (TARGET_OS_CPP_BUILTINS): New macro.
1584         (CPP_PREDEFINES): Don't define.  Move old definitions and...
1585         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
1586         (TARGET_CPU_CPP_BUILTINS): New macro.
1587         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
1588         definitions and the optional __PIC__, __pic__ and
1589         __NO_UNDERSCORES__ definitions to...
1590         (TARGET_OS_CPP_BUILTINS): New macro.
1592         * flags.h (flag_leading_underscore): Declare.
1594         * c-opts.c (c_common_post_options): On fopen failure, return
1595         false, not NULL.
1597 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
1599         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
1600         config.h.
1601         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
1602         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
1604 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
1606         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
1607         CPP_PREDEFINES.
1608         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
1609         CPP_PREDEFINES.
1611 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
1613         * c-common.h (c_common_init, c_common_post_options): Update.
1614         * c-objc-common.c (c_objc_common_init): Update for new prototype.
1615         * c-opts.c (saved_lineno): New.
1616         (c_common_post_options, c_common_init): Update prototypes,
1617         move call to cpp_read_main_file from latter to former.
1618         * c-tree.h (c_ojbc_common_init): Update.
1619         * langhooks-def.h (lhd_post_options): New.
1620         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
1621         * langhooks.c (lhd_post_options): New.
1622         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
1623         * toplev.c (no_backend): New.
1624         (process_options): Call post_options hook and set main_input_filename
1625         and input_filename here.
1626         (lang_dependent_init, do_compile): post_options hook moved to
1627         process_options.
1628         * objc/objc-act.c (objc_init): Update prototype.
1629         * objc/objc-act.h (objc_init): Update prototype.
1631 2003-03-08  Roger Sayle  <roger@eyesopen.com>
1633         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
1634         a complex or vector type, using a load in the original mode.
1636 2003-03-08  Jan Hubicka  <jh@suse.cz>
1638         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
1639         * gt-cgraph.h: New GC file.
1640         * cgraph.c (known_fns): New static variable.
1641         (cgraph_node): Add the decl into varray.
1643 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
1645         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
1647 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
1649         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
1650         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
1651         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
1652         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
1653         All callers changed.
1654         * arm.md, arm.h, arm-protos.h: Updated.
1656         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
1657         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
1658         * arm.c (arm_regno_class, f_register_operand): Updated.
1660 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
1662         * config/cris/cris.h: Remove EGCS references.
1663         (CPP_SPEC): Remove "-$".
1664         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
1666 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
1668         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
1669         preference to CPP_PREDEFINES.
1671 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
1673         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
1675 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
1677         * config/h8300/h8300.md (*extzv_16_8): New.
1679 2003-03-08  Jan Hubicka  <jh@suse.cz>
1681         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
1682         * cgraph.h: (cgraph_local_info): Add can_inline_once
1683         (cgraph_global_info): Add inline_once.
1684         (cgraph_node): Add previous.
1685         (cgraph_remove_node): New.
1686         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
1687         function.
1688         (cgraph_optimize): Call it.
1689         (cgraph_finalize_function):  Set inlinable flags.
1690         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
1691         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
1692         (cgraph_expand_function): Likewise.
1693         * cgraph.c
1694         (cgraph_node): Put nodes into doubly linked chain.
1695         (cgraph_remove_node): New function.
1696         * flags.h (flag_inline_functions_called_once): Declare.
1697         * tree-inline.c: Include cgraph.h
1698         (inlinable_functions_p): Add extra argument to bypass limits.
1699         (expand_call_inline):  Obey cgraph flag.
1700         * tree-inline.h (tree_inlinable_function_p): Update prototype.
1702 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1704         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
1705         irreducible loops.
1707         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
1708         loops info correctly.
1710 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
1712         PR middle-end/7796
1713         * unroll.c (calculate_giv_inc): Handle constants being
1714         loaded with LSHIFTRT.
1716 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
1718         * config/rs6000/rs6000.c (processor_target_table): Do not disable
1719         GP optional instructions on Power3, Power4, 620, and 630.
1721 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
1723         * calls.c: Fix comment formatting.
1724         * cfgloopanal.c: Likewise.
1725         * cfgloopmanip.c: Likewise.
1726         * combine.c: Likewise.
1727         * dwarf2out.c: Likewise.
1728         * ggc-common.c: Likewise.
1729         * langhooks.c: Likewise.
1730         * loop-unroll.c: Likewise.
1731         * loop.c: Likewise.
1732         * ra-build.c: Likewise.
1733         * sbitmap.c: Likewise.
1734         * toplev.c: Likewise.
1736 2003-03-07  James E Wilson  <wilson@tuliptree.org>
1738         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
1740 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
1742         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
1743         support -no-integrated-cpp.
1745         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
1746         than langhooks.name.
1748 2003-03-07  Michael Matz  <matz@suse.de>
1750         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
1751         (DF_FOR_REGALLOC): New.
1752         * df.c (df_ref_record): Set DF_REF_STRIPPED.
1753         (read_modify_subreg_p): Simplify.
1754         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
1755         Use DF_FOR_REGALLOC.
1756         * ra.h (struct web): New member subreg_stripped.
1757         (invalid_mode_change_regs): Declare.
1758         * ra.c (invalid_mode_change_regs): New.
1759         (init_ra): Initialize it.
1760         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
1761         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
1762         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
1763         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
1764         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
1766 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
1768         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
1769         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
1770         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
1771         machine description file from ...
1772         * cirrus.md: ... here.
1774 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
1776         * config/h8300/h8300.md (a peephole2): Don't use
1777         reg_overlap_mentioned_p.
1779 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
1781         * c-pch.c: Include langhooks.h.
1782         (IDENT_LENGTH): New.
1783         (get_ident): New.
1784         (pch_ident): Delete.
1785         (pch_init): Use get_ident, IDENT_LENGTH.
1786         (c_common_valid_pch): Likewise.  Also, use actual language
1787         in warning message.
1788         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
1790         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
1791         c-parse.in.
1792         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
1793         gt-objc-objc-act.h.
1794         (gt-objc-objc-act.h): New rule.
1795         * objc/lang-specs.h: Support PCH.
1796         * objc/objc-act.c: Include gt-objc-objc-act.h.
1797         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
1798         (build_selector_reference_decl): Move idx out, mark for PCH.
1799         (build_class_reference_decl): Likewise.
1800         (build_objc_string_decl): Move *_idx out, mark for PCH.
1801         (build_tmp_function_decl): Move xxx out, mark for PCH.
1803 2003-03-06  Dale Johannesen  <dalej@apple.com>
1805         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
1806         global functions for inlining on Darwin.
1808 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
1810         * haifa-sched.c (schedule_block): Don't call reorder when sorting
1811         is prohibited.
1813 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
1815         * Makefile.in (c-ppoutput.o): Update.
1816         * c-common.h (init_pp_output): New.
1817         (preprocess_file): Update.
1818         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
1819         Register builtins.
1820         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
1821         Make call to cpp_read_main_file common to whether preprocessing
1822         or not.  Don't register builtins.
1823         * c-ppoutput.c: Include c-pragma.h.
1824         (setup_callbacks): Rename init_pp_output.
1825         (preprocess_file): No longer setup callbacks or call
1826         cpp_read_main_file.
1827         * cpphash.h (_cpp_init_mbchar): New.
1828         * cppinit.c (init_library): Call _cpp_init_mbchar.
1829         * cpplex.c (_cpp_init_mbchar): New.
1831 2003-03-06  Roger Sayle  <roger@eyesopen.com>
1833         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
1834         MEM, try loading the MEM into a register and taking the low-part
1835         of that, to help CSE see the use of the MEM in its true mode.
1837 2003-03-05  Tom Tromey  <tromey@redhat.com>
1839         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
1840         Define.
1842 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
1844         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
1845         operand 2.
1846         ("*ineqbranchsi"): Likewise.
1848 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
1850         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
1851         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
1852         register store followed by a stack increment.
1854 2003-03-05  Chris Moller  <cmoller@redhat.com>
1856         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
1857         to inhibit saving CARRY_REGS.
1859         * config/stormy16/stormy16.c (xs_hi_general_operand):
1860         added predicate to detect and error-out on out-of-range
1861         const_ints for movhi.
1862         * config/stormy16/stormy16.md (movhi): use
1863         xs_hi_general_operand.
1865         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
1866         added a check for local vbl size overflow.
1867         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
1868         added predicate to detect and error-out on out-of-range
1869         const_ints for addhi and subhi.
1870         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
1871         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
1873         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
1874         add a term to accept PRE_MODIFY addresses.
1875         * config/stormy16/stormy16.c (xstormy16_expand_move):
1876         add code to expand PRE_MODIFY addresses to an add followed
1877         by a move.
1879 2003-03-06  Jason Merrill  <jason@redhat.com>
1881         * tree-inline.c (inlinable_function_p): Revert earlier change
1882         pending investigation.
1884 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
1886         * config/h8300/h8300.md (a new peephole2): New.
1888 2003-03-06  Jan Hubicka  <jh@suse.cz>
1890         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
1892 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1894         * dwarf2out.c (size_of_die): Compute size of external reference to
1895         die correctly.
1897 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
1899         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
1900         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
1901         expanders.
1903 2003-03-05  Roger Sayle  <roger@eyesopen.com>
1905         * expr.h (lang_expand_expr): Delete obsolete prototype.
1907 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1909         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
1911 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1913         * config/h8300/h8300.md (a peephole2): Generalize to
1914         accept a memory operand.
1916 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
1918         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
1919         * config/alpha/alpha.c (print_operand, case '+'): New.
1920         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
1921         (call_value_osf_1_noreturn): Likewise.
1923 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1925         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
1926         (expand_end_bindings): Likewise.
1928 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1930         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
1931         (epilogue): Don't generate return_external_pic when emitting PA 2.0
1932         code.
1934 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
1936         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
1938         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
1940         * hooks.c (hook_rtx_rtx_null): New.
1942         * hooks.h (hook_rtx_rtx_null): Protoize.
1944         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
1945         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
1947         * target.h (struct gcc_target): Add dwarf_register_span.
1949         * dwarf2out.c (multiple_reg_loc_descriptor): New.
1950         (one_reg_loc_descriptor): New.
1951         (reg_loc_descriptor): Add support for values that span more than
1952         one register.
1954 2003-03-05  Jan Hubicka  <jh@suse.cz>
1956         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
1957         * alias.c:  Include cgraph.h
1958         (mark_constant_function): Use cgraph_rtl_info.
1959         * calls.c:  Include cgraph.h
1960         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
1961         calls.
1962         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
1963         * cgraph.c (cgraph_rtl_info): New function.
1964         * cgraph.h (cgraph_rtl_info): Declare
1965         (cgraph_rtl_info): Likewise.
1966         * function.h (struct function): Add recursive_call_emit.
1967         * toplev.c: Include cgraph.h.
1968         (rest_of_compilation): Set preferred_incoming_stack_boundary.
1970 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1972         * config/h8300/h8300.c (output_simode_bld): Clear the
1973         destination first if possible.
1974         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
1975         alternative.
1976         (extzv_1_r_inv_h8300hs): Likewise.
1978 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1980         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
1981         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
1982         * cfgloop.c (flow_loop_free): Made global.
1983         (establish_preds): New static function.
1984         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
1985         (get_loop_exit_edges): New.
1986         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
1987         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
1988         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
1989         loops.
1990         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
1991         removability of an edge.
1992         (fix_irreducible_loops): New static function.
1993         (find_path, remove_path): Add ability to remove enclosing loops.
1994         (unloop): New.
1995         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
1996         flags.
1997         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
1998         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
1999         not neccessary.
2000         (decide_peel_completely, peel_loops_completely): Allow complete peeling
2001         of non-duplicable once rolling loops.
2002         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
2004 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
2006         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
2007         for align_jumps is 4.
2009         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
2010         use GENERAL_REGS.
2012 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
2014         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
2015         according to va_arg type.
2016         (EXPAND_BUILTIN_VA_ARG): Remove.
2017         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
2018         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
2020 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
2022         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
2023         else clauses.
2025 2003-03-05  Michael Matz  <matz@suse.de>
2027         * i386/i386.c (ix86_save_reg): Also test
2028         current_function_uses_const_pool.
2030 2003-03-05  Michael Matz  <matz@suse.de>
2032         * unwind.h: Add the GPL exception.
2033         * Makefile.in (USER_H): Add unwind.h.
2035 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
2037         PR c/9799
2038         * c-typeck.c (push_init_level): Add sanity check.
2040 2003-03-05  Jan Hubicka  <jh@suse.cz>
2042         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
2043         RTL inlining is done.
2045         * cgraphunit.c (cgraph_mark_local_functions): New local function.
2046         (cgraph_optimize): Mark local functions.
2047         * i386-protos.h (init_cumulative_args): Update prototype.
2048         * i386.c (init_cumulative_args): Use register passing convention for
2049         local functions.
2051         * cgraph.c (cgraph_global_info_ready): New global variable
2052         (cgraph_local_info, cgraph_global_info): New functions.
2053         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
2054         structures.
2055         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
2056         Declare.
2057         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
2058         (cgraph_mark_functions_to_output): Use inline_many.
2059         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
2060         (cgraph_expand_functions): Expand inline functions last.
2061         (cgraph_optimize): Do not emit uneeded functions.
2063 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
2065         * expr.c (convert_modes): Check for legal hard register.
2067 2003-03-04  Tom Tromey  <tromey@redhat.com>
2069         * doc/sourcebuild.texi (Front End Directory): Document tags.
2070         * configure: Rebuilt.
2071         * configure.in (target_list): Added tags.
2072         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
2073         TAGS files by reference.
2074         * objc/Make-lang.in (objc.tags): New target.
2076 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2078         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
2079         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
2080         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
2081         gcov_read_string, gcov_write_length): Modified to enable reading/
2082         writing of whole .da file just once.
2083         (da_file_open, da_file_close, da_file_eof, da_file_error,
2084         da_file_position, da_file_seek, da_file_write, da_file_read): New
2085         functions.
2086         (actual_da_file, actual_da_file_position, actual_da_file_length,
2087         actual_da_file_buffer, actual_da_file_buffer_size): New static
2088         functions.
2089         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
2090         just once.
2093 2003-03-04  Andreas Schwab  <schwab@suse.de>
2095         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
2096         offset without frame pointer.
2098 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
2100         * expr.c (expand_expr): Call promote_mode to set unsignedp.
2102 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
2104         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
2105         * configure: Regenerated.
2106         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
2108 2003-03-04  Andreas Jaeger  <aj@suse.de>
2110         * configure.in: Check for <memcheck.h>.
2111         * configure: Regenerated.
2113         * config.in: Define HAVE_MEMCHECK_H.
2115         * ggc-common.c: Use <memcheck.h> if available instead of
2116         <valgrind.h>.
2117         * ggc-page.c: Likewise.
2118         * cppfiles.c: Likewise.
2120 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
2122         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
2124 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2126         PR c/9262
2127         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
2128         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
2130 2003-03-04  Jan Hubicka  <jh@suse.cz>
2132         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
2133         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
2134         for -O3.
2136 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
2138         * configure.in: Delete three unused variables.  Move a variable
2139         definition closer to its use.  Simplify use_collect2 logic.  Start to
2140         organize.  Simplify tests for in-tree gas and ld.
2141         * configure: Regenerate.
2143 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
2145         * Makefile.in: Update.
2146         * c-common.c (flag_no_line_commands, flag_no_output,
2147         flag_dump_macros, flag_dump_includes): New.
2148         * c-common.h (flag_no_line_commands, flag_no_output,
2149         flag_dump_macros, flag_dump_includes, preprocess_file): New.
2150         (init_c_lex): Update prototype.
2151         * c-lex.c (init_c_lex): Update prototype; move some code to
2152         c_common_init.
2153         * c-opts.c (preprocess_file): Subsume into c_common_init.
2154         (c_common_decode_option): Update flags.
2155         (c_common_init): Move code from preprocess_file and init_c_lex.
2156         (sanitize_cpp_opts): Update.
2157         * c-ppoutput.c: New, cppmain.c almost verbatim.
2158         * cpphash.h (struct printer): Remove.
2159         (struct cpp_reader): Remove print.
2160         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
2161         cpp_preprocess_file): Remove.
2162         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
2163         and dump_includes.
2164         * cppmain.c: Remove.
2165         * doc/passes.texi: Update.
2167 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2169         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
2170         (assign_stack_local_1): Perform overall stack alignment only when
2171         STACK_ALIGNMENT_NEEDED is non-zero.
2172         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
2174         * pa.c (compute_frame_size): Rename fsize to size.  Account for
2175         alignment to a word boundary before general register save block.  Only
2176         account for double-word alignment before floating point register save
2177         block if one or more are saved.  Don't allocate space for %r3 when
2178         frame pointer is needed.
2179         (hppa_expand_prologue): Include alignment to word boundary in local
2180         frame size.
2181         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
2182         (STACK_ALIGNMENT_NEEDED): Define.
2184 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
2186         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
2187         global register variables.
2189 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
2191         * reload.c (reload_adjust_reg_for_mode): New function.
2192         (subst_reloads): Call it.
2193         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
2194         * reload.h (reload_adjust_reg_for_mode): Declare.
2195         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
2196         Call it.
2198 2003-03-03  James E Wilson  <wilson@tuliptree.org>
2200         * optabs.c (add_equal_note): Delete SUBREG_REG use.
2201         Fixes PR c/7872.
2203 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2205         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
2206         (*ixorsi3_lshiftrt_16): New.
2207         (*iorsi3_ashift_16): Remove.
2209 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2211         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
2212         pattern.
2214 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
2216         * doc/install.texi (Specific): Update entry for powerpc-darwin.
2218 2003-03-03  Richard Henderson  <rth@redhat.com>
2220         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
2222 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
2224         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
2225         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
2226         (rs6000_variable_issue): Do not return negative value.
2227         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
2228         scheduling pass.
2230 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2232         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
2233         prune_unused_types calls.
2235 2003-03-03  Jason Merrill  <jason@redhat.com>
2237         * tree-inline.c (find_builtin_longjmp_call): Save and restore
2238         lineno and input_filename.
2239         (find_alloca_call): Likewise.
2240         (inlinable_function_p): Run the langhook earlier.
2242         * calls.c (compute_argument_addresses): Give the new MEMs a
2243         minimum alignment of PARM_BOUNDARY.
2245 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
2247         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
2248         subtarget_asm_isa_spec.
2249         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
2250         (ASM_SPEC): Define as SH_ASM_SPEC.
2251         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
2252         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
2253         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
2254         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
2256         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
2257         and align_jumps if not set.
2258         Force align_jumps to be at least 2.
2259         When relaxing, force align_functions to be at least the maximum of
2260         align_loops, align_jumps and 4.
2261         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
2262         (sh_loop_align): Honour align_loops_log.
2264         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
2265         to check for indirect_jump_scratch.
2266         (indirect_jump_scratch): Add second set.
2267         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
2268         when looking for indirect_jump_scratch.
2269         Extract scratch register taking new structure of indirect_jump_scratch
2270         into account.
2271         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
2273 2003-03-03  Jan Hubicka  <jh@suse.cz>
2275         * calls.c (rtx_for_function_call): Take the address as an argument
2276         (expand_call): Do not modify the expression.
2278         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
2279         optimizing.
2281 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2283         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
2284         TARGET_H8300H and TARGET_H8300S.
2286 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2288         * config/h8300/h8300.md (a peephole2): New.
2290 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2292         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
2293         operands[0] and operands[1] are different.
2295 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2297         * reload1.c (reload_cse_move2add): Remove variable success.
2299 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2301         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
2302         warnings.
2304 2003-03-02  Richard Henderson  <rth@redhat.com>
2306         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
2307         * config.in, configure: Rebuild.
2308         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
2309         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
2310         paired ldtoffx and ldxmov annotations.
2311         (load_symptr_internal1): Remove.
2312         (load_symptr_high, load_symptr_low): New.
2314 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
2316         * c-incpath.c (add_path): Fix sysp assignment.
2318 2003-03-02  Kurt Garloff  <garloff@suse.de>
2320         * params.def: Introduce parameter max-inline-insns-rtl for
2321         a separate limit for the RTL inliner.
2322         * params.h: Likewise.
2323         * integrate.c (function_cannot_inline_p): Use it.
2324         * toplev.c (decode_f_option): Set multiple parameters
2325         controlling inlining with -finline-limit.
2326         * params.def: Fix orthographic and typographic errors.
2327         * doc/invoke.texi: Document parameters controlling inlining
2328         and the way -finline-limit sets multiple of them.
2330         * tree.h (struct tree_decl): Introduce inlined_function_flag,
2331         recording whether the function became eligible for inlining
2332         by a compiler flag rather than the declaration.
2333         Provide DID_INLINE_FUNC macro to access it.
2334         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
2335         * cp/decl.c (grokfndecl): Likewise.
2336         * toplev.c (rest_of_compilation): Likewise.
2337         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
2338         * print-tree.c (print_node): Report it.
2339         * params.def: Introduce new max-inline-insns-auto limit.
2340         * params.h: Likewise.
2341         * tree-inline.c (inlinable_function_p): Apply it to functions
2342         with DID_INLINE_FUNC set.
2343         * toplev.c (decode_f_option): Initialize it from -finline-limit
2344         value.
2345         * doc/invoke.texi: Document new parameter.
2347 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
2349         * fix-header.c (read_scan_file): Don't reference simplify_path.
2351 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2353         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
2354         min/max instructions by default as may result in reload errors.
2356 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2358         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
2359         avoid reload problems; define split for it.
2361 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2363         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
2364         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
2365         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
2366         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
2367         rotatert and rotate.
2368         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
2369         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
2370         ("*rotrhi3_addr"): New split for shift insns on address register.
2371         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
2372         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
2373         (___rotrhi3): Likewise.
2374         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
2376 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
2378         * toplev.c (aux_base_name): Moved from toplev.h.
2379         (filename): Constify.
2380         (lang_dependent_init): Don't duplicate name.
2381         (process_options): Set aux_base_name here, not...
2382         (do_compile): ...here.  Change protoype.
2383         (toplev_main): Move some code from do_compile.
2384         * toplev.h: Remove aux_base_name.
2386 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2388         * config/h8300/h8300-protos.h: Add a prototype for
2389         iorxor_operator.
2390         * config/h8300/h8300.c (print_operand): Handle 'c'.
2391         (iorxor_operator): New.
2392         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
2393         * config/h8300/h8300.md (*iorhi3_zext): Remove.
2394         (*iorsi3_zexthi): Likewise.
2395         (*iorsi3_zextsi): Likewise.
2396         (*xorhi3_zextqi): Likewise.
2397         (*xorsi3_zexthi): Likewise.
2398         (*xorsi3_zextsi): Likewise.
2399         (*ixorhi3_zext): New.
2400         (*ixorsi3_zext_qi): Likewise.
2401         (*ixorsi3_zext_hi): Likewise.
2403 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
2405         * c-incpath.c (remove_component_p, simplify_path): Move back to
2406         cppfiles.c.
2407         (remove_duplicates): Use cpp_simplify_path.
2408         * c-incpath.h (simplify_path): Remove.
2409         * c-lex.c: Don't include c-incpath.h.
2410         (init_c_lex): Remove simplify_path.
2411         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
2412         (find_or_create_entry, validate_pch): Revert.
2414 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
2416         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
2417           an external cpp during compilation.
2418         (option_map): Likewise.
2419         * objc/lang-specs.h (default_compilers): Similarly.
2420         * doc/invoke.texi: Document -no-integrated-cpp flag.
2422 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2424         * config/h8300/h8300.md (zero_extendqisi2): Change to an
2425         expander.
2426         (*zero_extendqisi2_h8300): New.
2427         (*zero_extendqisi2_h8300hs): New.
2428         (two splitters): New.
2430 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2432         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
2434 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
2436         * config/h8300/h8300.md (a peephole2): Remove dead code.
2438 2003-03-01  Roger Sayle  <roger@eyesopen.com>
2440         PR c++/9367
2441         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
2442         (BT_FN_INT_CONST_STRING_VALIST_ARG,
2443         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
2444         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
2445         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
2446         BT_FN_INT_STRING_CONST_STRING_VAR,
2447         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
2448         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
2449         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
2450         ATTR_NONNULL_3): Also include the nothrow attribute.
2451         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
2452         vsnprintf, vscanf, vsscanf): Don't define attributes here.
2453         * builtins.def (putchar, puts): Make full C89 built-ins.
2454         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
2455         vsscanf, vsnprintf, vsprintf): New built-ins.
2456         * c-common.c (c_common_nodes_and_builtins): Handle new macro
2457         DEF_FUNCTION_TYPE_VAR_3.
2459         * doc/extend.texi: Document these new built-in functions.
2461 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
2463         * config/h8300/h8300.md (a peephole2): New.
2465 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
2467         * predict.c (estimate_bb_frequencies): Correctly set
2468         real_values_initialized after initialization.
2470 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
2472         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
2473         cppinit.o, cppdefault.o, fix-header): Update.
2474         * c-incpath.c: New file.
2475         * c-incpath.h: New file.
2476         * c-lex.c: Include c-incpath.h.
2477         (init_c_lex): Register path simplifier.
2478         * c-opts.c: Include cppdefault.h and c-incpath.h.
2479         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
2480         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
2481         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
2482         (missing_arg, c_common_decode_option): Handle them.
2483         (c_common_post_options): Register include chains.
2484         (print_help): Update.
2485         * cppdefault.h (struct default include): Update.
2486         Move some macros to ...
2487         * cppdefault.c: ... here.
2488         (cpp_include_defaults): Add extra field add_sysroot.
2489         * cppfiles.c (include_file, search_from, find_or_create_entry,
2490         cpp_included, find_include_file, remap_filename): Update for
2491         renaming of search_path to cpp_path, and of the chain headers.
2492         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
2493         * cpphash.h (struct search_path): Move to cpplib.h.
2494         (struct cpp_buffer, struct cpp_reader): Update.
2495         (_cpp_simplify_pathname): Remove.
2496         * cppinit.c: Don't include prefix.h and cppdefault.h.
2497         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
2498         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
2499         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
2500         no_pth, cpp_handle_options): Remove.
2501         (struct pending_option): Remove chain members.
2502         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
2503         cpp_handle_option): Update.
2504         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
2505         (struct cpp_options): Remove quote_include, bracket_include,
2506         include_prefix, include_prefix_len, verbose, ignore_srcdir,
2507         no_standard_includes, no_standard_cplusplus_includes.
2508         (struct cpp_callbacks): Add simplify_path.
2509         (cpp_handle_options): Remove.
2510         * fix-header.c: Include c-incpath.h.
2511         (read_scan_file): Update to use c-incpath functionality.
2512         * doc/passes.texi: Update.
2514 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
2516         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
2517         satisfies EXTRA_CONSTRAINT 'U'.
2519 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
2521         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
2522         register.
2523         (*tst_extzv_memqi_1_n): Change to a splitter.
2524         (a peephole2): Update.
2526 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
2528         * predict.c (estimate_bb_frequencies): Initialize the sreal
2529         constants once per compilation.
2531 2003-02-28  Richard Henderson  <rth@redhat.com>
2533         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
2535 2003-02-28  scott snyder  <snyder@fnal.gov>
2537         * flags.h: Add flag_eliminate_unused_debug_types.
2538         * toplev.c: Add flag_eliminate_unused_debug_types.
2539         (f_options): Add -feliminate-unused-debug-types.
2540         * dwarf2out.c (struct file_table): Add emitted member.
2541         (splice_child_die): Fix the parent pointer for the child being
2542         spliced.
2543         (lookup_filename): Maintain file_table.emitted array.  Don't
2544         output .file directive here.
2545         (maybe_emit_file): (new)
2546         (init_file_table): Set up file_table.emitted.
2547         (dwarf2out_source_line): Use maybe_emit_file.
2548         (dwarf2out_start_source_file): Use maybe_emit_file.
2549         (dwarf2out_init): Use maybe_emit_file.
2550         (prune_unused_types_walk_attribs): (new)
2551         (prune_unused_types_mark): (new)
2552         (prune_unused_types_walk): (new)
2553         (prune_unused_types_prune): (new)
2554         (prune_unused_types): (new)
2555         (dwarf2out_finish): Call prune_unused_types if
2556         flag_eliminate_unused_debug_types is set.
2557         * doc/invoke.texi (Option Summary): Add
2558         -feliminate-unused-debug-types.
2559         (Debugging Options): Likewise.
2561 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
2563         * doc/invoke.texi: Change .pch to .gch.
2564         * cppfiles.c (open_file_pch): Likewise.
2565         * gcc.c (default_compilers): Likewise.
2567 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
2569         * floatlib.c: Remove.
2571 2003-02-28  Jason Merrill  <jason@redhat.com>
2573         * stor-layout.c (variable_size): Leave a "minus 1" outside the
2574         SAVE_EXPR.
2576 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
2578         * config/rs6000/power4.md: Add compare bypass.
2580 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
2582         * config/netbsd.h: Update copyright years.
2583         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
2584         -pthread is specified on the command line.
2586 2003-02-28  Dale Johannesen <dalej@apple.com>
2588         * loop.c (struct movable): Add insert_temp, shrink savemode.
2589         (scan_loop): Accept invariants that require copying; mark as
2590         insert_temp.
2591         (combine_movables): Don't combine insert_temp movables.
2592         (move_movables): Insert copies for insert_temp movables.
2593         Don't record the info based on regno for insert_temp's.
2595 2003-02-28  Joel Sherrill <joel@OARcorp.com>
2597         PR 9638/other
2598         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
2599         this constant defaults to 1.
2601 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
2603         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
2605 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
2607         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
2608         ARMv5e processor, not just for XScale.  Instructions are predicable.
2609         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
2611 2003-02-28  Nick Clifton  <nickc@redhat.com>
2613         * config/arm/arm.c (note_invalid_constants): Change parameter type
2614         from bool to int.
2616 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2618         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
2619         test of bit 7.
2620         (*tst_extzv_memqi_1_n): Likewise.
2621         (a peephole2): New.
2623 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
2625         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
2626         #ifndef __mips16.
2628 2003-02-28  Jan Hubicka  <jh@suse.cz>
2630         * combine.c (gen_lowpart_for_combine): Update handling of
2631         subregs_of_mode
2632         * flow.c (life_analysis, mark_used_regs): Likewise.
2633         * regclass.c (subregs_of_mode): Turn into single bitmap.
2634         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
2635         dealing with subregs_of_mode
2636         * regs.h (subregs_of_mode): Update prototype.
2638 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
2640         * emit-rtl.c (set_reg_attrs_for_parm): New function.
2641         * rtl.h (set_reg_attrs_for_parm): New exported function.
2642         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
2643         set_reg_attrs_from_mem.
2645 2003-02-27  Roger Sayle  <roger@eyesopen.com>
2646             Zack Weinberg <zack@codesourcery.com>
2648         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
2650 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
2652         * reload1.c (sext_for_mode): Remove.
2653         (reload_cse_move2add): Use trunc_int_for_mode instead of
2654         sext_for_mode.
2655         (move2add_note_store): Likewise.
2656         Reset register information if we see a set in non-integer
2657         mode.
2659 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
2661         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
2662         option.
2663         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
2664         * config/rs6000/aix51.h: Same.
2665         * config/rs6000/aix52.h: Same.
2666         * config/rs6000/power4.md: Additional VMX bypasses.
2668 2003-02-27   Geert Bosch <bosch@gnat.com>
2670         * toplev.c (print_version): Add indentation for GGC heuristics and
2671         output after printing version information.
2673 2003-02-27  James E Wilson  <wilson@tuliptree.org>
2675         * combine.c (simplify_comparison): Require integral mode when
2676         permuting SUBREG with AND.
2678 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
2680         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
2682 2003-02-27  Nick Clifton  <nickc@redhat.com>
2684         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
2685         deleted when cirrus instructions were added.
2687 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
2689         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
2690         POSIX thread support by default.
2692 2003-02-27  Roger Sayle  <roger@eyesopen.com>
2694         * config/i386/cygwin.h: Don't include any other files directly.
2695         * config/i386/mingw32.h: Don't include cygwin.h directly.
2696         * config.gcc (cygwin, mingw32, uwin): Instead make these files
2697         explicit in the tm_files variable.
2699 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
2701         * config/rs6000/rs6000.md: Add TI constant splitter.
2703 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
2705         * builtins.c (purge_builtin_constant_p): Handle subreg of
2706         constant_p_rtx too.
2708         * function.c (assign_stack_local_1): Truncate constant added to
2709         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
2711 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
2713         * config.gcc: Add power4 to PowerPC with_cpu list.
2715 2003-02-26  Jan Hubicka  <jh@suse.cz>
2717         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
2719 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2721         * gcov-dump.c (print_prefix): Fix signedness warning.
2722         * gcov-io.h (struct counter_section, struct counter_section_data): New.
2723         (struct function_info): n_arc_counts field removed, n_counter_sections,
2724         counter_sections fields added.
2725         (struct gcov_info): arc_counts, n_arc_counts fields removed,
2726         n_counter_sections, counter_sections fields added.
2727         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
2728         profile sections.
2729         * profile.h (MAX_COUNTER_SECTIONS): New.
2730         (struct section_info): New.
2731         (struct profile_info): count_instrumented_edges,
2732         count_edges_instrumented_now fields removed, n_sections, section_info
2733         fields added.
2734         (find_counters_section): Declare.
2735         * profile.c (struct function_list): count_edges field removed,
2736         n_counter_sections, counter_sections fields added.
2737         (set_purpose, label_for_tag, build_counter_section_fields,
2738         build_counter_section_value, build_counter_section_data_fields,
2739         build_counter_section_data_value, build_function_info_fields,
2740         build_function_info_value, build_gcov_info_fields,
2741         build_gcov_info_value): New static functions.
2742         (find_counters_section): New function.
2743         (instrument_edges, get_exec_counts, compute_branch_probabilities,
2744         branch_prob, create_profiler): Modified to support multiple profile
2745         sections.
2747 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2749         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
2750         is 8 * STACK_BOUNDARY.
2751         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
2753 2003-02-26  Michael Matz  <matz@suse.de>
2755         * ra-colorize.c (merge_moves): Fix list handling.
2757 2003-02-26  Nick Clifton  <nickc@redhat.com>
2759         * config/arm/arm.c (is_load_address): Rename to...
2760         (arm_memory_load_p) ... this and make it check for SUBREGs and
2761         constant loads that will be converted into loads from the
2762         minipool.
2763         (is_cirrus_insn): Rename to ...
2764         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
2765         of CIRRUS_NO with CIRRUS_NOT.
2766         (cirrus_reorg): Use renamed functions.
2767         (note_invalid_constants): Change from a void function to bool.
2768         Add an extra parameter, saying whether the fixups should be
2769         pushed.  Return true if fixups are needed.
2770         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
2771         of CIRRUS_NO with CIRRUS_NOT.
2772         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
2773         other floating point co-processors can also affect this.
2774         * config/arm/arm.md ("type" attribute): Add mav_farith and
2775         mav_dmult.  Replace references to "cirrus_type" attribute with
2776         "type".
2777         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
2778         ("cirrus_type" attribute): Delete - use "type" instead.
2779         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
2780         'normal'.
2782 2003-02-25  Jan Hubicka  <jh@suse.cz>
2784         * objc-act.c: Include cgraph.h
2785         (mark_referenced_methods): New function.
2786         (objc_init): Call it.
2787         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
2789         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
2790         mode.
2792         * optabs.c (expand_fix): Do not widen the input operand.
2794         * expr.c (emit_group_store):  Fix crash when converting single
2795         register into complex register.
2797         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
2798         * alias.c: Include timevar.h
2799         (init_alias_analysis):  Set timevar
2800         * jump.c: Include timevar.h
2801         (rebuild_jump_labels):  Set timevar
2802         * regcalss.c: Include timevar.h
2803         (reg_scan):  Set timevar
2804         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
2806 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2808         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
2810         * Makefile.in (loop-unroll.o): New.
2811         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
2812         (unroll_and_peel_loops): Declare.
2813         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
2814         flag_old_unroll_loops.
2815         * loop.c (loop_invariant_p): Ditto.
2816         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
2817         flag_old_unroll_all_loops.
2818         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
2819         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
2820         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
2821         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
2822         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
2823         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
2824         PARAM_MAX_ONCE_PEELED_INSNS): New.
2825         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
2826         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
2827         instead of old one.
2828         (flag_peel_loops): New.
2829         (lang_independent_options): The new flags added.
2830         (rest_of_compilation): Call new unroller.
2831         (process_options): Setup flags for coexistence of old and new unroller.
2832         * doc/invoke.texi: Document new options.
2833         * doc/passes.texi: Document new unroller pass.
2835 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
2837         * fixinc/fixincl.x: Regenerate
2839 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
2841         * function.c (assign_parms): Set reg_attrs for parameters passed in
2842         registers.
2844 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
2846         PR target/9681
2847         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
2849 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
2851         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
2852         pseudo-op.
2854 2003-02-25  Roger Sayle  <roger@eyesopen.com>
2856         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
2857         * cse.c (invalidate_skipped_set):  Likewise.
2858         * integrate.c (subst_constants):  Likewise.
2859         * jump.c (reversed_comparison_code_parts):  Likewise.
2860         * loop.c (canonicalize_condition):  Likewise.
2861         * simplify-rtx.c (simplify_relational_operation):  Likewise.
2863 2003-02-25  Roger Sayle  <roger@eyesopen.com>
2865         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
2866         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
2867         the appropriate macro to define built-in function.
2868         (fmod,fmodf,fmodl): New built-in functions.
2870         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
2872 2003-02-25  Richard Henderson  <rth@redhat.com>
2874         * config/i386/i386.c (function_arg): Pass variable sized
2875         structures correctly on the stack.
2877 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
2879         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
2880         does not reduce the cost of SET.
2882 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2884         PR target/9732
2885         * config/rs6000/rs6000.c (first_reg_to_save): Handle
2886         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
2887         (rs6000_emit_prologue): Likewise.
2888         (rs6000_emit_epilogue): Likewise.
2889         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
2890         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
2892 2003-02-25  Richard Henderson  <rth@redhat.com>
2894         * real.c (real_to_integer2): Force overflow result only for
2895         unsigned overflow.
2897 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
2899         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
2901 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
2902             Richard Henderson  <rth@redhat.com>
2904         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
2905         there is no similar load.
2907 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
2908             Richard Henderson  <rth@redhat.com>
2910         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
2911         sched-rgn.c.
2912         (add_forward_dependence): New function prototype.
2914         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
2915         sched-init.h.
2916         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
2917         them to haifa-sched.c.
2919         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
2920         haifa_classify_insn): Move them from sched-rgn.c.
2922         * sched-deps.c (add_dependence): Return flag of creating a new
2923         entry.
2924         (add_forward_dependence): New function.
2925         (compute_forward_dependences): Use the function.
2927         * sched-ebb.c (earliest_block_with_similiar_load): New function.
2928         (add_deps_for_risky_insns): New function.
2929         (schedule_ebb): Call the function.
2931 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
2933         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
2934         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
2936         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
2937         opaque types fail.
2939         * c-typeck.c (comptypes): Change call to vector_types_compatible
2940         to vector_opaque_p.
2941         (convert_for_assignment): Call vector_opaque_p instead of
2942         vector_types_compatible.
2943         (really_start_incremental_init): Disallow initialization of opaque
2944         types.
2946         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
2947         Define TARGET_VECTOR_OPAQUE_P.
2948         (TARGET_INITIALIZER): Same.
2950         * target.h (struct gcc_target): Remove vector_types_compatible.
2951         Add vector_opaque_p.
2953         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
2954         Remove.
2955         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
2956         a vector type.  Change return type to bool.
2957         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
2958         (TARGET_VECTOR_OPAQUE_P): Define.
2960         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
2961         target hook.
2962         Include target.h.
2963         (cp_parser_init_declarator): Fix typo in function comments.
2965 2003-02-25  Jan Hubicka  <jh@suse.cz>
2967         * Makefile.in (lcm.o):  Add dependency on function.h
2968         * lcm.c (function.h): Include.
2969         * i386.c (machine_function, ix86_stack_locals,
2970         * ix86_save_varrargs_registers) : Move to
2971         ...
2972         * i386.h (machine_function, ix86_stack_locals,
2973         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
2974         (ix86_optimize_mode_switching): New.
2975         * i386.md (fix patterns): Set ix86_optimize_mode_switching
2977 2003-02-25  Nick Clifton  <nickc@redhat.com>
2979         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
2980         of fourth arg is 'fndecl' not 'indirect'.  Update comment
2981         describing the function's parameters.
2983 2003-02-24  Jan Hubicka  <jh@suse.cz>
2985         * combine.c (simplify_shift_const):  Fix previous patch.
2987 2003-02-24  Jeff Law  <law@redhat.com>
2989         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
2990         alternative.
2991         (testsi_1, testhi_1, testqi_1): Likewise.
2993 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2995         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
2996         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
2997         * doc/extend.texi (Tru64 Pragmas): Reflect this.
2999         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
3000         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
3001         * fixinc/fixincl.x: Regenerate.
3002         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
3003         testcase.
3004         Fixes PR c/5059, c/6126, other/9671.
3006 2003-02-24  Roger Sayle  <roger@eyesopen.com>
3008         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
3009         from handle_braces in "%{...}".
3011 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
3013         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
3014         (prepare_move_operands): Handle TLS operands.
3015         (tls_symbolic_operand): New.
3016         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
3017         (legitimize_pic_address): Do nothing for the TLS symbol.
3018         (sh_encode_section_info): Handle TLS case.
3019         (sh_strip_name_encoding): Drop TLS encoding.
3020         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
3021         * config/sh/sh.h (SH_TLS_ENCODING): Define.
3022         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
3023         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
3024         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
3025         * config/sh/sh.md: Define TLS UNSPEC constants.
3026         (type): Add tls_load.
3027         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
3028         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
3029         ("tls_initial_exec"): New insn.
3030         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
3031         ("load_gbr"): New insn.
3033         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
3034         * configure: Regenerate.
3036 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
3038         PR 9297, PR 9722
3039         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
3040         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
3041         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
3042         (enum block_op_methods): Reorder for better store_expr optimization.
3043         * expr.c (store_expr): Test bit 1 of "want_value" for call param
3044         stores, test bit 0 for original want_value meaning.  Pass
3045         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
3046         recursive calls, and calls to expand_param.
3047         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
3048         expected, set target to 0 rather than to subtarget.  Formatting.
3050 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
3052         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
3054 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3056         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
3057         new default behavior.
3058         * ggc-common.c: Include sys/resource.h.
3059         (ggc_rlimit_bound): New function.
3060         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
3061         defaults to account for rlimits.
3063 2003-02-22  Richard Henderson  <rth@redhat.com>
3065         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
3067 2003-02-22  Kelley Cook <kelley@dwhoops.info>
3069         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
3070         (ix86_tune_string): Rename from ix86_cpu_string.
3072 2003-02-22  Kelley Cook <kelleycook@comcast.net>
3074         * config/i386/i386.c: Replace "mcpu" with "mtune".
3075         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
3076         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
3077         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
3078         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
3080 2003-02-23  Andreas Schwab  <schwab@suse.de>
3082         * config.gcc: Delete references to m68k/t-linux and
3083         m68k/t-linux-aout.
3084         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
3086 2003-02-22  Jan Hubicka  <jh@suse.cz>
3088         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
3089         of track scheduling patch.
3091 2003-02-22  Jan Hubicka  <jh@suse.cz>
3093         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
3094         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
3096 2003-02-22  Jan Hubicka  <jh@suse.cz>
3098         * c-decl.c (c_expand_body_1): Fix.
3100 2003-02-22  Jan Hubicka  <jh@suse.cz>
3102         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
3104         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
3105         when not optimizing.
3106         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
3107         when not expensive.
3108         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
3109         optimizing;  Delete trivially dead insns early; fix optimize check.
3111         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
3112         dependency on cgraph.h
3113         * c-decl.c: Include cgraph.h
3114         (finish_function): Update call of tree_inlinable_function_p.
3115         * c-objc-common.c: Include cgraph.h
3116         * cgraph.h: New file.
3117         * cgraphunit.c: New file.
3118         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
3119         (cgraph_nodes, cgraph_n_nodes): Globalize.
3120         (cgraph_finalize_function, cgraph_finalize_compilation_unit
3121         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
3122         Move into cgraphunit.c
3123         * tree-inline.c: Include cgraph.h
3124         * tree-inline.c: Include cgraph.h
3126 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
3128         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
3129         for copying a register.
3131 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3133         PR other/3782
3134         * toplev.c (process_options): If flag_detailed_statistics is set,
3135         then set time_report as well.
3137         PR c/8828
3138         * jump.c (never_reached_warning): Don't fall through BARRRIER
3139         insns.  Update comments to reflect what the function really does.
3141 2003-02-21  Roger Sayle  <roger@eyesopen.com>
3143         * fold-const.c (omit_one_operand): No longer static.
3144         * tree.h (omit_one_operand): Prototype here.
3145         (div_and_round_double): Keep fold-const.c prototypes together.
3146         * builtins.c (builtin_mathfn_code): Handle binary built-in
3147         funtions, such as "pow" and "atan2".
3148         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
3149         Simplify optimizations using "type" the builtin's return type.
3151 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
3153         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
3154         Fix functionalization typo.
3156         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
3157         in an asm.
3159 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3161         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
3162         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
3163         documentation.
3164         * ggc-common.c: Include params.h
3165         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
3166         init_ggc_heuristics): New functions.
3167         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
3168         init_ggc_heuristics): Prototype.
3169         * toplev.c (print_version):  Output GGC heuristics.
3170         (parse_options_and_default_flags): Call init_ggc_heuristics.
3172 2003-02-22  Jan Hubicka  <jh@suse.cz>
3174         * i386.c (def_builtin):  Special case 64bit builtins.
3175         (MASK_SSE164, MASK_SSE264): New constants.
3176         (builtin_description): Add 64bit builtins.
3177         (ix86_init_mmx_sse_builtins): Likewise.
3178         * i386.h (enum ix86_builtins): Likewise.
3179         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
3180         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
3181         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
3182         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
3183         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
3184         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
3185         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
3187 2003-02-22  Jan Hubicka  <jh@suse.cz>
3189         * i386.c (builtin_description): Add __builtin_ia32_paddq and
3190         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
3191          and __builtin_ia32_psubq128.
3192         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
3193         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
3194         (mmx_adddi3, mmx_subdi3): New.
3195         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
3196         * xmmintrin.h (_mm_movepi64_pi64): New.
3197         (_mm_add_epi64, _mm_sub_epi64): fix.
3198         (_mm_mul_pu16): Rename to...
3199         (_mm_mul_su32): ... this one.
3201         * builtins.c (expand_builtin_expect):  Do not predict
3202         flag_guess_branch_prob is not set.
3203         * c-semantics.c (expand_stmt): Likewise.
3204         * predict.c (predict_insn): Likewise.
3205         * stmt.c (expand_continue_loop): Likewise.
3206         * toplev.c (rest_of_compilation): Do not call
3207         note_prediction_to_br_prob and note_prediction_to_br_prob
3208         when not optimizing.
3210 2003-02-21  Jan Hubicka  <jh@suse.cz>
3212         * cfgrtl.c (commit_edge_insertions):  Call
3213         find_many_sub_basic_block only when some code has been emitted.
3214         (commit_edge_insertions_watch_calls): Bring into sync with
3215         commit_edge_insertions
3217 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
3219         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
3221         * sh.md (binary_sf_op): Use extra constant operand instead of
3222         negating constant operand 4.
3223         * sh.c (sh_expand_binop_v2sf): Supply it.
3225 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
3227         * cpphash.h (struct lexer_state): Add directive_wants_padding.
3228         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
3229         for directives of type INCL.
3230         (glue_header_name, parse_include): Use get_token_no_padding.
3231         * cppmacro.c (replace_args): If directive_wants_padding,
3232         provide padding tokens.
3234 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
3236         * config/h8300/h8300.md (a peephole2): New.
3238 2003-02-21  Jan Hubicka  <jh@suse.cz>
3240         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
3241         (commit_edge_insertions): Call find_many_sub_basic_blocks
3243         * reg-stack.c (convert_regs): Cleax aux for blocks.
3245 2003-02-21  Jan Hubicka  <jh@suse.cz>
3247         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
3249 2003-02-21  Glen Nakamura  <glen@imodulo.com>
3251         PR optimization/8613
3252         * builtins.c (expand_builtin): Emit postincrements before expanding
3253         builtin functions.
3255 2003-02-21  Ben Elliston  <bje@redhat.com>
3257         PR other/5634
3258         * doc/install.texi (Configuration): Explain using $HOME instead of
3259         the ~ metacharacter when referring to home directories.
3261 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
3263         * configure.in (TARGET_SYSTEM_ROOT): Set default to
3264         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
3265         '${exec_prefix}' (in addition to the expansion thereof) as
3266         relocatable.
3267         * configure: Rebuilt.
3269 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3271         * config/h8300/h8300.md (addhi3_incdec): Change the name to
3272         *addhi3_incdec.
3273         (addsi3_incdec): Change the name to *addsi3_incdec.
3275 2003-02-20  Roger Sayle  <roger@eyesopen.com>
3277         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
3279 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
3281         PR fortran/9038
3282         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
3283         options to be ignored.
3284         (c_common_decode_option): Ignore them when preprocessing.
3286 2003-02-20  Jan Hubicka  <jh@suse.cz>
3288         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
3289         global variables.
3290         (lang_independent_options):  Add -fsched2-use-superblocks
3291         -fsced2-use-traces.
3292         (rest_of_compilation): Deal with it.
3293         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
3294         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
3295         Declare.
3296         * rtl.h (reg_to_stack):  Update prototype.
3297         * reg-stack.c (reg_to_stack): Return when something has changed;
3298         update liveness when executing after superblock scheduling.
3300         * combine.c (simplify_shift_const):  Simplify few special cases
3301         into constants.
3303 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
3305         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
3306         (add.,subf.,neg.): Change attribute to fast_compare.
3307         All DFA descriptions updated.
3309 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
3311         Change base class access representation.
3312         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
3313         TREE_VIA_PRIVATE): Remove.
3314         (BINFO_BASEACCESSES): New binfo elt.
3315         (BINFO_BASEACCESS): New accessor.
3316         (BINFO_ELTS): Increase.
3317         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
3318         (access_public_node, access_protected_node,
3319         access_private_node): New global nodes.
3320         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
3321         * dbxout.c (dbxout_type): Adjust.
3322         * dwarf2out.c (gen_inheritance_die): Add access parameter.
3323         (gen_member_die): Adjust.
3324         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
3325         (output_type): Adjust.
3326         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
3328         Change base class access representation. Share virtual base
3329         binfos.
3330         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
3331         call.
3332         * cp/class.c (build_base_path): Likewise.
3333         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
3334         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
3335         (make_new_vtable): Adjust.
3336         (force_canonical_binfo_r): Delete.
3337         (force_canonical_binfo): Delete.
3338         (mark_primary_virtual_base): Delete.
3339         (dfs_unshared_virtual_bases): Delete.
3340         (mark_primary_bases): Adjust.
3341         (maybe_warn_about_overly_private_class): Adjust.
3342         (dfs_base_derived_from): Delete.
3343         (base_derived_from): Follow the inheritance chain.
3344         (struct find_final_overrider_data): Add vpath member.
3345         (dfs_find_final_overrider): Adjust.
3346         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
3347         (find_final_overrider): Adjust.
3348         (update_vtable_entry_for_fn): Adjust.
3349         (modify_all_vtables): Adjust.
3350         (walk_subobject_offsets): Adjust.
3351         (layout_nonempty_base_or_field): Adjust.
3352         (layout_empty_base): Remove last parameter. Adjust.
3353         (build_base_field): Adjust.
3354         (build_base_fields): Adjust.
3355         (propagate_binfo_offsets): Remove last parameter. Adjust.
3356         (dfs_set_offset_for_unshared_vbases): Delete.
3357         (layout_virtual_bases): Adjust.
3358         (finish_struct_1): Adjust.
3359         (init_class_processing): Don't init access nodes.
3360         (dfs_get_primary_binfo): Delete.
3361         (get_primary_binfo): Adjust.
3362         (dump_class_hierarchy_r): Remove most derived arg, add IGO
3363         parameter. Adjust.
3364         (dump_class_hierarchy): Adjust.
3365         (finish_vtbls): Adjust.
3366         (get_original_base): Delete.
3367         (build_vtt_inits): Adjust.
3368         (dfs_build_secondary_vptr_vtt_inits): Adjust.
3369         (dfs_ctor_vtable_bases_queue_p): Adjust.
3370         (build_ctor_vtbl_group): Adjust.
3371         (dfs_accumulate_vtbl_inits): Adjust.
3372         (build_vtbl_initializer): Adjust.
3373         (build_vbase_offset_vtbl_entries): Adjust.
3374         (add_vcall_offset_vtbl_entries_1): Adjust.
3375         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
3376         (access_*_node): Remove.
3377         (CANONICAL_BINFO): Delete.
3378         (BINFO_UNSHARED_MARKED): Remove.
3379         (BINFO_MARKED): Set LANG_FLAG_0 directly.
3380         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
3381         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
3382         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
3383         Delete.
3384         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
3385         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
3386         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
3387         Delete.
3388         (BINFO_DEPENDENT_BASE_P): New.
3389         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
3390         index.
3391         (markedp, unmarkedp): Adjust.
3392         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
3393         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
3394         find_vbase_instance, binfo_for_vbase): Delete.
3395         (copied_binfo, original_binfo): Declare.
3396         (finish_base_specifier): Add virtual_p arg.
3397         (unshare_base_binfos): Delete.
3398         (copy_base_binfos): Declare.
3399         (reverse_path): Delete.
3400         * cp/decl.c (xref_basetypes): Access and virtuality passed
3401         differently. Don't copy direct base binfos here. Call
3402         copy_base_binfos.
3403         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
3404         (initialize_vtbl_ptrs): Adjust.
3405         (expand_member_init): Adjust.
3406         * cp/parser.c (cp_parser_base_specifier): Adjust.
3407         * cp/pt.c (instantiate_class_template): Adjust.
3408         (get_template_base_recursive): Adjust.
3409         * cp/rtti.c (get_pseudo_ti_init): Adjust.
3410         (get_pseudo_ti_desc): Adjust.
3411         * cp/tree.c (unshare_base_binfos): Rename to ...
3412         (copy_base_binfos): ... here, reimplement.
3413         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
3414         (reverse_path): Remove.
3415         * cp/typeck.c (get_delta_difference): Adjust error messages.
3416         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
3417         * cp/search.c (lookup_base_r): Adjust.
3418         (dynamic_cast_base_recurse): Adjust.
3419         (canonical_binfo): Remove.
3420         (dfs_canonical_queue): Remove.
3421         (dfs_assert_unmarked_p): Remove.
3422         (assert_canonical_unmarked): Remove.
3423         (shared_marked_p, shared_unmarked_p): Remove.
3424         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
3425         (dfs_access_in_type): Adjust.
3426         (access_in_type): Adjust.
3427         (dfs_accessible_queue_p): Adjust.
3428         (dfs_accessible_p): Adjust.
3429         (is_subobject_of_p_1, is_subobject_of_p): Remove.
3430         (struct lookup_field_info): Remove from_dep_base_p field.
3431         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
3432         (lookup_field_r): Remove dependent base code.
3433         (lookup_member): Likewise.
3434         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
3435         (dfs_unmarked_real_bases_queue_p): Remove.
3436         (dfs_marked_real_bases_queue_p): Remove.
3437         (dfs_skip_vbases): Remove.
3438         (dfs_get_pure_virtuals): Adjust.
3439         (markedp, unmarkedp): Adjust.
3440         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
3441         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
3442         (dfs_unmark): Adjust.
3443         (dfs_get_vbase_types):Remove.
3444         (dfs_build_inheritance_graph_order): Remove.
3445         (get_vbase_types): Remove
3446         (dfs_find_vbase_instance): Remove.
3447         (find_vbase_instance): Remove.
3448         (dfs_debug_unmarkedp): Adjust.
3449         (dependent_base_p): Remove.
3450         (dfs_push_type_decls): Adjust.
3451         (dfs_push_decls): Adjust.
3452         (dfs_no_overlap_yet): Adjust.
3453         (copied_binfo): New function.
3454         (original_binfo): New function.
3455         (binfo_for_vbase): Remove.
3457         Change base class access representation.
3458         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
3459         (add_interface_do): Likewise.
3461 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
3463         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
3464         * config/rs6000/power4.md (power4-store,power4-vecstore): New
3465         insn reservations.
3466         (power4-fpstore): Compact.
3468 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3470         * config/h8300/h8300.md (*iorsi3_w): New.
3472 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
3474         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
3475         * rtl.c (reg_note_name): Likewise.
3476         * rtl.h (enum reg_note): Likewise.
3477         * doc/invoke.texi: Likewise.
3478         * doc/rtl.texi: Likewise.
3480 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
3482         * bb-reorder.c (find_traces_1_round): Fix comment typo.
3484 2003-02-19  Roger Sayle  <roger@eyesopen.com>
3486         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
3487         addition in the presence of signaling NaNs.
3489 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
3491         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
3493 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3495         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
3496         ORing with 0xffff??00 with the highest bit of the ?? part set.
3497         (compute_logical_op_length): Update.
3498         (compute_logical_op_cc): Likewise.
3500 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
3502         * bb-reorder.c (find_traces_1_round): Fixed condition for small
3503         destination block with multiple predecessors.
3504         (connect_traces): Check whether the block is a start of trace.
3506 2003-02-19  Jan Hubicka  <jh@suse.cz>
3508         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
3509         * function.c (assign_params): Likewise.
3510         * arm-protos.h (arm_init_cumulative_args): Update prototype.
3511         * arm.c (arm_init_cumulative_args): Update function.
3512         * arm.h (INIT_CUMULATIVE_ARGS): Update.
3513         * avr-protos.h (init_cumulative_args): Update prototype.
3514         * avr.c (init_cumulative_args): Update function.
3515         * avr.h (INIT_CUMULATIVE_ARGS): Update.
3516         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
3517         * d30v.c (d30v_init_cumulative_args): Update function.
3518         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
3519         * frv-protos.h (frv_init_cumulative_args): Update prototype.
3520         * frv.c (frv_init_cumulative_args): Update function.
3521         * frv.h (INIT_CUMULATIVE_ARGS): Update.
3522         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
3523         * pa.h (INIT_CUMULATIVE_ARGS): Update.
3524         * sparc-protos.h (init_cumulative_args): Update prototype.
3525         * sparc.c (init_cumulative_args): Update function.
3526         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
3527         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
3529 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3531         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
3532         (*ashiftsi_sextqi_7): Likewise.
3534 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3536         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
3537         ISO C99 and C++.
3539         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
3540         for C++ on IRIX 6.5.1[89].
3541         * fixinc/tests/base/internal/sgimacros.h: New file.
3543         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
3544         * fixinc/tests/base/internal/wchar_core.h: New file.
3546         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
3547         socklen_t definition.
3548         * fixinc/fixincl.x: Regenerate.
3549         * fixinc/tests/base/sys/socket.h: New file.
3550         Fixes PR libgcj/9652.
3552 2003-02-19  Jan Hubicka  <jh@suse.cz>
3554         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
3556 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
3558         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
3559         align_jumps_max_skip and align_loops_max_skip.
3561 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
3563         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
3564         test size if named section.
3566 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
3568         * expr.c (expand_expr): Use gen_int_mode for the argument
3569         to gen_rtx_MULT.
3571 2003-02-19  Jan Hubicka  <jh@suse.cz>
3573         * i386.md (cosxf2):  Fix conditional.
3575 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3577         * config/h8300/h8300.md (extendqisi2): Change to an expander.
3578         (*extendqisi2_h8300): New.
3579         (*extendqisi2_h8300hs): Likewise.
3581 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3583         * config/h8300/h8300-protos.h: Update the prototype for
3584         split_adds_subs.  Remove the prototypes for
3585         const_int_le_2_operand and const_int_le_6_operand.
3586         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
3587         (const_int_le_2_operand): Remove.
3588         (const_int_le_6_operand): Likewise.
3589         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
3590         for const_int_le_2_operand and const_int_le_6_operand.
3591         * config/h8300/h8300.md: Update all uses of split_adds_subs.
3592         (a peephole2): New.
3594 2003-02-18  Jan Hubicka  <jh@suse.cz>
3596         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
3597         (cgraph_expand_function): Rewrite.
3599 2003-02-18  Matt Austern <austern@apple.com>
3601         * toplev.c, langhooks.c, langhooks-def.h: Move
3602         write_global_declarations from toplev.c to langhooks.c.
3604 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3606         * config/h8300/h8300.c (general_operand_src): Always check
3607         MODE.
3608         (general_operand_dst): Likewise.
3610 2003-02-18  Roger Sayle  <roger@eyesopen.com>
3612         * convert.c (convert_to_real): Also optimize (float)log(x) into
3613         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
3615 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3617         * config/sh/sh.c (unspec_caller_rtx_p): New.
3618         (sh_cannot_copy_insn_p): New.
3619         (TARGET_CANNOT_COPY_INSN_P): New.
3621 2003-02-18  Richard Henderson  <rth@redhat.com>
3623         * c-common.c (handle_used_attribute): Accept static data too.
3625 2003-02-18  Nick Clifton  <nickc@redhat.com>
3626             Aldy Hernandez  <aldyh@redhat.com>
3628         * testsuite/gcc.dg/20030218-1.c: New.
3630         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
3632         * target-def.h (TARGET_INITIALIZER): Add
3633         TARGET_VECTOR_TYPES_COMPATIBLE.
3634         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
3636         * target.h (struct gcc_target): Add field vector_types_compatible.
3638         * c-typeck.c (comptypes): Take into account
3639         TARGET_VECTOR_TYPES_COMPATIBLE.
3640         (convert_for_assignment): Same.
3642         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
3643         (rs6000_spe_vector_types_compatible): New.
3644         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
3646 2003-02-19  Andreas Schwab  <schwab@suse.de>
3648         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
3649         * toplev.c: Include langhooks-def.h.
3651 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
3653         * config/mips/mips.h (enum processor_type): Sort entries
3654         alphabetically.
3655         * config/mips/mips.md (define_attr cpu): Sync with processor_type
3656         enum values, including adding entries that were missing.
3658 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
3660         * sh.c (calc_live_regs): Also check GET_CODE when checking if
3661         initial value for PR_REG is still the PR_REG register.
3663 2003-02-18  Jim Wilson  <wilson@redhat.com>
3665         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
3666         instruction in output template.
3667         (bsp_value): Change output template from string to C code, add %,
3668         before actual instruction.
3669         (flushrs): Mark as not predicable.
3671 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
3673         * inclhack.def (netbsd_bogus_semicolon): New fix.
3674         * fixincl.x: Rebuilt.
3675         * tests/base/ctype.h: Update.
3677 2003-02-18  Roger Sayle  <roger@eyesopen.com>
3679         * fold-const.c (negate_expr_p): New function to determine whether
3680         an expression can be negated cheaply.
3681         (fold) [MINUS_EXPR]: Use it to determine whether to transform
3682         -A - B into -B - A for floating point types.
3684 2003-02-18  Roger Sayle  <roger@eyesopen.com>
3686         * sbitmap.c (sbitmap_resize): New function.
3687         * sbitmap.h (sbitmap_resize): Prototype here.
3688         * recog.c (split_all_insns): Use sbitmap_resize.
3690 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3692         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
3693         insn length.
3694         (extendqisi2): Likewise.
3695         (*extendhisi2_h8300): Likewise.
3697 2003-02-18  Matt Austern <austern@apple.com>
3699         * langhooks.h, langhooks-def.h: introduce new langhook,
3700         final_write_globals, with write_global_declarations as default.
3701         * toplev.c: Move invocation of wrapup_global_declarations from
3702         compile_file to new function, write_global_declarations.  Change
3703         compile_file to use final_write_globals hook.  Change
3704         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
3705         conditional.
3707 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3709         * pa.md: Correct and enhance comment.
3711 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
3713         * gcc.c (validate_switches): Don't scan past closing '}'.
3715 2003-02-18  Ben Elliston  <bje@redhat.com>
3717         PR c++/1607
3718         * doc/extend.texi (Function Attributes): Document the effect of
3719         the C++ "this" parameter on the counting of arguments for the
3720         "format" and "format_arg" attributes.
3722 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
3724         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
3725         (__ev_stdw): Same.
3726         (__ev_stdh): Same.
3728 2003-02-17  Jan Hubicka  <jh@suse.cz>
3730         * recog.c (split_all_insns):  Fix memory overflow.
3732 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
3734         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
3735         (cmphi): Likewise.
3736         (*cmphi_h8300): Likewise.
3737         (*cmphi_h8300hs): Likewise.
3738         (cmpsi): Likewise.
3739         (7 peephole2): Likewise.
3741 2003-02-16  Jan Hubicka  <jh@suse.cz>
3743         * c-typeck.c (build_c_cast):  Fold constant variables into
3744         initial values.
3746 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3748         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
3749         (Binaries): Ditto for Sinix/Reliant Unix.
3751 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
3753         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
3754         not overlap the final result register.
3756 2003-02-16 Arend Bayer <arend.bayer@web.de>
3757            Richard Henderson  <rth@redhat.com>
3759         PR c/8068
3760         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
3761         rearrange mult arguments for less recursion.
3762         (extract_muldiv): New.  Prevent runaway recursion.
3764 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
3766         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
3767         MASK_ALIGN_DOUBLE.
3769 2003-02-15  Roger Sayle  <roger@eyesopen.com>
3771         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
3772         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
3773         (ext_80387_constants_table): Global table of 80387 special constants
3774         guarded by ext_80387_constants_init flag when not initialized.
3775         (init_ext_80387_constants): New function to initialize this table.
3776         (standard_80387_constant_p): Extend to recognize extra 80387
3777         constants, in XFmode, on processors where this is a win.
3778         (standard_80387_constant_opcode): New function to return the
3779         opcode associated with standard_80387_constant_p.
3780         (standard_80387_constant_rtx): New function to return the XFmode
3781         CONST_DOUBLE associated with standard_80387_constant_p.
3782         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
3784         * config/i386/i386-protos.h (standard_80387_constant_opcode):
3785         Prototype here.
3786         (standard_80387_constant_rtx): Likewise.
3788         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
3789         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
3790         *movtf_integer): Simplify using new standard_80387_constant_opcode.
3792 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
3794         * doc/invoke.texi (Optimize Options): Correct @option syntax.
3796 2003-02-15  Richard Henderson  <rth@redhat.com>
3798         * Makefile.in (cfglayout.o): Depend on TARGET_H.
3799         * cfglayout.c: Include target.h.
3800         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
3801         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
3802         * target.h (struct gcc_target): Add cannot_copy_insn_p.
3804         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
3805         (TARGET_CANNOT_COPY_INSN_P): New.
3806         (override_options): Revert 2003-02-08 hack.
3808 2003-02-15  Richard Henderson  <rth@redhat.com>
3810         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
3811         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
3813 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
3815         * config/rs6000/rs6000.h (processor_type): Add PPC440.
3816         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3817         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3818         TARGET_SCHED_VARIABLE_ISSUE): Define.
3819         (rs6000_use_dfa_pipeline_interface): New function.
3820         (rs6000_multipass_dfa_lookahead): New Function.
3821         (rs6000_variable_issue): New function.
3822         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
3823         (rs6000_issue_rate): Add PPC440.
3824         * config/rs6000/rs6000.md (unspec list): Correct typo.
3825         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
3826         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
3827         cmp, delayed_cr, mfcr, mtcr.
3828         (automata_option): Set "ndfa".
3829         (extendMMNN2): Update attributes.
3830         (movcc_internal1): Discourage move to non-cr0.  Update
3831         attributes.
3832         (movMM_update): Update attributes.
3833         (cmpMM_internal): Update attributes.
3834         (sCC CR materialization): Update attributes.
3835         (branch patterns): Do not discourage non-cr0.
3836         (cr logical patterns): Prefer destructive register allocation.
3837         Update attributes.
3838         (movesi_from_cr): Update attribute.
3839         (mtcrf_operation): Update attribute.
3840         (mtcrfsi): Update attribute.
3841         * config/rs6000/40x.md: New file.
3842         * config/rs6000/603.md: New file.
3843         * config/rs6000/6xx.md: New file.
3844         * config/rs6000/7450.md: New file.
3845         * config/rs6000/7xx.md: New file.
3846         * config/rs6000/mpc.md: New file.
3847         * config/rs6000/power4.md: New file.
3848         * config/rs6000/rios1.md: New file.
3849         * config/rs6000/rios2.md: New file.
3850         * config/rs6000/rs64.md: New file.
3851         [Some DFA descriptions based on work by Michael Hayes]
3853 2003-02-15  Richard Henderson  <rth@redhat.com>
3855         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
3856         successors with multiple predecessors.
3857         (connect_traces): Try harder to copy traces of length 1.
3859         * function.h (struct function): Add computed_goto_common_label,
3860         computed_goto_common_reg.
3861         * function.c (free_after_compilation): Zap them.
3862         * stmt.c (expand_computed_goto): Use them to produce one
3863         indirect branch per function.
3865 2003-02-15  Richard Henderson  <rth@redhat.com>
3867         * cfgcleanup.c: Include params.h.
3868         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
3869         too many outgoing edges from a block.
3870         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
3871         * params.def (max-crossjump-edges): New.
3872         * doc/invoke.texi: Document it.
3874 2003-02-15  Richard Henderson  <rth@redhat.com>
3876         * recog.c (split_all_insns): Include new blocks in life update;
3877         do a global life update.
3879 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
3881         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
3882         Update copyright.
3883         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
3884         -mno-cygwin case.
3886 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
3888         PR optimization/7702
3889         * reload1.c (reload_cse_simplify_set): Honor
3890         CANNOT_CHANGE_MODE_CLASS.
3892 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
3894         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
3895         function.
3896         * config/mn10300/mn10300-protos.h: Declare it.
3897         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
3898         attribute cc of instructions that may use clr.
3900 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
3902         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
3903         (x - (x & y)) is found.
3905 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3907         * configure.in: Fix typo.
3908         * configure: Regenerate.
3910 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
3912         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
3914 2003-02-13  Adam Nemet  <anemet@lnxw.com>
3916         PR opt/2391
3917         * combine.c: Fix spelling in comment.
3918         (cached_nonzero_bits): New function.
3919         (cached_num_sign_bit_copies): New function.
3920         (nonzero_bits_with_known): New macro.
3921         (num_sign_bit_copies_with_known): New macro.
3922         (nonzero_bits1): Rename from nonzero_bits.  Add three new
3923         arguments.  Change calls from nonzero_bits to
3924         nonzero_bits_with_known.
3925         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
3926         three new arguments.  Change calls from num_sign_bit_copies to
3927         num_sign_bit_copies_with_known.
3928         (nonzero_bits): New macro.
3929         (num_sign_bit_copies): New macro.
3930         (update_table_tick): Don't traverse identical subexpression more
3931         than once.
3932         (get_last_value_validate): Likewise.
3934 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
3936         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
3937         * function.h (struct emit_status): Length of regno_pointer_align
3938         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
3939         not regno_pointer_align_length (i.e. length actually used, not
3940         length as allocated)
3942         * config/i386/i386.c (struct stack_local_entry): New.
3943         (struct machine_function): Replace huge array with alist.
3944         (assign_386_stack_local): Change to match.
3946 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
3948         * inclhack.def (hpux_long_double): Tighten select and add bypass
3949         regexp.
3950         * fixincl.x: Rebuilt.
3952 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
3954         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
3955         edge and block ends with a jump insn it must be simple jump.
3957 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
3959         * Makefile.in (PREPROCESSOR_DEFINES): Add
3960         @TARGET_SYSTEM_ROOT_DEFINE@.
3961         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
3962         is specified or if building a cross compiler.
3963         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
3964         if the sysroot is under $exec_prefix.
3965         * configure: Regenerated.
3966         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
3967         defined.
3968         (struct default_include): Add add_sysroot field.
3969         (cpp_SYSROOT): Declare.
3970         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
3971         field.
3972         (cpp_SYSROOT): New variable.
3973         * cppinit.c (cpp_create_reader): Initialize
3974         CPP_OPTION (pfile, sysroot).
3975         (init_standard_includes): Handle add_sysroot.  Do not
3976         add unrelocated copies of relocated directories.
3977         (COMMAND_LINE_OPTIONS): Add -isysroot.
3978         (cpp_handle_option): Handle -isysroot.
3979         * cpplib.h (struct cpp_options): Add sysroot member.
3980         * gcc.c (The Specs Language): Update description of %I.
3981         (target_system_root_changed): New variable.
3982         (process_command): Conditionalize make_relative_prefix call
3983         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
3984         target_system_root_changed.
3985         (do_spec_1): Add -isysroot to %I.
3986         * doc/invoke.texi (Spec Files): Update description of %I.
3987         * doc/install.texi (--with-sysroot): Update comment about
3988         relocation.
3990 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
3992         * config/h8300/h8300.md (a peephole2): New.
3994 2003-02-13  Robert Lipe <robertlipe@usa.net>
3995             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3997         * doc/install.texi (Specific): Update three SCO-related URLs.
3999 2003-02-13  Andreas Schwab  <schwab@suse.de>
4001         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
4002         Parenthesize properly.
4003         (NPREDECESORS): Parenthesize properly.
4005 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4007         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
4009 2003-02-12  Roger Sayle  <roger@eyesopen.com>
4011         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
4012         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
4014         * reg-stack.c (subst_stack_regs_pat): Add support for binary
4015         UNSPEC instructions (e.g. "fpatan").
4017 2003-02-12  Mike Stump  <mrs@apple.com>
4019         * varray.c (element_size): Remove.
4020         (uses_ggc): Remove.
4021         (element): Add.
4022         (varray_init): Use new interface.
4023         (varray_grow): Use new interface.
4024         (varray_clear): Use new interface.
4026 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
4028         * config/rs6000/spe.h: Add casts to the arguments of the following
4029         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
4030         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
4031         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
4032         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
4033         __ev_get_u16, __ev_get_s16.
4035 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
4037         * config/h8300/h8300.md (a peephole2): New.
4039 2003-02-12  Jan Hubicka  <jh@suse.cz>
4041         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
4042         (OBJS): Add callgraph.o
4043         (callgraph.o): New.
4044         * c-decl.c (expand_body_1): Break out from ...
4045         (expand_body): This one;  change calling convention
4046         (finish_function): Move some of expand_body logic here.
4047         (c_expand_deferred_function): Update call of expand_body
4048         (c_expand_stmt): Use c_expand_body_1.
4049         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
4050         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
4051         * c-tree.h (c_expand_body): Declare.
4052         * callgraph.c: New file.
4053         * flags.h (flag_unit_at_a_time): Declare.
4054         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
4055         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
4056         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
4057         * langhooks.h (struct lang_hooks_for_callgraph): New.
4058         (struct lang_hooks): Add callgraph field.
4059         * toplev.c (flag_unit_at_a_time): New.
4060         (lang_independent_options): Add flag_unit_at_a_time.
4061         (process_options): Disable unit-at-a-time mode for frontends not
4062         supporting callgraph.
4063         * tree-inline.c (typedef struct inline_data): Add "decl"
4064         (expand_call_inline): Update callgraph.
4065         (optimize_inline_calls): Set id.decl.
4066         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
4067         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
4068         cgraph_calls_p): Declare.
4069         * invoke.texi (-funit-at-a-time): Document
4071 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
4073         * config/rs6000/spe.h: Fix misc formatting.
4074         (__ev_create_ufix32_fs): Cast ev argument.
4075         (__ev_create_sfix32_fs): Same.
4076         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
4077         (__ev_get_ufix32_fs_internal): Same.
4079 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
4081         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
4082         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
4084 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
4086         * cpplib.c (do_include_common): Move warnings for
4087         #include_next and #import out to callers.  Use early-return
4088         instead of nested ifs.  Don't do check_eol here.
4089         (parse_include): Do check_eol here with the rest of the
4090         parsing stuff.
4091         (do_include_next, do_import): Now handle warnings.
4093 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4095         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
4097 2003-02-12  Jan Hubicka  <jh@suse.cz>
4099         * predict.c (estimate_probability):  Fix roundoff error.
4101 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
4103         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
4104         (two peephole2): New.
4106 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
4108         * config/h8300/h8300.md (several peephole2): Replace
4109         find_regno_note with peep2_reg_dead_p.
4111 2003-02-11  Richard Henderson  <rth@redhat.com>
4113         * gcse.c (lookup_set): Remove unused argument PAT.  Update
4114         both callers.
4116 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
4118         * diagnostic.c (real_abort): New.
4119         (diagnostic_report_diagnostic): Call real_abort on error.
4120         * diagnostic.h (diagnostic_abort_on_error): New.
4121         (struct diagnostic_context): Add abort_on_error field.
4122         * toplev.c (setup_core_dumping): New.
4123         (decode_d_option): Handle 'H' case.
4124         * doc/invoke.texi (Debugging Options): Document -dH.
4126 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
4128         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
4129         which refers to obsolete directories.
4131 2003-02-11  Richard Henderson  <rth@redhat.com>
4133         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
4135 2002-10-21  Jan Hubicka  <jh@suse.cz>
4137         * i386.c (contains_128bit_aligned_vector_p): New function.
4138         (ix86_function_arg_boundary): Properly align vector modes.
4140 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
4142         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
4143         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
4144         as a SET pattern.
4146 2003-02-11  Roger Sayle  <roger@eyesopen.com>
4148         * builtins.c:  Fix failure caused by commiting wrong patch.
4150 2003-02-11  Dale Johannesen  <dalej@apple.com>
4151         * ra-build.c (compare_and_free_webs):  Relax checking.
4152         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
4153         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
4155 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
4157         PR optimization/9651
4158         * rtlanal.c (may_trap_p): Handle FIX.
4160 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
4162         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
4163         * doc/invoke.texi: Extra alias.
4165 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
4167         * config/rs6000/host-darwin.c: Fix comment.
4169 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
4171         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
4172         predicate for mod result.
4174 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4176         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
4177         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
4178         * fixincl.x: Rebuilt.
4179         * tests/base/stdlib.h: Update.
4180         * tests/base/ctype.h: New file.
4182 2003-02-11  Jan Hubicka  <jh@suse.cz>
4184         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
4186 2003-02-11  Richard Henderson  <rth@redhat.com>
4188         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
4189         appropriated as globals.
4190         (ix86_expand_clrstr): Similarly.
4191         * config/i386/i386.md (cmpstrsi): Similarly.
4193 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
4195         * config/h8300/h8300.md (a peephole2): Add a case of 255.
4197 2003-02-11  Roger Sayle  <roger@eyesopen.com>
4199         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
4200         (pow_optab, atan2_optab): Define corresponding macros.
4201         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
4202         * genopinit.c (optabs): Implement pow_optab and atan2_optab
4203         using pow?f3 and atan2?f3 patterns.
4204         * builtins.c (expand_errno_check): New function to update errno
4205         if necessary, split out from expand_builtin_mathfn.
4206         (expand_builtin_mathfn): Use expand_errno_check.
4207         (expand_builtin_mathfn_2): New function to handle expanding binary
4208         math functions, reusing the code in expand_errno_check.
4209         (expand_builtin): Handle the pow and atan2 math built-ins,
4210         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
4211         expand_builtin_mathfn_2.
4213         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
4215 2003-02-11  Jan Hubicka  <jh@suse.cz>
4217         * combine.c (combine_simplify_rtx): Fix folding of
4218         nested float_truncates.
4220 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
4222         * config/h8300/h8300.md (a peephole2): Fix a typo.
4224 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
4226         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
4227         register number.
4229 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
4231         * config/h8300/h8300-protos.h: Add a prototype for
4232         gtuleu_operator.
4233         * config/h8300/h8300.c (gtuleu_operator): New.
4234         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
4235         * config/h8300/h8300.md (a peephole2): New.
4237 2003-02-11  Jan Hubicka  <jh@suse.cz>
4239         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
4241 2003-02-11  Jan Hubicka  <jh@suse.cz>
4243         * predict.c (choose_function_section): Choose sections correctly.
4245 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4247         * reload1.c (first_label_num): New.
4248         (reload): Index offsets_known_at and offsets_at using difference of
4249         label number and first label number.  Don't use offset pointers.
4250         (set_label_offsets, set_initial_label_offsets): Likewise.
4252 2003-02-10  Roger Sayle  <roger@eyesopen.com>
4254         * mips-tfile.c (init_file): Add missing initializers in the
4255         "#ifdef __alpha" case.
4256         (file_offset, max_file_offset): Declare as unsigned long.
4257         (write_varray): Cast to "unsigned long" in comparisons against
4258         either file_offset or max_file_offset.
4259         (write_object): Likewise.
4260         (read_seek): Likewise.
4261         (copy_object): Likewise. Declare "ifd" as int to match its use
4262         in add_ext_symbol, and avoid signed/unsigned conditional warning.
4264 2003-02-10  Nick Clifton  <nickc@redhat.com>
4265             Aldy Hernandez  <aldyh@redhat.com>
4267         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
4268         override options which have been specified on the command line.
4270 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
4272         * config/h8300/h8300.md (abssf2): New.
4273         (*abssf2_h8300): Likewise.
4274         (*abssf2_h8300hs): Likewise.
4276 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
4278         * tree.c (build_tree_list):  Fix parameter names in comment.
4280 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
4282         * config/rs6000/ppc64-fp.c: New file.
4283         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
4285 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
4287         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
4288         * bb-reorder.c (make_reorder_chain): Deleted.
4289         (make_reorder_chain_1): Deleted.
4290         (find_traces): New function.
4291         (rotate_loop): New function.
4292         (mark_bb_visited): New function.
4293         (find_traces_1_round): New function.
4294         (copy_bb): New function.
4295         (bb_to_key): New function.
4296         (better_edge_p): New function.
4297         (connect_traces): New function.
4298         (copy_bb_p): New function.
4299         (get_uncond_jump_length): New function.
4300         (reorder_basic_blocks): Use new functions (Software Trace Cache).
4301         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
4302         boundaries.
4304 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
4306         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
4308 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
4310         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
4311         (DECL_LIVE_RANGE_RTL): Remove.
4313 2003-02-10  Nick Clifton  <nickc@redhat.com>
4315         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
4316         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
4317         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
4318         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
4319         config/arm/freebsd.h, config/arm/linux-elf.h,
4320         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
4321         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
4322         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
4323         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
4324         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
4325         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
4326         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
4327         and reformat as appropriate.
4329 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
4331         * config/h8300/clzsi2.c: Remove.
4332         * config/h8300/ctzsi2.c: Likewise.
4333         * config/h8300/paritysi2.c: Likewise.
4334         * config/h8300/popcountsi2.c: Likewise.
4335         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
4336         ctzsi2, paritysi2, and popcountsi2.
4338 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
4339             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
4341         PR c/7741
4342         * c-decl.c (duplicate_decls): Discard the initializer of the
4343         new decl when the types are conflicting.
4345 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
4347         * Makefile.in (sreal.o): Added.
4348         (predict.o): Depends on sreal.h instead of real.h.
4349         * sreal.c: New file.
4350         * sreal.h: New file.
4351         * predict.c: Use sreal.c instead of real.c.
4353 2003-02-10  Nick Clifton  <nickc@redhat.com>
4355         * Contributed support for the Cirrus EP9312 "Maverick"
4356         floating point co-processor.  Written by Aldy Hernandez
4357         <aldyh@redhat.com>.
4358         (config/arm/arm.c): Add Cirrus support.
4359         (config/arm/arm.h): Likewise.
4360         (config/arm/aout.h): Likewise.
4361         (config/arm/arm.md): Likewise.
4362         (config/arm/arm-protos.h): Likewise.
4363         (config.gcc): Likewise.
4364         (doc/invoke.texi): Describe new -mcpu value and new
4365         -mcirrus-fix-invalid-insns switch,
4366         (cirrus.md): New file.
4368 2003-02-10  Jan Hubicka  <jh@suse.cz>
4370         * combine.c (combine_simplify_rtx): Simplify using
4371         (float_truncate (float x)) is (float x)
4372         (float_extend (float_extend x)) is (float_extend x).
4374 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
4376         * calls.c (try_to_integrate): Tidy stack_usage_map access.
4377         (emit_library_call_value_1): Likewise.  Formatting.
4378         (store_one_arg): Likewise.
4380 2003-02-09  Nick Clifton  <nickc@redhat.com>
4381             Aldy Hernandez  <aldyh@redhat.com>
4383         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
4384         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
4385         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
4386         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
4387         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
4388         docs.  Add range test for immediate value.
4390 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
4392         Rename spe_evxor to xorv2si3.
4393         (xorv4hi3): New.
4394         (xorv1di3): New.
4396 2003-02-10  Glen Nakamura  <glen@imodulo.com>
4398         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
4399         tag.
4401 2003-02-10  Jan Hubicka  <jh@suse.cz>
4403         * i386.c (vector_move_operand): New predicate.
4404         (ix86_expand_vector_move): Be happy about 0.
4405         * i386.h (PREDICATE_CODES): Add sse-move_operand.
4406         * i386.md (mov*_internal): Add 'C' alternative.
4408 2003-02-09  Jan Hubicka  <jh@suse.cz>
4410         * i386.md (floathi*): Deal with SSE.
4412 2003-02-09  Jan Hubicka  <jh@suse.cz>
4414         * simplify-rtx.c (simplify_unary_operation,
4415         simplify_binary_operation):  Deal with vector modes
4416         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
4418 2003-02-09  Richard Sandiford  <rsandifo@redhat.com>
4420         * toplev.c (rest_of_compilation): Recompute register usage after
4421         split_all_insns.
4423 2003-02-09  Richard Henderson  <rth@redhat.com>
4425         * libgcc-std.ver (__clztf2): New.
4426         (__ctztf2, __popcounttf2, __paritytf2): New.
4427         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
4428         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
4429         adjust code to match the different type sizes.
4430         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
4431         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
4433         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
4434         TImode; select word_mode and twice that.
4435         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
4436         select the modes from float, double, and long double.
4437         (init_optabs): Remove duplicate initializations.
4439 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
4441         * doc/install.texi: Squeeze and streamline section on
4442         testing and regression checking.
4444 2003-02-09  Jan Hubicka  <jh@suse.cz>
4446         * i386.md (ahi?v*3): Set third operand type to TImode.
4447         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
4449         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
4450         integer mode.
4452         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
4453         Change code so they are arithmetic expressions now.
4454         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
4455         simplify_ternary_operation): Deal with VEC_* expressions.
4457         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
4459 2003-02-08  Jan Hubicka  <jh@suse.cz>
4461         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
4462         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
4463         possibly got duplicated.
4465 2003-02-08  Richard Henderson  <rth@redhat.com>
4467         * config/alpha/alpha.c (override_options): Turn off explicit
4468         relocs until post-peep2 code duplication resolved.
4470 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
4472         * optabs.c (expand_unop): Widen clz properly when clz is done
4473         via libcall.
4475 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
4477         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
4478         * config/h8300/crti.asm: Likewise.
4479         * config/h8300/crtn.asm: Likewise.
4480         * config/h8300/ctzsi2.c: Likewise.
4481         * config/h8300/fixunssfsi.c: Likewise.
4482         * config/h8300/h8300-protos.h: Likewise.
4483         * config/h8300/h8300.c: Likewise.
4484         * config/h8300/h8300.h: Likewise.
4485         * config/h8300/h8300.md: Likewise.
4486         * config/h8300/paritysi2.c: Likewise.
4487         * config/h8300/popcountsi2.c: Likewise.
4488         * config/h8300/rtems.h: Likewise.
4490 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4492         * doc/invoke.texi: Documentation for my previous commit.
4493         * doc/passes.texi: Ditto.
4495 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4497         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
4498         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
4499         Declare.
4500         (DLTHE_FLAG_UPDATE_FREQ): New.
4501         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
4502         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
4503         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
4504         fix_bb_placement, fix_bb_placements, place_new_loop,
4505         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
4506         New static functions.
4507         (fix_loop_placement, can_duplicate_loop_p,
4508         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
4509         New functions.
4511         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
4512         unswitch_loops): Declare.
4513         * loop-init.c: New file.
4514         * loop-unswitch.c: New file.
4515         * Makefile.in (loop-init.o, loop-unswitch.o): New.
4516         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
4517         * toplev.c (DFI_loop2): New dump.
4518         (flag_unswitch_loops): New.
4519         (lang_independent_options): Add it.
4520         (rest_of_compilation): Call new loop optimizer.
4521         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
4523 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
4525         * config/h8300/clzsi2.c: New.
4526         * config/h8300/ctzsi2.c: Likewise.
4527         * config/h8300/paritysi2.c: Likewise.
4528         * config/h8300/popcountsi2.c: Likewise.
4529         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
4531 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
4533         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
4534         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
4535         (ctzsi2): New pattern.
4536         (ffssi2): Use clz instead of unspec.
4537         (clzdi2): Rename from cntlzd2.
4538         (ctzdi2): New pattern.
4539         (ffsdi2): Use clz instead of unspec.
4541 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
4543         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
4544         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
4545         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
4546         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
4548 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
4550         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
4552 2003-02-07  Richard Henderson  <rth@redhat.com>
4554         PR 9226
4555         * gcse.c (local_cprop_find_used_regs): New.
4556         (local_cprop_pass): Use it.
4558 2003-02-07  Fred Fish  <fnf@intrinsity.com>
4560         * mips-tfile.c (parse_def): Parenthesize assignments to fix
4561         precedence bugs.
4563 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
4565         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
4567 2003-02-07  Roger Sayle  <roger@eyesopen.com>
4569         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
4570         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
4571         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
4572         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
4573         builtin functions (and their __builtin_* variants).
4574         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
4575         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
4576         when not optimizing.
4578         * doc/extend.texi: Document new pow and atan2 builtins, and
4579         their float and long double variants.  Realphabetize builtins.
4581 2003-02-07  Jan Hubicka  <jh@suse.cz>
4583         * i386.md (sse2_nandv2di3): Fix.
4585 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
4587         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
4588         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
4589         definition.
4590         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
4591         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
4593 2003-02-07  Jan Hubicka  <jh@suse.cz>
4595         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
4597 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
4599         * cfg.c (dump_flow_info): Add back accidently deleted line.
4601 2003-02-07  Andrey Petrov <petrov@netbsd.org>
4603         * optabs.c (expand_float): Search wider integer modes first.
4605 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
4607         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
4608         based on preprocessor flag.
4610 2003-02-07  Roger Sayle  <roger@eyesopen.com>
4611             Richard Henderson  <rth@redhat.com>
4613         * gcse.c (implicit_sets): New.
4614         (compute_hash_table_work): Include them in hash table.
4615         (find_implicit_sets, fis_get_condition): New.
4616         (one_cprop_pass): Allocate and free implicit_sets; call
4617         find_implicit_sets before building hash table.
4619 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
4621         * config/t-netbsd (USER_H): Revert previous change.
4623 2003-02-07  Gabor Greif  <ggreif@lucent.com>
4625         * doc/c-tree.texi (Namespaces): Fix typo.
4627 2003-02-07  Jan Hubicka  <jh@suse.cz>
4629         * regrename.c (do_replace, find_oldest_value_reg,
4630         copyprop_hardreg_forward_1): Update register attributes.
4632 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
4634         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
4635         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
4636         variables starting with underscore.
4637         (struct unit_usage): New structure.
4638         (unit_usages, cycle_alt_unit_usages): New global variables.
4639         (check_unit_distribution_in_reserv): Remove it.
4640         (store_alt_unit_usage): New function.
4641         (check_regexp_units_distribution): Rewrite it.
4643 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4645         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
4646         target_cpu_default.
4647         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
4648         if not MASK_NO_SPACE_REGS.
4649         (output_call): Adjust return pointer, don't load new space register
4650         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
4651         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
4652         TARGET_NO_SPACE_REGS is true.
4653         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
4654         conditions.
4655         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
4656         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
4657         true.  Use bve when TARGET_64BIT is true.
4659 2003-02-06  Richard Henderson  <rth@redhat.com>
4661         * combine.c (nonzero_bits): Fix double break.
4663 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
4664             Richard Henderson <rth@redhat.com>
4666         PR c/9530
4667         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
4668         from functions that return a float to functions that don't.
4670 2003-02-06  Jan Hubicka  <jh@suse.cz>
4672         * i386.c (x86_inter_unit_moves): New variable.
4673         (ix86_secondary_memory_needed): Fix 64bit case, honor
4674         TARGET_INTER_UNIT_MOVES
4675         * i386.h (x86_inter_unit_moves): Declare.
4676         (TARGET_INTER_UNIT_MOVES): New macro.
4677         * i386.md (movsi_1): Cleanup constraints; disable
4678         when not doing inter-unit moves.
4679         (movsi_1_nointernunit): New.
4680         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
4681         (movdi_1_rex64_nointerunit): New.
4682         (mivsf_1): disable when not doing inter-unit moves.
4683         (movsf_1_nointerunit): New.
4685         * basic-block.h (inside_basic_block_p):  Declare.
4686         * cfgbuild.c (inside_basic_block_p): Make global.
4687         * haifa-sched.c (unlink_other_notes0: Deal with NOT_INSN_BASIC_BLOCK.
4688         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
4689         update CFG.
4690         (fix_basic_block_boundaries, add_missing_bbs): New.
4691         (rank): Use profile.
4692         (scheudle_ebbs): Rely on CFG; update coments.
4694 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
4696         * Makefile.in (host_hook_obj): New.
4697         (OBJS): Add $(host_hook_obj).
4698         (host_default.o): New rule.
4699         * config.gcc (host_hook_obj): New, default to host-default.o.
4700         (powerpc-*-darwin*): Use host-darwin.o.
4701         (out_host_hook_obj): New.
4702         * configure: Regenerate.
4703         * configure.in: Print information about out_host_hook_obj, substitute
4704         into output files.
4705         * host-default.c: New file.
4706         * hosthooks.h: New file.
4707         * toplev.c (general_init): Call host_hooks.extra_signals.
4708         * config/rs6000/host-darwin.c: New file.
4709         * config/rs6000/x-darwin: New file.
4710         * doc/hostconfig.texi: Add documentation for new host hook.
4711         Rearrange existing documentation.
4713 2003-02-05  Roger Sayle  <roger@eyesopen.com>
4715         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
4716         with *targetm.delegitimize_address.
4717         (rtl_for_decl_location): Likewise.
4718         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
4719         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
4721         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
4722         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
4723         prototype.
4724         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
4725         i386_simplify_dwarf_addr.  Made static.  Prototyped.
4726         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
4727         i386_simplify_dwarf_addr to ix86_delegitimize_address.
4728         (ix86_find_base_term): Likewise.
4729         (maybe_get_pool_constant): Likewise.
4731         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
4732         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
4733         prototype.
4734         * config/s390/s390.c (s390_delegitimize_address): Renamed from
4735         s390_simplify_dwarf_addr.  Made static.  Prototyped.
4736         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
4738 2003-02-05  Richard Henderson  <rth@redhat.com>
4740         PR c/8602
4741         * integrate.c (output_inline_function): Reset input_filename
4742         and lineno from the decl before rest_of_compilation.
4744 2003-02-05  Richard Henderson  <rth@redhat.com>
4746         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
4747         (CTZ_DEFINED_VALUE_AT_ZERO): New.
4748         * doc/rtl.texi, doc/tm.texi: Document them.
4750         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
4751         of the value at zero properly.
4752         * fold-const.c (tree_expr_nonnegative_p): Likewise.
4753         * simplify-rtx.c (simplify_unary_operation): Likewise.
4755         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
4756         (CTZ_DEFINED_VALUE_AT_ZERO): New.
4758         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
4759         (TARGET_EXPAND_BUILTIN): Remove.
4760         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
4761         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
4762         (enum arm_builtins): Remove.
4763         * config/arm/arm.md (UNSPEC_CLZ): Remove.
4764         (clzsi2): Rename from clz; use clz instead of unspec.
4765         (ctzsi2): New.
4766         * config/arm/arm-protos.h: Update.
4768 2003-02-05  Jan Hubicka  <jh@suse.cz>
4770         * i386-protos.h (x86_emit_floatuns):  Declare.
4771         * i386.c (x86_emit_floatuns): New global function.
4772         * i386.md (floatunssisf2, floatunsdisf2,
4773         floatunsdidf2):  New patterns.
4775 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4777         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
4779 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
4781         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
4782           config/ia64/linux.h
4784 2003-02-05  Roger Sayle  <roger@eyesopen.com>
4786         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
4788 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
4790         PR optimization/8555
4791         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
4792         instead of aborting.
4794 2003-02-04  Richard Henderson  <rth@redhat.com>
4796         * config/i386/i386.md (UNSPEC_BSF): Remove.
4797         (ffssi2): Split into cmove and no_cmove insns and splitters;
4798         lose pentium float trick for now.
4799         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
4800         (ctzsi2, clzsi2, bsr): New.
4802 2003-02-04  Richard Henderson  <rth@redhat.com>
4804         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
4805         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
4806         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
4807         (ffsdi2): Use popcount instead of unspec.
4808         (popcountdi2): Rename from *popcnt.
4809         (ctzdi2, clzdi2, getf_exp_tf): New.
4811 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
4813         * genconfig.c (main): Generate CC0_P.
4814         * rtl.h (CC0_P): Remove.
4816 2003-02-04  Richard Henderson  <rth@redhat.com>
4818         * libgcc2.h, libgcc2.c (__ffsSI2): New.
4819         (__ffsDI2): Rename from __ffsdi2.
4820         * mklibgcc.in (lib2funcs): Add _ffssi2.
4822 2003-02-04  Richard Henderson  <rth@redhat.com>
4824         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
4825         rounds with a "bit table" lookup.
4827 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
4829         * reload.c (find_reloads): Do not use the mode specified in the insn
4830         pattern as reload mode for address operands.  Do not generate optional
4831         reloads for operands where a mandatory reload was already pushed.
4833 2003-02-04  Richard Henderson  <rth@redhat.com>
4835         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
4836         builtins instead of inline assembly.
4838 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
4840         PR c/9376
4841         * libgcc2.c (__subvdi3): Fix typo.
4843 2003-02-04  Jan Hubicka  <jh@suse.cz>
4845         * i386.md (movti_rex64):  Fix constraint.
4847 2003-02-04  Jan Hubicka  <jh@suse.cz>
4849         * i386.md (vector push splitters):  Fix typo in resolving conflict.
4851 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
4853         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
4855 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
4857         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
4858         for recent libstdc++.  Remove formatting cruft.
4860 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
4862         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
4863         attribute even if input file name is absolute, but one of the
4864         includes is relative.
4866 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
4868         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
4869         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
4870         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
4872 2003-02-03  Richard Henderson  <rth@redhat.com>
4874         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
4875         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
4876         return type to "int".  Shuffle declarations and undef int trap.
4877         * libgcc2.h: Remove their declarations.
4878         * optabs.c (expand_unop): Force outmode to int for bitops.
4880 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
4882         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
4883         coprocessor registers before floating-point registers.
4884         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
4885         to account for a previously removed register.
4886         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
4887         Delete unused macros.
4889 2003-02-03  Jan Hubicka  <jh@suse.cz>
4891         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
4892         (mov*_internal): Fix predicates; require one of operands to not be
4893         memory.
4894         (SSE?MMX move expanders):  Fix predicates; force one of operands to
4895         register.
4896         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
4897         (movups/movupd/movdqu patterns): Force one of operands to not be
4898         memory.
4900 2003-02-03  Roger Sayle  <roger@eyesopen.com>
4902         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
4903         takes a single rtx and returns it unmodified.
4904         * hooks.h (hook_rtx_rtx_identity): Prototype here.
4905         * target.h (struct gcc_target): Add "delegitimize_address"
4906         field to target structure.
4907         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
4908         for delegitimize_address target using hook_rtx_rtx_identity.
4909         (TARGET_INITIALIZER): Initialize delegitimize_address field
4910         using TARGET_DELEGITIMIZE_ADDRESS macro.
4911         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
4912         extensions of constant pool references.  Use delegitimize_address
4913         to undo the obfuscation of "-fpic".
4914         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
4916         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
4917         i386_simplify_dwarf_addr.
4918         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
4919         (maybe_get_pool_constant): Likewise.
4921 2003-02-03  Jan Hubicka  <jh@suse.cz>
4923         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
4925 2003-02-03  Jan Hubicka  <jh@suse.cz>
4927         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
4929 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4931         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
4932         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
4934 2003-02-02  Andreas Schwab  <schwab@suse.de>
4936         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
4938 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
4940         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
4941         (epilogue_insns): Likewise.
4943 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4945         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
4947 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4949         * pa-protos.h (attr_length_millicode_call): Remove second argument.
4950         (attr_length_indirect_call, attr_length_indirect_call,
4951         attr_length_save_restore_dltp): New prototypes.
4952         * pa.c (attr_length_millicode_call): Remove second argument.  Check
4953         INSN_ADDRESSES_SET_P in distance calculation.
4954         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
4955         INSN_ADDRESSES.
4956         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
4957         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
4958         Call attr_length_call directly.
4959         (attr_length_indirect_call, output_indirect_call,
4960         attr_length_save_restore_dltp): New functions.
4961         * pa.md (attr_length_millicode_call): Drop second argument from all
4962         patterns.
4963         (return_internal_pic): Delete.
4964         (return_external_pic): Remove use of PIC register and pic operand and
4965         flag checks.
4966         (epilogue): Use return_internal for both normal and pic code.
4967         (call, call_value): Emit new 32-bit pic patterns for symref and
4968         indirect calls.  Remove uses for arg pointer and pic register.
4969         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
4970         call_reg_pic_post_reload, call_val_symref_pic,
4971         call_val_symref_pic_post_reload, call_val_reg_pic,
4972         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
4973         Implement define_split and define_peephole2 patterns for pre reload
4974         patterns.
4975         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
4976         call_value_internal_reg_64bit): Shorten names.
4977         (all call patterns): Explicitly indicate registers used and clobbered.
4978         Use attr_length_indirect_call and attr_length_save_restore_dltp for
4979         attribute length calculation.  Move code generation for indirect calls
4980         to output_indirect_call.
4981         (sibcall, sibcall_value): Don't restore PIC register.
4982         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
4983         register retore.
4985 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4987         * doc/install.texi (Testing): Simplify and compress instructions
4988         concerning Dejagnu.
4990 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4992         * collect2.c (pexecute_pid): Rename to pid.
4993         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
4994         pid.
4996 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
4998         * doc/extend.texi (Function Attributes): Remove documentation
4999         for PowerPC Windows NT function attributes..
5001 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
5003         * dwarf2out.c (gen_type_die): Check for typedefs before calling
5004         for TYPE_MAIN_VARIANT.
5006 2003-02-01  Richard Henderson  <rth@redhat.com>
5008         * libgcc2.c: Include auto-host.h.
5009         (ATTRIBUTE_HIDDEN): New.
5010         (__clz_tab): Don't declare here for clz and ctz.
5011         (__clzsi2, __clzdi2): Use count_leading_zeros.
5012         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
5013         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
5014         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
5015         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
5017 2003-02-01  Richard Henderson  <rth@redhat.com>
5019         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
5020         to the conditional.
5021         (ashlsi3_1_zext splitter): Likewise.
5023 2003-02-01  Richard Henderson  <rth@redhat.com>
5025         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
5026         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
5027         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
5028         return type to Wtype.
5030         * libgcc-std.ver (GCC_3.4): Fix inheritance.
5032         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
5033         expander input constraint.
5035 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
5037         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
5038         OTI_parity.
5039         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
5040         * optabs.c (widen_clz, expand_parity): New.
5041         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
5042         for libcalls to clz, ctz, popcount, and parity.
5043         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
5044         parity_optab, and set up libfunc handlers.
5045         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
5046         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
5047         __popcount_tab): New.
5048         * libgcc2.h: Declare them.
5049         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
5050         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
5051         and parity_optab.
5052         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
5053         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
5054         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
5055         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
5056         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
5057         BUILT_IN_PARITYLL): New.
5058         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
5059         and add optab argument.
5060         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
5061         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
5062         * expr.c (expand_expr): Handle them.
5063         * fold-const.c (tree_expr_nonnegative_p): Likewise.
5064         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
5065         * reload1.c (eliminate_regs): Handle them.
5066         (elimination_effects): Likewise.
5067         * function.c (instantiate_virtual_regs_1): Likewise
5068         * genattrtab.c (check_attr_value): Likewise.
5069         * simplify-rtx.c (simplify_unary_operation): Likewise.
5070         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
5071         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
5072         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
5073         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
5074         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
5075         __builtin_arm_clz.
5076         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
5077         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
5078         * doc/extend.texi (Other Builtins): Add new builtins.
5079         * doc/md.texi (Standard Names): Add new patterns.
5081 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
5083         * reload.c: Revert 2003-01-31 change.
5085 2003-02-01  Jan Hubicka  <jh@suse.cz>
5087         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
5089 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
5091         * flags.h (flag_volatile): Remove declaration.
5092         (flag_volatile_global, flag_volatile_static): Likewise.
5093         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
5094         * toplev.c (flag_volatile): Remove definition.
5095         (flag_volatile_global, flag_volatile_static): Likewise.
5096         (f_options): Remove corresponding entries here.
5097         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
5098         or flag_volatile_static.
5099         * doc/invoke.texi: Remove documentation of -fvolatile,
5100         -fvolatile-global and -fvolatile-static.
5102 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5104         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
5105         updating of total_code_bytes from prologue to epilogue.
5107 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
5109         * reload.c (find_reloads): Do not use the mode specified in the insn
5110         pattern as reload mode for address operands.  Do not generate optional
5111         reloads for operands where a mandatory reload was already pushed.
5112         Generate optional reloads only in the final pass though find_reloads.
5113         (have_replacement_p): New function.
5115 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5117         * doc/install.texi (Testing): Remove a reference to our obsolete
5118         /testresults web pages and strip redundant information concerning
5119         test results.
5120         (Binaries): Refer to Microsoft Windows instead of listing all
5121         possible variants.
5123 2003-02-01  Jan Hubicka  <jh@suse.cz>
5125         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
5126         RTL chain.
5128         * combine.c (simplify_set): Reverse order of ragumetns to
5129         REG_CANNOT_CHANGE_MODE_P
5130         * df.c (df_def_record_1): Likewise.
5131         * recog.c (register_operand): Likewise.
5132         * simplify-rtx.c (simplify_subreg): Likewise.
5133         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
5134         CANNOT_CHANGE_MODE_CLASS.
5135         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
5136         Likewise.
5137         * reload.c (push_reload): Likewise.
5138         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
5139         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
5140         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
5141         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
5142         * mips.c (mips_cannot_change_mode_class): Update.
5143         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
5144         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
5145         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
5146         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
5147         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
5148         * sh.c (sh_cannot_change_mode_class): Update.
5149         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
5150         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
5152 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
5154         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
5155         change to LINK_COMMAND_SPEC in gcc.c.
5157 2003-01-31  Jan Hubicka  <jh@suse.cz>
5159         PR c/9506
5160         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
5162 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5164         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
5165         duplicated code.
5167 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
5169         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
5170         (BINFO_ELTS): New #define.
5171         * stor-layout.c (finalize_record_size): Don't set them.
5172         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
5173         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
5174         (BINFO_LANG_ELTS): New #define.
5175         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
5176         * java/class.c (make_class): Use BINFO_ELTS.
5177         (set_super_info): Likewse.
5178         (add_interface_do): Likewise.
5179         * objc/objc-act.c (start_class): Use BINFO_ELTS.
5181 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
5183         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
5184         (times): Don't ever declare if not HAVE_TIMES.
5185         (clock): Don't ever declare if not HAVE_CLOCK.
5187 2003-01-30  Richard Henderson  <rth@redhat.com>
5189         * flow.c (update_life_info): Zap life info after cleanup_cfg.
5190         (regno_uninitialized): Use correct live at function entry set.
5191         (regno_clobbered_at_setjmp): Likewise.
5193         * expr.c (store_expr): Promote all MEM intermediates to regs.
5195 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
5197         * config/arm/arm.c: Fix comment typos.
5198         * config/arm/arm.h: Likewise.
5199         * config/arm/netbsd-elf.h: Likewise.
5200         * config/arm/netbsd.h: Likewise.
5202 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
5204         * gengtype.c (struct walk_type_data): Add needs_cast_p.
5205         (walk_type): Set needs_cast_p in walk_type_data.
5206         (write_types_process_field): Supply casts when required to suppress
5207         warnings.
5208         (write_root): Cast gt_pch_n_S to suppress warning.
5209         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
5210         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
5211         when they might exist.
5212         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
5213         insn-conditions.o, and rs6000.o.
5215 2003-01-30  Richard Henderson  <rth@redhat.com>
5217         * ggc-page.c (G.context_depth_allocations): New.
5218         (G.context_depth_collections): New.
5219         (alloc_page): Set G.context_depth_allocations.
5220         (ggc_collect): Set G.context_depth_collections.
5221         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
5222         (ggc_pop_context): Early exit for no allocations or collections.
5224 2003-01-30  Richard Henderson  <rth@redhat.com>
5226         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
5228 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
5230         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
5231         size, the link register is always saved if any other register is
5232         saved.
5234 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
5236         * config/h8300/h8300-protos.h: Update the prototype for
5237         compute_plussi_cc.
5238         (cpp_reader): Declare before it is used.
5239         * config/h8300/h8300.c (compute_plussi_cc): Change the return
5240         type to int.
5241         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
5242         see an unknown H8 variant.
5244 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
5246         PR target/9316
5247         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
5248         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
5249         * config/rs6000/t-rtems: New file. multilib variants to match OS.
5250         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
5251         rs6000/t-ppcgas so we get the desired multilibs.
5253 2003-01-30  Nick Clifton  <nickc@redhat.com>
5255         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
5256         when popping saved IP register off the stack.
5258 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
5260         * config/rs6000/aix43.h: Fix comment typos.
5261         * config/rs6000/aix51.h: Likewise.
5262         * config/rs6000/aix52.h: Likewise.
5263         * config/rs6000/altivec.h: Likewise.
5264         * config/rs6000/rs6000.c: Likewise.
5265         * config/rs6000/rs6000.h: Likewise.
5266         * config/rs6000/rs6000.md: Likewise.
5267         * config/rs6000/spe.md: Likewise.
5269 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
5271         * c-common.c (builtin_define_float_constants): Define
5272         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
5274 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
5276         * config/sh/lib1funcs.asm: Fix comment typos.
5277         * config/sh/linux.h: Likewise.
5278         * config/sh/sh.c: Likewise.
5279         * config/sh/sh.md: Likewise.
5281 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
5283         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
5285 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
5287         * config/fp-bit.h (__make_dp): Declare if TMODES.
5289 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
5291         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
5292         general_operand_src and general_operand_dst.
5294 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
5296         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
5297         Return true for variable sized types.
5298         (rs6000_va_arg): Handle variable sized types passed by reference
5299         on non-SVR4 ABI.
5301 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
5303         * arm.c (arm_legtimize_address): New function.
5304         * arm-protos.h (arm_legtimize_address): Add prototype.
5305         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
5306         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
5307         do ... while (0)
5309 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
5311         PR bootstrap/9296
5312         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
5313         depended on it being defined until now.
5315 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
5317         PR target/9295
5318         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
5319         RTEMS code knows which C++ initialization style the toolset
5320         configuration is using.
5322 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
5324         PR bootstrap/9293
5325         * config/m68k/t-crtstuff: Replace spaces with tabs, add
5326          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
5328 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
5330         PR bootstrap/9292
5331         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
5332         RTEMS threads.
5333         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
5335 2003-01-29  Nick Clifton  <nickc@redhat.com>
5337         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
5338         not $(srcdir).
5340 2003-01-29  Andrew Haley  <aph@redhat.com>
5342         * tree-inline.c (walk_tree): Add CHAR_TYPE.
5344 2003-01-29  Jan Hubicka  <jh@suse.cz>
5346         * i386.md (subdi3_carry_rex64): Fix typo.
5348 2003-01-28  Stan Shebs  <shebs@apple.com>
5350         * coretypes.h (cpp_reader): Forward declare struct.
5351         * c-pragma.h (cpp_reader): Remove forward declaration.
5352         * hashtable.h (cpp_reader): Likewise.
5353         * scan.h (cpp_reader): Likewise.
5354         * tree.h (cpp_reader): Likewise.
5355         * config/darwin-protos.h (cpp_reader): Likewise.
5356         * config/arm/arm-protos.h (cpp_reader): Likewise.
5357         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
5358         struct cpp_reader in prototypes.
5360 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
5362         * doc/install.texi: Add documentation for installation into
5363         tooldirs and with DESTDIR.
5365 2003-01-28  Richard Henderson  <rth@redhat.com>
5367         * config.gcc (ia64*-*-aix*): Remove.
5368         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
5369         * config/ia64/unwind-aix.c: Remove file.
5371 2003-01-28  Andreas Schwab  <schwab@suse.de>
5373         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
5374         register.
5375         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
5376         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
5377         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
5378         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
5379         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
5380         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
5381         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
5383 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
5385         * combine.c (nonzero_bits): Fix check for negative divide operands.
5387 2003-01-28  Richard Henderson  <rth@redhat.com>
5389         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
5390         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
5392 2003-01-28  Richard Henderson  <rth@redhat.com>
5394         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
5396         * config/cris/cris.c (cris_address_cost): Make static.
5397         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
5398         * config/cris/cris.h (ADDRESS_COST): Remove.
5399         * config/cris/cris-protos.h: Update.
5401 2003-01-23  Mike Stump  <mrs@apple.com>
5403         * regclass.c (init_reg_autoinc): New function.
5404         (regclass): Move initialization of forbidden_inc_dec_class from
5405         here...
5406         (init_regs): to here.  Avoids reinitialization for each function,
5407         saving compilation time.
5409 2003-01-28  Jason Merrill  <jason@redhat.com>
5411         * cpplib.h (struct cpp_options): Add warn_deprecated field.
5412         * cppinit.c (cpp_create_reader): Turn it on by default.
5413         * c-opts.c (c_common_decode_option): Set it.
5414         * cpplib.c (do_pragma_once): Only complain about #pragma once
5415         if warn_deprecated is set.
5417 2003-01-28  Dale Johannesen  <dalej@apple.com>
5419         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
5420         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
5421         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
5423 2003-01-28  Richard Henderson  <rth@redhat.com>
5425         * target.h (targetm.address_cost): New.
5426         * target-def.h (TARGET_ADDRESS_COST): New.
5427         (TARGET_RTX_COSTS): Uncomment.  Oops.
5428         * cse.c (address_cost): Use new target hook.
5429         (default_address_cost): New.
5430         * output.h (default_address_cost): Declare.
5431         * hooks.c (hook_int_rtx_0): New.
5432         * hooks.h (hook_int_rtx_0): Declare.
5433         * loop.c (combine_givs_p): Remove if 0 code.
5434         * system.h (ADDRESS_COST): Poison.
5436         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
5437         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
5438         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
5439         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
5440         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
5441         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
5442         config/xtensa/xtensa.c, config/xtensa/xtensa.h
5443         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
5444         (ADDRESS_COST): Remove.
5446         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
5447         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
5448         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
5449         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
5450         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
5451         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
5452         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
5453         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
5454         config/mips/mips.c, config/mips/mips.h,
5455         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
5456         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
5457         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
5458         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
5459         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
5460         config/vax/vax.c, config/vax/vax.h
5461         (foo_address_cost): Make static.
5462         (TARGET_ADDRESS_COST): New.
5463         (ADDRESS_COST): Remove.
5465         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
5466         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
5467         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
5468         config/stormy16/stormy16.h
5469         (ADDRESS_COST): Move code ...
5470         (foo_address_cost): ... here.
5471         (TARGET_ADDRESS_COST): New.
5473         * config/m32r/m32r.c (m32r_address_cost): Remove.
5474         * config/m32r/m32r-protos.h: Update.
5476         * config/mmix/mmix.c (mmix_address_cost): Remove.
5477         * config/mmix/mmix-protos.h: Update.
5479         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
5480         mn10300_address_cost; move unsig allocation ...
5481         (mn10300_address_cost): ... here.
5482         (TARGET_ADDRESS_COST): New.
5483         * config/mn10300/mn10300-protos.h: Update.
5484         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
5486         * doc/tm.texi: Update.
5488 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
5490         * haifa-sched.c (schedule_insn): Return necessary cycle advance
5491         after issuing the insn.
5492         (rank_for_schedule): Make a insn with /S the highest priority
5493         insn.
5494         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
5495         (choose_ready): Check SCHED_GROUP_P.
5496         (schedule_block): Advance cycle after issuing insn if it is
5497         necessary.  Don't reorder insns if there is an insn with /S.
5498         (set_priorities): Ignore schedule groups.
5500         * sched-deps.c (remove_dependence, group_leader): Remove the
5501         functions.
5502         (add_dependence): Ignore schedule groups.
5503         (set_sched_group_p): Don't make copy of dependencies from previous
5504         insn of the schedule group.  Add anti-dependency to the previous
5505         insn of the schedule group.
5506         (compute_forward_dependences): Ignore schedule groups.
5508         * sched-ebb.c (init_ready_list): Ignore schedule groups.
5510         * sched-rgn.c (init_ready_list): Ditto.
5511         (can_schedule_ready_p): Ditto.
5513 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
5515         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
5516         register to another one.
5518 2003-01-28  Richard Henderson  <rth@redhat.com>
5520         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
5522 2003-01-28  Roger Sayle  <roger@eyesopen.com>
5524         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
5526 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
5528         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
5529         class contains a floating-point register, return the size of the
5530         mode in half words.
5532 2003-01-28  Jan Hubicka  <jh@suse.cz>
5534         * i386.c (ix86_carry_flag_operator):  New predicate.
5535         (fcmov_operator): Fix whitespace.
5536         (ix86_expand_carry_flag_compare):  Deal with floating point.
5537         (ix86_expand_int_movcc): Deal with fp; update insn expansion
5538         (ix86_expand_int_addcc): Likewise.
5539         (ix86_expand_strlensi_unroll_1): likewsie.
5540         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
5541         * i386.md (add?i_carry_rex64): Use new predicate.
5542         (sub?i3_carry_rex64): Likewise.
5543         (x86_mov?icc_0_m1*): Likewise.
5545 2003-01-28  Andreas Schwab  <schwab@suse.de>
5547         * cfgloopmanip.c (create_preheader): Initialize src to avoid
5548         warning.
5550         * expmed.c (emit_store_flag): Fix cast to avoid sign
5551         comparison warning.
5553         * combine.c (force_to_mode): Add cast to fix warning when
5554         STORE_FLAG_VALUE is negative.
5556 2003-01-27  Richard Henderson  <rth@redhat.com>
5558         * Makefile.in (cse.o): Depend on TARGET_H.
5559         * cse.c (rtx_cost): Use targetm.rtx_costs.
5560         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
5561         * doc/tm.texi: Update.
5563         * target.h (targetm.rtx_costs): New.
5564         * target-def.h (TARGET_RTX_COSTS): New.
5565         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
5566         * hooks.h: Update.
5568         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
5569         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
5570         * config/alpha/alpha.h (PROCESSOR_MAX): New.
5571         (CONST_COSTS, RTX_COSTS): Remove.
5573         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
5574         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
5575         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
5576         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
5577         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
5578         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
5579         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
5580         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
5581         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
5582         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
5583         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
5584         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
5585         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
5586         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
5587         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
5588         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
5589         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
5590         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
5591         config/v850/v850.c, config/v850/v850.h,
5592         config/xtensa/xtensa.c, config/xtensa/xtensa.h
5593         (CONST_COSTS, RTX_COSTS): Move code ...
5594         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
5596         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
5597         (arm_rtx_costs, TARGET_RTX_COSTS): New.
5598         * config/arm/arm-protos.h: Update.
5599         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
5601         * config/avr/avr.h (CONST_COSTS): Move code ...
5602         * config/avr/avr.c (avr_rtx_costs): ... here.
5603         (default_rtx_costs): Make static.
5604         * config/avr/avr-protos.h: Update.
5606         * config/h8300/h8300.c (const_costs): Make static.
5607         (h8300_and_costs, h8300_shift_costs): Likewise.
5608         * config/h8300/h8300-protos.h: Update.
5610         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
5611         (CONST_COSTS): Move code ...
5612         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
5613         default_rtx_costs; update for signature change.
5614         * config/ip2k/ip2k-protos.h: Update.
5616         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
5617         (CONST_COSTS): Move code ...
5618         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
5619         (TARGET_RTX_COSTS): New.
5620         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
5621         * config/m68hc11/m68hc11-protos.h: Update.
5623         * config/m68k/m68k.c (const_int_cost): Make static.
5624         * config/m68k/m68k-protos.h: Update.
5626         * config/mcore/mcore.c (mcore_const_costs): Make static.
5627         (mcore_and_cost, mcore_ior_cost): Likewise.
5628         * config/mcore/mcore-protos.h: Update.
5630         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
5631         (mmix_rtx_cost_recalculated): Remove.
5632         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
5633         * config/mmix/mmix-protos.h: Update.
5635         * config/sh/sh.c (shiftcosts): Make static.
5636         (addsubcosts, andcosts, multcosts): Likewise.
5637         * config/sh/sh-protos.h: Update.
5639         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
5640         (sparc_rtx_costs): Make static; update for change in signature.
5641         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
5642         * config/sparc/sparc-protos.h: Update.
5644         * config/v850/v850.c (const_costs): Make static.
5645         * config/v850/v850-protos.h: Update.
5647         * config/vax/vax.h (RTX_COSTS): Remove.
5648         (CONST_COSTS): Move code ...
5649         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
5650         from vax_rtx_cost.
5651         (vax_rtx_costs, TARGET_RTX_COSTS): New.
5653 2003-01-27  Richard Henderson  <rth@redhat.com>
5655         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
5656         * config/vax/vax-protos.h: Update.  Really.
5658 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
5660         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
5661         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
5662         zero if no hardware floating point.
5663         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
5664         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
5665         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
5666         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
5667         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
5668         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
5669         even FP registers on N32 and N64.
5670         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
5671         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
5672         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
5673         even-register-like alignment to 128-bit arguments.
5674         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
5675         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
5676         on N32 or N64.
5677         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
5678         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
5679         (TPBIT): Set to tp-bit.c.
5680         (tp-bit.c): Create out of fp-bit.c.
5682 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5684         * c-parse.in: Remove '%expect 32' directive in objc mode.
5686 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
5688         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
5689         (LIBGCOV): New variable.
5690         (libgcc.mk): Add LIBGCOV.
5691         (LIBGCC_DEPS): Add libgcov.c.
5692         (libgcov.a): New target.
5693         (clean): Remove libgcov.a.
5694         (install-libgcc): Do libgcov too.
5695         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
5696         with libgcov.a.
5697         * libgcc2.c (L_gcov): Move into ...
5698         * libgcov.c: ... here. New file.
5699         * mklibgcc.in: Add libgcov rules.
5700         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
5702         * doc/invoke.texi (profile-arcs, test-coverage): Update and
5703         clarify.
5705         * profile.c (index_counts_file): Remove duplicate check for open file.
5707 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
5709         * gcc/doc/invoke.texi (Optimization Options): Group together
5710         optional and experimental flags.  Move trapv and bounds-check
5711         out of this section.  Group floating point flags together.
5712         (Code Gen Options): Move trapv and bounds-check to here.
5714 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
5716         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
5718 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
5720         PR optimization/9090
5721         * function.c (purge_addressof_1): After pushing an addressed register
5722         onto the stack, simplify the result.
5724 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5726         * doc/extend.texi: Fix typo.
5728 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5730         * doc/cppopts.texi: Fix typo.
5731         * doc/objc.texi: Likewise.
5732         * doc/passes.texi: Likewise.
5734 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
5736         * real.c (ibm_extended_format): Add 53 to minimum exponent.
5737         (encode_ibm_extended): Adjust.
5739 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
5741         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
5742         timevar_id enumerations.
5744 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
5746         * combine.c: Fix formatting.
5748 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
5750         * doc/gccint.texi: Update the copyright.
5752 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
5754         * doc/cpp.texi: Fix typos.
5755         * doc/extend.texi: Likewise.
5756         * doc/gty.texi: Likewise.
5757         * doc/install.texi: Likewise.
5758         * doc/passes.texi: Likewise.
5759         * doc/rtl.texi: Likewise.
5760         * doc/tm.texi: Likewise.
5762 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
5764         * config/ia64/fde-glibc.c: Fix comment typos.
5765         * config/ia64/hpux.h: Likewise.
5766         * config/ia64/ia64.c: Likewise.
5767         * config/ia64/ia64.h: Likewise.
5768         * config/ia64/unwind-ia64.c: Likewise.
5770 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
5772         * config/i386/i386-modes.def: Fix comment typos.
5773         * config/i386/i386.c: Likewise.
5774         * config/i386/i386.md: Likewise.
5776 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5778         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
5779         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
5780         ASM_FINISH_DECLARE_OBJECT before defining it.
5781         * toplev.c (rest_of_decl_compilation):  Don't define
5782         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
5783         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
5784         parameters for DWARF2 targets because they _are_ used.
5786 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
5788         * fp-bit.h: Define macros for TFmode floating-point constants
5789         in IBM-extended TFmode types.
5790         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
5791         widths.
5792         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
5793         TFmode type.
5795         * config/fp-bit.h: Define macros for TFmode floating-point
5796         constants in IEEE quad TFmode type.  Declare functions according
5797         to L_ macros.
5798         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
5799         (TFtype, TItype, UTItype): Define if TMODES is defined.
5800         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
5801         (F_T_BITOFF, D_T_BITOFF): Define.
5802         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
5803         guaranteed to be wide enough.
5804         * config/fp-bit.c: Check for L_ macros for tf functions.
5805         (__thenan_tf): New.
5806         (nan): Adjust.
5807         (pack_d, unpack_d): Support IEEE 854 quad type.
5808         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
5809         from FRAC_NBITS, FRAC_BITS and NGARDS.
5810         (usi_to_float): Cast constants to be shifted to fractype
5811         instead of assuming long long is wide enough.
5812         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
5814 2003-01-26  Andreas Jaeger  <aj@suse.de>
5816         * df.c: Remove prototype of unused function df_regno_rtl_debug.
5818 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
5820         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
5821         (DBBIT_FUNCS): Added _df_to_tf.
5822         (TPBIT_FUNCS): New.
5823         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
5824         (LIBGCC_DEPS): Added TPBIT.
5825         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
5827         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
5828         been able to move the result to target.
5830         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
5831         for the appropriate mode.
5833         * calls.c (emit_library_call_value_1): Handle return values
5834         in a PARALLEL.
5836         * rtl.c (get_mode_alignment): Moved to...
5837         * stor-layout.c: ... here.
5839         * print-rtl.c (print_rtx): Don't print MEM details in
5840         GENERATOR_FILEs.
5842 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
5844         * df.h: Update comments, tidy formatting.
5845         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
5846         REVERSE, UNION, INTERSECTION.  All uses updated.
5847         (OLD_DF_INTERFACE): Remove.
5848         (struct insn_info): Remove commented out insn field.
5849         * df.c: Update comments, tidy formatting.
5850         (df_def_table_realloc): Remove.
5853 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
5855         * calls.c (save_fixed_argument_area): Tidy.
5856         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
5857         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
5858         call chain loop at 1 if !try_tail_call.  Formatting.
5859         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
5860         Use save_fixed_argument_area and restore_fixed_argument_area.
5862 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
5864         * df.c (df_uses_record): Handle CC0.
5866 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
5868         * reload.c (maybe_memory_address_p): New function.
5869         (find_reloads_address): Use it instead of memory_address_p.
5871 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
5873         * final.c (shorten_branches): Align the address of code label
5874         when computing initial lengths and addresses.
5876 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
5878         * config/m68hc11/m68hc11.md: Fix a comment typo.
5880 2003-01-25  Andreas Jaeger  <aj@suse.de>
5882         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
5883         TARGET_MACHO.
5885 2003-01-25  Roger Sayle  <roger@eyesopen.com>
5887         * gcse.c (bypass_last_basic_block): New global variable.
5888         (bypass_block):  Use redirect_edge_and_branch_force to redirect
5889         fall-through edges.  Use bypass_last_basic_block to determine
5890         which blocks have valid PRE information.
5891         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
5893 2003-01-25  Jan Hubicka  <jh@suse.cz>
5895         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
5897 2003-01-25  Jan Hubicka  <jh@suse.cz>
5898                               Eric Botcazou <ebotcazou@libertysurf.fr>
5899         PR opt/8492
5900         * gcse.c (one_cprop_pass): Delete unreachable blocks.
5902 2003-01-25  Richard Henderson  <rth@redhat.com>
5904         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
5905         from ia64_aix_select_rtx_section.
5906         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
5907         instead of saving and restoring flag_pic.
5908         (ia64_rwreloc_unique_section): Similarly.
5909         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
5910         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
5911         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
5912         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
5914 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
5916         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
5917         comment.
5919 2003-01-25  Richard Henderson  <rth@redhat.com>
5921         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
5923 2003-01-25  Kelley Cook <kelleycook@comcast.net>
5925         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
5927 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
5929         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
5930         type for bitmaps.  Use unsigned long.
5931         (nBITMAP_WORD_BITS): New macro.
5932         (BITMAP_WORD_BITS): New macro.
5933         (rest of file): Use it.
5934         * bitmap.c: Use it.
5936 2003-01-25  Richard Henderson  <rth@redhat.com>
5938         2002-02-19  Robert Lipe  <robertlipe@usa.net>
5939         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
5941 2003-01-25  Roger Sayle  <roger@eyesopen.com>
5943         * builtins.c (purge_builtin_constant_p): Scan insn stream
5944         sequentially rather than by basic block.
5945         * function.c (purge_addressof): Simplify test with INSN_P.
5947 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
5949         * combine.c (simplify_comparison, case AND): Remove a redundant test.
5951 2003-01-25  Roger Sayle  <roger@eyesopen.com>
5953         * function.h (struct function): New field calls_constant_p.
5954         (current_function_calls_constant_p): New macro for above.
5955         * function.c (prepare_function_start): Initialize calls_eh_return
5956         and calls_constant_p.
5957         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
5958         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
5959         when the current_function_calls_constant_p.
5960         * integrate.c (expand_inline_function): Set calls_constant_p if
5961         the function being inlined has calls_constant_p set.
5963 2003-01-25  Roger Sayle  <roger@eyesopen.com>
5965         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
5966         optimizing, even if flag_gcse is true.
5967         * toplev.c (rest_of_compilation): purge_builtin_constant_p
5968         only needs to be called when "optimize > 0 && flag_gcse".
5970 2003-01-25  Roger Sayle  <roger@eyesopen.com>
5972         * stmt.c (emit_case_bit_tests): New routine to implement suitable
5973         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
5974         (case_bit_test_cmp): New comparison function for "qsort" to order
5975         case_bit_tests by decreasing number of destination nodes.
5976         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
5977         (expand_end_case_type): Use emit_case_bit_tests to implement
5978         suitable switch statments.
5979         (CASE_USE_BIT_TESTS): New target macro to disable the above.
5980         * Makefile.in (stmt.o): Add dependency on optab.h.
5981         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
5983 2003-01-23  Andreas Schwab  <schwab@suse.de>
5985         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
5986         __do_global_ctors_aux hidden global and don't put it in
5987         .init_array.
5988         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
5989         instead so that it comes first.
5991 2003-01-25  Jan Hubicka  <jh@suse.cz>
5993         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
5994         subreg is read/modify.
5996 2003-01-25  Jan Hubicka  <jh@suse.cz>
5998         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
5999         do libcall for large blocks.
6000         * i386.md (comi patterns): Set type to ssecomi.
6001         (sse2_unpck?pd): Fix mode of vec_select.
6003         * cse.c: Include except.h
6004         (cse_set_around_loop):  Do not create new basic blocks.
6005         * Makefile.in (cse.o): Add dependnecy on except.h
6007 2003-01-25  Jan Hubicka  <jh@suse.cz>
6009         * builtins.c (fold_trunc_transparent_mathfn): New function.
6010         (fold_builtin): Use it.
6011         * convert.c (convert_to_real): Re-enable code to convert
6012         math functions; add support for floor familly functions.
6014 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6016         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
6017         dependencies on coretypes.h and $(TM_H).
6019 2003-01-25  Jan Hubicka  <jh@suse.cz>
6021         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
6023 2003-01-24  Stuart Hastings  <stuart@apple.com>
6025         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
6027 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6029         * config/c4x/c4x.md (UNSPEC_BU): New constants.
6030         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
6031         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
6032         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
6033         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
6034         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
6035         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
6036         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
6038 2003-01-24  Jan Hubicka  <jh@suse.cz>
6040         * emit-rtl.c (reg_attrs_htab): New static variable.
6041         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
6042         functions.
6043         (reg_rtx): Do not maintain regno_decl.
6044         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
6045         set_mem_attrs_from_reg): New global function.
6046         (init_emit): Do not initialize regno_decl.
6047         (init_emit_once): initialize reg_attrs_htab.
6048         * final.c (alter_subreg): Do not replace REG by SUBREG.
6049         (gen_mem_expr_from_op): Improve output.
6050         (output_asm_operands): Likewise.
6051         * function.c (assign_params): Do not set REGNO_DECL.
6052         * function.h (struct function): Kill regno_decl.
6053         (REGNO_DECL): Kill.
6054         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
6055         * print_rtl.c (print_rtx): Output REG information.
6056         * regclass.c (reg_scan_mark_refs): Update attrs.
6057         * reload1.c (alter_reg): Likewise.
6058         * simplify_rtx.c (simplify_subreg): Likewise.
6059         * stmt.c (expand_decl): Likewise.
6060         * rtl.def (REG): Add new field.
6061         * rtl.h (struct reg_attrs): New.
6062         (rtunion_def): At rtreg.
6063         (X0MEMATTR): Add checking.
6064         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
6065         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
6066         Declare.
6067         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
6069 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
6071         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
6072         (xtensa_emit_call, print_operand): Fix printf format strings
6073         to avoid compile warnings.
6074         (xtensa_function_prologue, xtensa_function_epilogue): Change type
6075         of "size" argument to HOST_WIDE_INT to fix compile warnings.
6076         * config/xtensa/xtensa-protos.h
6077         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
6079 2003-01-24  Jan Hubicka  <jh@suse.cz>
6081         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
6082         (implicit_built_in_decls): New global array.
6083         (mathfn_built_in): New global function.
6084         (fold_trunc_transparent_mathfn): New static function
6085         (expand_builtin_strstr, expand_bultin_strchr,
6086         expand_builtin_strpbrk, expand_builtin_strcpy,
6087         expand_builtin_strncpy, expand_bultin_strcmp,
6088         expand_bultin_strncat, expand_builtin_fputs): Use
6089         implicint_built_in_decls.
6090         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
6091         * builtins.def: Fix comments.
6092         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
6093         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
6094         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
6095         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
6096         (DEF_C99_C90RES_BULTIN): New.
6097         (*f, *l builtins): Update.
6098         * c-common.c (DEF_BUILTIN): Initialize implicit array.
6099         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
6100         * convert.c (strip_float_extensions): New global function.
6101         * tree.h (DEF_BUILTIN): Accept 10 arguments.
6102         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
6103         Declare.
6104         * java/builtins.c (define_builtin): Handle implicit.
6105         (DEF_BUILTIN): Update.
6106         * tm.texi (TARGET_C99_FUNCTIONS): Document.
6107         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
6108         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
6109         when using glibc2.
6111 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
6113         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
6114         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
6115         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
6116         * config/xtensa/crti.asm: New file.
6117         * config/xtensa/crtn.asm: New file.
6118         * config/xtensa/t-elf: New file.
6119         * config/xtensa/t-linux: New file.
6120         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
6121         Move various CFLAGS settings to new t-elf file.
6123 2003-01-24  Richard Henderson  <rth@redhat.com>
6125         PR optimization/4382
6126         * tree-inline.c (find_builtin_longjmp_call_1): New.
6127         (find_builtin_longjmp_call): New.
6128         (inlinable_function_p): Use it.
6130 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6132         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
6133         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
6134         * config/i386/i386.c (function_arg_pass_by_reference): New.
6135         (ix86_va_arg): Support arguments passed by reference.
6137 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6139         * cfgloopanal.c: New file.
6140         * cfgloopmanip.c: New file.
6141         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
6142         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
6143         cfglayout.o): Add dependency on cfgloop.h.
6144         (cfgloop.o): Add flags.h dependency.
6145         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
6146         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
6147         (struct loop, struct loops, flow_loops_find, flow_loops_update,
6148         flow_loops_free, flow_loops_dump, flow_loop_dump,
6149         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
6150         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
6151         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
6152         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
6153         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
6154         find_common_loop, verify_loop_structure): Declarations moved to ...
6155         * cfgloop.h: New file.
6156         * bb-reorder.c (reorder_basic_blocks): Modified.
6157         * cfglayout.c: Include cfgloop.h.
6158         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
6159         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
6160         (break_superblocks): New static function.
6161         (cfg_layout_finalize): Use it.
6162         (cfg_layout_split_block): New function.
6163         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
6164         fields.
6165         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
6166         changed.
6167         (cfg_layout_split_block): Declare.
6168         * cfgloop.c: Include cfgloop.h and flags.h.
6169         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
6170         get_loop_body): Avoid signed versus unsigned comparison warnings.
6171         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
6172         loop_latch_edge): Modified.
6173         (verify_loop_structure): Modified to use flags stored in loop structure;
6174         check irreducible loops.
6175         (cancel_loop, cancel_loop_tree): New functions.
6176         (estimate_probability): Use loop analysis code for predictions.
6177         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
6178         warnings.
6179         * doloop.c: Include cfgloop.h.
6180         * loop.c: Include cfgloop.h.
6181         * predict.c: Include cfgloop.h.
6182         * toplev.c: Include cfgloop.h.
6183         * unroll.c: Include cfgloop.h.
6184         * tracer.c (tracer): Modified.
6186 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
6188         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
6190 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
6192         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
6193         * configure: Regenerate.
6195         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
6196         (tls_symbolic_reference_mentioned_p): Add prototype.
6197         (s390_tls_get_offset): Add prototype.
6198         (emit_pic_move): Remove prototype, replace by ...
6199         (emit_symbolic_move): .. this new prototype.
6201         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
6202         (tls_model_chars): New global variable.
6203         (s390_encode_section_info): Encode TLS model.
6204         Use targetm.binds_local_p to check for local symbols.
6205         (s390_strip_name_encoding): New function.
6206         (TARGET_STRIP_NAME_ENCODING): Define.
6208         (get_thread_pointer): New function.
6209         (legitimize_tls_address): New function.
6210         (legitimize_address): Call it.
6211         (emit_pic_move): Remove, replace by ...
6212         (emit_symbolic_move): ... this new function.
6214         (larl_operand): Handle TLS operands.
6215         (legitimate_constant_p): Likewise.
6216         (s390_decompose_address): Likewise.
6217         (s390_cannot_force_const_mem): New function.
6218         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
6220         (s390_output_symbolic_const): Handle TLS unspecs.
6221         (print_operand): New code 'J'.
6222         (machine_function): Add struct member 'some_ld_name'.
6223         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
6225         (enum s390_builtin): New type.
6226         (code_for_builtin_64, code_for_builtin_31): New global variables.
6227         (s390_init_builtins, s390_expand_builtin): New functions.
6228         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6230         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
6231         (ASM_OUTPUT_LABELREF): Define.
6232         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
6234         * config/s390/s390.md: Define TLS UNSPEC constants.
6235         ("movdi", "movsi"): Handle TLS operands.
6236         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
6237         ("*tls_load_64", "*tls_load_31"): New insns.
6238         ("call_value_tls", "call_value_tls_exp"): New expanders.
6239         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
6240         "bas_tls_64", "bas_tls_31"): New insns.
6242 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
6244         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
6245         spe ABI is configured, if requested.
6247 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6249         * doc/passes.texi: Fix typo.
6251 2003-01-24  Andreas Schwab  <schwab@suse.de>
6253         * stor-layout.c (excess_unit_span): Only define if used.
6255 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
6257         * gcc/doc/invoke.texi (Optimization Options): List -O levels
6258         for each optimization flag.
6260 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
6262         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
6264 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6266         * doc/bugreport.texi: Use @command instead of @code for commands.
6267         * doc/collect2.texi: Likewise.
6268         * doc/headerdirs.texi: Likewise.
6269         * doc/invoke.texi: Likewise.
6270         * doc/standards.texi: Likewise.
6271         * doc/tm.texi: Likewise.
6272         * doc/trouble.texi: Likewise.
6274 2003-01-24  Nick Clifton  <nickc@redhat.com>
6276         * config/arm/arm.c (use_return_insn): Do not use a single return
6277         instruction for interrupt handelrs which have to create a stack
6278         frame.
6279         (arm_expand_prologue): Do not pre-bias the return address of
6280         interrupt handlers which create a stack frame.
6282 2003-01-24  Nick Clifton  <nickc@redhat.com>
6284         * Add sh2e support:
6286         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
6288                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
6289                 med_cbranches.  Fix logic in short_cbranches.
6291         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
6293                 * config/sh/sh.md (delay for cbranch): Don't annul delay
6294                 slots on SH2e.
6295                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
6296                 cbranch with unfilled delay slot on SH2e.
6297                 (output_branch): Fill with a nop the delay slot of a
6298                 branch that required a delay slot but didn't get one.
6300         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
6302                 * doc/invoke.texi (SH options): Document -m2e.
6303                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
6304                 * config/sh/lib1funcs.asm: Likewise.
6305                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
6306                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
6307                 not __sh1__.
6308                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
6309                 SH2E up.
6310                 (SH3E_BIT): Renamed to...
6311                 (SH_E_BIT): ... this.  Replace all uses.
6312                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
6313                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
6314                 (TARGET_SWITCHES): Added 2e.
6315                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
6316                 (processor_type): Added PROCESSOR_SH2E.
6317                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
6318                 TARGET_SH2E, except in sqrtsf2_i.
6319                 (attribute cpu): Added sh2e.
6320                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
6321                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
6322                 * config.gcc: Add sh2e target support.
6324 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
6326         Rename -W to -Wextra.
6327         * c-decl.c:  Update comments.
6328         * c-typeck.c:  Likewise.
6329         * flags.h:  Likewise.
6330         * function.c:  Likewise.
6331         * stmt.c:  Likewise.
6332         * toplev.c:  Update comments.
6333         (W_options):  Add 'extra'.
6334         (display_help):  Remove '-W'.
6335         (decode_W_option):  Special warn_uninitialized treatment in the case
6336         of -Wextra.
6337         * doc/invoke.texi:  Update with new entries.
6339 2003-01-23  Richard Henderson  <rth@redhat.com>
6341         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
6342         in no-else-block case.  Add commentary.
6344 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6346         * configure.in: Revert last change.
6348 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6350         * configure.in: Don't include ansidecl.h in tconfig.h.
6351         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
6352         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
6353         ATTRIBUTE_UNUSED.
6355         * configure: Regenerate.
6357 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6359         PR java/6748
6360         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
6361         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
6362         kernels.
6364 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6366         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
6368 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
6370         * genattrtab.c (write_attr_get): Mark 'insn' paramter
6371         as ATTRIBUTE_UNUSED.
6373 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
6375         * arm.c (thumb_base_register_rtx_p): New function.
6376         (thumb_index_register_rtx_p): New function.
6377         (thumb_legitimate_address_p): New function.
6378         (thumb_legitimate_offset_p): New function.
6379         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
6380         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
6381         definitions.
6382         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
6383         (THUMB_LEGITIMATE_OFFSET): Delte.
6384         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
6385         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
6386         (thumb_legitimate_offset_p): Likewise.
6388 2003-01-23  Andreas Schwab  <schwab@suse.de>
6390         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
6392 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6394         * fixinc/Makefile.in (FL_LIST): Revert last change.
6396 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6398         PR other/7341
6399         * invoke.texi (ftest-coverage): Fix broken cross-reference.
6400         Change @code to @command for gcov command.
6402         * gcc.texi: Adjust title of gcov section.
6403         Adjust copyright.
6404         * gcov.texi: Likewise.
6406 2003-01-22  Roger Sayle  <roger@eyesopen.com>
6408         PR optimization/8423
6409         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
6410         its argument is constant, or 0 if !flag_gcse.
6411         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
6412         if it's argument is constant.
6413         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
6414         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
6415         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
6416         * builtins.c (purge_builtin_constant_p): New function to force
6417         instantiation of any remaining CONSTANT_P_RTX nodes.
6418         * rtl.h (purge_builtin_constant_p): Prototype here.
6419         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
6420         pass after GCSE and before loop.
6421         (flag_gcse): No longer static.
6422         * flags.h (flag_gcse): Prototype here.
6424 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
6426         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
6427         introduced by last change.
6429 2003-01-22  Andreas Schwab  <schwab@suse.de>
6431         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
6433 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
6435         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
6436         request a scratch reg on H8S when the shift count is 8.
6438 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
6440         * config/s390/s390-protos.h (preferred_la_operand_p):
6441         Remove second parameter.
6442         * config/s390/s390.c (preferred_la_operand_p): Likewise.
6443         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
6444         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
6445         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
6446         Add peepholes to transform ADD to LOAD ADDRESS.
6448 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
6450         * arm.c (arm_address_register_rtx_p): New function.
6451         (arm_legitimate_address_p): New function.
6452         (arm_legitimate_index_p): New function.
6453         (legitimize_pic_address): Use arm_legitimate_index_p.
6454         * arm-protos.h (arm_legtimate_address_p): Add prototype.
6455         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
6456         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
6458 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
6460         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
6461         * config/s390/2064.md (define_bypass): Correct 'Load' and
6462         'Load-address' bypass values.
6464 2003-01-22  Andreas Schwab  <schwab@suse.de>
6466         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
6468 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
6470         * genautomata.c (output_internal_insn_latency_func,
6471         output_print_reservation_func): Short circuit when there is no
6472         automaton to generate code for.
6474 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6476         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
6477         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
6479 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
6481         * config/rs6000/rs6000.md: Remove warning.
6482         (builtin_setjmp_receiver): Likewise.
6483         * config/darwin.c (update_stubs): Slightly improve terrible hack
6484         with identifiers.  Add comment pointing out problems with it.
6485         (update_non_lazy_ptrs): Likewise.
6487 2003-01-21  Richard Henderson  <rth@redhat.com>
6489         * dwarf2out.c (lookup_filename): Fix printf format warning.
6490         * system.h (fread_unlocked, fwrite_unlocked): Undef.
6492         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
6493         (fixincl.o-warn, gnu-regex.o-warn): New.
6494         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
6495         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
6496         * fixinc/fixincl.c (process): Fix printf format warning.
6498 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
6500         * dwarf2out (output_file_names): Don't crash if called
6501         with empty file_table.
6503 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
6505         * genautomata.c (output_internal_insn_latency_func): Add
6506         missing break statement to generated code.
6508 2003-01-21  Roger Sayle  <roger@eyesopen.com>
6510         * stmt.c (same_case_target_p): New function to determine whether
6511         two case labels branch to the same target.  Split out from...
6512         (group_case_nodes): ... here.  Use same_case_target_p instead.
6513         (strip_default_case_nodes): Remove explicit case nodes
6514         that branch to the default destination.
6515         (expand_end_case_type): Call strip_default_case_nodes after
6516         group_case_nodes, to simplify the case-list before we count it.
6517         Only generate table_label RTX when actually needed.  Try to share
6518         thiscase->exit_label and thiscase->data.case_stmt.default_label
6519         when a switch has no explicit default case.  Simplify test for
6520         constant index.
6522 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
6524         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
6525         \t.
6526         (*negsf2_h8300hs): Likewise.
6527         (*addsi3_lshiftrt_16_zexthi): Likewise.
6528         (*iorhi3_lshiftrt_8): Likewise.
6530 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
6532         * dwarf2out.c (fde_table_in_use): Mark GTY.
6533         (dwarf2out_cfi_label_num): New variable, marked GTY.
6534         (dwarf2out_cfi_label): Use it instead of static label_num.
6535         * emit-rtl.c (label_num): Mark GTY.
6537 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
6539         * config/h8300/h8300.c (output_plussi): Support H8/300.
6540         (compute_plussi_length): Likewise.
6541         (compute_plussi_cc): Likewise.
6542         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
6543         output assembly instructions.
6545 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6547         * calls.c (fix_unsafe_tree): Prototype.
6549         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
6550         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
6551         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
6552         c-parse.o-warn): Add -Wno-error.
6553         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
6555         * configure.in (--enable-werror): Add new flag.
6556         * doc/install.texi (--enable-werror): Document.
6557         * configure: Regenerate.
6559         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
6561 2003-01-21  Andreas Schwab  <schwab@suse.de>
6563         * genautomata.c (output_internal_insn_latency_func): Fix missing
6564         close paren in output.
6566 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
6568         * genautomata.c: Space savings in generated code:
6569         (output_dfa_insn_code_func): Split out the table-enlargement
6570         path to an out-of-line static function, dfa_insn_code_enlarge.
6571         (output_internal_insn_latency_func): Use a lookup table for the
6572         default latencies.
6573         (output_print_reservation_func): Use a lookup table for the
6574         strings.
6576 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
6578         PR opt/7507
6579         * calls.c (fix_unsafe_tree): Split out from ...
6580         (expand_call): ... here.  Use it on the function address too.
6582 2003-01-20  Richard Henderson  <rth@redhat.com>
6584         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
6586 2003-01-20  Richard Henderson  <rth@redhat.com>
6588         PR opt/7154
6589         * stmt.c (expand_asm_operands): Validize memory operands.
6591 2003-01-20  Richard Henderson  <rth@redhat.com>
6593         PR opt/8848
6594         * ifcvt.c (noce_process_if_block): Correct arguments to
6595         modified_between_p for no-else-block case.
6597 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
6599         * config/h8300/h8300.c (const_costs): Remove a warning.
6600         (output_plussi): Likewise.
6601         (compute_plussi_length): Likewise.
6602         (compute_plussi_cc): Likewise.
6604 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
6606         * config/h8300/h8300.md (addsi_h8300): Remove the last
6607         alternative.
6609 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
6611         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
6613 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6615         * system.h (__NO_STRING_INLINES): Define.
6617 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6619         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
6620         is not a scalar int mode.
6622 2003-01-20  Roger Sayle  <roger@eyesopen.com>
6624         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
6625         insn's notes following a substitution inside a libcall.
6627 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
6629         * configure.in: Check for system-provided 'uchar' type.
6630         * configure, config.in: Regenerate.
6631         * cpphash.h: Only typedef 'uchar' if the system doesn't.
6633 2003-01-20  Richard Henderson  <rth@redhat.com>
6635         * expr.h (MUST_PASS_IN_STACK): Move implementation...
6636         * calls.c (default_must_pass_in_stack): ... here.
6638 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
6640         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
6642         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
6644         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
6645         Wrap up definition of `insn_alts'.
6647         * genattrtab.c (main): Wrap up `insn_alts'.
6649 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6651         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
6652         prototyping.
6653         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
6655         * config.in, configure: Regenerate.
6657 2003-01-20  Nick Clifton  <nickc@redhat.com>
6659         * config/arm/arm.md (sibcall_epilogue): Add an
6660         UNSPEC_PROLOGUE_USE to prevent the link register from being
6661         considered dead.
6663 2003-01-20  Jan Hubicka  <jh@suse.cz>
6665         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
6667 2003-01-20  Andreas Schwab  <schwab@suse.de>
6669         * system.h: Don't declare strsignal if the decl test hasn't been
6670         run yet.
6672 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
6674         * config/h8300/h8300.c (notice_update_cc): Don't assume that
6675         recog_data.operands[0] is always associated with cc0.
6677 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
6679         * collect2.c (ldgetname): Expand declaration to prototype.
6680         * read-rtl.c (atoll): Add prototype.
6681         * system.h (strsignal): Also declare if no declaration found.
6683 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
6685         * config.gcc (mips64*-*-linux*): Added.
6686         * config/mips/linux64.h, config/mips/t-linux64: New file.
6687         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
6688         * config/mips/mips.c (override_options): Use it.
6689         * config/mips/mips.h (TARGET_SWITCHES): Added...
6690         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
6691         * Makefile.in (SPECS): New.
6692         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
6693         * gcc.c (process_command): Move self-spec processing past spec
6694         file loading.
6695         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
6696         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
6697         CRTSTUFF_T_CFLAGS.
6698         (SPECS): Document.
6699         * doc/invoke.texi (-mabi-fake-default): Document.
6701 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
6703         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
6704         z_reg, z_reg_qi): Declare static and GTY().
6705         (da_reg): Remove.
6706         (create_regs_rtx): Don't create da_reg.
6707         ("gt-m68hc11.h"): Include for GTY roots.
6708         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
6709         and GTY() here.
6710         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
6711         (m68hc11_soft_tmp_reg): Likewise.
6712         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
6714 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
6716         * basic-block.h: Fix comment formatting.
6717         * calls.c: Likewise.
6718         * combine.c: Likewise.
6719         * convert.c: Likewise.
6720         * gcov.c: Likewise.
6721         * haifa-sched.c: Likewise.
6722         * libgcc2.c: Likewise.
6723         * loop.c: Likewise.
6724         * profile.c: Likewise.
6725         * system.h: Likewise.
6727 2003-01-18  Roger Sayle  <roger@eyesopen.com>
6729         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
6731 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6733         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
6735 2003-01-17  Dale Johannesen  <dalej@apple.com>
6737         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
6738           (*floatunssidf2_internal):  Ditto.
6740 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
6742         * alias.c: Fix comment typos.
6743         * basic-block.h: Likewise.
6744         * c-common.c: Likewise.
6745         * c-common.h: Likewise.
6746         * c-decl.c: Likewise.
6747         * c-opts.c: Likewise.
6748         * c-pragma.c: Likewise.
6749         * c-pretty-print.h: Likewise.
6750         * cfg.c: Likewise.
6751         * cfganal.c: Likewise.
6752         * cfgbuild.c: Likewise.
6753         * cfgcleanup.c: Likewise.
6754         * cfglayout.c: Likewise.
6755         * cfgrtl.c: Likewise.
6756         * convert.c: Likewise.
6757         * cpphash.h: Likewise.
6758         * cpplex.c: Likewise.
6759         * cpplib.h: Likewise.
6760         * df.h: Likewise.
6761         * diagnostic.c: Likewise.
6762         * diagnostic.h: Likewise.
6763         * dwarf2.h: Likewise.
6765 2003-01-17  Stan Shebs  <shebs@apple.com>
6767         * config/darwin-protos.h: Forward-declare struct cpp_reader.
6769 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
6771         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
6772         mistake in last checkin.
6774 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
6776         * et-forest.c: Fix comment typos.
6777         * et-forest.h: Likewise.
6778         * except.c: Likewise.
6779         * expr.c: Likewise.
6780         * flags.h: Likewise.
6781         * flow.c: Likewise.
6782         * gcc.c: Likewise.
6783         * gcse.c: Likewise.
6784         * genattrtab.c: Likewise.
6785         * genautomata.c: Likewise.
6786         * gengtype.c: Likewise.
6787         * genrecog.c: Likewise.
6788         * global.c: Likewise.
6789         * gthr-rtems.h: Likewise.
6791 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6793         * i386.c (x86_function_profiler): Fix format specifier.
6795 2003-01-17  Richard Henderson  <rth@redhat.com>
6797         * gengtype.c (walk_type): Allow paramN_is.
6799 2003-01-17  Nick Clifton  <nickc@redhat.com>
6801         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
6803 2003-01-16  Richard Henderson  <rth@redhat.com>
6805         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
6807 2003-01-16  Richard Henderson  <rth@redhat.com>
6809         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
6810         (alpha_next_sequence_number): Likewise.
6811         (alpha_this_literal_sequence_number): Likewise.
6812         (alpha_this_gpdisp_sequence_number): Likewise.
6813         (struct alpha_funcs, alpha_funcs_num): Likewise.
6814         (struct alpha_links): Fix branch merge error.
6815         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
6817 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
6819         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
6820         R. Ghazi.
6822 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
6824         * ifcvt.c: Fix comment typos.
6825         * lcm.c: Likewise.
6826         * libgcc2.c: Likewise.
6827         * local-alloc.c: Likewise.
6828         * loop.c: Likewise.
6829         * predict.c: Likewise.
6830         * ra-build.c: Likewise.
6831         * ra.c: Likewise.
6832         * ra-colorize.c: Likewise.
6833         * ra.h: Likewise.
6834         * ra-rewrite.c: Likewise.
6835         * regmove.c: Likewise.
6836         * reload.h: Likewise.
6837         * rtlanal.c: Likewise.
6838         * toplev.c: Likewise.
6839         * tree.h: Likewise.
6840         * unwind-dw2-fde-glibc.c: Likewise.
6841         * vmsdbgout.c: Likewise.
6843 2003-01-16  Richard Henderson  <rth@redhat.com>
6845         * dwarf2out.c (struct file_table): Remove.
6846         (FILE_TABLE_INCREMENT): Remove.
6847         (file_table): Make a varray; mark for GC.  Update all users.
6848         (file_table_last_lookup_index): Extract from struct file_table.
6849         (output_file_names): Fix unsigned compare warnings.
6850         (add_name_attribute): Remove inline marker.
6851         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
6852         (lookup_filename): Don't manage size of file_table.
6853         (init_file_table): Allocate file_table with GC.
6854         (dwarf2out_init): Don't record main_input_filename here.
6855         (dwarf2out_finish): Do it here instead.
6857 2003-01-16  Bruce Korb  <bkorb@gnu.org>
6859         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
6861 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
6863         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
6864         instead of rotldi3_mextr.
6866 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
6868         * haifa-sched.c (move_insn): Restore moving all schedule group.
6869         (set_priorities): Restore taking SCHED_GROUP_P into account.
6871         * sched-deps.c (add_dependence): Restore processing the last group
6872         insn.
6873         (remove_dependence, group_leader): Restore the functions.
6874         (set_sched_group_p): Restore adding dependencies from previous insn
6875         in the group.
6876         (compute_forward_dependences): Restore usage of group_leader.
6878         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
6879         account.
6881         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
6882         account.
6883         (can_schedule_ready_p): Ditto.
6884         (add_branch_dependences): Restore skipping over the group insns.
6886 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
6888         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
6889         68HC12 pre/post inc/dec side effects.
6891 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
6893         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
6895 2003-01-16  J"orn Rennecke <amylaar@onetel.net.uk>
6897         * sh.md (mshflo_w_x): Fix description of operation.
6899 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
6901         * config/rs6000/rs6000.h: Mention Altivec registers in
6902         commentary.  Fix typo.
6904 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
6906         * config/rs6000/rs6000.md (movti_string): Remove clobber.
6907         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
6908         generate PARALLEL with clobber for TARGET_POWER.
6910 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6912         * ra-colorize.c (colorize_one_web): Initialize variable.
6913         * regmove.c (fixup_match_1): Likewise.
6914         * reload1.c (reload_as_needed): Likewise.
6915         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
6917 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6919         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
6921 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6923         * dbxout.c (lastfile, cwd): Fix `unused' warning.
6924         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
6925         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
6926         is_main_source, file_table, decl_die_table_in_use,
6927         abbrev_die_table_in_use, line_info_table_in_use,
6928         separate_line_info_table_in_use, pubname_table_in_use,
6929         arange_table_in_use, ranges_table_in_use,
6930         current_function_has_inlines): Likewise.
6931         * flow.c (life_analysis): Likewise.
6932         * genemit.c (gen_insn): Likewise.
6933         * protoize.c (cplus_suffix): Likewise.
6935         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
6936         * arm.h (ROUND_UP_WORD): Likewise.
6938         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
6939         warning.
6940         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
6941         init_emit_once): Likewise.
6942         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
6943         Likewise.
6944         * function.c (assign_stack_temp_for_type): Likewise.
6945         * loop.c (loop_invariant_p): Likewise.
6946         * recog.c (push_operand): Likewise.
6947         * regclass.c (init_reg_sets_1): Likewise.
6948         * reload.c (update_auto_inc_notes): Likewise.
6949         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
6950         * stmt.c (expand_asm_operands): Likewise.
6951         * stor-layout.c (start_record_layout): Likewise.
6953 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
6955         * config/c4x/c4x.md (epilogue): Correct last patch.
6957 2003-01-15  Richard Henderson  <rth@redhat.com>
6959         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
6960         also check that GP is being used.
6961         (alpha_find_lo_sum_using_gp): New.
6962         (alpha_does_function_need_gp): Use get_attr_usegp.
6963         * config/alpha/alpha-protos.h: Update.
6964         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
6965         as needed.
6967 2003-01-15  Roger Sayle  <roger@eyesopen.com>
6969         * gcse.c (one_cprop_pass): Change function arguments to take both
6970         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
6971         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
6972         (bypass_jumps): New function to perform separate jump bypassing pass.
6973         * rtl.h (bypass_jumps): Add function prototype.
6974         * timevar.def (TV_BYPASS): New timing variable.
6975         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
6976         (dump_file): New entry for the bypass RTL dump file.
6977         (rest_of_compilation): Insert new jump bypassing optimization
6978         pass after loop.
6979         * doc/passes.texi: Document new pass.
6981 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6983         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
6984         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
6985         * pa.h (TARGET_SOM_SDEF): Define.
6986         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
6988 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
6990         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
6991         allocate 4-bytes of locals on 68HC11.
6992         (expand_epilogue): Likewise.
6993         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
6995 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
6997         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
6998         and -mshort-double to the assembler to specify the ABI.
6999         (LINK_SPEC): Likewise.
7000         (CPP_SPEC): Pass HCS12 specific define.
7001         (MASK_M68S12): New define.
7002         (TARGET_M68S12): Likewise.
7003         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
7004         (TARGET_VERSION): Update.
7005         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
7006         (LINK_SPEC): Update.
7007         (ASM_SPEC): Update.
7008         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
7009         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
7011 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
7013         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
7014         the return code.
7016 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
7018         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
7019         flag before setting it.
7021 2003-01-15  Roger Sayle  <roger@eyesopen.com>
7023         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
7024         when loop condition is known true, i.e.  "while (1) { ... }".
7025         (genrtl_for_stmt): Similarly for "for" statements.
7027 2003-01-15  Roger Sayle  <roger@eyesopen.com>
7029         * real.c (real_sqrt): Return a bool result indicating whether
7030         a floating point exception or trap should be raised.
7031         * real.h (real_sqrt): Update function prototype.
7032         * builtins.c (fold_builtin): Only fold non-trapping square
7033         roots unless we're ignoring errno and trapping math.
7035 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
7037         * expr.h (emit_conditional_add): Add PARAMS to declaration.
7038         * gengtype-lex.l (malloc, realloc): Move defines after include of
7039         system.h.  Remove duplicate include of system.h.
7041 2003-01-15  Roger Sayle  <roger@eyesopen.com>
7043         PR middle-end/9009
7044         * optabs.c (expand_unop):  When manipulating the FP sign bit
7045         using integer operations, account for targets with different
7046         integer and FP word orders.
7047         (expand_abs): Likewise.
7049 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
7051         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
7052         file extension in section name.
7054 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
7056         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
7057         constant offset.
7059 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
7061         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
7062         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
7063         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
7064         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
7066 2003-01-15  Jan Hubicka  <jh@suse.cz>
7068         PR f/9258
7069         * global.c (struct allocno): Add no_stack_reg.
7070         (global_conflicts): Set no_stack_reg.
7071         (find_reg): Use it.
7073         * convert.c (convert_to_real): Fold - and abs only when profitable.
7074         * fold-const.c (fold): Fold truncates in - and abs.
7076 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
7078         Segher Boessenkool  <segher@koffie.nl>
7080         * predict.c (real_inv_br_prob_base): New variable.
7081         (propagate_freq): Use multiply by reciprocal instead of
7082         division.  Don't divide by 1.0 at all.
7083         (estimate_bb_frequencies): Similar.
7085 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
7087         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
7088         * configure: Rebuilt.
7090 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
7092         * config/s390/s390.c (s390_safe_attr_type): New function.
7093         (s390_use_dfa_pipeline_interface): New function, return true for z900.
7094         (s390_issue_rate): New function.
7095         (s390_agen_dep_p): New function.
7096         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
7097         (s390_adjust_cost): Return 'cost' if new DFA is used.
7098         (s390_adjust_priority): Delete function.
7099         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
7100         * config/s390/s390.md (atype attribute): Attribute 'atype' default
7101         determined by 'op_type'.
7102         (type attribute): Added more type attributes.
7103         * config/s390/2064.md: New DFA description for z900 pipeline.
7105 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
7107         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
7108         forced to memory.  Fixes PR bootstrap/9036.
7110         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
7111         to set $gp before the call.
7113 2003-01-14  Richard Henderson  <rth@redhat.com>
7115         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
7116         for force_const_mem.
7118 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7120         * genattr.c (main): Rearrange output to avoid prototype warning.
7121         * genautomata.c (transform_3): Fix ambiguous-else warning.
7122         * local-alloc.c (requires_inout): Add parentheses around
7123         assignment used as truth-value.
7124         * timevar.c: Move system includes above local includes.  Include
7125         toplev.h
7126         * Makefile.in (timevar.o): Depend on toplev.h.
7128 2003-01-14  Denis Chertykov  <denisc@overta.ru>
7130         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
7131         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
7133         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
7134         attributes.
7135         (TARGET_ATTRIBUTE_TABLE): New macro.
7136         (valid_machine_type_attribute): Remove.
7137         (valid_machine_decl_attribute): Remove.
7138         (ip2k_handle_progmem_attribute): New function.
7139         (ip2k_handle_fndecl_attribute): New function.
7141 2003-01-10  Andrew Haley  <aph@redhat.com>
7143         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
7144         registers to be in correct order.  Add rip.
7146 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
7148         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
7149         (*iorsi3_and_lshiftrt_9_sb): Likewise.
7151 2003-01-14  Jan Hubicka  <jh@suse.cz>
7153         * convert.c (strip_float_extensions):  Look for narrowest type handling
7154         FP constants.
7156         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
7157         float1 CMP float2.
7158         * convert.c (strip_float_extensions): Make global.
7159         * tree.h (strip_float_extensions): Declare.
7161 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7163         * timevar.def: define TV_NAME_LOOKUP.
7164         * timevar.c (timevar_pop): Be verbose when aborting.
7166 2003-01-13  Andreas Schwab  <schwab@suse.de>
7168         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
7169         $(parsedir), just move the temporary file at the end.
7170         ($(parsedir)/gengtype-yacc.c): Likewise.
7172 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
7174         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
7175         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
7176         splitting.
7177         * configure: Rebuilt.
7179 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7181         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
7182         internal_mcount): Don't use PARAMS.
7183         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
7184         ISO C style.
7185         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
7187 2003-01-13  Andreas Schwab  <schwab@suse.de>
7189         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
7190         directive.
7192 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
7194         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
7195         (*iorsi3_and_lshiftrt_n_sb): Likewise.
7197 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
7199         PR c++/9264
7200         * c-lex.c (c_lex): Set the token value to error_mark_node for
7201         invalid numeric constants.
7203 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7205         * c-pch.c (asm_file_startpos): Change to `long'.
7206         (pch_init): Use ftell, not ftello.
7207         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
7208         Use `long' instead of `off_t'.
7209         (c_common_read_pch): Likewise.
7210         * ggc-common.c (gt_pch_save): Use long/ftell instead of
7211         off_t/ftello.
7213 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
7215         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
7217 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
7219         * arm-protos.h (struct cpp_reader): Add declaration.
7221 2003-01-11  Jan Hubicka  <jh@suse.cz>
7223         PR target/9068
7224         * i386.c (output_fp_compare): Fix typo.
7226 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
7228         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
7230 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
7232         * Makefile.in (parsedir): New variable.
7233         (docobjdir): New variable.
7234         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
7235         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
7236         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
7237         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
7238         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
7239         Use docobjdir.
7240         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
7241         objc.maintainer-clean): Use parsedir.
7243         * varasm.c (struct constant_descriptor_rtx): Remove unused
7244         `label' field.
7246         * toplev.c (documented_lang_options): Document -Winvalid-pch.
7248 2003-01-10  Richard Henderson  <rth@redhat.com>
7250         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
7251         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
7253 2003-01-10  Richard Henderson  <rth@redhat.com>
7255         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
7256         not INTEGRAL_MODE_P when widening extensions.
7258 2003-01-10  Richard Henderson  <rth@redhat.com>
7260         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
7262 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
7264         * ggc-page.c (ggc_collect): Avoid overflow computing
7265         min_expand.
7267         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
7268         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
7269         Remove calls.
7270         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
7272 2003-01-10  Jan Hubicka  <jh@suse.cz>
7274         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
7275         with weird operands.
7277 2003-01-10  Dale Johannesen <dalej@apple.com>
7279         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
7280         parameters.  Call check_sibcall_argument_overlap if indicated.
7281         (check_sibcall_argument_overlap):  Add mark_stored_args_map
7282         parameter.  Don't mark parameter area as clobbered if not set.
7283         (expand_call):  Adjust calls to above.
7285 2003-01-10 Kelley Cook <kelleycook@comcast.net>
7287         * configure.in (linker read-only and read-write section mixing):
7288         Squelch some assembler warnings.
7289         * configure: Likewise.
7291 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
7293         * doc/invoke.texi: Document -mtune, delete -mcpu
7294         option for S/390 and zSeries.
7295         * config/s390/s390.c (s390_tune_string) New variable.
7296         (s390_cpu_string) Delete variable.
7297         (override_options): Use s390_tune_string instead of
7298         s390_cpu_string.
7299         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
7301 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
7303         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
7305 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
7307         * jump.c (next_nonnote_insn_in_loop): New function.
7308         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
7309         next_nonnote_insn.
7310         (duplicate_loop_exit_test). Likewise.
7312 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
7314         Merge from pch-branch:
7316         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
7318         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
7319         load.
7321         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
7323         * cpplib.c (count_registered_pragmas): New function.
7324         (save_registered_pragmas): New function.
7325         (_cpp_save_pragma_names): New function.
7326         (restore_registered_pragmas): New function.
7327         (_cpp_restore_pragma_names): New function.
7328         * cpphash.h (_cpp_save_pragma_names): Prototype.
7329         (_cpp_restore_pragma_names): Likewise.
7330         * cpppch.c (struct save_macro_item): Split from save_macro_data.
7331         (struct save_macro_data): New field 'saved_pragmas'.
7332         (save_macros): Update for changes to struct save_macro_data.
7333         (cpp_prepare_state): Call _cpp_save_pragma_names, update
7334         for changes to struct save_macro_data.
7335         (cpp_read_state): Call _cpp_restore_pragma_names, update
7336         for changes to struct save_macro_data.
7338         * cpppch.c (cpp_read_state): Restore the hashtable references
7339         in the cpp_reader.
7341         * tree.h (built_in_decls): Mark for PCH.
7343         * dbxout.c (lastfile): Don't mark for PCH.
7345         * ggc.h: Document PCH calls into memory managers.
7347         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
7349         * doc/invoke.texi (Precompiled Headers): Document the
7350         directory form of PCH.
7351         * cppfiles.c (validate_pch): New function.
7352         (open_file_pch): Search suitably-named directories for PCH files.
7354         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
7356         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
7357         reorder options.
7358         (Type Information): Mention that the information is also
7359         used to implement PCH.
7360         * doc/passes.texi (Passes): Improve documentation of
7361         language-specific files.
7363         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
7365         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
7366         (struct walk_type_data): Add reorder_fn field.
7367         (walk_type): Process 'reorder' option.
7368         (write_types_process_field): Reorder parameters to gt_pch_note_object,
7369         call reorder_note_routine.
7370         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
7371         (ggc_wtd): Update for change to struct write_types_data.
7372         (pch_wtd): Likewise.
7373         * ggc.h (gt_pch_note_object): Reorder parameters.
7374         (gt_handle_reorder): New definition.
7375         (gt_pch_note_reorder): New prototype.
7376         * ggc-common.c (struct ptr_data): Add reorder_fn.
7377         (gt_pch_note_object): Reorder parameters.
7378         (gt_pch_note_reorder): New.
7379         (gt_pch_save): Call reorder_fn.
7380         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
7382         * dbxout.c (cwd): Don't mark for PCH.
7384         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
7386         * gengtype.c (finish_root_table): Fix some warnings.
7387         (write_root): Handle TYPE_STRING.
7388         * ggc.h (gt_ggc_m_S): Add prototype.
7389         * stringpool.c (gt_ggc_m_S): New function.
7391         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
7393         * dwarf2out.c (dw2_string_counter): New.
7394         (AT_string_form): Use it.
7395         (same_dw_val_p): Update for removal of hashtable.h hash tables.
7397         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
7399         * dbxout.c: Include gt-dbxout.h.
7400         (lastfile): Mark for PCH/GGC.
7401         (cwd): Likewise.
7402         (struct typeinfo): Likewise.
7403         (typevec): Likewise.
7404         (typevec_len): Likewise.
7405         (next_type_number): Likewise.
7406         (struct dbx_file): Likewise.
7407         (current_file): Likewise.
7408         (next_file_number): Likewise.
7409         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
7410         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
7411         (dbxout_end_source_file): Don't free struct dbx_file.
7412         (dbxout_type): Use GGC to allocate typevec.
7413         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
7414         (GTFILES): Add dbxout.c.
7415         (gt-dbxout.h): New rule.
7417         * Makefile.in (c-pch.o): Add debug.h as dependency.
7418         * c-pch.c: Include debug.h.
7419         (pch_init): Call start_source_file to keep nesting right.
7420         (c_common_read_pch): Add orig_name parameter.  Call
7421         start_source_file debug hook.  Call end_source_file debug hook.
7422         * c-common.h (c_common_read_pch): Update prototype.
7423         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
7424         callback.
7425         * cppfiles.c (struct include_file): Add new field `header_name'.
7426         (find_or_create_entry): Default it to `name'.
7427         (open_file_pch): Set it to the original header file searched for.
7428         (stack_include_file): Don't stack an empty buffer, just handle
7429         PCH files immediately.  Pass header_name field to read_pch callback.
7431         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
7433         * function.c (funcdef_no): Mark to be saved in a PCH.
7435         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
7437         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
7439         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
7441         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
7443         * optabs.h (code_to_optab): Add GTY marker.
7445         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
7447         * Makefile.in (GTFILES): Add cpplib.h.
7448         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
7449         * c-decl.c (build_compound_literal): Don't use var_labelno.
7450         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
7451         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
7452         * varasm.c (const_labelno): Use gengtype to mark.
7453         (var_labelno): Likewise.
7454         (in_section): Likewise.
7455         (in_named_name): Likewise.
7456         (struct in_named_entry): Likewise.
7457         (in_named_htab): Likewise.
7458         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
7459         (init_varasm_once): Use GGC to allocate in_named_htab.
7460         * config/darwin.c (current_pic_label_num): Mark for PCH.
7462         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
7464         * ggc-simple.c (init_ggc_pch): New stub procedure.
7465         (ggc_pch_count_object): Likewise.
7466         (ggc_pch_total_size): Likewise.
7467         (ggc_pch_this_base): Likewise.
7468         (ggc_pch_alloc_object): Likewise.
7469         (ggc_pch_prepare_write): Likewise.
7470         (ggc_pch_write_object): Likewise
7471         (ggc_pch_finish): Likewise.
7472         (ggc_pch_read): Likewise.
7474         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
7476         * c-pch.c (c_common_write_pch): Write the macro definitions after
7477         the GCed data.
7478         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
7479         definitions after the GCed data.
7480         * cpplib.c (save_macros): New.
7481         (reset_ht): New.
7482         (cpp_write_pch_deps): Split out of cpp_write_pch.
7483         (cpp_write_pch_state): Split out of cpp_write_pch.
7484         (cpp_write_pch): Delete.
7485         (struct save_macro_data): Delete.
7486         (cpp_prepare_state): New.
7487         (cpp_read_state): Erase and restore initial macro definitions.
7488         * cpplib.h (struct save_macro_data): Forward-declare.
7489         (cpp_write_pch_deps): Prototype.
7490         (cpp_write_pch_state): Prototype.
7491         (cpp_write_pch): Delete prototype.
7492         (cpp_prepare_state): Prototype.
7493         (cpp_read_state): Add fourth argument.
7495         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
7497         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
7498         (write_array): Remove warning.
7500         * gengtype.c (contains_scalar_p): New.
7501         (finish_root_table): Add the table to all languages, even if it's
7502         empty.
7503         (write_roots): Output gt_pch_scalar_rtab.
7504         * ggc-common.c (gt_pch_save): Write out scalars.
7505         (gt_pch_restore): Read scalars back.
7507         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
7508         (struct page_entry): Delete pch_page field.
7509         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
7510         (clear_marks): Likewise.
7511         (sweep_pages): Likewise.
7512         (poison_pages): Likewise.
7513         (ggc_print_statistics): Likewise.
7514         (ggc_pch_read): Don't free objects read from a PCH.
7515         Properly set up in_use_p and page_tails.
7517         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
7519         * gengtype.c (struct write_types_data): New.
7520         (struct walk_type_data): Make `cookie' const; add extra
7521         prev_val item; add `orig_s' field.
7522         (walk_type): Update prev_val[3].
7523         (write_types_process_field): New.
7524         (write_func_for_structure): Take write_types_data structure.
7525         (write_types): New.
7526         (ggc_wtd): New.
7527         (pch_wtd): New.
7528         (write_types_local_process_field): New.
7529         (gc_mark_process_field): Delete.
7530         (write_local_func_for_structure): New.
7531         (gc_mark_func_name): Delete.
7532         (write_gc_types): Delete.
7533         (write_local): New.
7534         (finish_root_table): Don't include 'ggc_' in PFX.
7535         (write_root): Rename from write_root.  Fill pchw field of structures.
7536         (write_array): New.
7537         (write_roots): Rename from write_gc_roots.  Split out to write_array.
7538         Update to changes to other routines.  Write gt_pch_cache_rtab table.
7539         (main): Write PCH walking routines.
7540         * ggc-common.c: Include toplev.h, sys/mman.h.
7541         (ggc_mark_roots): For cache hashtables, also mark the hash table
7542         and the array of entries.
7543         (saving_htab): New.
7544         (struct ptr_data): New.
7545         (POINTER_HASH): New.
7546         (gt_pch_note_object): New.
7547         (saving_htab_hash): New.
7548         (saving_htab_eq): New.
7549         (struct traversal_state): New.
7550         (call_count): New.
7551         (call_alloc): New.
7552         (compare_ptr_data): New.
7553         (relocate_ptrs): New.
7554         (write_pch_globals): New.
7555         (struct mmap_info): New.
7556         (gt_pch_save): New.
7557         (gt_pch_restore): New.
7558         * ggc-page.c (ROUND_UP_VALUE): New.
7559         (ROUND_UP): New.
7560         (struct page_entry): Add field `pch_page'.
7561         (init_ggc): Use ROUND_UP.
7562         (struct ggc_pch_data): Declare.
7563         (init_ggc_pch): New.
7564         (ggc_pch_count_object): New.
7565         (ggc_pch_total_size): New.
7566         (ggc_pch_this_base): New.
7567         (ggc_pch_alloc_object): New.
7568         (ggc_pch_prepare_write): New.
7569         (ggc_pch_write_object): New.
7570         (ggc_pch_finish): New.
7571         (ggc_pch_read): New.
7572         * ggc.h (gt_pointer_operator): New.
7573         (gt_note_pointers): New.
7574         (gt_pch_note_object): New prototype.
7575         (gt_pointer_walker): New.
7576         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
7577         (LAST_GGC_ROOT_TAB): Update.
7578         (gt_pch_cache_rtab): Declare.
7579         (gt_pch_scalar_rtab): Declare.
7580         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
7581         (LAST_GGC_CACHE_TAB): Update.
7582         (gt_pch_save_stringpool): Declare.
7583         (gt_pch_restore_stringpool): Declare.
7584         (gt_pch_p_S): Declare.
7585         (gt_pch_n_S): Declare.
7586         (struct ggc_pch_data): Forward-declare.
7587         (init_ggc_pch): Declare.
7588         (ggc_pch_count_object): Declare.
7589         (ggc_pch_total_size): Declare.
7590         (ggc_pch_this_base): Declare.
7591         (ggc_pch_alloc_object): Declare.
7592         (ggc_pch_prepare_write): Declare.
7593         (ggc_pch_write_object): Declare.
7594         (ggc_pch_finish): Declare.
7595         (ggc_pch_read): Declare.
7596         (gt_pch_save): Declare.
7597         (gt_pch_restore): Declare.
7598         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
7599         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
7600         const_double_htab, mem_attrs_htab using GGC.
7601         * c-pch.c: Include ggc.h.
7602         (pch_init): Allow reading PCH file back.
7603         (c_common_write_pch): Call gt_pch_save.
7604         (c_common_read_pch): Call gt_pch_restore.
7605         * c-parse.in (init_reswords): Delete now-untrue comment.
7606         Allocate ridpointers using GGC.
7607         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
7608         calling expand_deferred_fns.
7609         * c-common.h (ridpointers): Mark for GTY machinery.
7610         * Makefile.in (stringpool.o): Update dependencies.
7611         (c-pch.o): Update dependencies.
7612         (ggc-common.o): Update dependencies.
7613         * stringpool.c: Include gt-stringpool.h.
7614         (gt_pch_p_S): New.
7615         (gt_pch_n_S): New.
7616         (struct string_pool_data): New.
7617         (spd): New.
7618         (gt_pch_save_stringpool): New.
7619         (gt_pch_restore_stringpool): New.
7620         * tree.c (init_ttree): Make type_hash_table allocated using GC.
7622         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
7624         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
7625         (output_mangled_typename): Don't pass size_t to printf.
7627         * tree.h (union tree_type_symtab): Add tag to `address' field.
7628         (union tree_decl_u2): Add tag to 'i' field.
7629         * varasm.c (union rtx_const_un): Add tags to all fields.
7630         * gengtype.c (struct walk_type_data): New.
7631         (output_escaped_param): Take struct walk_type_data parameter.
7632         (write_gc_structure_fields): Delete.
7633         (walk_type): New.
7634         (write_gc_marker_routine_for_structure): Delete.
7635         (write_func_for_structure): New.
7636         (gc_mark_process_field): New.
7637         (gc_mark_func_name): New.
7638         (gc_counter): Delete.
7639         (write_gc_types): Use write_func_for_structure.
7640         (write_gc_roots): Use walk_type.
7642         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
7644         * ggc-common.c (ggc_mark_roots): Delete 'x'.
7645         (ggc_splay_dont_free): Fix warning about unused 'x'.
7646         (ggc_print_common_statistics): Remove warnings.
7648         2002-10-01  Mike Stump  <mrs@apple.com>
7650         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
7651         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
7653         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
7654             Catherine Moore  <clm@redhat.com>
7656         * Makefile (c-pch.o): Update dependencies.
7657         (LIBCPP_OBJS): Add cpppch.o.
7658         (cpppch.o): New.
7659         * c-common.c (c_common_init): Don't call pch_init here.
7660         * c-common.h (c_common_read_pch): Update prototype.
7661         * c-lex.c (c_common_parse_file): Call pch_init here.
7662         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
7663         (c_common_decode_option): Handle them.
7664         * c-pch.c: Include c-pragma.h.
7665         (save_asm_offset): Delete.
7666         (pch_init): Move contents of save_asm_offset into here, call
7667         cpp_save_state.
7668         (c_common_write_pch): Call cpp_write_pch.
7669         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
7670         cpp_valid_state.
7671         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
7672         * cppfiles.c (stack_include_file): Update for change to
7673         parameters of cb.read_pch.
7674         * cpphash.h (struct cpp_reader): Add `savedstate' field.
7675         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
7676         `restore_pch_deps' fields.
7677         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
7678         (cpp_save_state): Prototype.
7679         (cpp_write_pch): Prototype.
7680         (cpp_valid_state): Prototype.
7681         (cpp_read_state): Prototype.
7682         * cpppch.c: New file.
7683         * flags.h (version_flag): Remove prototype.
7684         * mkdeps.c (deps_save): New.
7685         (deps_restore): New.
7686         * mkdeps.h (deps_save): Prototype.
7687         (deps_restore): Prototype.
7688         * toplev.c (late_init_hook): Delete.
7689         (version_flag): Make static again.
7690         (compile_file): Don't call late_init_hook.
7691         * toplev.h (late_init_hook): Delete.
7692         * doc/cppopts.texi: Document -fpch-deps.
7693         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
7695         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
7697         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
7698         callers.
7699         (c_common_valid_pch): Rename from c_valid_pch, change callers.
7700         (c_common_read_pch): Rename from c_read_pch, change callers.
7702         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
7703         a space between it and its argument.
7705         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
7707         * c-pch.c: New file.
7708         * toplev.h (late_init_hook): Declare.
7709         * toplev.c (late_init_hook): Define.
7710         (version_flag): Make globally visible.
7711         (compile_file): Call late_init_hook.
7712         (init_asm_output): Make output file seekable.
7713         * gcc.c (default_compilers): Update c-header rule.
7714         * flags.h (version_flag): Declare.
7715         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
7716         fields.
7717         * cppfiles.c (struct include_file): Add 'pch' field.
7718         (INCLUDE_PCH_P): New.
7719         (open_file_pch): New.
7720         (stack_include_file): Handle PCH files specially.
7721         (find_include_file): Call open_file_pch instead of open_file.
7722         (_cpp_read_file): Explain why open_file is used instead of
7723         open_file_pch.
7724         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
7725         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
7726         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
7727         in cpplib callbacks.
7728         * c-common.c (pch_file): Correct comment.
7729         (allow_pch): Define.
7730         (c_common_init): Call pch_init.
7731         * c-common.h (allow_pch): Declare.
7732         (pch_init): Declare.
7733         (c_valid_pch): Declare.
7734         (c_read_pch): Declare.
7735         (c_write_pch): Declare.
7736         * Makefile.in (c-pch.o): New.
7737         (C_AND_OBJC_OBJS): Add c-pch.o.
7738         * doc/invoke.texi (Precompiled Headers): Add index entries,
7739         complete truncated paragraph.
7741         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
7743         * c-common.c: (pch_file): Define.
7744         * c-common.h (pch_file): Declare.
7745         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
7746         (missing_arg): Require --output-pch= to have an argument.
7747         (c_common_decode_option): Handle --output-pch=.
7748         * gcc.c: Document new %V.
7749         (default_compilers): Handle compiling C header files.
7750         (do_spec_1): Implement %V.
7751         (main): Handle "gcc foo.h" without trying to run linker.
7752         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
7753         (Overall Options): Document what the driver does with header files,
7754         document new -x option possibilities.
7755         (Invoking G++): More documentation for PCH.
7756         (Precompiled Headers): New.
7758         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
7760         * ggc.h: Don't include varray.h.  Rearrange functions to be more
7761         organized.
7762         (ggc_add_root): Delete.
7763         (ggc_mark_rtx): Delete.
7764         (ggc_mark_tree): Delete.
7765         (struct ggc_statistics): Remove contents.
7766         * ggc-common.c: Remove unneeded includes.
7767         (struct ggc_root): Delete.
7768         (roots): Delete.
7769         (ggc_add_root): Delete.
7770         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
7771         (ggc_print_common_statistics): Remove most of the contents.
7772         * Makefile.in (GGC_H): No longer uses varray.h.
7773         (ggc-common.o): Update dependencies.
7774         (c-parse.o): Add varray.h to dependencies.
7775         (c-common.o): Add varray.h.
7776         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
7777         (mark_ident_hash): Rename to ggc_mark_stringpool.
7778         (init_stringpool): Don't use ggc_add_root.
7779         * c-parse.in: Include varray.h.
7780         * c-common.c: Include varray.h.
7781         * objc/Make-lang.in (objc-act.o): Add varray.h.
7782         * objc/objc-act.c: Include varray.h.
7784         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
7786         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
7787         (dw_cfi_oprnd1_desc): Likewise.
7789         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
7791         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
7792         move out of ifdef.
7793         (alpha_links): Use gengtype to mark; move out of ifdef.
7794         (mark_alpha_links_node): Delete.
7795         (mark_alpha_links): Delete.
7796         (alpha_need_linkage): Use GGC to allocate splay tree, struct
7797         alpha_links, strings.  Don't use ggc_add_root.
7798         * ggc-common.c (ggc_splay_alloc): New.
7799         (ggc_splay_dont_free): New.
7800         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
7801         (ggc_mark_tree): Likewise.
7802         (splay_tree_new_ggc): New.
7803         (ggc_splay_alloc): Declare.
7804         (ggc_splay_dont_free): Declare.
7805         * dwarf2asm.c: Include gt-dwarf2asm.h.
7806         (mark_indirect_pool_entry): Delete.
7807         (mark_indirect_pool): Delete.
7808         (indirect_pool): Use gengtype to mark.
7809         (dw2_force_const_mem): Don't use ggc_add_root.
7810         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
7811         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
7812         (gt-dwarf2asm.h): Depend on s-gtype.
7814         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
7816         * tree.h (union tree_type_symtab): Mark `die' field.
7817         * Makefile.in (dwarf2out.o): Update dependencies.
7818         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
7819         hash tables.
7820         (dw_cfi_oprnd1_desc): New function.
7821         (dw_cfi_oprnd2_desc): New function.
7822         (indirect_string_alloc): Delete.
7823         (debug_str_do_hash): New function.
7824         (debug_str_eq): New function.
7825         (mark_limbo_die_list): Delete.
7826         (dwarf2out_init): Don't call ggc_add_root.
7828 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
7830         The following changes are merged from itanium-sched-branch:
7832         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
7834         * doc/md.texi: Clarify assignment of units to automata description.
7836         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
7838         * genautomata.c (unit_decl): Remove members
7839         `the_same_automaton_unit' and
7840         `the_same_automaton_message_reported_p'.
7841         (process_unit_to_form_the_same_automaton_unit_lists,
7842         form_the_same_automaton_unit_lists_from_regexp,
7843         form_the_same_automaton_unit_lists, the_same_automaton_lists):
7844         Remove them.
7845         (annotation_message_reported_p): New global variable.
7846         (check_unit_distribution_in_reserv,
7847         check_regexp_units_distribution): New functions.
7848         (check_unit_distributions_to_automata): Rewrite it.
7850         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
7852         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
7853         Use continue instead of break if cycle is too big.
7855         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
7857         * genautomata.c (check_unit_distributions_to_automata): Output at
7858         most one message for a unit.
7859         (process_unit_to_form_the_same_automaton_unit_lists): Check
7860         automaton of units instead of units themself.
7862         * doc/md.texi: Describe the constraint about assigning unit to
7863         automata.
7865         2002-12-20  Jan Hubicka  <jH@suse.cz>
7866                     Vladimir Makarov  <vmakarov@redhat.com>
7868         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
7869         and `in_set_p'.
7870         (gen_cpu_unit): Initialize the new members.
7871         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
7872         up `min_occ_cycle_num'.
7873         (evaluate_max_reserv_cycles): Change the function call.
7874         (CLEAR_BIT): New macro.
7875         (states_union, state_shift): Use the mask.
7876         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
7877         (form_reservs_matter): New function.
7878         (make_automaton): Call the function and use the mask.
7879         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
7880         account.
7882         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
7884         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
7886         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
7888         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
7889         for Itanium.
7891         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
7893         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
7894         default cpu.
7896         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
7897                 2002-10-31  Dale Johannesen <dalej@apple.com>
7899         * haifa-sched.c (find_set_reg_weight): New function.
7900         (find_insn_reg_weight): Use the new function.
7901         (schedule_block): Do sorting ready queue always
7902         after insn issue.
7904         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
7906         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
7908         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
7910         * haifa-sched.c (choice_entry): New structure.
7911         (choice_stack, cycle_issued_insns): New variables.
7912         (max_issue): Rewrite it.
7913         (choose_ready): Set up ready_try for unknown insns too.
7914         (schedule_block): Allocate and free choice_stack.  Set up
7915         and modify cycle_issued_insns.
7917         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
7918         with and without filling the bundle.
7919         (bundling): Combine calls of issue_nops_and_insn.
7921         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
7923         * config/ia64/itanium1.md: New file.
7925         * config/ia64/itanium2.md: New file.
7927         * config/ia64/ia64.md: Move DFA descriptions into the new files.
7928         Remove the old pipeline description.
7930         * config/ia64/ia64.c (ia64_override_options): Add aliases of
7931         itanium processor names.
7933         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
7935         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
7936         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
7938         * config/ia64/ia64.md: Add descriptions for Itanium2.
7940         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
7942         * config/ia64/ia64.h (processor_type): New enumeration.
7943         (ia64_tune, ia64_tune_string): New external declarations.
7944         (TARGET_OPTIONS): Add option `tune='.
7946         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
7947         variables.
7948         (ia64_override_options): Set up `ia64_tune'.
7949         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
7950         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
7951         (bundling): Add nops for MM-insns only for Itanium.
7952         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
7953         Itanium.
7955         * config/ia64/ia64.md (cpu): New attribute.
7956         (DFA description): Enable it only for Itanium.
7958         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
7959                     Richard Henderson  <rth@redhat.com>
7961         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
7962         MASK_EARLY_STOP_BITS.
7963         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
7964         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
7965         `early-stop-bits'.
7967         * config/ia64/ia64.c (ia64_dfa_new_cycle,
7968         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
7969         instead of TARGET_TUNE_STOP_BITS.
7971         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
7972         `-mearly-stop-bits'.
7974         * config/ia64/ia64.c (automata_option "v"): Comment it.
7976         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
7978         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
7979         New macros.
7980         (TARGET_SWITCHES): Add entries for the new option.
7982         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
7983         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
7984         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
7985         global variables.
7986         (ia64_sched_reorder2): Set up `clocks'.
7987         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
7988         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
7989         queue when TARGET_TUNE_STOP_BITS.
7990         (bundling): Insert additional nops for MM-insns.
7991         (final_emit_insn_group_barriers): Add insertion of stop bits
7992         according `stops_p'.
7993         (ia64_reorg): Initiate the new varibales.
7995         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
7997         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
7999         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
8000         insns at the end of block insn scheduling.
8002         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
8004         * sched-deps.c (remove_dependence, group_leader): Remove it.
8005         (add_dependence): Add dependence to group leader to.
8006         (set_sched_group_p): Add dependence to the first insn of the
8007         schedule group too.
8008         (sched_analyze_insn): Make dependence to jump as anti-dependence.
8009         Change true dependence by anti-dependence when
8010         `reg_pending_barrier'.
8012         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
8013         add_branch_dependences): Ignore schedule groups.
8015         * sched-ebb.c (init_ready_list): Ditto.
8017         * (move_insn, set_priorities): Ditto.
8019         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
8020         flag is clear after reload.
8021         (adjust_cost): Change cost only for output dependencies.
8023         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
8025         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
8027         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
8029         * target.h (gcc_target): Add member
8030         `dependencies_evaluation_hook'.
8032         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
8033         macro.
8034         (TARGET_SCHED): Add initiatialization of the new member.
8036         * sched-ebb.c: Include `target.h'.
8037         (schedule_ebb): Call `dependencies_evaluation_hook'.
8039         * sched-rgn.c (schedule_region): Call
8040         `dependencies_evaluation_hook'.
8042         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
8043         New macro.
8044         (ia64_dependencies_evaluation_hook): New function.
8046         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
8047         Describe the new hook.
8049         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
8051         * target.h (gcc_target): Add members
8052         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
8054         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
8055         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
8056         macros.
8057         (TARGET_SCHED): Add initiatialization of the new members.
8059         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
8060         insn scheduling too.
8061         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
8062         initialize `ready_try'.
8063         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
8064         `dfa_new_cycle' says not to do it.
8066         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
8067         bundling.
8069         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
8071         * config/ia64/ia64.c: Include `hashtab.h'.
8072         (ia64_first_cycle_multipass_dfa_lookahead_guard,
8073         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
8074         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
8075         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
8076         bundle_state_eq_p, insert_bundle_state,
8077         initiate_bundle_state_table, finish_bundle_state_table,
8078         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
8079         get_template, get_next_important_insn, bundling): New functions.
8080         (ia64_internal_sched_reorder): Remove it.
8081         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
8082         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
8083         (ia64_safe_itanium_requires_unit0): Remove it.
8084         (group_barrier_needed_p): Place group barrier right before a real
8085         insn.
8086         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
8087         Remove them.
8088         (bundle_name): New variable.
8089         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
8090         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
8091         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
8092         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
8093         temp_dfa_state, prev_cycle_state): New global variables.
8094         (insn_matches_slot, maybe_rotate, finish_last_head,
8095         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
8096         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
8097         find_best_packet, itanium_reorder, dump_current_packet,
8098         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
8099         (sched_data, sched_ready, sched_types): Remove them.
8100         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
8101         `init_insn_group_barriers'.
8102         (ia64_sched_reorder, ia64_sched_reorder2): Call
8103         ia64_dfa_sched_reorder.
8104         (ia64_variable_issue): Rewrite it.
8105         (bundle_state): New structure.
8106         (index_to_bundle_states, bundle_states_num,
8107         allocated_bundle_states_chain, free_bundle_state_chain): New
8108         global variables.
8109         (ia64_sched_finish): Add stop bits and call `bundling' after the
8110         2nd insn scheduling.
8111         (ia64_use_dfa_pipeline_interface): Return zero always.
8112         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
8113         insn scheduling.
8114         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
8115         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
8116         (ia64_reorg): Add bundling insns.
8118         * doc/tm.texi
8119         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
8120         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
8122         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
8124         * config/ia64/ia64.md: Add Itanium1 DFA description.
8125         (itanium_class): Add `nop' and `pre_cycle'.  Add
8126         define_function_unit for `nop'.
8127         (nop): Change attribute `itanium_class'.
8128         (pre_cycle): New define_insn.
8130         * config/ia64/ia64-protos.h (bundling_p): New external variable.
8131         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
8132         ia64_produce_address_p): New function prototypes.
8134         * config/ia64/ia64.c (bundling_p): New global variable.
8135         (ia64_use_dfa_pipeline_interface,
8136         ia64_first_cycle_multipass_dfa_lookahead,
8137         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
8138         functions.
8139         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8140         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8141         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8142         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
8143         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
8144         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
8145         (dfa_pre_cycle_insn): New variable.
8147         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
8149         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
8150         constructions.
8152         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
8153         New function prototypes.
8155         * genattrtab.c (main): Process the new constructions.
8157         * genautomata.c (gen_presence_absence_set,
8158         process_presence_absence_names, process_presence_absence_patterns,
8159         add_presence_absence, check_absence_pattern_sets): Add parameter
8160         `final_p'.
8161         (unit_decl): Add new members `final_presence_list' and
8162         `final_absence_list'.
8163         (unit_pattern_rel_decl): Add new member `final_p'.
8164         (gen_final_presence_set, gen_final_absence_set): New functions.
8165         (process_decls): Use member `final_p'.
8166         (temp_reserv): New global variable.
8167         (reserv_sets_are_intersected): Add processing `final_presence_set'
8168         and `final_absence_set'.
8169         (initiate_states): Allocate `temp_reserv'.
8170         (unit_final_presence_set_table, unit_final_absence_set_table): New
8171         gloabal variables.
8172         (initiate_presence_absence_pattern_sets): Initiate them.
8173         (NDFA_to_DFA): Fix typo.
8174         (output_description): Output `final_presence_set' and
8175         `final_absence_set'.
8177         * doc/md.texi (final_presence_set, final_absence_set): Describe
8178         them.
8180         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
8182         * genautomata.c (transform_3): Process a missing case (nothing on
8183         unit place).
8185         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
8187         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
8188         comments about queried units and the minimization.
8190         * doc/md.texi: Ditto.
8192         * genautomata.c (create_composed_state): Return nonzero if the new
8193         state has been created.
8194         (first_cycle_unit_presence): New function.
8195         (state_is_differed): Add new parameter.  Use the new function.
8196         Take queried units into account.
8197         (partition_equiv_class): Pass additional parameter to
8198         `state_is_differed'.
8199         (merge_states): Process composed states too.
8200         (build_automaton, create_automata, output_min_issue_delay_table,
8201         output_tables, output_statistics): Output more information.
8202         (output_reserved_units_table): Use function
8203         `first_cycle_unit_presence'.
8204         (output_tables): Output table of queried units even if the
8205         minimization is switched on.
8206         (write_automata): Output code for querying units even if the
8207         minimization is switched on.
8209         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
8211         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
8212         syntax of the constructions.
8214         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
8215         extended syntax of the constructions.
8217         * genautomata.c (unit_rel_decl): Rename it to
8218         `unit_pattern_rel_decl'.
8219         (pattern_set_el, pattern_reserv): New structures.
8220         (pattern_set_el_t, pattern_reserv_t): New types.
8221         (gen_presence_absence_set): New function.
8222         (process_presence_absence): Remove it.
8223         (process_presence_absence_names,
8224         process_presence_absence_patterns): New functions.
8225         (get_presence_absence_set): Remove it.
8226         (initiate_presence_absence_sets): Rename it on
8227         `initiate_presence_absence_pattern_sets'.  Use new function
8228         `form_reserv_sets_list'.
8229         (form_reserv_sets_list, check_presence_pattern_sets,
8230         check_absence_pattern_sets, output_pattern_set_el_list): New
8231         functions.
8232         (unit_decl): Change types of members `presence_list' and
8233         `absence_list'.
8234         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
8235         (decl): Change types of members `excl', `presence', and `absence'.
8236         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
8237         at the end of the vector.
8238         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
8239         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
8240         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
8241         (gen_presence_set, gen_absence_set): Use new function
8242         `gen_presence_absence_set'.
8243         (add_presence_absence): Process `pattern_list' instead of
8244         `source_list'.
8245         (process_decls): USe new functions
8246         `process_presence_absence_names' and
8247         `process_presence_absence_patterns'.
8248         (reserv_sets_are_intersected): Use new function
8249         `check_presence_pattern_sets'.
8250         (presence_set, absence_set): Remove them.
8251         (unit_presence_set_table, unit_absence_set_table): New global
8252         variables.
8253         (output_description): Use new function
8254         `output_pattern_set_el_list'.
8255         (generate): Use `initiate_presence_absence_pattern_sets'.
8257         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
8259         * genattr.c (main): Add output of prototype of new interface
8260         function `dfa_clean_insn_cache'.
8262         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
8263         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
8264         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
8265         the generated code.
8266         (write_automata): Call the new function.
8268 2003-01-09  Jan Hubicka  <jh@suse.cz>
8270         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
8271         correctly.
8273 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
8275         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
8277 2003-01-09  J"orn Rennecke <joern.rennecke@superh.com>
8279         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
8280         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
8281         (CONSTRAINT_LEN): Provide default definition.
8282         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
8283         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
8284         (EXTRA_CONSTRAINT_STR): Likewise.
8285         (REG_CLASS_FROM_CONSTRAINT): Define.
8286         * genoutput.c (check_constraint_len, constraint_len): New functions.
8287         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
8288         constraint / modifier.
8289         (gen_insn): Call check_constraint_len.
8290         * local-alloc.c (block_alloc): Update to use new macros / pass
8291         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
8292         * ra-build.c (handle_asm_insn): Likewise.
8293         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
8294         (constrain_operands, peep2_find_free_register): Likewise.
8295         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
8296         * regmove.c (find_matches): Likewise.
8297         * reload.c (push_secondary_reload, find_reloads): Likewise.
8298         (alternative_allows_memconst): Likewise.
8299         * reload1.c (maybe_fix_stack_asms): Likewise.
8300         (reload_cse_simplify_operands): Likewise.
8301         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
8302         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
8303         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
8304         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
8305         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
8306         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
8308         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
8310 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
8312         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
8313         length.
8314         (*extzv_1_r_h8300hs): Likewise.
8315         (*extzv_1_r_inv_h8300): Likewise.
8316         (*extzv_1_r_inv_h8300hs): Likewise.
8318 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
8320         * config/h8300/h8300.h (PREDICATE_CODES): New.
8322 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
8324         * config/h8300/h8300.md (*addsi3_upper): New.
8325         (*iorsi3_shift): Likewise.
8326         (two splitters): Likewise.
8327         (*addsi3_shift): Likewise.
8328         (two splitters): Likewise.
8330 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
8332         * Makefile.in (optabs.o): Add dependency on basic-block.h.
8333         * basic-block.h (control_flow_insn_p): Fuction was exported.
8334         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
8335         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
8336         notes only when the region is contained in a single basic block.
8338 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
8340         PR inline-asm/8832
8341         * tree.h (expand_asm): New prototype.
8342         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
8343         to do so.
8344         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
8345         down to expand_asm.
8346         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
8347         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
8348         (volatile_refs_p) [ASM_INPUT]: Likewise.
8349         (side_effects_p) [ASM_INPUT]: Likewise.
8351 2003-01-09  Jan Hubicka  <jh@suse.cz>
8353         * i386.md (*mul*): FIx constraints; remove confused comment; fix
8354         athlon_decode attributes
8355         (imul/k8 optimization peep2s): New.
8357         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
8358         * i386.md (type attribute): Add ssecomi.
8359         (unit, memory, prefix attributes): Handle ssecomi.
8360         (cvt?2? patterns): Fix athlon_decode attribute
8361         (comi patterns): Set attribute to ssecomi.
8363         PR target/8343
8364         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
8366 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
8368         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
8369         that match register_operands.
8370         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
8371         register_operand the default case.
8373 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
8375         PR c/8032
8376         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
8377         an empty element, do not advance the pointer to unfilled
8378         fields if there are pending initializers.
8380 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
8382         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
8383         (install-gcc-tooldir, install-cpp, installdirs,
8384         install-common, install-driver, install-info, install-man,
8385         install-headers, install-include-dir, install-headers-tar,
8386         install-headers-cpio, install-headers-cp, install-mkheaders,
8387         install-collect2, uninstall): Prepend $(DESTDIR) to
8388         destination paths in all (un)installation commands.
8389         (install-driver): Rewrite $(LN) commands to support DESTDIR
8390         with "ln" as well as with "ln -s".
8391         (installdirs): Simply use mkinstalldirs.
8392         (install-libgcc, install-multilib): Also pass DESTDIR.
8393         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
8394         installation destination variable ldir.
8395         * config/alpha/t-osf4, config/arm/t-netbsd,
8396         config/ia64/t-hpux, config/mips/t-iris5-6,
8397         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
8398         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
8399         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
8400         in the definition of SHLIB_INSTALL.
8401         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
8402         $(libsubdir) in the installation commands.
8404 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
8406         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
8407         non-optimizing compile.
8408         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
8409         compile.
8411 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
8413         * config/i386/i386.c (ix86_attribute_table): Add new attributes
8414         ms_struct and gcc_struct.
8415         (ix86_handle_struct_attribute): New function.
8416         (ix86_ms_bitfield_layout_p): Update to take new attributes
8417         into account.
8418         * doc/extend.texi: Document new attributes.
8419         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
8421 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
8423         PR optimization/8750
8424         * config/i386/i386.c (ix86_expand_prologue): Don't allow
8425         scheduling pass to move insns across __alloca call.
8427 2003-01-08  Dale Johannesen  <dalej@apple.com>
8429         * config/rs6000/rs6000.md:  Replace *store_multiple_string
8430         with *stmsi[3-8].
8432 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
8434         PR target/9210
8435         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
8436         Set SYMBOL_REF_FLAG on local data sym_ref.
8438 2003-01-08  Dale Johannesen  <dalej@apple.com>
8440         * function.c (assign_parms):  Don't set pretend_args_size if
8441           REG_PARM_STACK_SPACE.
8442           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
8443           pretend_args_size.
8445 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
8447         * gcc.hlp: Delete.
8449 2003-01-09  Jan Hubicka  <jh@suse.cz>
8451         * i386.c  (ix86_expand_int_addcc): Fix thinko.
8453 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
8455         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
8456         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
8457         as hook_bool_tree_hwi_hwi_tree_true.
8458         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
8459         (rs6000_emit_epilogue): Same.
8460         (rs6000_output_mi_thunk): Re-implement as RTL.
8461         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
8462         xcoffout_declare_function if any debugging enabled.
8464 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
8466         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
8467         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
8468         * config/mips/mips.h (enum processor_type): Rename
8469         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
8470         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
8471         Add PROCESSOR_M4K.
8472         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
8473         (ISA_MIPS32R2): New define.
8474         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
8475         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
8476         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
8477         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
8478         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
8479         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
8480         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
8481         compiling MIPS16 code.
8482         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
8483         comment.
8484         (ISA_HAS_SEB_SEH): New define.
8485         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
8486         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
8487         processor_type value renaming.  Add support for MIPS32R2.
8488         Clean up comments, and move "sb1" entry with other MIPS64 CPU
8489         entries.
8490         (override_options): Reimplement -mipsN option handling so that
8491         it will work correctly for -mips32r2.  Avoid branch-likely
8492         instructions on MIPS32R2.
8493         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
8494         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
8495         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
8496         (extendhisi2_hw, extendqisi2_hw): New.
8497         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
8498         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
8499         MIPS32R2, and MIPS64.
8500         (LINK_SPEC): Pass -mips32r2 to linker.
8501         * config/mips/t-isa3264: Built -mips32r2 multilibs.
8502         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
8503         for mips32r2 in the -march description.  Alphabetically sort
8504         CPU names in the -march description.  Add long-missed -mips32
8505         and -mips64 to MIPS option summary.
8507         * config.gcc: Update copyright years to include 2003.
8508         * config/mips/mips.c: Likewise.
8509         * config/mips/mips.h: Likewise.
8510         * config/mips/mips.md: Likewise.
8511         * config/mips/netbsd.h: Likewise.
8512         * doc/invoke.texi: Likewise.
8514 2003-01-08  Andreas Schwab  <schwab@suse.de>
8516         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
8517         variable.
8518         * configure: Regenerated.
8520 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
8522         * config/h8300/h8300.c (output_logical_op): Replace byte/word
8523         extraction of det with b0, b1, w0, w2, etc.
8524         (compute_logical_op_length): Likewise.
8525         (compute_logical_op_cc): Likewise.
8527 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
8529         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
8530         HIGH on all variants.
8532 2003-01-08  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
8534         * Makefile.in (PARTITION_H): New.
8535         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
8536         * basic-block.h: Include hard-reg-set.h.
8538 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
8540         * arm.h (ENABLE_XF_PATTERNS): Delete.
8541         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
8542         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
8543         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
8544         (cmpxf_trap): Delete.
8545         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
8547 2003-01-08  Jan Hubicka  <jh@suse.cz>
8549         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
8550         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
8551         (add??cc): New expanders.
8552         * i386.c (expand_int_addcc): New function.
8553         * i386-protos.h (expand_int_addcc): Declare.
8555         * alias.c (memory_modified_1): New static function.
8556         (memory_modified): New static varaible.
8557         (memory_modified_in_insn_p): New global function.
8558         * rtl.h (memory_modified_in_insn_p): Declare.
8559         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
8560         references.
8562         * expr.h (emit_conditional_add): Declare.
8564 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
8566         PR other/8947
8567         * doc/invoke.texi (-malign-double): Explain that the option breaks
8568         binary compatibility.
8570 2003-01-08  Andreas Schwab  <schwab@suse.de>
8572         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
8573         should come from the generic *-*-linux* entry.
8575 2003-01-07  Jan Hubicka  <jh@suse.cz>
8577         * cselib.c (cselib_current_insn_in_libcall): New static variable.
8578         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
8579         we are inside libcall.
8580         * cselib.h (elt_loc_list): Add in_libcall.
8581         * gcse.c (do_local_cprop): Do not copy propagate using insns
8582         in libcalls.
8584 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
8586         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
8587         not normally affect to issue rate.
8589 2003-01-07  Jan Hubicka  <jh@suse.cz>
8591         * genopinit.c (optabs): Add addc_optab.
8592         * ifcvt.c (noce_try_store_flag): Rename to ...
8593         (noce_try_addcc): ... this one; handle generic conditional increment.
8594         (noce_process_if_block): Update noce_try_addcc call.
8595         * optabs.c (emit_conditional_add): New.
8596         (init_obtabs): Initialize addc_optab.
8597         * optabs.h (optab_index): Add OTI_addcc.
8598         (addcc_optab): New macro.
8599         * md.texi: Document addMcc
8601         PR target/8322
8602         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
8603         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
8604         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
8606         * reload1.c (delete_output_reload): Avoid repeated attempts
8607         to delete insn.
8609 2003-01-07  Andreas Schwab  <schwab@suse.de>
8611         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
8612         Move --enable-initfini-array check ...
8613         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
8614         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
8615         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
8616         * configure: Rebuild.
8618 2003-01-07  Richard Henderson  <rth@redhat.com>
8620         * alias.c (find_base_value): Only use new_reg_base_value shortcut
8621         if the register is set once.
8623 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
8625         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
8626         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
8627         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
8629 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
8630             Sunil Davasam  <sunil.k.davasam@intel.com>
8632         PR libstdc++/9076
8633         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
8634         DW_CFA_same_value, read next and ignore.
8636 2003-01-07  Richard Henderson  <rth@redhat.com>
8638         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
8640 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
8642         * cfg.c: Include alloc-pool.h
8643         (edge_pool): New pool.
8644         (bb_pool): New pool.
8645         (first_deleted_edge): Remove.
8646         (first_deleted_block): Remove.
8647         (init_flow): Alloc/free the pools.
8648         (free_edge): Use pools.
8649         (alloc_block): Ditto.
8650         (expunge_block): Ditto.
8651         (cached_make_edge): Ditto.
8653         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
8655 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
8657         * et-forest.c: Include alloc-pool.h.
8658         (struct et_forest): Add node_pool and occur_pool.
8659         (et_forest_create): Create the new pools.
8660         (et_forest_delete): Delete them.
8661         (et_forest_add_node): Allocate and free using pools.
8662         (et_forest_add_edge): Ditto.
8663         (et_forest_remove_node): Ditto.
8664         (et_forest_remove_edge): Ditto.
8666         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
8668 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
8670         * config/h8300/h8300.c (output_logical_op): Simplify and
8671         optimize the handling of SImode.
8672         * config/h8300/h8300.c (compute_logical_op_length): Update
8673         accordingly.
8674         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
8676 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
8678         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
8679         big-endian correction to indirect arguments too.
8681 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
8683         Segher Boessenkool  <segher@koffie.nl>
8685         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
8686         (alt_reg_names): Ditto, fix formatting.
8687         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
8689 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
8691         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
8692         (output_logical_op): Constify intval and det.
8693         (compute_logical_length): Likewise.
8694         (compute_logical_cc): Likewise.
8695         (output_a_shift): Constify mask.
8696         (h8300_encode_label): Constify len.
8698 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
8700         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
8701         (h8300_expand_epilogue): Likewise.
8703 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
8705         Segher Boessenkool  <segher@koffie.nl>
8707         * config/rs6000/altivec.md: Remove spaces from assembler
8708         instruction argument lists.
8710 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8712         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
8713         c4x_assembler_function_p.
8714         (c4x_null_epilogue_p): Complement return value, all uses updated.
8715         (c4x_insert_attributes): Add naked.
8716         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
8717         * doc/extend.texi: Update C4x function attributes.
8719 2003-01-06  Richard Henderson  <rth@redhat.com>
8721         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
8722         properly when changing "local-ness".
8723         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
8725 2003-01-06  Dale Johannesen  <dalej@apple.com>
8727         * config/darwin-protos.h:  Add prototypes for new section functions.
8729 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
8731         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
8732         to EABI.
8734 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
8736         * hwint.h: If the current compiler has no 64-bit type at all,
8737         make HOST_WIDEST_INT 32 bits.
8739 2003-01-06  Eric Christopher  <echristo@redhat.com>
8741         * config/mips/mips.md (movdf_internal2): Fix constraints.
8743 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
8745         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
8747 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
8749         * config/mips/mips.md (leadi): Use dla rather than la.
8751 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
8753         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
8754         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
8756 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
8758         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
8759         redefinition.
8761 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
8763         * config/h8300/h8300.md (*extzv_8_23): New.
8765 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8767         * pa64-hpux.h (JCR_SECTION_NAME): Define.
8768         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
8769         USE_EH_FRAME_REGISTRY when defining.
8771 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
8773         * config/h8300/h8300.c (output_a_shift): Do not output a
8774         variable shift.
8775         * config/h8300/h8300.md (two splitters): New.
8777 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
8779         * config/mips/mips.md: Disable the movstrsi define_split.
8781 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8783         * alloc-pool.c: Don't include "libiberty.h".
8784         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
8785         * convert.c (convert_to_real): Hide unused variable.
8787 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8789         * Makefile.in (gtyp-gen.h): Const-ify.
8790         * gcov-dump.c (tag_table): Likewise.
8792 2003-01-04  Bruce Korb  <bkorb@gnu.org>
8794         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
8795         of *both* the file name and the fix name.
8797 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
8799         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
8800         collect2.
8801         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
8802         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
8803         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
8804         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
8805         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
8806         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
8807         elfos.h.
8808         (EH_FRAME_IN_DATA_SECTION): Delete define.
8809         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
8810         (STARTFILE_SPEC): Use crtbegin.o.
8811         (ENDFILE_SPEC): Use crtend.o.
8812         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
8813         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
8814         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
8815         DTOR_LIST_BEGIN): Define.
8816         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
8817         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
8818         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
8820 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
8822         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
8823         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
8824         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
8825         Cleanup handling of replacement text.
8826         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
8828 2003-01-04  Bruce Korb  <bkorb@gnu.org>
8830         * fixinc/tests/base/math.h: removed obsolete results
8831         * fixinc/tests/base/stdlib.h: ditto
8832         * fixinc/tests/base/sys/param.h: ditto
8833         * fixinc/tests/base/sys/stat.h: ditto
8834         * fixinc/tests/base/time.h: ditto
8835         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
8836         * fixinc/tests/base/sys/byteorder.h: ditto
8837         * fixinc/inclhack.def: Remove superfluous backslashes
8839 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
8841         * config/h8300/h8300-protos.h: Add prototypes for
8842         the new functions defined below.
8843         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
8844         define.
8845         (dosize): Emit RTL instead of assembly code.
8846         (push): Likewise.
8847         (pop): Likewise.
8848         (h8300_output_function_prologue): Remove.
8849         (h8300_expand_prologue): New.
8850         (h8300_expand_epilogue): New.
8851         (h8300_output_function_epilogue): Do only the reset of
8852         pragma_saveall.
8853         * config/h8300/h8300.md (push_h8300): New.
8854         (push_h8300hs): Likewise.
8855         (pop_h8300): Likewise.
8856         (pop_h8300hs): Likewise.
8857         (*stm_h8300s_2): Change the name to stm_h8300s_2.
8858         (*stm_h8300s_3): Change the name to stm_h8300s_3.
8859         (*stm_h8300s_4): Change the name to stm_h8300s_4.
8860         (*ldm_h8300s_2): New.
8861         (*ldm_h8300s_3): Likewise.
8862         (*ldm_h8300s_4): Likewise.
8863         (return): Likewise.
8864         (*return_1): Likewise.
8865         (prologue): Likewise.
8866         (epilogue): Likewise.
8867         (monitor_prologue): Likewise.
8869 2003-01-03  Dale Johannesen  <dalej@apple.com>
8871         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
8872           machopic_picsymbol_stub1.
8873           (EXTRA_SECTION_FUNCTIONS):  Ditto.
8874         * rs6000/rs6000.c:  Update copyright.
8875           (machopic_output_stub):  Use them.  Remove an insn from stub code.
8877 2003-01-02  Jason Merrill  <jason@redhat.com>
8879         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
8881         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
8882         static/external decls.
8884         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
8885         outermost scope.
8886         * c-decl.c (c_make_fname_decl): Push the decls there, too.
8888 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
8890         * config/h8300/h8300-protos.h: Add a prototype for
8891         h8300_current_function_interrupt_function_p.
8892         * config/h8300/h8300.c (interrupt_handler): Remove.
8893         (os_task): Likewise.
8894         (monitor): Likewise.
8895         (pragma_interrupt): New.
8896         (WORD_REG_USED): Use
8897         h8300_current_function_interrupt_function_p.
8898         (dosize): Likewise.
8899         (h8300_output_function_prologue): Likewise.
8900         Do not set interrupt_handler, os_task, monitor.
8901         (h8300_output_function_prologue): Use
8902         h8300_current_function_interrupt_function_p.
8903         Do not set interrupt_handler, os_task, monitor.
8904         (h8300_current_function_interrupt_function_p): New.
8905         (h8300_pr_interrupt): Set pragma_interrupt.
8906         (h8300_insert_attributes): Reset pragma_interrupt.
8908 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8910         * doc/install.texi (Configuration): Fix markup for reference to
8911         gcc/config.gcc.
8913 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
8915         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
8916         (*iorhi3_two_qi): Likewise.
8917         (*iorsi3_zexthi): Likewise.
8918         (*xorhi3_zextqi): Likewise.
8919         (*xorsi3_zexthi): Likewise.
8920         (*xorsi3_zextqi): Likewise.
8922 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
8924         * config/h8300/h8300.c (stack_pointer_operand): New.
8925         (const_int_gt_2_operand): Likewise.
8926         (const_int_ge_8_operand): Likewise.
8927         * config/h8300/h8300.md (a splitter): Likewise.
8928         (a peephole2): Likewise.
8929         * config/h8300/h8300-protos.h: Add prototypes for the new
8930         functions above.
8932 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
8934         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
8935         objc/objc-act.h: Fix copyright years.
8937 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
8939         * doc/passes.texi: Fix documentation for -fssa-ccp
8941 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
8943         * gccbug.in: Update for new categories.
8945 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
8947         * config/h8300/h8300.md: Reorder some patterns.
8949 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
8951         * config/h8300/h8300.c (output_logical_op): Fix a warning.
8953 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
8955         * config/darwin-protos.h, config/c4x/c4x-protos.h,
8956         config/cris/cris-protos.h, config/i370/i370-protos.h,
8957         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
8958         config/v850/v850-protos.h: Use struct, and don't conditionally
8959         compile on GCC_C_PRAGMA_H.
8961 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
8963         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
8964         * config/h8300/h8300-protos.h: Likewise.
8965         * config/sh/sh-protos.h: Likewise.
8967 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
8969         * config/arm/arm-protos.h: Use struct cpp_reader instead of
8970         cpp_reader.
8971         * config/h8300/h8300-protos.h: Likewise.
8972         * config/sh/sh-protos.h: Likewise.
8974 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
8976         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
8977         arm_pr_long_calls_off): Use struct.
8978         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
8979         : Similarly.
8980         Don't include cpplib.h.
8981         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
8982         sh_pr_nosave_low_regs): Similarly.
8984 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
8986         * config/h8300/h8300.c: Include cpplib.h.
8988 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
8990         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
8991           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
8992           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
8993           "GCC" in the copyright header.
8995 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
8997         * c-pragma.c (c_register_pragma): New.
8998         (init_pragma): Use it.
8999         * c-pragma.h (cpp_register_pragma): Don't declare.
9000         (c_register_pragma): New.
9001         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
9002         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
9003         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
9004         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
9005         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
9006         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
9007         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
9008         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
9009         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
9010         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
9011         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
9012         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
9014 See ChangeLog.8 for earlier changes.