OSDN Git Service

791d08cbf6515a1ffbab4ffe09183e5920faf1b8
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-03-21  Jason Merrill  <jason@redhat.com>
2
3         PR optimization/10171
4         * unroll.c (unroll_loop): Don't delete the jump at the end unless
5         we also delete a jump at the beginning.
6
7 2003-03-25  Stephane Carrez  <stcarrez@nerim.fr>
8
9         * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
10         contributor.
11
12 Tue Mar 25 20:35:51 CET 2003  Jan Hubicka  <jh@suse.cz>
13
14         * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
15         constants are not expensive.
16
17 Mon Mar 24 20:03:03 CET 2003  Jan Hubicka  <jh@suse.cz>
18
19         PR opt/10056
20         * cfglayout.c (fixup_reorder_chain):  Fix dealing with the conditional
21         jump jumping to the next instruction.
22         * cfgrtl.c (force_nonfallthru_and_redirect):  Likewise.
23
24 2003-03-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
25
26         * doc/passes.texi (Passes): Properly document that we do not
27         perform jump2 any longer; remove command-line option -dJ.
28
29 2003-03-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
30
31         PR optimization/8746
32         * config/i386/i386.md (and promoting splitters): Disable HImode to
33         SImode promoting when the sign bit matters and is not preserved, or
34         when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
35         for size.
36
37 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
38
39         * config/h8300/h8300.md (a peephole2): Extend to support loads
40         in QImode and HImode.
41
42 2003-03-24  Stephane Carrez  <stcarrez@nerim.fr>
43
44         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
45         _return_far
46         (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
47         (MULTILIB_EXCEPTIONS): Likewise.
48         * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
49         by calling some board support routine.
50         ("call_value"): Likewise.
51         ("*return_void"): Likewise for return.
52         ("*return_16bit"): Likewise.
53         ("*return_32bit"): Likewise.
54         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
55         for 68HC11 too.
56         (DWARF2_ADDR_SIZE): Use 4 so that addresses can 
57         * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
58         -mlong-calls for 68HC11.
59         * config/m68hc11/larith.asm (declare_near): New macro.
60         (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
61         (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
62         (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
63         (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
64         (__mulhi32): Likewise.
65         (ret): Update macro for 68HC11.
66         (__far_trampoline): Implement for 68HC11.
67         (__call_a16, __call_a32, __return_void, __return_16): New support
68         routines for 68HC11 memory bank switching calling support.
69         (__return_32): Likewise.
70
71 2003-03-24  Neil Booth  <neil@daikokuya.co.uk>
72
73         * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
74
75 2003-03-24  Janis Johnson  <janis187@us.ibm.com>
76
77         * doc/install.texi (Testing): Mention test result links from build
78         status pages.
79
80 2003-03-24  Mark Mitchell  <mark@codesourcery.com>
81
82         * function.c (put_var_into_stack): Change bool parameter to int.
83         (gen_mem_addressof): Likewise.
84         * rtl.h (gen_mem_addressof): Likewise.
85         * tree.h (put_var_into_stack): Likewise.
86         * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
87         gen_mem_addressof or put_var_into_stack.
88         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
89         * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
90
91 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
92
93         * config/h8300/h8300.md (a peephole2): New.
94
95 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
96
97         * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
98
99 2003-03-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
100
101         * doc/contrib.texi (Contributors): Update Janis Johnson.
102
103 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
104
105         PR target/10072
106         * combine.c (simplify_if_then_else): Check that the mode
107         has MODE_INT class before applying the (OP Z (mult COND C2))
108         transformation.
109
110 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
111
112         PR optimization/9414
113         * config/sparc/sparc.md (widening peepholes): Use
114         widen_memory_access instead of change_address.
115
116 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
117
118         PR c++/7086
119         * c-typeck.c (c_mark_addressable): Adjust calls to
120         put_var_into_stack.
121         * expr.c (expand_expr): Likewise.
122         * function.c (put_var_into_stack): Add rescan parameter.  Do not
123         call fixup_var_refs when rescan is false.
124         (gen_mem_addressof): Likewise.
125         (assign_parms): Adjust calls to put_var_into_stack.
126         (setjmp_protect): Likewise.
127         (setjmp_protect_args): Likewise.
128         * rtl.h (gen_mem_addressof): Change prototype.
129         * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
130         * tree.h (put_var_into_stack): Change prototype.
131
132 2003-03-23  Arpad Beszedes <beszedes@cc.u-szeged.hu>
133
134         PR middle-end/9967
135         * builtins.c (expand_builtin_fputs): When optimizing for size,
136         don't transform fputs into fwrite.
137
138 2003-03-23  Glen Nakamura <glen@imodulo.com>
139
140         PR c/8224
141         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
142         when signedness changes for division or modulus.
143
144 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
145
146         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
147         globalize_label.
148
149 2003-03-23  Roger Sayle  <roger@eyesopen.com>
150
151         PR c/10178
152         * stmt.c (expand_end_case_type): Check for overflow in range when
153         determining whether to use a bit-test implementation.
154
155 2003-03-23  Richard Henderson  <rth@redhat.com>
156
157         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
158         before flow2.
159         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
160
161 2003-03-23  Richard Henderson  <rth@redhat.com>
162
163         PR opt/10116
164         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
165         from then_bb or else_bb after flow2.
166
167 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
168
169         * configure.in: Check whether it is necessary to link against
170         libm to use ldexp.
171         * configure: Regenerate.
172         * Makefile.in: Add LDEXP_LIB substitution variable.
173
174 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
175
176         * config/h8300/h8300.md: Fix comment typos.
177
178 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
179
180         * pa.c (output_cbranch): Fix typo in comment.
181
182 2003-03-22  Richard Henderson <rth@redhat.com>
183
184         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
185         after reload.
186
187 2003-03-22  DJ Delorie  <dj at redhat dot com>,
188         Bruce Korb  <bkorb at gnu dot org>
189
190         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
191         buggy Solaris 2.6 mutex/cond initializers.
192         (solaris_mutex_init): Rename to solaris_mutex_init_2.
193         * fixinc/fixincl.x: Regenerate.
194         * fixinc/tests/base/pthread.h: Update.
195         * fixinc/fixincl.c(initialize): be explicit about the default case
196         and indicate verbose level when being very, very verbose.
197         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
198
199 2003-03-22  Andreas Jaeger  <aj@suse.de>
200
201         * config/i386/i386.c (ix86_init_machine_status): Return value.
202
203 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
204
205         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
206         conditional branch to the following instruction.  Use next_real_insn
207         instead of next_active_insn.
208         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
209         instead of next_active_insn.
210
211 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
212
213         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
214         instead of 'm' constraint in forced-split alternatives.
215         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
216         VALIDATE_ADDRESS parameter to operand_subword.
217
218 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
219
220         * config/h8300/h8300.c (notice_update_cc): Correctly handle
221         the case where the set destination is STRICT_LOW_PART.
222
223 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
224
225         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
226         c30 instead of a c40 processor.
227
228 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
229
230         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
231
232 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
233
234         * c-common.c: Include intl.h.
235         (shadow_warning): Rewrite to allow better diagnostic translations.
236         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
237         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
238         use it throughout.
239         * Makefile.in (c-common.o): Add intl.h.
240
241 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
242
243         * config.gcc: Remove 'float_format'.
244
245         * fixproto: Define NULL and size_t in generated stdlib.h and
246         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
247         Rearrange file generation loop for readability.  Generate time.h,
248         string.h if missing.
249         * tsystem.h: Include <string.h>, <time.h> unconditionally.
250         * config.gcc: Blow away POSIX defines.
251
252 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
253
254         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
255
256 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
257
258         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
259         writing .interrupt command.
260         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
261         if it's a far or near function.
262         ("call_value"): Likewise.
263         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
264         near attributes.
265         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
266         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
267         (m68hc11_initial_elimination_offset): Set current_function_far
268         according to attributes.
269         (expand_prologue): Likewise.
270         (trap_handler_symbol): New global to keep track of trap handlers.
271         (m68hc11_encode_section_info): Mark symbol as far if needed; set
272         trap symbol.
273         (m68hc11_is_far_symbol): New function.
274         (m68hc11_is_trap_symbol): New function.
275         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
276         (m68hc11_is_trap_symbol): Declare.
277
278 2003-03-21  Jan Hubicka  <jh@suse.cz>
279
280         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
281         only when amount of saved regs changed.
282         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
283         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
284
285 2003-03-21  Jan Hubicka  <jh@suse.cz>
286
287         PR inline-asm/7916
288         * function.c (instantiate_virtual_regs_lossage): New function.
289         (instantiate_virtual_regs_1): Use it.
290         (instantiate_virtual_regs): Do not continue in substition when insn has
291         been deleted.
292
293 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
294
295         * combine.c (make_field_assignment): Fix a warning.
296
297 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
298
299         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
300
301 2003-03-21  Dale Johannesen  <dalej@apple.com>
302
303         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
304         priority for R2 on Darwin.
305         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
306
307 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
308
309         * combine.c (make_field_assignment): Remove unnecessary AND
310         when storing into zero_extract.
311
312 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
313
314         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
315         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
316         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
317         in comment.
318
319 2003-03-21  DJ Delorie  <dj@redhat.com>
320
321         * optabs.c (init_integral_libfuncs): Make sure we init at least up
322         to "long long" size words.
323
324 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
325
326         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
327         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
328         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
329
330 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
331
332         PR doc-bug/9813
333         * doc/extend.texi: Move misplaced paragraph about underscores in
334         variables in macros.
335
336 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
337             Richard Henderson  <rth@redhat.com>
338
339         PR optimization/8366
340         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
341         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
342         PIC+SYMBOLIC_CONST in other modes than Pmode.
343         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
344         the form PIC+SYMBOLIC_CONST as mode dependent.
345
346 2003-03-21  DJ Delorie  <dj@redhat.com>
347
348         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
349         sure we always emit at least one insn.
350
351 2003-03-21  Christopher Faylor  <cgf@redhat.com>
352
353         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
354         stub t-cygming. Use common target header cygming.h. Add extra
355         c_target_obj and cxx_target_obj file. Default cygwin to posix
356         threading. Enforce i386 as float format.
357         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
358         Remove cygwin.h as target header. Use common target header
359         cygming.h  Enforce i386 as float format. Correct typo.
360         * config/i386/cygming.h: New file, containing definitions
361         common to mingw32 and cygwin.
362         * config/i386/cygwin.h: Remove definitions common to cygwin and
363         mingw.  Simplify special spec logic.  Define "wrappers" around
364         certain include path defines to accommodate -mno-cygwin.
365         Remove some #if 0'ed code.
366         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
367         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
368         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
369         * config/i386/mingw32.h: Remove definitions common to cygwin and
370         mingw.
371         (EXTRA_OS_CPP_BUILTINS): Adjust.
372         (TARGET_VERSION): Define.
373         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
374         mingw32.h definitions.
375         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
376         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
377         Add compilation rules for cygwin1.o cygwin2.o.
378         * config/i386/cygwin1.c: New file.
379         * config/i386/cygwin2.c: New file.
380         * config/i386/t-cygming: New makefile stub.
381
382 2003-03-20  Richard Henderson  <rth@redhat.com>
383
384         * fold-const.c (extract_muldiv_1): Revert changing order of
385         operands in case MULT_EXPR of 2003-02-16 patch.
386
387 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
388         Merge changes from new-regalloc-branch
389
390         From Michael Matz  <matz@suse.de>
391         * df.c (df_ref_record_1): Move init of loc to safe point.
392         Only recurse on interesting things in parallels.
393         Handle CLASS_CANNOT_CHANGE_MODE smarter.
394         (df_uses_record): Ditto.
395
396         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
397         it's already okay to use memory operands in (IE doesn't require
398         adding another insn or anything).
399
400 2003-03-20  Richard Henderson  <rth@redhat.com>
401
402         PR middle-end/6348
403         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
404         different from word_mode.
405
406 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
407
408         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
409         source operand to those that can be extracted with bld.
410
411 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
412
413         PR 10066
414         * arm.md (UNSPEC_PIC_BASE): New constant.
415         (pic_add_dot_plus_four): Wrap with unspec.
416         (pic_add_dot_plus_eight): Likewise.
417
418 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
419
420         * config/h8300/h8300.md (*insv_si_1_n): New.
421         (*insv_si_1_n_lshiftrt): Likewise.
422
423 2003-03-20  Roger Sayle  <roger@eyesopen.com>
424
425         * fold-const.c (fold_mathfn_compare): New function to simplify
426         comparisons against built-in math functions.  Fold comparisons
427         of sqrt against constants.
428         (fold): Call fold_mathfn_compare when appropriate.
429
430 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
431
432         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
433         information.
434
435 2003-03-20  Per Bothner  <pbothner@apple.com>
436
437         Various cleanups to help compile server.
438
439         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
440         and pass that to _cpp_init_hashtable.
441         (cpp_read_main_file):  Drop hash_table* argument; don't call
442         _cpp_init_hashtable.
443         * cpplib.h:  Update declarations to match.
444         * c-opts.c (c_common_init_options):  Pass ident_hash to
445         cpp_create_reader.
446         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
447         * fix-header.c (read_scan_file):  Likewise pass NULL table to
448         cpp_create_reader rather than cpp_read_main_file.
449
450         * cppfiles.c (cpp_rename_file):  Generalized and renamed
451         to cpp_change_file.
452         * cpplib.h:  Update declaration to match.
453         * c-opts.c (push_command_line_line, finish_options):  Change
454         cpp_rename_file calls to cpp_change_file.
455
456         * line-map.c (add_line_map):  Allow leaving the outermost file.
457         Allowing entering an outermost-file after the initial time.
458
459         * toplev.c (pop_srcloc):  Allow popping from initial file.
460
461 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
462
463         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
464
465 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
466
467         * config/h8300/h8300.md (a peephole2): New.
468
469 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
470
471         * config/h8300/h8300.md (*addsi3_and_r_1): New.
472         (*addsi3_and_not_r_1): Likewise.
473
474 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
475
476         * Makefile.in (STRICT2_WARN): Add @WERROR@.
477         (GCC_WARN_CFLAGS): Remove $(WERROR).
478         (fixinc.sh-warn): New.
479         * ada/Make-lang.in (ada-warn): Add $(WERROR).
480         * cp/Make-lang.in (cp-warn): Add $(WERROR).
481         * f/Make-lang.in (f-warn): Add $(WERROR).
482         * java/Make-lang.in (java-warn): Add $(WERROR).
483         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
484
485 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
486
487         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
488         langhooks-def.h (lhd_tree_dump_dump_tree),
489         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
490         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
491         true and false in return statements.
492
493 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
494
495         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
496         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
497         DWARF_INITIAL_LENGTH_SIZE.
498         (output_compilation_unit_header, output_pubnames, output_aranges)
499         (output_line_info): Output 0xffffffff escape value for 64-bit
500         DWARF extension.
501         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
502
503 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
504
505         * config/s390/s390.c (s390_preferred_reload_class): Do not
506         force constants to the pool unless necessary.
507         (s390_decompose_address): Prefer to use pointer as base,
508         not index register.
509         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
510         Q alternative.
511         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
512         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
513         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
514         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
515         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
516
517 2003-03-19  Jan Hubicka  <jh@suse.cz>
518
519         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
520         * i386.c (use_fast_prologue_epilogue): Remove.
521         (ix86_frame): New field save_regs-using_mov;
522         (ix86_compute_frame_layout):  Decide on fast prologues;
523         allocate saved registers in red zone.
524         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
525
526 2003-03-19  Nick Clifton  <nickc@redhat.com>
527
528         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
529
530 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
531
532         PR 10062
533         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
534         * pa-protos.h (output_lbranch): New prototype.
535         * pa.c (compute_frame_size): Change size of the frame marker on the
536         64-bit ports to 48 bytes.
537         (pa_output_function_prologue): Document why SAVE_SP is set.
538         (hppa_expand_prologue): Save previous stack pointer into frame marker
539         on targets which use the hpux unwind library.
540         (output_cbranch): Use output_lbranch.
541         (output_lbranch): New function to output long unconditional branches.
542         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
543         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
544         64-bit ports.
545         * pa.md (jump): Use output_lbranch.
546         (allocate_stack): New expander for dynamic stack allocation.
547
548 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
549
550         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
551         when debugging on XCOFF targets.  Delete "abi" temp.
552
553         PR target/10073
554         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
555
556 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
557
558         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
559         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
560         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
561
562         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
563         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
564         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
565
566 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
567
568         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
569         the result of machopic_function_base_name.
570         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
571         string rather than a static array.
572
573         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
574
575         * gengtype.c: Include rtl.h.
576         (enum rtx_code): Don't define.
577         (rtx_format): Make declaration match rtl.h.
578         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
579         users.
580         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
581         * Makefile.in (gengtype.o): Update dependencies.
582
583 2003-03-18  Andreas Schwab  <schwab@suse.de>
584
585         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
586         martin@blom.org.
587
588 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
589
590         * function.c (next_block_index): Mark with GTY.
591
592         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
593
594 2003-03-18  Richard Henderson  <rth@redhat.com>
595
596         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
597         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
598         until after reload.
599
600 2003-03-18  Richard Henderson  <rth@redhat.com>
601
602         * builtins.c (expand_builtin_unop): New target_mode operand;
603         use it to convert the result to the correct mode.
604         (expand_builtin): Update all callers.
605
606 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
607
608         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
609
610 2003-03-18  Jan Hubicka  <jh@suse.cz>
611
612         * i386.md:  Fix previous commit that mistakely applied the patch
613         twice.
614
615         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
616         canonicalized.
617         (memrefs_conflict_p): Likewise.
618         (addr_side_effect_eval): Canonicalize the constructed address.
619
620 2003-03-18  Jan Hubicka  <jh@suse.cz>
621
622         * i386.md (cvtts?2si peep2): New.
623
624 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
625
626         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
627
628 2003-03-18  Andreas Schwab  <schwab@suse.de>
629
630         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
631         for format.
632
633 2003-03-17  Jason Merrill  <jason@redhat.com>
634
635         PR c++/10091
636         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
637         an unaligned member of TREE_ADDRESSABLE type.
638
639 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
640
641         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
642         (TARGET_PROFILE_KERNEL): Define.
643         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
644         (PROFILE_BEFORE_PROLOGUE): Don't define.
645         (PROFILE_KERNEL): Remove hacks.
646         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
647         (rs6000_stack_info): No need to save lr if just for profiling when
648         TARGET_PROFILE_KERNEL.
649         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
650         (output_function_profiler): Localize label generation.  Emit code
651         for kernel profiling.
652
653 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
654
655         * config/h8300/h8300-protos.h: Add a prototype for
656         byte_accesses_mergeable_p.
657         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
658         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
659         (a splitter): Likewise.
660         (*iorsi3_ashift_16_ashift_24): Likewise.
661         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
662
663 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
664
665         * dwarf2asm.h: Delete obsolete comment.
666         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
667         dw2_asm_output_pcrel, dw2_asm_output_addr,
668         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
669         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
670         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
671         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
672
673 2003-03-17  Zack Weinberg <zack@codesourcery.com>
674
675         * c-tree.h (struct lang_identifier): Remove error_locus field.
676         (IDENTIFIER_ERROR_LOCUS): Kill.
677         (record_function_scope_shadow): New prototype.
678         * c-typeck.c (build_external_ref): Don't complain if
679         decl is error_mark_node.  When not at file scope, bind the
680         decl's local value to error_mark_node to suppress further
681         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
682
683         * c-decl.c (get_function_binding_level): New static function.
684         (record_function_scope_shadow): New exported function.
685         (c_make_fname_decl): Use get_function_binding_level.
686
687 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
688
689         * stmt.c (tail_recursion_args): Call promote_mode to set
690         unsignedp flag correctly before calling convert_move.
691
692 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
693
694         * loop-unroll.c (decide_peel_completely,
695         decide_unroll_constant_iterations, decide_unroll_stupid,
696         decide_unroll_runtime_iterations, decide_peel_simple): Set
697         loop->has_desc.
698
699 2003-03-17  Jan Hubicka  <jh@suse.cz>
700
701         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
702
703 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
704
705         * function.c (assign_parms): For a struct value address passed as
706         first argument, delay the function's result RTL setup code until
707         after the emission of parameter conversions.
708
709 2003-03-17  Dave Love  <fx@gnu.org>
710             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
711
712         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
713         __arch64__ to match Compaq cc.
714
715 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
716
717         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
718         (c_common_init): Set EBCDIC in cpp options.
719         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
720         not conditional compilation.
721         * cpplib.h (struct cpp_options): New entry EBCDIC.
722
723 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
724
725         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
726
727 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
728
729         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
730         argument to 0 for redirect_jump.
731
732 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
733
734         PR c++/8805
735         * except.c (eh_region_u_cleanup): Add prev_try.
736         (expand_eh_region_end_cleanup): Set it.
737         (reachable_handlers): Use it to skip over cleanup blocks.
738
739 2003-03-17  Andreas Jaeger  <aj@suse.de>
740
741         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
742
743 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
744
745         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
746         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
747         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
748         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
749
750 2003-03-16  Richard Henderson  <rth@redhat.com>
751
752         * simplify-rtx (simplify_binary_operation): Don't abort for
753         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
754
755 2003-03-16  Richard Henderson  <rth@redhat.com>
756
757         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
758         optimize_size as well.
759
760 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
761
762         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
763         for D register to specify the low part of it, aka B.
764         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
765         the register if we are loading 1 or -1 to it; avoid using temp
766         register when moving X/Y to Y/X.
767         (m68hc11_gen_movqi): Likewise.
768         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
769
770 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
771
772         PR optimization/9016
773         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
774         into the constant pool.
775
776 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
777
778         PR target/9164
779         * tree.c (get_narrower): For extensions with unchanged bit number,
780         return the unsignedness of the outer mode.
781
782 2003-03-16  Roger Sayle  <roger@eyesopen.com>
783
784         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
785         to avoid "may be used uninitialized" warning on ia64-hpux.
786         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
787
788 2003-03-16  Andreas Jaeger  <aj@suse.de>
789
790         * configure.in: Improve check for memcheck.h.
791         * configure: Regenerated.
792
793 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
794
795         * doc/cppopts.texi: Remove documentation of -A-.
796
797 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
798
799         * doc/libgcc.texi: Remove @tie.
800
801 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
802
803         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
804         (rtx_pair): Added new element update_label_nuses, renamed to
805         replace_label_data.
806         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
807         replace_label_data instead of rtx_pair.
808         * loop.c (load_mems): Likewise.
809         * rtlanal.c (replace_label): Replace label in pool constants and in
810         INSN_LIST (in REG_LABEL note).
811         (subrtx_p): Renamed to rtx_referenced_p.
812         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
813         LABEL_REF with CODE_LABEL, traverse constants from pool.
814
815 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
816             Zack Weinberg  <zack@codesourcery.com>
817
818         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
819         * doc/libgcc.texi: New file.
820         * doc/interface.texi: Delete paragraph about libgcc interface.
821         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
822
823 2003-03-15  Jason Merrill  <jason@redhat.com>
824
825         PR debug/9039
826         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
827
828         PR debug/6387
829         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
830         function DIEs at toplevel.
831         (decls_for_scope): At -g1, don't descend into subblocks.
832
833 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
834
835         * varasm.c (struct rtx_const): Change type of un.addr member
836         to struct holding an additional 'symbol' member.
837         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
838         with equal string addresses as equal.
839         (simplify_subtraction): Adapt to struct rtx_const change.
840
841 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
842
843         * fix-header.c (read_scan_file): Read main file before handling -D.
844
845 2003-03-15  Roger Sayle  <roger@eyesopen.com>
846
847         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
848         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
849         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
850         (find_sub_basic_blocks): Likewise.
851         * cgraphunit.c (cgraph_expand_functions): Likewise.
852         * dwarf2out.c (prune_unused_types): Likewise.
853         * expr.c (store_field): Likewise.
854         * genextract.c (print_path): Likewise.
855         * haifa-sched.c (schedule_insn): Likewise.
856         * lcm.c (compute_antinout_edge): Likewise.
857         * loop-unroll.c (decide_peel_once_rolling): Likewise.
858         * ra-colorize.c (ra_colorize_free_all): Likewise.
859         * ra-debug.c (dump_igraph): Likewise.
860         (debug_hard_reg_set): Likewise.
861         * reg-stack.c (reg_to_stack): Likewise.
862         * rtlanal.c (refers_to_regno_p): Likewise.
863         * tracer.c (layout_superblocks): Likewise.
864
865 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
866
867         * fix-header.c (read_scan_file): Fix thinko.
868
869 2003-03-15  Glen Nakamura  <glen@imodulo.com>
870
871         * reload1.c (choose_reload_regs): Use && instead of ||
872         with REG_CANNOT_CHANGE_MODE_P condition.
873
874 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
875
876         * Makefile.in: Update.
877         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
878         * c-lex.c (init_c_lex): Register builtins hook is dead.
879         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
880         (c_common_decode_option): Don't call cpp_handle_option.
881         Handle -A, -D and -U.
882         (handle_deferred_opts): Simplify.
883         (finish_options): Define builtins and command line macros.
884         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
885         * cppinit.c: Don't include intl.h.
886         (init_builtins): Rename cpp_init_builtins.  No hook to call.
887         (init_library): Don't need to sort options.
888         (cpp_create_reader): Don't set pending.
889         (cpp_destroy): Don't free pending.
890         (struct pending_option, cl_directive_handler, struct cpp_pending,
891         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
892         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
893         cl_options, cpp_handle_option): Remove.
894         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
895         cpp_finish_options): Remove.
896         (cpp_init_builtins): New.
897         * fix-header.c (read_scan_file): Update to handle -D.  Fix
898         handling of -I.  Replace call to cpp_finish_options.
899
900 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
901
902         PR optimization/9387
903         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
904         for conditional returns.
905
906 2003-03-14  Jason Merrill  <jason@redhat.com>
907
908         PR optimization/6871
909         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
910
911 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
912
913         * c-opts.c (finish_options): New.
914         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
915         (missing_arg): Handle OPT_include and OPT_imacros.
916         (c_common_init, c_common_parse_file): Use finish_options.
917         (handle_deferred_opts): Update.
918         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
919         (cpp_finish_options): Don't handle -imacros here.
920         (no_fil): Remove.
921         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
922
923 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
924
925         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
926         rs6000_maybe_dead if !fromprolog.
927
928 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
929
930         * Makefile.in: Update.
931         * c-common.h (fe_file_change, pp_file_change): New.
932         * c-lex.c (init_c_lex): Don't set cb_file_change.
933         (c_common_parse_file): Move to c-opts.c.
934         (cb_file_change): Rename fe_file_change.
935         * c-opts.c: Include debug.h.
936         (warn_unused_macros, include_cursor): New.
937         (push_command_line_include, cb_file_change): New.
938         (COMMAND_LINE_OPTIONS): Handle -include.
939         (c_common_decode_option): Use local warn_unused_macros.
940         Handle OPT_include.
941         (c_common_post_options): Set file change callback.
942         (handle_deferred_opts): Skip -include.  Don't free the array.
943         (c_common_init): Call cpp_finish_options here, and push an
944         initial -include file.
945         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
946         (preprocess_file): Don't call cpp_finish_options.
947         (init_pp_output): Don't set the file change callback.
948         (pp_file_change): Return if no line commands or no output.
949         * cpphash.h (next_include_file, first_unused_line): Remove.
950         * cppinit.c (include_head, include_tail): Remove.
951         (cpp_destroy): Don't free -include chain.
952         (cpp_finish_options): Don't handle -include, or worry about
953         -Wunused-macros.
954         (_cpp_maybe_push_include_file): Remove.
955         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
956         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
957         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
958         Used flag is set based upon the state of the warn_unused_macros
959         flag, and so use of first_unused_line is unnecessary.
960
961 2003-03-13  Jan Hubicka  <jh@suse.cz>
962
963         * cselib.c (clear_table): Do not take argument; always clear just
964         used slots.
965         (cselib_process_insn):  Update call of clear_table
966         (cselib_init): Do not call clear_table.
967         (cselib_finish): Clear table.
968
969         * cse.c (count_reg_usage): Do not check side_effects_p.
970         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
971         like noop.
972         (find_reg_equal_equiv_note): Do not use find_reg_note.
973
974 2003-03-14  Richard Henderson  <rth@redhat.com>
975
976         PR target/9700
977         * config/alpha/alpha.c (alpha_va_start): Account for
978         current_function_pretend_args_size in the AP offset.
979
980         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
981         (INITIAL_ELIMINATION_OFFSET): Move out of line.
982         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
983         (alpha_initial_elimination_offset) New.
984         * config/alpha/alpha-protos.h: Update.
985
986 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
987
988         * stmt.c (expand_start_case): Call emit_queue ().
989
990 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
991             Alexandre Oliva  <aoliva@redhat.com>
992
993         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
994         words in new abis.
995
996 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
997
998         PR optimization/8396
999         * tree-inline.c (initialize_inlined_parameters): Make sure the value
1000         of read-only constant arguments is passed with the right type.
1001
1002 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
1003
1004         * doc/extend.texi (Function Names): Make the example compilable.
1005
1006 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
1007
1008         * config/rs6000/rs6000.c (processor_target_table): Really allow
1009         GP optional instructions on Power4.
1010
1011 2003-03-13  Roger Sayle  <roger@eyesopen.com>
1012
1013         * calls.c (flags_from_decl_or_type): Factor and remove redundant
1014         conditional tests.
1015
1016 2003-03-13  Mike Stump  <mrs@apple.com>
1017
1018         * ggc-page.c (struct page_entry): Remove varray.h header.
1019         Add index_by_depth field.
1020         Remove save_in_use_p field.
1021         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
1022         by_depth_max, by_depth, and save_in_use fields.
1023         (INITIAL_PTE_COUNT): Add.
1024         (save_in_use_p_i): Add.
1025         (save_in_use_p): Add.
1026         (adjust_depth): Add.
1027         (move_ptes_to_front): Add.
1028         (push_depth): Add.
1029         (push_by_depth): Add.
1030         (prefetch): Add.
1031         (free_page): Add support for and use faster data structures.
1032         (ggc_alloc): Likewise.
1033         (init_ggc): Likewise.
1034         (ggc_recalculate_in_use_p): Likewise.
1035         (ggc_pop_context): Likewise.
1036         (clear_marks): Likewise.
1037         (ggc_pch_read): Likewise.
1038         * Makefile.in (ggc-page.o): Remove varray.h.
1039
1040 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
1041
1042         * ChangeLog: Rotated last year's entries to...
1043         * ChangeLog.8: New.
1044
1045         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
1046         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
1047         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
1048         config/ia64/ia64-protos.h, config/ia64/ia64.c,
1049         config/ia64/ia64.h, config/ia64/ia64.md,
1050         config/ia64/itanium1.md, config/ia64/itanium2.md,
1051         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
1052         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
1053
1054 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
1055
1056         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
1057         Differentiate endianness.
1058         (s6000_override_options): Use cpu type instead of TARGET_SPE.
1059
1060 2003-03-13  Nick Clifton  <nickc@redhat.com>
1061
1062         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
1063         LDM instructions with writeback enabled.
1064         (output_return_instruction): Likewise.
1065
1066         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
1067         (CALL_USED_REGISTERS): Remove definition.
1068         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
1069
1070 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
1071
1072         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
1073         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
1074         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
1075         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
1076         (rs6000_legitimize_address): Formatting.
1077         (rs6000_emit_move): Likewise.
1078         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
1079         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
1080         (rs6000_elf_select_section): Comment reason for shlib being
1081         set for ABI_AIX.
1082         (rs6000_elf_unique_section): Likewise.
1083         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
1084         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
1085         as well as flag_pic.
1086         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
1087         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
1088         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
1089
1090 2003-03-13  Richard Henderson  <rth@redhat.com>
1091
1092         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
1093
1094         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
1095         (ia64_gp_save_reg): Remove.
1096         (struct ia64_frame_info): Move to the beginning of the file;
1097         add reg_save_gp.
1098         (ia64_expand_call): Rearrange for new call patterns.
1099         (ia64_reload_gp): New.
1100         (ia64_split_call): New.
1101         (ia64_compute_frame_size): Allocate reg_save_gp.
1102         (ia64_expand_prologue): Save reg_save_gp.
1103         (ia64_expand_epilogue): Don't restore gp.
1104         (ia64_hard_regno_rename_ok): Remove R4 hack.
1105         (ia64_function_ok_for_sibcall): New.
1106         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
1107         call try_split on sibcall pattern.
1108         * config/ia64/ia64-protos.h: Update.
1109         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
1110         Rename from nopic versions.  Confiscate 2nd argument to call as
1111         a marker.
1112         (call_pic, call_value_pic, sibcall_pic): Remove.
1113         (call_gp, call_value_gp, sibcall_gp): New.
1114         (builtin_setjmp_setup): Remove.
1115         (builtin_setjmp_receiver): Call ia64_reload_gp.
1116
1117 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
1118
1119         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
1120         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
1121         "GNU CC" with "GCC".
1122
1123         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
1124         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
1125         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
1126         GCC, not GNU CC.
1127
1128         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
1129         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
1130
1131         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
1132         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
1133         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
1134         "GNU CC" with "GCC".
1135
1136         * config/v850/lib1funcs.asm, config/v850/rtems.h,
1137         config/v850/v850-c.c, config/v850/v850-protos.h,
1138         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
1139         GCC, not GNU CC.
1140
1141         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
1142         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
1143         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
1144         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
1145         GNU CC.
1146
1147 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
1148
1149         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
1150
1151 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
1152
1153         * fixinc/fixinc.interix: Remove dead code (most of it).
1154         * fixinc/fixinc.dgux: Remove.
1155
1156         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
1157         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
1158
1159 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1160
1161         * pa.c (pa_init_builtins): Fix warning.
1162
1163 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
1164
1165         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
1166         (ASM_OUTPUT_XDATA_SHORT): Remove.
1167         (ASM_OUTPUT_XDATA_INT): Remove.
1168         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
1169         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
1170         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
1171         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
1172
1173 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
1174
1175         PR c++/7050
1176         * expr.c (store_expr): Don't attempt to store void-typed trees,
1177         just evaluate them for side effects.
1178
1179 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
1180
1181         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
1182         * cppinit.c (push_include): Move with changes to cppfiles.c.
1183         (cpp_read_main_file): Mark named operators here...
1184         (cpp_finish_options): ...not here.  Update.
1185         (_cpp_maybe_push_include_file): Update.
1186         * cpplib.h (cpp_push_include, cpp_rename_file): New.
1187
1188 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
1189
1190         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
1191         _gcc_COMPUTE_GAS_VERSION.
1192         * configure.in: Use them.
1193         * configure: Regenerate.
1194
1195 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
1196
1197         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
1198         to detect carry.
1199         (subdi3): Reorder emitted instructions.
1200
1201 2003-03-12  Andreas Jaeger  <aj@suse.de>
1202
1203         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
1204         NETBSD_OS_CPP_BUILTINS_LP64.
1205
1206 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
1207
1208         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
1209         Rearrange.  Reorganize.
1210         * configure.in: Rearrange.
1211         * configure: Regenerate.
1212
1213 2003-03-12  Andreas Jaeger  <aj@suse.de>
1214
1215         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
1216         LP64 targets.
1217
1218         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
1219         _LP64.
1220
1221         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
1222         _LP64 macros here.
1223         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
1224
1225         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
1226         NETBSD_OS_CPP_BUILTINS_LP64.
1227         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
1228         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
1229
1230         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
1231
1232 2003-03-12  Jan Hubicka  <jh@suse.cz>
1233
1234         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
1235
1236 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
1237
1238         Fix PR target/9797 and PR c/9853.
1239         * stmt.c (expand_decl_init): Call push_temp_slots () and
1240         pop_temp_slots ().
1241
1242 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
1243
1244         * sh.c: Include basic-block.h.
1245         (sh_output_mi_thunk, emit_load_ptr): New functions.
1246         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
1247
1248 2003-03-12  Nick Clifton  <nickc@redhat.com>
1249
1250         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
1251         (CALL_USED_REGISTERS): Likewise.
1252         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
1253         describing how this value is calculated.
1254
1255 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
1256
1257         * configure.in (rlim_t): Define to long if no valid definition
1258         found in sys/resource.h.
1259         * config.in, configure: Regenerate.
1260
1261 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
1262
1263         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
1264         TARGET_OS_CPP_BUILTINS.
1265         * config/mcore/mcore-pe.h: Similarly.
1266         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
1267         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
1268
1269 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
1270
1271         PR c/9928
1272         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
1273         only if it is a VAR_DECL.
1274
1275 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
1276
1277         PR optimization/9888
1278         * config/i386/i386.md (jcc_1): Fix range.
1279         (jcc_2): Likewise.
1280         (jump): LIkewise.
1281         (doloop_end_internal): Likewise.
1282
1283 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
1284
1285         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
1286         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
1287         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
1288         DLL_IMPORT_EXPORT_PREFIX and "i."
1289         (i386_pe_dllexport_name_p): Here.
1290         (i386_pe_dllimport_name_p): Here.
1291         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
1292         not 9 chars when getting identifier name.
1293         (i386_pe_mark_dllimport): Here.
1294         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
1295         not 9 chars when getting identifier name. Correct comment.
1296         (i386_pe_strip_name_encoding): Here. Add comments for different
1297         cases.
1298         (gen_fastcall_suffix): Break down xmalloc() argument to
1299         components.
1300         (gen_stdcall_suffix): Likewise.
1301         Update copyright year.
1302
1303 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
1304
1305         PR optimization/9888
1306         * config/i386/i386.md (movsi_1): Remove special alternatives
1307         for %eax register.
1308         (movsi_1_nointernunit): Likewise.
1309         (movhi_1): Likewise.
1310         * config/i386/i386.c (memory_address_length): Do not use
1311         short displacement when there is no base.
1312         (ix86_attr_length_address_default): Handle LEA instructions.
1313
1314 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
1315
1316         * c-cppbuiltin.c (builtin_define_std): Make non-static.
1317
1318 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
1319
1320         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
1321         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
1322         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
1323         * config/freebsd.h (CPP_PREDEFINES): Remove.
1324         (TARGET_OS_CPP_BUILTINS): New.
1325         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
1326         instead of TARGET_OS_CPP_BUILTINS.
1327         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
1328
1329 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
1330
1331         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
1332
1333 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
1334
1335         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
1336         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
1337
1338         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
1339
1340 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
1341
1342         * toplev.c (independent_decode_option): Return success for --help,
1343         --target-help and --version.
1344
1345 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
1346
1347         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
1348         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
1349         specified.
1350         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
1351         DRIVER_SELF_SPECS.
1352         (LINK_SPEC): Let endian options affect the linker emulation name.
1353
1354 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
1355
1356         * sh.md (reload_inqi): Fix mode for source in second set.
1357
1358 2003-03-11  Jan Hubicka  <jh@suse.cz>
1359
1360         * cselib.c (cselib_invalidate_mem_1): Move too ...
1361         (cselib_invalidate_mem): ... here; use new list
1362         (dummy_val, first_containing_mem): New static variables.
1363         (clear_table): Initialize first_containing_mem.
1364         (discard_useless_values):  Compact the containing_mem list.
1365         (add_mem_for_addr): Add to the list.
1366         * cselib.h (cselib_val): Add next_containing_mem.
1367
1368 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
1369
1370         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
1371         instructions for e500.
1372
1373 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
1374
1375         * Makefile.in: Update.
1376         * c-cppbuiltin.c: Include tm_p.h.
1377
1378 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
1379
1380         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
1381
1382         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
1383         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
1384         (_Unwind_SetGR): Same.
1385         (_Unwind_GetGRPtr): New.
1386         (_Unwind_SetGRPtr): New.
1387         (uw_update_context_1): Use accesor functions instead of accessing
1388         context->reg[] directly.
1389         (uw_install_context_1): Same.
1390         (execute_cfa_program): Same.
1391         (__frame_state_for): Same.
1392
1393         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
1394         the synthetic register offset.
1395
1396         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
1397
1398 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
1399
1400         * config/cris/cris.md: Remove lingering EGCS reference.
1401         ("*extopqihi_side_biap"): For HI operation, match
1402         cris_additive_operand_extend_operator, not
1403         cris_operand_extend_operator.  Adjust condition.
1404         ("*extopqihi_side", "*extopqihi"): Ditto.
1405         ("*extopqisi_side_biap"): Correct operand numbers in condition.
1406         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
1407         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
1408         ("*extophisi_swap"): Ditto.
1409         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
1410         PLUS, not cris_operand_extend_operator.  Adjust condition and
1411         output template.
1412         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
1413         * config/cris/cris.h (PREDICATE_CODES): Add
1414         cris_additive_operand_extend_operator.
1415         * config/cris/cris.c (cris_additive_operand_extend_operator):
1416         New predicate.
1417
1418 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
1419
1420         * df.c (read_modify_subreg_p): Change from static to global.
1421         * df.h (read_modify_subreg_p): Add prototype.
1422         * sched-deps.c (sched_analyze_1): Generate true dependency for
1423         strict_low_part, certain subregs and zero/sign_extract.
1424
1425 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
1426
1427         * Makefile.in: Update.
1428         * c-common.c: Don't include real.h or except.h.
1429         (REGISTER_PREFIX): Remove.
1430         (builtin_define_std, builtin_define_with_value,
1431         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
1432         builtin_define_type_max, builtin_define_type_precision,
1433         builtin_define_float_constants): Move to c-cppbuiltin.c.
1434         (c_stddef_cpp_builtins): New.
1435         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
1436         * c-cppbuiltin.c: New, extracted from c-common.c.
1437         (define__GNUC__): New.
1438         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
1439         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
1440         (cpp_unique_options): Don't support no-gcc.
1441         (do_spec_1): Remove support of version specs.
1442         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
1443         * doc/passes.texi: Update.
1444         * doc/tm.texi: Update.
1445
1446 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
1447
1448         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
1449
1450 2003-03-10  Andrew Pinski  <apinski@apple.com>
1451
1452         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
1453         is on should not get here.
1454         (machopic_indirect_data_reference): If dynamic-no-pic is on just
1455         generate high/low parts of the address.
1456         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
1457         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
1458         symbol and labels with a new reg.  Dynamic-no-pic does not have a
1459         pic_offset_table_rtx.
1460         (machopic_select_section): Change references of flag_pic to
1461         MACHOPIC_INDIRECT.
1462         (machopic_asm_out_destructor): Likewise.
1463         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
1464         reference of flag_pic to MACHOPIC_INDIRECT.
1465         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
1466         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
1467         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
1468         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
1469         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
1470         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
1471         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
1472         (TARGET_DYNAMIC_NO_PIC): Define.
1473         (SUBTARGET_SWITCHES): Define, have sub-target switches for
1474         dynamic-no-pic.
1475         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
1476         rs6000_override_options to here. Dynamic-no-pic overrides
1477         pic.
1478         (CC1_SPEC): Change from not static then pic to not static and not
1479         dynamic-no-pic then pic.
1480         * config/rs6000/rs6000.c (rs6000_override_options): Move the
1481         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
1482         (rs6000_legitimize_reload_address): Add case for loading floating in
1483         dynamic-no-pic.
1484         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
1485         of flag_pic to MACHOPIC_INDIRECT.
1486         (secondary_reload_class): Conditional change the reference of
1487         flag_pic to MACHOPIC_INDIRECT.
1488         (rs6000_output_mi_thunk): Change reference of flag_pic to
1489         MACHOPIC_INDIRECT.
1490         (output_profile_hook): Likewise.
1491         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
1492         * config/rs6000/rs6000.md (movdf_low): Add the case for
1493         MACHO_DYNAMIC_NO_PIC_P.
1494         (call): Change references for flag_pic in TARGET_MACHO to
1495         MACHOPIC_INDIRECT.
1496         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
1497         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
1498         * doc/invoke.texi (-mdynamic-no-pic): Document.
1499
1500 2003-03-10  Devang Patel  <dpatel@apple.com>
1501
1502         PR c++/9394
1503         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
1504         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
1505         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
1506         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
1507         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
1508         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
1509
1510 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1511
1512         PR optimization/7189
1513         * toplev.c (rest_of_compilation):  Move
1514         check_function_return_warnings up to just after
1515         delete_unreachable_blocks.
1516
1517 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
1518
1519         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
1520         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
1521         Declare.
1522         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
1523         for reg rename optimization to avoid using Z and Y registers.
1524
1525 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
1526
1527         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
1528         when adding to X and Y since leax/leay are fast.
1529         ("*addhi3"): Accept 'I' constraint when adding to address register.
1530         ("rotlhi3"): Operand 1 must be a register_operand.
1531         (peephole2): New peephole to optimize some adds.
1532         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
1533         to represent -2 .. 2 small integer range.
1534
1535 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
1536
1537         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
1538         each 16-bit rotation.
1539
1540 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
1541
1542         * c-opts.c (add_prefixed_path): Don't use concat.  When
1543         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
1544         cpp_GCC_INCLUDE_DIR_len characters.
1545
1546 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
1547
1548         * testsuite/gcc.dg/altivec-9.c: New file.
1549
1550         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
1551         (rs6000_emit_prologue): Use rs6000_frame_related instead.
1552
1553 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
1554
1555         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
1556         vectors.
1557         (__ev_convert_u64): Remove macro.  Define as inline.
1558         (__ev_convert_s64): Same.
1559
1560 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
1561
1562         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
1563         (rs6000_stack_t): Add spe_64bit_regs_used.
1564
1565         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
1566         spe_64bit_regs_used, and use it to determine the size of the
1567         frame.
1568         (spe_func_has_64bit_regs_p): New.
1569         (spe_synthesize_frame_save): New.
1570         (rs6000_frame_related): Handle SPE synthetic registers.
1571         (rs6000_emit_prologue): Only save in 64-bits if the function used
1572         any registers in 64-bit mode.
1573         (rs6000_emit_epilogue): Same, but for restore.
1574
1575 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
1576
1577         * arm.h (enum floating_point_type): Delete.  Replace with...
1578         (enum fputype): ... new.
1579         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
1580         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
1581         * arm.md (attr fpu): Reworked for new underlying enum values.
1582         * arm.c (arm_fpu_arch): Now enum fputype.
1583         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
1584         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
1585         Update uses of arm_fpu_arch and arm_fpu_tune.
1586
1587 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
1588
1589         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
1590         (try_crossjump_to_edge): Replace refereces to one jump table by
1591         references to identical jump table.
1592         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
1593         (replace_label): Moved to rtlanal.c.
1594         (struct rtx_pair): Moved to rtl.h.
1595         * rtl.h (struct rtx_pair): Moved from loop.c.
1596         (replace_label): New extern function.
1597         (subrtx_p): New extern function.
1598         (tablejump_p): New extern function.
1599         * rtlanal.c (replace_label): Moved from loop.c.
1600         (subrtx_p_1): New static function.
1601         (subrtx_p): New function.
1602         (tablejump_p): New function.
1603
1604 2003-03-10  Jan Hubicka  <jh@suse.cz>
1605
1606         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
1607
1608         * cfgcleanup.c (merge_blocks): Return where to iterate next.
1609         (try_optimize_cfg): Use return value of merge_blocks
1610
1611 2003-03-10  Michael Matz  <matz@suse.de>
1612
1613         * cfg.c (unchecked_make_edge): New.
1614         (cached_make_edge): Use it.
1615         * basic-block.h (unchecked_make_edge): Declare.
1616         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
1617
1618 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
1619
1620         * fpa.md: New file.  Move all patterns relating to FPA co-processor
1621         to here...
1622         * arm.md: ... from here.
1623         (cirrus.md, fpa.md): Include at end of description.
1624         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
1625         (pic_load_addr_based): Remove register constraint from expander.
1626         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
1627         (sordered, sungt, sunle, sunge, sunlt): Likewise.
1628         (eh_epilogue, tablejump): Likewise.
1629
1630 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
1631             Mostafa Hagog
1632
1633         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
1634         condition.
1635
1636 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
1637
1638         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
1639         * config/ip2k/ip2k.h: Similarly.
1640         * config/m32r/m32r.h: Similarly.
1641         * config/m68hc11/m68hc11.h: Similarly.
1642         * config/mn10200/mn10200.h: Similarly.
1643         * config/mn10300/mn10300.h: Similarly.
1644         * config/pdp11/pdp11.h: Similarly.
1645         * config/v850/v850.h: Similarly.
1646         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
1647         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
1648         * config/mips/iris3.h: Remove #if 0 block.
1649
1650 2003-03-09  Roger Sayle  <roger@eyesopen.com>
1651             Joern Rennecke <joern.rennecke@superh.com>
1652
1653         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
1654         pending argument upon return from handle_braces here.
1655         (do_spec_2): Instead handle it upon return from do_spec_1 here.
1656
1657 2003-03-09  Roger Sayle  <roger@eyesopen.com>
1658             Joern Rennecke <joern.rennecke@superh.com>
1659
1660         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
1661         pending argument upon return from handle_braces here.
1662         (do_spec_2): Instead handle it upon return from do_spec_1 here.
1663
1664 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1665
1666         * varasm.c (make_decl_one_only): Use declare_weak().
1667
1668 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1669
1670         PR middle-end/9986
1671         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
1672         after the common builtins.
1673         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
1674         * pa.c (TARGET_INIT_BUILTINS): Define.
1675         (pa_init_builtins): New function.
1676
1677         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
1678         space has been allocated for the outgoing arguments, set the arg
1679         pointer for a call emitted after virtuals have been instantiated
1680         using the stack pointer offset, otherwise abort.
1681
1682 2003-03-09  DJ Delorie  <dj@redhat.com>
1683
1684         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
1685
1686 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
1687
1688         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
1689         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
1690         conversion to integer.
1691         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
1692
1693 2003-03-09  Roger Sayle  <roger@eyesopen.com>
1694
1695         * builtins.def: Fix typo and improve grammar.
1696         * loop-unroll.c (decide_peel_completely): Tidy log message.
1697
1698 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
1699
1700         * config/h8300/h8300.md (*tstsi_upper_bit): New.
1701         (*iorsi3_e2f): Likewise.
1702
1703 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
1704
1705         * config/h8300/h8300.c (h8300_and_costs): Return the number of
1706         assembly instructions needed.
1707         (h8300_shift_costs): Likewise.
1708
1709 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
1710
1711         * config/cris/aout.h (ENDFILE_SPEC): Undef.
1712
1713         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
1714         moves from here ...
1715         * expr.c (emit_move_insn_1): ... to here.
1716
1717         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
1718         (TARGET_OS_CPP_BUILTINS): New macro.
1719         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
1720         (TARGET_OS_CPP_BUILTINS): New macro.
1721         (CPP_PREDEFINES): Don't define.  Move old definitions and...
1722         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
1723         (TARGET_CPU_CPP_BUILTINS): New macro.
1724         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
1725         definitions and the optional __PIC__, __pic__ and
1726         __NO_UNDERSCORES__ definitions to...
1727         (TARGET_OS_CPP_BUILTINS): New macro.
1728
1729         * flags.h (flag_leading_underscore): Declare.
1730
1731         * c-opts.c (c_common_post_options): On fopen failure, return
1732         false, not NULL.
1733
1734 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
1735
1736         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
1737         config.h.
1738         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
1739         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
1740
1741 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
1742
1743         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
1744         CPP_PREDEFINES.
1745         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
1746         CPP_PREDEFINES.
1747
1748 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
1749
1750         * c-common.h (c_common_init, c_common_post_options): Update.
1751         * c-objc-common.c (c_objc_common_init): Update for new prototype.
1752         * c-opts.c (saved_lineno): New.
1753         (c_common_post_options, c_common_init): Update prototypes,
1754         move call to cpp_read_main_file from latter to former.
1755         * c-tree.h (c_ojbc_common_init): Update.
1756         * langhooks-def.h (lhd_post_options): New.
1757         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
1758         * langhooks.c (lhd_post_options): New.
1759         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
1760         * toplev.c (no_backend): New.
1761         (process_options): Call post_options hook and set main_input_filename
1762         and input_filename here.
1763         (lang_dependent_init, do_compile): post_options hook moved to
1764         process_options.
1765         * objc/objc-act.c (objc_init): Update prototype.
1766         * objc/objc-act.h (objc_init): Update prototype.
1767
1768 2003-03-08  Roger Sayle  <roger@eyesopen.com>
1769
1770         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
1771         a complex or vector type, using a load in the original mode.
1772
1773 2003-03-08  Jan Hubicka  <jh@suse.cz>
1774
1775         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
1776         * gt-cgraph.h: New GC file.
1777         * cgraph.c (known_fns): New static variable.
1778         (cgraph_node): Add the decl into varray.
1779
1780 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
1781
1782         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
1783
1784 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
1785
1786         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
1787         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
1788         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
1789         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
1790         All callers changed.
1791         * arm.md, arm.h, arm-protos.h: Updated.
1792
1793         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
1794         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
1795         * arm.c (arm_regno_class, f_register_operand): Updated.
1796
1797 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
1798
1799         * config/cris/cris.h: Remove EGCS references.
1800         (CPP_SPEC): Remove "-$".
1801         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
1802
1803 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
1804
1805         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
1806         preference to CPP_PREDEFINES.
1807
1808 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
1809
1810         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
1811
1812 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
1813
1814         * config/h8300/h8300.md (*extzv_16_8): New.
1815
1816 2003-03-08  Jan Hubicka  <jh@suse.cz>
1817
1818         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
1819         * cgraph.h: (cgraph_local_info): Add can_inline_once
1820         (cgraph_global_info): Add inline_once.
1821         (cgraph_node): Add previous.
1822         (cgraph_remove_node): New.
1823         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
1824         function.
1825         (cgraph_optimize): Call it.
1826         (cgraph_finalize_function):  Set inlinable flags.
1827         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
1828         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
1829         (cgraph_expand_function): Likewise.
1830         * cgraph.c
1831         (cgraph_node): Put nodes into doubly linked chain.
1832         (cgraph_remove_node): New function.
1833         * flags.h (flag_inline_functions_called_once): Declare.
1834         * tree-inline.c: Include cgraph.h
1835         (inlinable_functions_p): Add extra argument to bypass limits.
1836         (expand_call_inline):  Obey cgraph flag.
1837         * tree-inline.h (tree_inlinable_function_p): Update prototype.
1838
1839 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1840
1841         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
1842         irreducible loops.
1843
1844         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
1845         loops info correctly.
1846
1847 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
1848
1849         PR middle-end/7796
1850         * unroll.c (calculate_giv_inc): Handle constants being
1851         loaded with LSHIFTRT.
1852
1853 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
1854
1855         * config/rs6000/rs6000.c (processor_target_table): Do not disable
1856         GP optional instructions on Power3, Power4, 620, and 630.
1857
1858 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
1859
1860         * calls.c: Fix comment formatting.
1861         * cfgloopanal.c: Likewise.
1862         * cfgloopmanip.c: Likewise.
1863         * combine.c: Likewise.
1864         * dwarf2out.c: Likewise.
1865         * ggc-common.c: Likewise.
1866         * langhooks.c: Likewise.
1867         * loop-unroll.c: Likewise.
1868         * loop.c: Likewise.
1869         * ra-build.c: Likewise.
1870         * sbitmap.c: Likewise.
1871         * toplev.c: Likewise.
1872
1873 2003-03-07  James E Wilson  <wilson@tuliptree.org>
1874
1875         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
1876
1877 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
1878
1879         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
1880         support -no-integrated-cpp.
1881
1882         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
1883         than langhooks.name.
1884
1885 2003-03-07  Michael Matz  <matz@suse.de>
1886
1887         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
1888         (DF_FOR_REGALLOC): New.
1889         * df.c (df_ref_record): Set DF_REF_STRIPPED.
1890         (read_modify_subreg_p): Simplify.
1891         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
1892         Use DF_FOR_REGALLOC.
1893         * ra.h (struct web): New member subreg_stripped.
1894         (invalid_mode_change_regs): Declare.
1895         * ra.c (invalid_mode_change_regs): New.
1896         (init_ra): Initialize it.
1897         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
1898         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
1899         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
1900         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
1901         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
1902
1903 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
1904
1905         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
1906         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
1907         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
1908         machine description file from ...
1909         * cirrus.md: ... here.
1910
1911 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
1912
1913         * config/h8300/h8300.md (a peephole2): Don't use
1914         reg_overlap_mentioned_p.
1915
1916 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
1917
1918         * c-pch.c: Include langhooks.h.
1919         (IDENT_LENGTH): New.
1920         (get_ident): New.
1921         (pch_ident): Delete.
1922         (pch_init): Use get_ident, IDENT_LENGTH.
1923         (c_common_valid_pch): Likewise.  Also, use actual language
1924         in warning message.
1925         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
1926
1927         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
1928         c-parse.in.
1929         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
1930         gt-objc-objc-act.h.
1931         (gt-objc-objc-act.h): New rule.
1932         * objc/lang-specs.h: Support PCH.
1933         * objc/objc-act.c: Include gt-objc-objc-act.h.
1934         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
1935         (build_selector_reference_decl): Move idx out, mark for PCH.
1936         (build_class_reference_decl): Likewise.
1937         (build_objc_string_decl): Move *_idx out, mark for PCH.
1938         (build_tmp_function_decl): Move xxx out, mark for PCH.
1939
1940 2003-03-06  Dale Johannesen  <dalej@apple.com>
1941
1942         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
1943         global functions for inlining on Darwin.
1944
1945 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
1946
1947         * haifa-sched.c (schedule_block): Don't call reorder when sorting
1948         is prohibited.
1949
1950 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
1951
1952         * Makefile.in (c-ppoutput.o): Update.
1953         * c-common.h (init_pp_output): New.
1954         (preprocess_file): Update.
1955         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
1956         Register builtins.
1957         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
1958         Make call to cpp_read_main_file common to whether preprocessing
1959         or not.  Don't register builtins.
1960         * c-ppoutput.c: Include c-pragma.h.
1961         (setup_callbacks): Rename init_pp_output.
1962         (preprocess_file): No longer setup callbacks or call
1963         cpp_read_main_file.
1964         * cpphash.h (_cpp_init_mbchar): New.
1965         * cppinit.c (init_library): Call _cpp_init_mbchar.
1966         * cpplex.c (_cpp_init_mbchar): New.
1967
1968 2003-03-06  Roger Sayle  <roger@eyesopen.com>
1969
1970         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
1971         MEM, try loading the MEM into a register and taking the low-part
1972         of that, to help CSE see the use of the MEM in its true mode.
1973
1974 2003-03-05  Tom Tromey  <tromey@redhat.com>
1975
1976         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
1977         Define.
1978
1979 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
1980
1981         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
1982         operand 2.
1983         ("*ineqbranchsi"): Likewise.
1984
1985 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
1986
1987         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
1988         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
1989         register store followed by a stack increment.
1990
1991 2003-03-05  Chris Moller  <cmoller@redhat.com>
1992
1993         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
1994         to inhibit saving CARRY_REGS.
1995
1996         * config/stormy16/stormy16.c (xs_hi_general_operand):
1997         added predicate to detect and error-out on out-of-range
1998         const_ints for movhi.
1999         * config/stormy16/stormy16.md (movhi): use
2000         xs_hi_general_operand.
2001
2002         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
2003         added a check for local vbl size overflow.
2004         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
2005         added predicate to detect and error-out on out-of-range
2006         const_ints for addhi and subhi.
2007         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
2008         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
2009
2010         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
2011         add a term to accept PRE_MODIFY addresses.
2012         * config/stormy16/stormy16.c (xstormy16_expand_move):
2013         add code to expand PRE_MODIFY addresses to an add followed
2014         by a move.
2015
2016 2003-03-06  Jason Merrill  <jason@redhat.com>
2017
2018         * tree-inline.c (inlinable_function_p): Revert earlier change
2019         pending investigation.
2020
2021 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
2022
2023         * config/h8300/h8300.md (a new peephole2): New.
2024
2025 2003-03-06  Jan Hubicka  <jh@suse.cz>
2026
2027         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
2028
2029 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2030
2031         * dwarf2out.c (size_of_die): Compute size of external reference to
2032         die correctly.
2033
2034 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
2035
2036         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
2037         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
2038         expanders.
2039
2040 2003-03-05  Roger Sayle  <roger@eyesopen.com>
2041
2042         * expr.h (lang_expand_expr): Delete obsolete prototype.
2043
2044 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
2045
2046         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
2047
2048 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
2049
2050         * config/h8300/h8300.md (a peephole2): Generalize to
2051         accept a memory operand.
2052
2053 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
2054
2055         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
2056         * config/alpha/alpha.c (print_operand, case '+'): New.
2057         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
2058         (call_value_osf_1_noreturn): Likewise.
2059
2060 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2061
2062         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
2063         (expand_end_bindings): Likewise.
2064
2065 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2066
2067         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
2068         (epilogue): Don't generate return_external_pic when emitting PA 2.0
2069         code.
2070
2071 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
2072
2073         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
2074
2075         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
2076
2077         * hooks.c (hook_rtx_rtx_null): New.
2078
2079         * hooks.h (hook_rtx_rtx_null): Protoize.
2080
2081         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
2082         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
2083
2084         * target.h (struct gcc_target): Add dwarf_register_span.
2085
2086         * dwarf2out.c (multiple_reg_loc_descriptor): New.
2087         (one_reg_loc_descriptor): New.
2088         (reg_loc_descriptor): Add support for values that span more than
2089         one register.
2090
2091 2003-03-05  Jan Hubicka  <jh@suse.cz>
2092
2093         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
2094         * alias.c:  Include cgraph.h
2095         (mark_constant_function): Use cgraph_rtl_info.
2096         * calls.c:  Include cgraph.h
2097         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
2098         calls.
2099         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
2100         * cgraph.c (cgraph_rtl_info): New function.
2101         * cgraph.h (cgraph_rtl_info): Declare
2102         (cgraph_rtl_info): Likewise.
2103         * function.h (struct function): Add recursive_call_emit.
2104         * toplev.c: Include cgraph.h.
2105         (rest_of_compilation): Set preferred_incoming_stack_boundary.
2106
2107 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
2108
2109         * config/h8300/h8300.c (output_simode_bld): Clear the
2110         destination first if possible.
2111         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
2112         alternative.
2113         (extzv_1_r_inv_h8300hs): Likewise.
2114
2115 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2116
2117         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
2118         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
2119         * cfgloop.c (flow_loop_free): Made global.
2120         (establish_preds): New static function.
2121         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
2122         (get_loop_exit_edges): New.
2123         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
2124         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
2125         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
2126         loops.
2127         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
2128         removability of an edge.
2129         (fix_irreducible_loops): New static function.
2130         (find_path, remove_path): Add ability to remove enclosing loops.
2131         (unloop): New.
2132         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
2133         flags.
2134         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
2135         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
2136         not neccessary.
2137         (decide_peel_completely, peel_loops_completely): Allow complete peeling
2138         of non-duplicable once rolling loops.
2139         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
2140
2141 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
2142
2143         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
2144         for align_jumps is 4.
2145
2146         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
2147         use GENERAL_REGS.
2148
2149 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
2150
2151         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
2152         according to va_arg type.
2153         (EXPAND_BUILTIN_VA_ARG): Remove.
2154         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
2155         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
2156
2157 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
2158
2159         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
2160         else clauses.
2161
2162 2003-03-05  Michael Matz  <matz@suse.de>
2163
2164         * i386/i386.c (ix86_save_reg): Also test
2165         current_function_uses_const_pool.
2166
2167 2003-03-05  Michael Matz  <matz@suse.de>
2168
2169         * unwind.h: Add the GPL exception.
2170         * Makefile.in (USER_H): Add unwind.h.
2171
2172 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
2173
2174         PR c/9799
2175         * c-typeck.c (push_init_level): Add sanity check.
2176
2177 2003-03-05  Jan Hubicka  <jh@suse.cz>
2178
2179         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
2180         RTL inlining is done.
2181
2182         * cgraphunit.c (cgraph_mark_local_functions): New local function.
2183         (cgraph_optimize): Mark local functions.
2184         * i386-protos.h (init_cumulative_args): Update prototype.
2185         * i386.c (init_cumulative_args): Use register passing convention for
2186         local functions.
2187
2188         * cgraph.c (cgraph_global_info_ready): New global variable
2189         (cgraph_local_info, cgraph_global_info): New functions.
2190         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
2191         structures.
2192         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
2193         Declare.
2194         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
2195         (cgraph_mark_functions_to_output): Use inline_many.
2196         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
2197         (cgraph_expand_functions): Expand inline functions last.
2198         (cgraph_optimize): Do not emit uneeded functions.
2199
2200 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
2201
2202         * expr.c (convert_modes): Check for legal hard register.
2203
2204 2003-03-04  Tom Tromey  <tromey@redhat.com>
2205
2206         * doc/sourcebuild.texi (Front End Directory): Document tags.
2207         * configure: Rebuilt.
2208         * configure.in (target_list): Added tags.
2209         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
2210         TAGS files by reference.
2211         * objc/Make-lang.in (objc.tags): New target.
2212
2213 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2214
2215         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
2216         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
2217         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
2218         gcov_read_string, gcov_write_length): Modified to enable reading/
2219         writing of whole .da file just once.
2220         (da_file_open, da_file_close, da_file_eof, da_file_error,
2221         da_file_position, da_file_seek, da_file_write, da_file_read): New
2222         functions.
2223         (actual_da_file, actual_da_file_position, actual_da_file_length,
2224         actual_da_file_buffer, actual_da_file_buffer_size): New static
2225         functions.
2226         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
2227         just once.
2228
2229
2230 2003-03-04  Andreas Schwab  <schwab@suse.de>
2231
2232         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
2233         offset without frame pointer.
2234
2235 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
2236
2237         * expr.c (expand_expr): Call promote_mode to set unsignedp.
2238
2239 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
2240
2241         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
2242         * configure: Regenerated.
2243         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
2244
2245 2003-03-04  Andreas Jaeger  <aj@suse.de>
2246
2247         * configure.in: Check for <memcheck.h>.
2248         * configure: Regenerated.
2249
2250         * config.in: Define HAVE_MEMCHECK_H.
2251
2252         * ggc-common.c: Use <memcheck.h> if available instead of
2253         <valgrind.h>.
2254         * ggc-page.c: Likewise.
2255         * cppfiles.c: Likewise.
2256
2257 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
2258
2259         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
2260
2261 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2262
2263         PR c/9262
2264         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
2265         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
2266
2267 2003-03-04  Jan Hubicka  <jh@suse.cz>
2268
2269         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
2270         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
2271         for -O3.
2272
2273 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
2274
2275         * configure.in: Delete three unused variables.  Move a variable
2276         definition closer to its use.  Simplify use_collect2 logic.  Start to
2277         organize.  Simplify tests for in-tree gas and ld.
2278         * configure: Regenerate.
2279
2280 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
2281
2282         * Makefile.in: Update.
2283         * c-common.c (flag_no_line_commands, flag_no_output,
2284         flag_dump_macros, flag_dump_includes): New.
2285         * c-common.h (flag_no_line_commands, flag_no_output,
2286         flag_dump_macros, flag_dump_includes, preprocess_file): New.
2287         (init_c_lex): Update prototype.
2288         * c-lex.c (init_c_lex): Update prototype; move some code to
2289         c_common_init.
2290         * c-opts.c (preprocess_file): Subsume into c_common_init.
2291         (c_common_decode_option): Update flags.
2292         (c_common_init): Move code from preprocess_file and init_c_lex.
2293         (sanitize_cpp_opts): Update.
2294         * c-ppoutput.c: New, cppmain.c almost verbatim.
2295         * cpphash.h (struct printer): Remove.
2296         (struct cpp_reader): Remove print.
2297         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
2298         cpp_preprocess_file): Remove.
2299         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
2300         and dump_includes.
2301         * cppmain.c: Remove.
2302         * doc/passes.texi: Update.
2303
2304 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2305
2306         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
2307         (assign_stack_local_1): Perform overall stack alignment only when
2308         STACK_ALIGNMENT_NEEDED is non-zero.
2309         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
2310
2311         * pa.c (compute_frame_size): Rename fsize to size.  Account for
2312         alignment to a word boundary before general register save block.  Only
2313         account for double-word alignment before floating point register save
2314         block if one or more are saved.  Don't allocate space for %r3 when
2315         frame pointer is needed.
2316         (hppa_expand_prologue): Include alignment to word boundary in local
2317         frame size.
2318         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
2319         (STACK_ALIGNMENT_NEEDED): Define.
2320
2321 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
2322
2323         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
2324         global register variables.
2325
2326 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
2327
2328         * reload.c (reload_adjust_reg_for_mode): New function.
2329         (subst_reloads): Call it.
2330         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
2331         * reload.h (reload_adjust_reg_for_mode): Declare.
2332         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
2333         Call it.
2334
2335 2003-03-03  James E Wilson  <wilson@tuliptree.org>
2336
2337         * optabs.c (add_equal_note): Delete SUBREG_REG use.
2338         Fixes PR c/7872.
2339
2340 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2341
2342         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
2343         (*ixorsi3_lshiftrt_16): New.
2344         (*iorsi3_ashift_16): Remove.
2345
2346 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2347
2348         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
2349         pattern.
2350
2351 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
2352
2353         * doc/install.texi (Specific): Update entry for powerpc-darwin.
2354
2355 2003-03-03  Richard Henderson  <rth@redhat.com>
2356
2357         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
2358
2359 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
2360
2361         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
2362         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
2363         (rs6000_variable_issue): Do not return negative value.
2364         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
2365         scheduling pass.
2366
2367 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2368
2369         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
2370         prune_unused_types calls.
2371
2372 2003-03-03  Jason Merrill  <jason@redhat.com>
2373
2374         * tree-inline.c (find_builtin_longjmp_call): Save and restore
2375         lineno and input_filename.
2376         (find_alloca_call): Likewise.
2377         (inlinable_function_p): Run the langhook earlier.
2378
2379         * calls.c (compute_argument_addresses): Give the new MEMs a
2380         minimum alignment of PARM_BOUNDARY.
2381
2382 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
2383
2384         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
2385         subtarget_asm_isa_spec.
2386         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
2387         (ASM_SPEC): Define as SH_ASM_SPEC.
2388         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
2389         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
2390         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
2391         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
2392
2393         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
2394         and align_jumps if not set.
2395         Force align_jumps to be at least 2.
2396         When relaxing, force align_functions to be at least the maximum of
2397         align_loops, align_jumps and 4.
2398         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
2399         (sh_loop_align): Honour align_loops_log.
2400
2401         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
2402         to check for indirect_jump_scratch.
2403         (indirect_jump_scratch): Add second set.
2404         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
2405         when looking for indirect_jump_scratch.
2406         Extract scratch register taking new structure of indirect_jump_scratch
2407         into account.
2408         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
2409
2410 2003-03-03  Jan Hubicka  <jh@suse.cz>
2411
2412         * calls.c (rtx_for_function_call): Take the address as an argument
2413         (expand_call): Do not modify the expression.
2414
2415         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
2416         optimizing.
2417
2418 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2419
2420         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
2421         TARGET_H8300H and TARGET_H8300S.
2422
2423 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2424
2425         * config/h8300/h8300.md (a peephole2): New.
2426
2427 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2428
2429         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
2430         operands[0] and operands[1] are different.
2431
2432 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2433
2434         * reload1.c (reload_cse_move2add): Remove variable success.
2435
2436 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2437
2438         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
2439         warnings.
2440
2441 2003-03-02  Richard Henderson  <rth@redhat.com>
2442
2443         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
2444         * config.in, configure: Rebuild.
2445         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
2446         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
2447         paired ldtoffx and ldxmov annotations.
2448         (load_symptr_internal1): Remove.
2449         (load_symptr_high, load_symptr_low): New.
2450
2451 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
2452
2453         * c-incpath.c (add_path): Fix sysp assignment.
2454
2455 2003-03-02  Kurt Garloff  <garloff@suse.de>
2456
2457         * params.def: Introduce parameter max-inline-insns-rtl for
2458         a separate limit for the RTL inliner.
2459         * params.h: Likewise.
2460         * integrate.c (function_cannot_inline_p): Use it.
2461         * toplev.c (decode_f_option): Set multiple parameters
2462         controlling inlining with -finline-limit.
2463         * params.def: Fix orthographic and typographic errors.
2464         * doc/invoke.texi: Document parameters controlling inlining
2465         and the way -finline-limit sets multiple of them.
2466
2467         * tree.h (struct tree_decl): Introduce inlined_function_flag,
2468         recording whether the function became eligible for inlining
2469         by a compiler flag rather than the declaration.
2470         Provide DID_INLINE_FUNC macro to access it.
2471         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
2472         * cp/decl.c (grokfndecl): Likewise.
2473         * toplev.c (rest_of_compilation): Likewise.
2474         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
2475         * print-tree.c (print_node): Report it.
2476         * params.def: Introduce new max-inline-insns-auto limit.
2477         * params.h: Likewise.
2478         * tree-inline.c (inlinable_function_p): Apply it to functions
2479         with DID_INLINE_FUNC set.
2480         * toplev.c (decode_f_option): Initialize it from -finline-limit
2481         value.
2482         * doc/invoke.texi: Document new parameter.
2483
2484 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
2485
2486         * fix-header.c (read_scan_file): Don't reference simplify_path.
2487
2488 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2489
2490         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
2491         min/max instructions by default as may result in reload errors.
2492
2493 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2494
2495         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
2496         avoid reload problems; define split for it.
2497
2498 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2499
2500         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
2501         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
2502         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
2503         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
2504         rotatert and rotate.
2505         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
2506         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
2507         ("*rotrhi3_addr"): New split for shift insns on address register.
2508         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
2509         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
2510         (___rotrhi3): Likewise.
2511         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
2512
2513 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
2514
2515         * toplev.c (aux_base_name): Moved from toplev.h.
2516         (filename): Constify.
2517         (lang_dependent_init): Don't duplicate name.
2518         (process_options): Set aux_base_name here, not...
2519         (do_compile): ...here.  Change protoype.
2520         (toplev_main): Move some code from do_compile.
2521         * toplev.h: Remove aux_base_name.
2522
2523 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2524
2525         * config/h8300/h8300-protos.h: Add a prototype for
2526         iorxor_operator.
2527         * config/h8300/h8300.c (print_operand): Handle 'c'.
2528         (iorxor_operator): New.
2529         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
2530         * config/h8300/h8300.md (*iorhi3_zext): Remove.
2531         (*iorsi3_zexthi): Likewise.
2532         (*iorsi3_zextsi): Likewise.
2533         (*xorhi3_zextqi): Likewise.
2534         (*xorsi3_zexthi): Likewise.
2535         (*xorsi3_zextsi): Likewise.
2536         (*ixorhi3_zext): New.
2537         (*ixorsi3_zext_qi): Likewise.
2538         (*ixorsi3_zext_hi): Likewise.
2539
2540 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
2541
2542         * c-incpath.c (remove_component_p, simplify_path): Move back to
2543         cppfiles.c.
2544         (remove_duplicates): Use cpp_simplify_path.
2545         * c-incpath.h (simplify_path): Remove.
2546         * c-lex.c: Don't include c-incpath.h.
2547         (init_c_lex): Remove simplify_path.
2548         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
2549         (find_or_create_entry, validate_pch): Revert.
2550
2551 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
2552
2553         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
2554           an external cpp during compilation.
2555         (option_map): Likewise.
2556         * objc/lang-specs.h (default_compilers): Similarly.
2557         * doc/invoke.texi: Document -no-integrated-cpp flag.
2558
2559 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2560
2561         * config/h8300/h8300.md (zero_extendqisi2): Change to an
2562         expander.
2563         (*zero_extendqisi2_h8300): New.
2564         (*zero_extendqisi2_h8300hs): New.
2565         (two splitters): New.
2566
2567 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2568
2569         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
2570
2571 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
2572
2573         * config/h8300/h8300.md (a peephole2): Remove dead code.
2574
2575 2003-03-01  Roger Sayle  <roger@eyesopen.com>
2576
2577         PR c++/9367
2578         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
2579         (BT_FN_INT_CONST_STRING_VALIST_ARG,
2580         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
2581         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
2582         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
2583         BT_FN_INT_STRING_CONST_STRING_VAR,
2584         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
2585         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
2586         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
2587         ATTR_NONNULL_3): Also include the nothrow attribute.
2588         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
2589         vsnprintf, vscanf, vsscanf): Don't define attributes here.
2590         * builtins.def (putchar, puts): Make full C89 built-ins.
2591         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
2592         vsscanf, vsnprintf, vsprintf): New built-ins.
2593         * c-common.c (c_common_nodes_and_builtins): Handle new macro
2594         DEF_FUNCTION_TYPE_VAR_3.
2595
2596         * doc/extend.texi: Document these new built-in functions.
2597
2598 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
2599
2600         * config/h8300/h8300.md (a peephole2): New.
2601
2602 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
2603
2604         * predict.c (estimate_bb_frequencies): Correctly set
2605         real_values_initialized after initialization.
2606
2607 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
2608
2609         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
2610         cppinit.o, cppdefault.o, fix-header): Update.
2611         * c-incpath.c: New file.
2612         * c-incpath.h: New file.
2613         * c-lex.c: Include c-incpath.h.
2614         (init_c_lex): Register path simplifier.
2615         * c-opts.c: Include cppdefault.h and c-incpath.h.
2616         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
2617         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
2618         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
2619         (missing_arg, c_common_decode_option): Handle them.
2620         (c_common_post_options): Register include chains.
2621         (print_help): Update.
2622         * cppdefault.h (struct default include): Update.
2623         Move some macros to ...
2624         * cppdefault.c: ... here.
2625         (cpp_include_defaults): Add extra field add_sysroot.
2626         * cppfiles.c (include_file, search_from, find_or_create_entry,
2627         cpp_included, find_include_file, remap_filename): Update for
2628         renaming of search_path to cpp_path, and of the chain headers.
2629         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
2630         * cpphash.h (struct search_path): Move to cpplib.h.
2631         (struct cpp_buffer, struct cpp_reader): Update.
2632         (_cpp_simplify_pathname): Remove.
2633         * cppinit.c: Don't include prefix.h and cppdefault.h.
2634         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
2635         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
2636         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
2637         no_pth, cpp_handle_options): Remove.
2638         (struct pending_option): Remove chain members.
2639         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
2640         cpp_handle_option): Update.
2641         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
2642         (struct cpp_options): Remove quote_include, bracket_include,
2643         include_prefix, include_prefix_len, verbose, ignore_srcdir,
2644         no_standard_includes, no_standard_cplusplus_includes.
2645         (struct cpp_callbacks): Add simplify_path.
2646         (cpp_handle_options): Remove.
2647         * fix-header.c: Include c-incpath.h.
2648         (read_scan_file): Update to use c-incpath functionality.
2649         * doc/passes.texi: Update.
2650
2651 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
2652
2653         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
2654         satisfies EXTRA_CONSTRAINT 'U'.
2655
2656 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
2657
2658         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
2659         register.
2660         (*tst_extzv_memqi_1_n): Change to a splitter.
2661         (a peephole2): Update.
2662
2663 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
2664
2665         * predict.c (estimate_bb_frequencies): Initialize the sreal
2666         constants once per compilation.
2667
2668 2003-02-28  Richard Henderson  <rth@redhat.com>
2669
2670         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
2671
2672 2003-02-28  scott snyder  <snyder@fnal.gov>
2673
2674         * flags.h: Add flag_eliminate_unused_debug_types.
2675         * toplev.c: Add flag_eliminate_unused_debug_types.
2676         (f_options): Add -feliminate-unused-debug-types.
2677         * dwarf2out.c (struct file_table): Add emitted member.
2678         (splice_child_die): Fix the parent pointer for the child being
2679         spliced.
2680         (lookup_filename): Maintain file_table.emitted array.  Don't
2681         output .file directive here.
2682         (maybe_emit_file): (new)
2683         (init_file_table): Set up file_table.emitted.
2684         (dwarf2out_source_line): Use maybe_emit_file.
2685         (dwarf2out_start_source_file): Use maybe_emit_file.
2686         (dwarf2out_init): Use maybe_emit_file.
2687         (prune_unused_types_walk_attribs): (new)
2688         (prune_unused_types_mark): (new)
2689         (prune_unused_types_walk): (new)
2690         (prune_unused_types_prune): (new)
2691         (prune_unused_types): (new)
2692         (dwarf2out_finish): Call prune_unused_types if
2693         flag_eliminate_unused_debug_types is set.
2694         * doc/invoke.texi (Option Summary): Add
2695         -feliminate-unused-debug-types.
2696         (Debugging Options): Likewise.
2697
2698 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
2699
2700         * doc/invoke.texi: Change .pch to .gch.
2701         * cppfiles.c (open_file_pch): Likewise.
2702         * gcc.c (default_compilers): Likewise.
2703
2704 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
2705
2706         * floatlib.c: Remove.
2707
2708 2003-02-28  Jason Merrill  <jason@redhat.com>
2709
2710         * stor-layout.c (variable_size): Leave a "minus 1" outside the
2711         SAVE_EXPR.
2712
2713 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
2714
2715         * config/rs6000/power4.md: Add compare bypass.
2716
2717 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
2718
2719         * config/netbsd.h: Update copyright years.
2720         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
2721         -pthread is specified on the command line.
2722
2723 2003-02-28  Dale Johannesen <dalej@apple.com>
2724
2725         * loop.c (struct movable): Add insert_temp, shrink savemode.
2726         (scan_loop): Accept invariants that require copying; mark as
2727         insert_temp.
2728         (combine_movables): Don't combine insert_temp movables.
2729         (move_movables): Insert copies for insert_temp movables.
2730         Don't record the info based on regno for insert_temp's.
2731
2732 2003-02-28  Joel Sherrill <joel@OARcorp.com>
2733
2734         PR 9638/other
2735         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
2736         this constant defaults to 1.
2737
2738 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
2739
2740         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
2741
2742 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
2743
2744         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
2745         ARMv5e processor, not just for XScale.  Instructions are predicable.
2746         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
2747
2748 2003-02-28  Nick Clifton  <nickc@redhat.com>
2749
2750         * config/arm/arm.c (note_invalid_constants): Change parameter type
2751         from bool to int.
2752
2753 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2754
2755         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
2756         test of bit 7.
2757         (*tst_extzv_memqi_1_n): Likewise.
2758         (a peephole2): New.
2759
2760 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
2761
2762         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
2763         #ifndef __mips16.
2764
2765 2003-02-28  Jan Hubicka  <jh@suse.cz>
2766
2767         * combine.c (gen_lowpart_for_combine): Update handling of
2768         subregs_of_mode
2769         * flow.c (life_analysis, mark_used_regs): Likewise.
2770         * regclass.c (subregs_of_mode): Turn into single bitmap.
2771         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
2772         dealing with subregs_of_mode
2773         * regs.h (subregs_of_mode): Update prototype.
2774
2775 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
2776
2777         * emit-rtl.c (set_reg_attrs_for_parm): New function.
2778         * rtl.h (set_reg_attrs_for_parm): New exported function.
2779         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
2780         set_reg_attrs_from_mem.
2781
2782 2003-02-27  Roger Sayle  <roger@eyesopen.com>
2783             Zack Weinberg <zack@codesourcery.com>
2784
2785         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
2786
2787 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
2788
2789         * reload1.c (sext_for_mode): Remove.
2790         (reload_cse_move2add): Use trunc_int_for_mode instead of
2791         sext_for_mode.
2792         (move2add_note_store): Likewise.
2793         Reset register information if we see a set in non-integer
2794         mode.
2795
2796 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
2797
2798         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
2799         option.
2800         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
2801         * config/rs6000/aix51.h: Same.
2802         * config/rs6000/aix52.h: Same.
2803         * config/rs6000/power4.md: Additional VMX bypasses.
2804
2805 2003-02-27   Geert Bosch <bosch@gnat.com>
2806
2807         * toplev.c (print_version): Add indentation for GGC heuristics and
2808         output after printing version information.
2809
2810 2003-02-27  James E Wilson  <wilson@tuliptree.org>
2811
2812         * combine.c (simplify_comparison): Require integral mode when
2813         permuting SUBREG with AND.
2814
2815 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
2816
2817         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
2818
2819 2003-02-27  Nick Clifton  <nickc@redhat.com>
2820
2821         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
2822         deleted when cirrus instructions were added.
2823
2824 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
2825
2826         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
2827         POSIX thread support by default.
2828
2829 2003-02-27  Roger Sayle  <roger@eyesopen.com>
2830
2831         * config/i386/cygwin.h: Don't include any other files directly.
2832         * config/i386/mingw32.h: Don't include cygwin.h directly.
2833         * config.gcc (cygwin, mingw32, uwin): Instead make these files
2834         explicit in the tm_files variable.
2835
2836 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
2837
2838         * config/rs6000/rs6000.md: Add TI constant splitter.
2839
2840 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
2841
2842         * builtins.c (purge_builtin_constant_p): Handle subreg of
2843         constant_p_rtx too.
2844
2845         * function.c (assign_stack_local_1): Truncate constant added to
2846         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
2847
2848 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
2849
2850         * config.gcc: Add power4 to PowerPC with_cpu list.
2851
2852 2003-02-26  Jan Hubicka  <jh@suse.cz>
2853
2854         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
2855
2856 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2857
2858         * gcov-dump.c (print_prefix): Fix signedness warning.
2859         * gcov-io.h (struct counter_section, struct counter_section_data): New.
2860         (struct function_info): n_arc_counts field removed, n_counter_sections,
2861         counter_sections fields added.
2862         (struct gcov_info): arc_counts, n_arc_counts fields removed,
2863         n_counter_sections, counter_sections fields added.
2864         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
2865         profile sections.
2866         * profile.h (MAX_COUNTER_SECTIONS): New.
2867         (struct section_info): New.
2868         (struct profile_info): count_instrumented_edges,
2869         count_edges_instrumented_now fields removed, n_sections, section_info
2870         fields added.
2871         (find_counters_section): Declare.
2872         * profile.c (struct function_list): count_edges field removed,
2873         n_counter_sections, counter_sections fields added.
2874         (set_purpose, label_for_tag, build_counter_section_fields,
2875         build_counter_section_value, build_counter_section_data_fields,
2876         build_counter_section_data_value, build_function_info_fields,
2877         build_function_info_value, build_gcov_info_fields,
2878         build_gcov_info_value): New static functions.
2879         (find_counters_section): New function.
2880         (instrument_edges, get_exec_counts, compute_branch_probabilities,
2881         branch_prob, create_profiler): Modified to support multiple profile
2882         sections.
2883
2884 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2885
2886         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
2887         is 8 * STACK_BOUNDARY.
2888         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
2889
2890 2003-02-26  Michael Matz  <matz@suse.de>
2891
2892         * ra-colorize.c (merge_moves): Fix list handling.
2893
2894 2003-02-26  Nick Clifton  <nickc@redhat.com>
2895
2896         * config/arm/arm.c (is_load_address): Rename to...
2897         (arm_memory_load_p) ... this and make it check for SUBREGs and
2898         constant loads that will be converted into loads from the
2899         minipool.
2900         (is_cirrus_insn): Rename to ...
2901         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
2902         of CIRRUS_NO with CIRRUS_NOT.
2903         (cirrus_reorg): Use renamed functions.
2904         (note_invalid_constants): Change from a void function to bool.
2905         Add an extra parameter, saying whether the fixups should be
2906         pushed.  Return true if fixups are needed.
2907         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
2908         of CIRRUS_NO with CIRRUS_NOT.
2909         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
2910         other floating point co-processors can also affect this.
2911         * config/arm/arm.md ("type" attribute): Add mav_farith and
2912         mav_dmult.  Replace references to "cirrus_type" attribute with
2913         "type".
2914         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
2915         ("cirrus_type" attribute): Delete - use "type" instead.
2916         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
2917         'normal'.
2918
2919 2003-02-25  Jan Hubicka  <jh@suse.cz>
2920
2921         * objc-act.c: Include cgraph.h
2922         (mark_referenced_methods): New function.
2923         (objc_init): Call it.
2924         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
2925
2926         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
2927         mode.
2928
2929         * optabs.c (expand_fix): Do not widen the input operand.
2930
2931         * expr.c (emit_group_store):  Fix crash when converting single
2932         register into complex register.
2933
2934         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
2935         * alias.c: Include timevar.h
2936         (init_alias_analysis):  Set timevar
2937         * jump.c: Include timevar.h
2938         (rebuild_jump_labels):  Set timevar
2939         * regcalss.c: Include timevar.h
2940         (reg_scan):  Set timevar
2941         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
2942
2943 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2944
2945         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
2946
2947         * Makefile.in (loop-unroll.o): New.
2948         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
2949         (unroll_and_peel_loops): Declare.
2950         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
2951         flag_old_unroll_loops.
2952         * loop.c (loop_invariant_p): Ditto.
2953         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
2954         flag_old_unroll_all_loops.
2955         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
2956         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
2957         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
2958         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
2959         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
2960         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
2961         PARAM_MAX_ONCE_PEELED_INSNS): New.
2962         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
2963         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
2964         instead of old one.
2965         (flag_peel_loops): New.
2966         (lang_independent_options): The new flags added.
2967         (rest_of_compilation): Call new unroller.
2968         (process_options): Setup flags for coexistence of old and new unroller.
2969         * doc/invoke.texi: Document new options.
2970         * doc/passes.texi: Document new unroller pass.
2971
2972 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
2973
2974         * fixinc/fixincl.x: Regenerate
2975
2976 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
2977
2978         * function.c (assign_parms): Set reg_attrs for parameters passed in
2979         registers.
2980
2981 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
2982
2983         PR target/9681
2984         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
2985
2986 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
2987
2988         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
2989         pseudo-op.
2990
2991 2003-02-25  Roger Sayle  <roger@eyesopen.com>
2992
2993         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
2994         * cse.c (invalidate_skipped_set):  Likewise.
2995         * integrate.c (subst_constants):  Likewise.
2996         * jump.c (reversed_comparison_code_parts):  Likewise.
2997         * loop.c (canonicalize_condition):  Likewise.
2998         * simplify-rtx.c (simplify_relational_operation):  Likewise.
2999
3000 2003-02-25  Roger Sayle  <roger@eyesopen.com>
3001
3002         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
3003         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
3004         the appropriate macro to define built-in function.
3005         (fmod,fmodf,fmodl): New built-in functions.
3006
3007         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
3008
3009 2003-02-25  Richard Henderson  <rth@redhat.com>
3010
3011         * config/i386/i386.c (function_arg): Pass variable sized
3012         structures correctly on the stack.
3013
3014 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
3015
3016         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
3017         does not reduce the cost of SET.
3018
3019 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3020
3021         PR target/9732
3022         * config/rs6000/rs6000.c (first_reg_to_save): Handle
3023         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
3024         (rs6000_emit_prologue): Likewise.
3025         (rs6000_emit_epilogue): Likewise.
3026         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
3027         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
3028
3029 2003-02-25  Richard Henderson  <rth@redhat.com>
3030
3031         * real.c (real_to_integer2): Force overflow result only for
3032         unsigned overflow.
3033
3034 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
3035
3036         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
3037
3038 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
3039             Richard Henderson  <rth@redhat.com>
3040
3041         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
3042         there is no similar load.
3043
3044 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
3045             Richard Henderson  <rth@redhat.com>
3046
3047         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
3048         sched-rgn.c.
3049         (add_forward_dependence): New function prototype.
3050
3051         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
3052         sched-init.h.
3053         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
3054         them to haifa-sched.c.
3055
3056         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
3057         haifa_classify_insn): Move them from sched-rgn.c.
3058
3059         * sched-deps.c (add_dependence): Return flag of creating a new
3060         entry.
3061         (add_forward_dependence): New function.
3062         (compute_forward_dependences): Use the function.
3063
3064         * sched-ebb.c (earliest_block_with_similiar_load): New function.
3065         (add_deps_for_risky_insns): New function.
3066         (schedule_ebb): Call the function.
3067
3068 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
3069
3070         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
3071         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
3072
3073         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
3074         opaque types fail.
3075
3076         * c-typeck.c (comptypes): Change call to vector_types_compatible
3077         to vector_opaque_p.
3078         (convert_for_assignment): Call vector_opaque_p instead of
3079         vector_types_compatible.
3080         (really_start_incremental_init): Disallow initialization of opaque
3081         types.
3082
3083         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
3084         Define TARGET_VECTOR_OPAQUE_P.
3085         (TARGET_INITIALIZER): Same.
3086
3087         * target.h (struct gcc_target): Remove vector_types_compatible.
3088         Add vector_opaque_p.
3089
3090         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
3091         Remove.
3092         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
3093         a vector type.  Change return type to bool.
3094         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
3095         (TARGET_VECTOR_OPAQUE_P): Define.
3096
3097         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
3098         target hook.
3099         Include target.h.
3100         (cp_parser_init_declarator): Fix typo in function comments.
3101
3102 2003-02-25  Jan Hubicka  <jh@suse.cz>
3103
3104         * Makefile.in (lcm.o):  Add dependency on function.h
3105         * lcm.c (function.h): Include.
3106         * i386.c (machine_function, ix86_stack_locals,
3107         * ix86_save_varrargs_registers) : Move to
3108         ...
3109         * i386.h (machine_function, ix86_stack_locals,
3110         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
3111         (ix86_optimize_mode_switching): New.
3112         * i386.md (fix patterns): Set ix86_optimize_mode_switching
3113
3114 2003-02-25  Nick Clifton  <nickc@redhat.com>
3115
3116         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
3117         of fourth arg is 'fndecl' not 'indirect'.  Update comment
3118         describing the function's parameters.
3119
3120 2003-02-24  Jan Hubicka  <jh@suse.cz>
3121
3122         * combine.c (simplify_shift_const):  Fix previous patch.
3123
3124 2003-02-24  Jeff Law  <law@redhat.com>
3125
3126         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
3127         alternative.
3128         (testsi_1, testhi_1, testqi_1): Likewise.
3129
3130 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3131
3132         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
3133         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
3134         * doc/extend.texi (Tru64 Pragmas): Reflect this.
3135
3136         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
3137         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
3138         * fixinc/fixincl.x: Regenerate.
3139         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
3140         testcase.
3141         Fixes PR c/5059, c/6126, other/9671.
3142
3143 2003-02-24  Roger Sayle  <roger@eyesopen.com>
3144
3145         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
3146         from handle_braces in "%{...}".
3147
3148 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
3149
3150         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
3151         (prepare_move_operands): Handle TLS operands.
3152         (tls_symbolic_operand): New.
3153         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
3154         (legitimize_pic_address): Do nothing for the TLS symbol.
3155         (sh_encode_section_info): Handle TLS case.
3156         (sh_strip_name_encoding): Drop TLS encoding.
3157         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
3158         * config/sh/sh.h (SH_TLS_ENCODING): Define.
3159         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
3160         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
3161         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
3162         * config/sh/sh.md: Define TLS UNSPEC constants.
3163         (type): Add tls_load.
3164         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
3165         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
3166         ("tls_initial_exec"): New insn.
3167         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
3168         ("load_gbr"): New insn.
3169
3170         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
3171         * configure: Regenerate.
3172
3173 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
3174
3175         PR 9297, PR 9722
3176         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
3177         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
3178         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
3179         (enum block_op_methods): Reorder for better store_expr optimization.
3180         * expr.c (store_expr): Test bit 1 of "want_value" for call param
3181         stores, test bit 0 for original want_value meaning.  Pass
3182         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
3183         recursive calls, and calls to expand_param.
3184         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
3185         expected, set target to 0 rather than to subtarget.  Formatting.
3186
3187 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
3188
3189         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
3190
3191 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3192
3193         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
3194         new default behavior.
3195         * ggc-common.c: Include sys/resource.h.
3196         (ggc_rlimit_bound): New function.
3197         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
3198         defaults to account for rlimits.
3199
3200 2003-02-22  Richard Henderson  <rth@redhat.com>
3201
3202         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
3203
3204 2003-02-22  Kelley Cook <kelley@dwhoops.info>
3205
3206         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
3207         (ix86_tune_string): Rename from ix86_cpu_string.
3208
3209 2003-02-22  Kelley Cook <kelleycook@comcast.net>
3210
3211         * config/i386/i386.c: Replace "mcpu" with "mtune".
3212         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
3213         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
3214         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
3215         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
3216
3217 2003-02-23  Andreas Schwab  <schwab@suse.de>
3218
3219         * config.gcc: Delete references to m68k/t-linux and
3220         m68k/t-linux-aout.
3221         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
3222
3223 2003-02-22  Jan Hubicka  <jh@suse.cz>
3224
3225         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
3226         of track scheduling patch.
3227
3228 2003-02-22  Jan Hubicka  <jh@suse.cz>
3229
3230         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
3231         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
3232
3233 2003-02-22  Jan Hubicka  <jh@suse.cz>
3234
3235         * c-decl.c (c_expand_body_1): Fix.
3236
3237 2003-02-22  Jan Hubicka  <jh@suse.cz>
3238
3239         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
3240
3241         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
3242         when not optimizing.
3243         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
3244         when not expensive.
3245         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
3246         optimizing;  Delete trivially dead insns early; fix optimize check.
3247
3248         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
3249         dependency on cgraph.h
3250         * c-decl.c: Include cgraph.h
3251         (finish_function): Update call of tree_inlinable_function_p.
3252         * c-objc-common.c: Include cgraph.h
3253         * cgraph.h: New file.
3254         * cgraphunit.c: New file.
3255         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
3256         (cgraph_nodes, cgraph_n_nodes): Globalize.
3257         (cgraph_finalize_function, cgraph_finalize_compilation_unit
3258         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
3259         Move into cgraphunit.c
3260         * tree-inline.c: Include cgraph.h
3261         * tree-inline.c: Include cgraph.h
3262
3263 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
3264
3265         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
3266         for copying a register.
3267
3268 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3269
3270         PR other/3782
3271         * toplev.c (process_options): If flag_detailed_statistics is set,
3272         then set time_report as well.
3273
3274         PR c/8828
3275         * jump.c (never_reached_warning): Don't fall through BARRRIER
3276         insns.  Update comments to reflect what the function really does.
3277
3278 2003-02-21  Roger Sayle  <roger@eyesopen.com>
3279
3280         * fold-const.c (omit_one_operand): No longer static.
3281         * tree.h (omit_one_operand): Prototype here.
3282         (div_and_round_double): Keep fold-const.c prototypes together.
3283         * builtins.c (builtin_mathfn_code): Handle binary built-in
3284         funtions, such as "pow" and "atan2".
3285         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
3286         Simplify optimizations using "type" the builtin's return type.
3287
3288 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
3289
3290         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
3291         Fix functionalization typo.
3292
3293         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
3294         in an asm.
3295
3296 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3297
3298         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
3299         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
3300         documentation.
3301         * ggc-common.c: Include params.h
3302         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
3303         init_ggc_heuristics): New functions.
3304         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
3305         init_ggc_heuristics): Prototype.
3306         * toplev.c (print_version):  Output GGC heuristics.
3307         (parse_options_and_default_flags): Call init_ggc_heuristics.
3308
3309 2003-02-22  Jan Hubicka  <jh@suse.cz>
3310
3311         * i386.c (def_builtin):  Special case 64bit builtins.
3312         (MASK_SSE164, MASK_SSE264): New constants.
3313         (builtin_description): Add 64bit builtins.
3314         (ix86_init_mmx_sse_builtins): Likewise.
3315         * i386.h (enum ix86_builtins): Likewise.
3316         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
3317         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
3318         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
3319         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
3320         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
3321         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
3322         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
3323
3324 2003-02-22  Jan Hubicka  <jh@suse.cz>
3325
3326         * i386.c (builtin_description): Add __builtin_ia32_paddq and
3327         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
3328          and __builtin_ia32_psubq128.
3329         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
3330         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
3331         (mmx_adddi3, mmx_subdi3): New.
3332         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
3333         * xmmintrin.h (_mm_movepi64_pi64): New.
3334         (_mm_add_epi64, _mm_sub_epi64): fix.
3335         (_mm_mul_pu16): Rename to...
3336         (_mm_mul_su32): ... this one.
3337
3338         * builtins.c (expand_builtin_expect):  Do not predict
3339         flag_guess_branch_prob is not set.
3340         * c-semantics.c (expand_stmt): Likewise.
3341         * predict.c (predict_insn): Likewise.
3342         * stmt.c (expand_continue_loop): Likewise.
3343         * toplev.c (rest_of_compilation): Do not call
3344         note_prediction_to_br_prob and note_prediction_to_br_prob
3345         when not optimizing.
3346
3347 2003-02-21  Jan Hubicka  <jh@suse.cz>
3348
3349         * cfgrtl.c (commit_edge_insertions):  Call
3350         find_many_sub_basic_block only when some code has been emitted.
3351         (commit_edge_insertions_watch_calls): Bring into sync with
3352         commit_edge_insertions
3353
3354 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
3355
3356         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
3357
3358         * sh.md (binary_sf_op): Use extra constant operand instead of
3359         negating constant operand 4.
3360         * sh.c (sh_expand_binop_v2sf): Supply it.
3361
3362 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
3363
3364         * cpphash.h (struct lexer_state): Add directive_wants_padding.
3365         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
3366         for directives of type INCL.
3367         (glue_header_name, parse_include): Use get_token_no_padding.
3368         * cppmacro.c (replace_args): If directive_wants_padding,
3369         provide padding tokens.
3370
3371 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
3372
3373         * config/h8300/h8300.md (a peephole2): New.
3374
3375 2003-02-21  Jan Hubicka  <jh@suse.cz>
3376
3377         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
3378         (commit_edge_insertions): Call find_many_sub_basic_blocks
3379
3380         * reg-stack.c (convert_regs): Cleax aux for blocks.
3381
3382 2003-02-21  Jan Hubicka  <jh@suse.cz>
3383
3384         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
3385
3386 2003-02-21  Glen Nakamura  <glen@imodulo.com>
3387
3388         PR optimization/8613
3389         * builtins.c (expand_builtin): Emit postincrements before expanding
3390         builtin functions.
3391
3392 2003-02-21  Ben Elliston  <bje@redhat.com>
3393
3394         PR other/5634
3395         * doc/install.texi (Configuration): Explain using $HOME instead of
3396         the ~ metacharacter when referring to home directories.
3397
3398 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
3399
3400         * configure.in (TARGET_SYSTEM_ROOT): Set default to
3401         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
3402         '${exec_prefix}' (in addition to the expansion thereof) as
3403         relocatable.
3404         * configure: Rebuilt.
3405
3406 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3407
3408         * config/h8300/h8300.md (addhi3_incdec): Change the name to
3409         *addhi3_incdec.
3410         (addsi3_incdec): Change the name to *addsi3_incdec.
3411
3412 2003-02-20  Roger Sayle  <roger@eyesopen.com>
3413
3414         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
3415
3416 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
3417
3418         PR fortran/9038
3419         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
3420         options to be ignored.
3421         (c_common_decode_option): Ignore them when preprocessing.
3422
3423 2003-02-20  Jan Hubicka  <jh@suse.cz>
3424
3425         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
3426         global variables.
3427         (lang_independent_options):  Add -fsched2-use-superblocks
3428         -fsced2-use-traces.
3429         (rest_of_compilation): Deal with it.
3430         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
3431         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
3432         Declare.
3433         * rtl.h (reg_to_stack):  Update prototype.
3434         * reg-stack.c (reg_to_stack): Return when something has changed;
3435         update liveness when executing after superblock scheduling.
3436
3437         * combine.c (simplify_shift_const):  Simplify few special cases
3438         into constants.
3439
3440 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
3441
3442         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
3443         (add.,subf.,neg.): Change attribute to fast_compare.
3444         All DFA descriptions updated.
3445
3446 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
3447
3448         Change base class access representation.
3449         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
3450         TREE_VIA_PRIVATE): Remove.
3451         (BINFO_BASEACCESSES): New binfo elt.
3452         (BINFO_BASEACCESS): New accessor.
3453         (BINFO_ELTS): Increase.
3454         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
3455         (access_public_node, access_protected_node,
3456         access_private_node): New global nodes.
3457         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
3458         * dbxout.c (dbxout_type): Adjust.
3459         * dwarf2out.c (gen_inheritance_die): Add access parameter.
3460         (gen_member_die): Adjust.
3461         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
3462         (output_type): Adjust.
3463         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
3464
3465         Change base class access representation. Share virtual base
3466         binfos.
3467         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
3468         call.
3469         * cp/class.c (build_base_path): Likewise.
3470         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
3471         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
3472         (make_new_vtable): Adjust.
3473         (force_canonical_binfo_r): Delete.
3474         (force_canonical_binfo): Delete.
3475         (mark_primary_virtual_base): Delete.
3476         (dfs_unshared_virtual_bases): Delete.
3477         (mark_primary_bases): Adjust.
3478         (maybe_warn_about_overly_private_class): Adjust.
3479         (dfs_base_derived_from): Delete.
3480         (base_derived_from): Follow the inheritance chain.
3481         (struct find_final_overrider_data): Add vpath member.
3482         (dfs_find_final_overrider): Adjust.
3483         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
3484         (find_final_overrider): Adjust.
3485         (update_vtable_entry_for_fn): Adjust.
3486         (modify_all_vtables): Adjust.
3487         (walk_subobject_offsets): Adjust.
3488         (layout_nonempty_base_or_field): Adjust.
3489         (layout_empty_base): Remove last parameter. Adjust.
3490         (build_base_field): Adjust.
3491         (build_base_fields): Adjust.
3492         (propagate_binfo_offsets): Remove last parameter. Adjust.
3493         (dfs_set_offset_for_unshared_vbases): Delete.
3494         (layout_virtual_bases): Adjust.
3495         (finish_struct_1): Adjust.
3496         (init_class_processing): Don't init access nodes.
3497         (dfs_get_primary_binfo): Delete.
3498         (get_primary_binfo): Adjust.
3499         (dump_class_hierarchy_r): Remove most derived arg, add IGO
3500         parameter. Adjust.
3501         (dump_class_hierarchy): Adjust.
3502         (finish_vtbls): Adjust.
3503         (get_original_base): Delete.
3504         (build_vtt_inits): Adjust.
3505         (dfs_build_secondary_vptr_vtt_inits): Adjust.
3506         (dfs_ctor_vtable_bases_queue_p): Adjust.
3507         (build_ctor_vtbl_group): Adjust.
3508         (dfs_accumulate_vtbl_inits): Adjust.
3509         (build_vtbl_initializer): Adjust.
3510         (build_vbase_offset_vtbl_entries): Adjust.
3511         (add_vcall_offset_vtbl_entries_1): Adjust.
3512         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
3513         (access_*_node): Remove.
3514         (CANONICAL_BINFO): Delete.
3515         (BINFO_UNSHARED_MARKED): Remove.
3516         (BINFO_MARKED): Set LANG_FLAG_0 directly.
3517         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
3518         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
3519         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
3520         Delete.
3521         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
3522         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
3523         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
3524         Delete.
3525         (BINFO_DEPENDENT_BASE_P): New.
3526         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
3527         index.
3528         (markedp, unmarkedp): Adjust.
3529         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
3530         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
3531         find_vbase_instance, binfo_for_vbase): Delete.
3532         (copied_binfo, original_binfo): Declare.
3533         (finish_base_specifier): Add virtual_p arg.
3534         (unshare_base_binfos): Delete.
3535         (copy_base_binfos): Declare.
3536         (reverse_path): Delete.
3537         * cp/decl.c (xref_basetypes): Access and virtuality passed
3538         differently. Don't copy direct base binfos here. Call
3539         copy_base_binfos.
3540         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
3541         (initialize_vtbl_ptrs): Adjust.
3542         (expand_member_init): Adjust.
3543         * cp/parser.c (cp_parser_base_specifier): Adjust.
3544         * cp/pt.c (instantiate_class_template): Adjust.
3545         (get_template_base_recursive): Adjust.
3546         * cp/rtti.c (get_pseudo_ti_init): Adjust.
3547         (get_pseudo_ti_desc): Adjust.
3548         * cp/tree.c (unshare_base_binfos): Rename to ...
3549         (copy_base_binfos): ... here, reimplement.
3550         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
3551         (reverse_path): Remove.
3552         * cp/typeck.c (get_delta_difference): Adjust error messages.
3553         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
3554         * cp/search.c (lookup_base_r): Adjust.
3555         (dynamic_cast_base_recurse): Adjust.
3556         (canonical_binfo): Remove.
3557         (dfs_canonical_queue): Remove.
3558         (dfs_assert_unmarked_p): Remove.
3559         (assert_canonical_unmarked): Remove.
3560         (shared_marked_p, shared_unmarked_p): Remove.
3561         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
3562         (dfs_access_in_type): Adjust.
3563         (access_in_type): Adjust.
3564         (dfs_accessible_queue_p): Adjust.
3565         (dfs_accessible_p): Adjust.
3566         (is_subobject_of_p_1, is_subobject_of_p): Remove.
3567         (struct lookup_field_info): Remove from_dep_base_p field.
3568         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
3569         (lookup_field_r): Remove dependent base code.
3570         (lookup_member): Likewise.
3571         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
3572         (dfs_unmarked_real_bases_queue_p): Remove.
3573         (dfs_marked_real_bases_queue_p): Remove.
3574         (dfs_skip_vbases): Remove.
3575         (dfs_get_pure_virtuals): Adjust.
3576         (markedp, unmarkedp): Adjust.
3577         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
3578         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
3579         (dfs_unmark): Adjust.
3580         (dfs_get_vbase_types):Remove.
3581         (dfs_build_inheritance_graph_order): Remove.
3582         (get_vbase_types): Remove
3583         (dfs_find_vbase_instance): Remove.
3584         (find_vbase_instance): Remove.
3585         (dfs_debug_unmarkedp): Adjust.
3586         (dependent_base_p): Remove.
3587         (dfs_push_type_decls): Adjust.
3588         (dfs_push_decls): Adjust.
3589         (dfs_no_overlap_yet): Adjust.
3590         (copied_binfo): New function.
3591         (original_binfo): New function.
3592         (binfo_for_vbase): Remove.
3593
3594         Change base class access representation.
3595         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
3596         (add_interface_do): Likewise.
3597
3598 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
3599
3600         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
3601         * config/rs6000/power4.md (power4-store,power4-vecstore): New
3602         insn reservations.
3603         (power4-fpstore): Compact.
3604
3605 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3606
3607         * config/h8300/h8300.md (*iorsi3_w): New.
3608
3609 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
3610
3611         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
3612         * rtl.c (reg_note_name): Likewise.
3613         * rtl.h (enum reg_note): Likewise.
3614         * doc/invoke.texi: Likewise.
3615         * doc/rtl.texi: Likewise.
3616
3617 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
3618
3619         * bb-reorder.c (find_traces_1_round): Fix comment typo.
3620
3621 2003-02-19  Roger Sayle  <roger@eyesopen.com>
3622
3623         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
3624         addition in the presence of signaling NaNs.
3625
3626 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
3627
3628         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
3629
3630 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3631
3632         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
3633         ORing with 0xffff??00 with the highest bit of the ?? part set.
3634         (compute_logical_op_length): Update.
3635         (compute_logical_op_cc): Likewise.
3636
3637 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
3638
3639         * bb-reorder.c (find_traces_1_round): Fixed condition for small
3640         destination block with multiple predecessors.
3641         (connect_traces): Check whether the block is a start of trace.
3642
3643 2003-02-19  Jan Hubicka  <jh@suse.cz>
3644
3645         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
3646         * function.c (assign_params): Likewise.
3647         * arm-protos.h (arm_init_cumulative_args): Update prototype.
3648         * arm.c (arm_init_cumulative_args): Update function.
3649         * arm.h (INIT_CUMULATIVE_ARGS): Update.
3650         * avr-protos.h (init_cumulative_args): Update prototype.
3651         * avr.c (init_cumulative_args): Update function.
3652         * avr.h (INIT_CUMULATIVE_ARGS): Update.
3653         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
3654         * d30v.c (d30v_init_cumulative_args): Update function.
3655         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
3656         * frv-protos.h (frv_init_cumulative_args): Update prototype.
3657         * frv.c (frv_init_cumulative_args): Update function.
3658         * frv.h (INIT_CUMULATIVE_ARGS): Update.
3659         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
3660         * pa.h (INIT_CUMULATIVE_ARGS): Update.
3661         * sparc-protos.h (init_cumulative_args): Update prototype.
3662         * sparc.c (init_cumulative_args): Update function.
3663         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
3664         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
3665
3666 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3667
3668         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
3669         (*ashiftsi_sextqi_7): Likewise.
3670
3671 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3672
3673         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
3674         ISO C99 and C++.
3675
3676         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
3677         for C++ on IRIX 6.5.1[89].
3678         * fixinc/tests/base/internal/sgimacros.h: New file.
3679
3680         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
3681         * fixinc/tests/base/internal/wchar_core.h: New file.
3682
3683         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
3684         socklen_t definition.
3685         * fixinc/fixincl.x: Regenerate.
3686         * fixinc/tests/base/sys/socket.h: New file.
3687         Fixes PR libgcj/9652.
3688
3689 2003-02-19  Jan Hubicka  <jh@suse.cz>
3690
3691         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
3692
3693 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
3694
3695         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
3696         align_jumps_max_skip and align_loops_max_skip.
3697
3698 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
3699
3700         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
3701         test size if named section.
3702
3703 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
3704
3705         * expr.c (expand_expr): Use gen_int_mode for the argument
3706         to gen_rtx_MULT.
3707
3708 2003-02-19  Jan Hubicka  <jh@suse.cz>
3709
3710         * i386.md (cosxf2):  Fix conditional.
3711
3712 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3713
3714         * config/h8300/h8300.md (extendqisi2): Change to an expander.
3715         (*extendqisi2_h8300): New.
3716         (*extendqisi2_h8300hs): Likewise.
3717
3718 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3719
3720         * config/h8300/h8300-protos.h: Update the prototype for
3721         split_adds_subs.  Remove the prototypes for
3722         const_int_le_2_operand and const_int_le_6_operand.
3723         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
3724         (const_int_le_2_operand): Remove.
3725         (const_int_le_6_operand): Likewise.
3726         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
3727         for const_int_le_2_operand and const_int_le_6_operand.
3728         * config/h8300/h8300.md: Update all uses of split_adds_subs.
3729         (a peephole2): New.
3730
3731 2003-02-18  Jan Hubicka  <jh@suse.cz>
3732
3733         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
3734         (cgraph_expand_function): Rewrite.
3735
3736 2003-02-18  Matt Austern <austern@apple.com>
3737
3738         * toplev.c, langhooks.c, langhooks-def.h: Move
3739         write_global_declarations from toplev.c to langhooks.c.
3740
3741 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3742
3743         * config/h8300/h8300.c (general_operand_src): Always check
3744         MODE.
3745         (general_operand_dst): Likewise.
3746
3747 2003-02-18  Roger Sayle  <roger@eyesopen.com>
3748
3749         * convert.c (convert_to_real): Also optimize (float)log(x) into
3750         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
3751
3752 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3753
3754         * config/sh/sh.c (unspec_caller_rtx_p): New.
3755         (sh_cannot_copy_insn_p): New.
3756         (TARGET_CANNOT_COPY_INSN_P): New.
3757
3758 2003-02-18  Richard Henderson  <rth@redhat.com>
3759
3760         * c-common.c (handle_used_attribute): Accept static data too.
3761
3762 2003-02-18  Nick Clifton  <nickc@redhat.com>
3763             Aldy Hernandez  <aldyh@redhat.com>
3764
3765         * testsuite/gcc.dg/20030218-1.c: New.
3766
3767         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
3768
3769         * target-def.h (TARGET_INITIALIZER): Add
3770         TARGET_VECTOR_TYPES_COMPATIBLE.
3771         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
3772
3773         * target.h (struct gcc_target): Add field vector_types_compatible.
3774
3775         * c-typeck.c (comptypes): Take into account
3776         TARGET_VECTOR_TYPES_COMPATIBLE.
3777         (convert_for_assignment): Same.
3778
3779         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
3780         (rs6000_spe_vector_types_compatible): New.
3781         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
3782
3783 2003-02-19  Andreas Schwab  <schwab@suse.de>
3784
3785         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
3786         * toplev.c: Include langhooks-def.h.
3787
3788 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
3789
3790         * config/mips/mips.h (enum processor_type): Sort entries
3791         alphabetically.
3792         * config/mips/mips.md (define_attr cpu): Sync with processor_type
3793         enum values, including adding entries that were missing.
3794
3795 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
3796
3797         * sh.c (calc_live_regs): Also check GET_CODE when checking if
3798         initial value for PR_REG is still the PR_REG register.
3799
3800 2003-02-18  Jim Wilson  <wilson@redhat.com>
3801
3802         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
3803         instruction in output template.
3804         (bsp_value): Change output template from string to C code, add %,
3805         before actual instruction.
3806         (flushrs): Mark as not predicable.
3807
3808 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
3809
3810         * inclhack.def (netbsd_bogus_semicolon): New fix.
3811         * fixincl.x: Rebuilt.
3812         * tests/base/ctype.h: Update.
3813
3814 2003-02-18  Roger Sayle  <roger@eyesopen.com>
3815
3816         * fold-const.c (negate_expr_p): New function to determine whether
3817         an expression can be negated cheaply.
3818         (fold) [MINUS_EXPR]: Use it to determine whether to transform
3819         -A - B into -B - A for floating point types.
3820
3821 2003-02-18  Roger Sayle  <roger@eyesopen.com>
3822
3823         * sbitmap.c (sbitmap_resize): New function.
3824         * sbitmap.h (sbitmap_resize): Prototype here.
3825         * recog.c (split_all_insns): Use sbitmap_resize.
3826
3827 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3828
3829         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
3830         insn length.
3831         (extendqisi2): Likewise.
3832         (*extendhisi2_h8300): Likewise.
3833
3834 2003-02-18  Matt Austern <austern@apple.com>
3835
3836         * langhooks.h, langhooks-def.h: introduce new langhook,
3837         final_write_globals, with write_global_declarations as default.
3838         * toplev.c: Move invocation of wrapup_global_declarations from
3839         compile_file to new function, write_global_declarations.  Change
3840         compile_file to use final_write_globals hook.  Change
3841         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
3842         conditional.
3843
3844 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3845
3846         * pa.md: Correct and enhance comment.
3847
3848 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
3849
3850         * gcc.c (validate_switches): Don't scan past closing '}'.
3851
3852 2003-02-18  Ben Elliston  <bje@redhat.com>
3853
3854         PR c++/1607
3855         * doc/extend.texi (Function Attributes): Document the effect of
3856         the C++ "this" parameter on the counting of arguments for the
3857         "format" and "format_arg" attributes.
3858
3859 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
3860
3861         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
3862         (__ev_stdw): Same.
3863         (__ev_stdh): Same.
3864
3865 2003-02-17  Jan Hubicka  <jh@suse.cz>
3866
3867         * recog.c (split_all_insns):  Fix memory overflow.
3868
3869 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
3870
3871         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
3872         (cmphi): Likewise.
3873         (*cmphi_h8300): Likewise.
3874         (*cmphi_h8300hs): Likewise.
3875         (cmpsi): Likewise.
3876         (7 peephole2): Likewise.
3877
3878 2003-02-16  Jan Hubicka  <jh@suse.cz>
3879
3880         * c-typeck.c (build_c_cast):  Fold constant variables into
3881         initial values.
3882
3883 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3884
3885         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
3886         (Binaries): Ditto for Sinix/Reliant Unix.
3887
3888 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
3889
3890         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
3891         not overlap the final result register.
3892
3893 2003-02-16 Arend Bayer <arend.bayer@web.de>
3894            Richard Henderson  <rth@redhat.com>
3895
3896         PR c/8068
3897         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
3898         rearrange mult arguments for less recursion.
3899         (extract_muldiv): New.  Prevent runaway recursion.
3900
3901 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
3902
3903         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
3904         MASK_ALIGN_DOUBLE.
3905
3906 2003-02-15  Roger Sayle  <roger@eyesopen.com>
3907
3908         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
3909         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
3910         (ext_80387_constants_table): Global table of 80387 special constants
3911         guarded by ext_80387_constants_init flag when not initialized.
3912         (init_ext_80387_constants): New function to initialize this table.
3913         (standard_80387_constant_p): Extend to recognize extra 80387
3914         constants, in XFmode, on processors where this is a win.
3915         (standard_80387_constant_opcode): New function to return the
3916         opcode associated with standard_80387_constant_p.
3917         (standard_80387_constant_rtx): New function to return the XFmode
3918         CONST_DOUBLE associated with standard_80387_constant_p.
3919         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
3920
3921         * config/i386/i386-protos.h (standard_80387_constant_opcode):
3922         Prototype here.
3923         (standard_80387_constant_rtx): Likewise.
3924
3925         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
3926         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
3927         *movtf_integer): Simplify using new standard_80387_constant_opcode.
3928
3929 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
3930
3931         * doc/invoke.texi (Optimize Options): Correct @option syntax.
3932
3933 2003-02-15  Richard Henderson  <rth@redhat.com>
3934
3935         * Makefile.in (cfglayout.o): Depend on TARGET_H.
3936         * cfglayout.c: Include target.h.
3937         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
3938         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
3939         * target.h (struct gcc_target): Add cannot_copy_insn_p.
3940
3941         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
3942         (TARGET_CANNOT_COPY_INSN_P): New.
3943         (override_options): Revert 2003-02-08 hack.
3944
3945 2003-02-15  Richard Henderson  <rth@redhat.com>
3946
3947         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
3948         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
3949
3950 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
3951
3952         * config/rs6000/rs6000.h (processor_type): Add PPC440.
3953         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3954         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3955         TARGET_SCHED_VARIABLE_ISSUE): Define.
3956         (rs6000_use_dfa_pipeline_interface): New function.
3957         (rs6000_multipass_dfa_lookahead): New Function.
3958         (rs6000_variable_issue): New function.
3959         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
3960         (rs6000_issue_rate): Add PPC440.
3961         * config/rs6000/rs6000.md (unspec list): Correct typo.
3962         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
3963         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
3964         cmp, delayed_cr, mfcr, mtcr.
3965         (automata_option): Set "ndfa".
3966         (extendMMNN2): Update attributes.
3967         (movcc_internal1): Discourage move to non-cr0.  Update
3968         attributes.
3969         (movMM_update): Update attributes.
3970         (cmpMM_internal): Update attributes.
3971         (sCC CR materialization): Update attributes.
3972         (branch patterns): Do not discourage non-cr0.
3973         (cr logical patterns): Prefer destructive register allocation.
3974         Update attributes.
3975         (movesi_from_cr): Update attribute.
3976         (mtcrf_operation): Update attribute.
3977         (mtcrfsi): Update attribute.
3978         * config/rs6000/40x.md: New file.
3979         * config/rs6000/603.md: New file.
3980         * config/rs6000/6xx.md: New file.
3981         * config/rs6000/7450.md: New file.
3982         * config/rs6000/7xx.md: New file.
3983         * config/rs6000/mpc.md: New file.
3984         * config/rs6000/power4.md: New file.
3985         * config/rs6000/rios1.md: New file.
3986         * config/rs6000/rios2.md: New file.
3987         * config/rs6000/rs64.md: New file.
3988         [Some DFA descriptions based on work by Michael Hayes]
3989
3990 2003-02-15  Richard Henderson  <rth@redhat.com>
3991
3992         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
3993         successors with multiple predecessors.
3994         (connect_traces): Try harder to copy traces of length 1.
3995
3996         * function.h (struct function): Add computed_goto_common_label,
3997         computed_goto_common_reg.
3998         * function.c (free_after_compilation): Zap them.
3999         * stmt.c (expand_computed_goto): Use them to produce one
4000         indirect branch per function.
4001
4002 2003-02-15  Richard Henderson  <rth@redhat.com>
4003
4004         * cfgcleanup.c: Include params.h.
4005         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
4006         too many outgoing edges from a block.
4007         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
4008         * params.def (max-crossjump-edges): New.
4009         * doc/invoke.texi: Document it.
4010
4011 2003-02-15  Richard Henderson  <rth@redhat.com>
4012
4013         * recog.c (split_all_insns): Include new blocks in life update;
4014         do a global life update.
4015
4016 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
4017
4018         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
4019         Update copyright.
4020         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
4021         -mno-cygwin case.
4022
4023 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
4024
4025         PR optimization/7702
4026         * reload1.c (reload_cse_simplify_set): Honor
4027         CANNOT_CHANGE_MODE_CLASS.
4028
4029 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
4030
4031         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
4032         function.
4033         * config/mn10300/mn10300-protos.h: Declare it.
4034         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
4035         attribute cc of instructions that may use clr.
4036
4037 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
4038
4039         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
4040         (x - (x & y)) is found.
4041
4042 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4043
4044         * configure.in: Fix typo.
4045         * configure: Regenerate.
4046
4047 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
4048
4049         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
4050
4051 2003-02-13  Adam Nemet  <anemet@lnxw.com>
4052
4053         PR opt/2391
4054         * combine.c: Fix spelling in comment.
4055         (cached_nonzero_bits): New function.
4056         (cached_num_sign_bit_copies): New function.
4057         (nonzero_bits_with_known): New macro.
4058         (num_sign_bit_copies_with_known): New macro.
4059         (nonzero_bits1): Rename from nonzero_bits.  Add three new
4060         arguments.  Change calls from nonzero_bits to
4061         nonzero_bits_with_known.
4062         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
4063         three new arguments.  Change calls from num_sign_bit_copies to
4064         num_sign_bit_copies_with_known.
4065         (nonzero_bits): New macro.
4066         (num_sign_bit_copies): New macro.
4067         (update_table_tick): Don't traverse identical subexpression more
4068         than once.
4069         (get_last_value_validate): Likewise.
4070
4071 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
4072
4073         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
4074         * function.h (struct emit_status): Length of regno_pointer_align
4075         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
4076         not regno_pointer_align_length (i.e. length actually used, not
4077         length as allocated)
4078
4079         * config/i386/i386.c (struct stack_local_entry): New.
4080         (struct machine_function): Replace huge array with alist.
4081         (assign_386_stack_local): Change to match.
4082
4083 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
4084
4085         * inclhack.def (hpux_long_double): Tighten select and add bypass
4086         regexp.
4087         * fixincl.x: Rebuilt.
4088
4089 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
4090
4091         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
4092         edge and block ends with a jump insn it must be simple jump.
4093
4094 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
4095