OSDN Git Service

PR/10271
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2
3         PR/10271
4         * pa-protos.h (function_arg): Remove last argument.
5         * pa.c (function_arg): Likewise.  Use CUMULATIVE_ARGS struct instead.
6         * pa.h (struct hppa_args): Add member incoming. 
7         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
8         member incoming.
9         (FUNCTION_ARG): Revise call to function_arg.
10         (FUNCTION_INCOMING_ARG): Delete.
11
12 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
13
14         * configure.in: Unify the code which creates symlinks to a
15         just-built as, ld, objdump, and nm with the code that detects
16         their presence for purposes of feature tests.
17         * configure: Regenerate.
18
19 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
20
21         * varasm.c (output_constant_def): Do not consult
22         CONSTANT_AFTER_FUNCTION_P.  Remove all code predicated on it.
23         (after_function_constants, output_after_function_constants): Delete.
24         * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
25         * config/mips/mips-protos.h, config/mips/mips.c
26         (mips16_constant_after_function_p): Delete.
27         * config/mips/mips.h: Delete #if-0-ed definition of
28         CONSTANT_AFTER_FUNCTION_P.
29         * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
30         mention of CONSTANT_AFTER_FUNCTION_P in comment.
31
32 2003-04-15  Geoffrey Keating  <geoffk@apple.com>
33
34         * tree.c (next_decl_uid): Mark with GTY.
35         (next_type_uid): Likewise.
36
37 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
38
39         PR target/9594:
40         * sh.c (barrier_align): Also recognize stuff_delay_slot as
41         an indicator that a barrier was created by branch splitting.
42
43 2003-04-15  Mark Mitchell  <mark@codesourcery.com>
44
45         * c-decl.c (implicitly_declare): Copy declarations that are going
46         to be placed in a local scope.
47
48 2003-04-15  James A. Morrison  <ja2morri@uwaterloo.ca>
49
50         * invoke.texi (Spec Files): Wrap if-exists-else example.
51         (MCore): Remove duplicate @itemx entries and @opindex entries.
52
53 2003-04-15  Ulrich Weigand  <uweigand@de.ibm.com>
54
55         * unwind.inc (_Unwind_Backtrace): New function.
56         * unwind.h (_Unwind_Backtrace): Declare it.
57         * libgcc-std.ver (_Unwind_Backtrace): Export it.
58
59 2003-04-14  Jason Merrill  <jason@redhat.com>
60
61         PR middle-end/10336, c++/10401
62         * jump.c (never_reached_warning): Also stop looking if we reach the
63         beginning of the function.
64
65 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
66
67         PR target/10338
68         PR bootstrap/10198
69         PR bootstrap/10140
70         * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
71
72 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
73
74         * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
75
76 2003-04-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
77
78         * optabs.c (expand_binop): In multi-word add cases, ensure
79         XTARGET is copied to TARGET if they are different.
80
81 2003-04-15  Olivier Hainque <hainque@act-europe.fr>
82
83         * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
84         to region, possible after integration of function with unreachable
85         regions that were optimized away.
86
87 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
88
89         * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
90         instead of TOC_REGISTER in epilogue in
91         current_function_calls_eh_return functions.
92
93 2003-04-14  Mark Mitchell  <mark@codesourcery.com>
94
95         * doc/extend.texi (Empty Structures): Correct description of G++'s
96         handling of these structures.
97
98         * c-decl.c (grokdeclarator): Reject extern redeclarations of
99         static variables.
100
101 2003-04-14  Janis Johnson  <janis287@us.ibm.com>
102
103         * config/rs6000/rs6000.md (define_constants): Define constants for
104         all UNSPEC usage, including new values for TLS support.
105         (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
106         load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
107         load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
108         macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
109         stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
110         eh_set_lr_di): Use them.
111         * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
112         rs6000_emit_epilogue) Use them.
113
114         * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
115
116 2003-04-14  Neil Booth  <neil@daikokuya.co.uk>
117
118         * Makefile.in (c-opts.o): Use custom action.
119
120 2003-04-14  Douglas B Rupp  <rupp@gnat.com>
121
122         * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
123
124 2003-04-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
125
126         * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
127         handle "superflat arrays" in Ada.
128
129         * integrate.c (expand_inline_function): Don't inline if would
130         lose /u on a BLKmode TARGET.
131
132 2003-04-14  Joel Brobecker  <brobecker@gnat.com>
133
134         * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
135         extracted from dbxout_type.
136         (dbxout_range_type): print large bounds in octal format.
137         (dbxout_type): Replace extracted code by call to
138         print_int_cst_bounds_in_octal_p.
139
140         * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
141         of DW_LANG_Ada83 for Ada units.
142
143 2003-04-14  Olivier Hainque <hainque@act-europe.fr>
144
145         * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
146         temporary used to round CONST_INT sizes.
147
148         * tree.c (int_fits_type_p): Extract generic checks from the case
149         of constant type bounds. Refine the checks against constant type
150         bounds to allow for possible decisions against each of these bounds
151         without requiring both bounds to be constant.
152         (tree_int_cst_msb): Put back.
153         * tree.h (tree_int_cst_msb): Likewise.
154
155         * global.c (global_conflicts): Prevent allocation of call clobbered
156         hard regs to pseudos live across abnormal edges, as later passes are
157         not ready to handle them.
158
159         * fold-const.c (fold): Reorder tests for conditional expressions.
160
161         * expr.c (highest_pow2_factor): Return unsigned.
162         * expr.h (offset_address): Likewise.
163         * emit-rtl.c (offset_address): POW2 argument now unsigned.
164
165 2003-04-14  Roger Sayle  <roger@eyesopen.com>
166
167         * builtins.c (expand_builtin_strlen):  Evaluate the lengths of
168         string literals at compile-time.
169
170 2003-04-14  Roger Sayle  <roger@eyesopen.com>
171
172         * fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
173         comparison operation and c1/c2 are floating point constants into
174         x swap(cmp) (c1 - c2).
175
176 2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>
177
178         * genautomata.c (output_translate_vect): Fix a typo in loop
179         condition.
180
181 2003-04-14  Hans-Peter Nilsson  <hp@axis.com>
182
183         PR target/10377
184         * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
185         ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
186         ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
187         ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
188         ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
189         ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
190         ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
191         ("*extopqihi_swap_side", "*extopqisi_swap_side")
192         ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
193         When next to constraint R, replace constraint i with n.
194
195 Mon Apr 14 16:18:37 CEST 2003  Jan Hubicka  <jh@suse.cz>
196
197         PR opt/10024
198         * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
199
200 2003-04-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
201
202         * doc/contrib.texi (Contributors): Correct my entry.
203
204 2003-04-13  Roger Sayle  <roger@eyesopen.com>
205
206         * tree.h (DECL_BUILT_IN_NONANSI): Remove.
207         * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
208         * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
209         implies DECL_BUILT_IN to simplify logic.
210         * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
211
212 2003-04-13  Roger Sayle  <roger@eyesopen.com>
213
214         * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
215         (BT_FN_PTR_SIZE_SIZE): Likewise.
216         * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
217         New built-in functions for malloc, calloc and strdup respectively.
218         * calls.c (special_function_p): No need to handle malloc-like
219         functions any longer.  ECF_MALLOC is set via built-in attributes.
220
221         * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
222
223         * doc/extend.texi: Document these new built-in functions.
224
225 2003-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
226
227         * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
228         (expand_builtin_stpcpy): New.
229         (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
230         * builtins.def: Add mempcpy & stpcpy support.
231         * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
232
233 2003-04-13  Nick Clifton  <nickc@redhat.com>
234
235         * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
236         "GCC".
237         * config/rs6000/40x.md, config/rs6000/603.md,
238         config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
239         config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
240         config/rs6000/aix3newas.h, config/rs6000/aix41.h,
241         config/rs6000/aix43.h, config/rs6000/aix51.h,
242         config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
243         config/rs6000/altivec.h, config/rs6000/altivec.md,
244         config/rs6000/beos.h, config/rs6000/darwin.h,
245         config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
246         config/rs6000/eabisim.h, config/rs6000/eabispe.h,
247         config/rs6000/freebsd.h, config/rs6000/gnu.h,
248         config/rs6000/host-darwin.c, config/rs6000/linux.h,
249         config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
250         config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
251         config/rs6000/netbsd.h, config/rs6000/power4.md,
252         config/rs6000/rios1.md, config/rs6000/rios2.md,
253         config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
254         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
255         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
256         config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
257         config/rs6000/spe.md, config/rs6000/sysv4.h,
258         config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
259         config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
260
261 2003-04-13  Nick Clifton  <nickc@redhat.com>
262
263         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
264         support for -mcall-aix switch.
265         * config/rs6000/eabiaix.h: Delete.
266         * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
267         (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
268         RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
269         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
270         * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
271         debug_stack_info, output_function_profiler,
272         rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
273         * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
274         call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
275         call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
276         sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
277         * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
278         multilibs.
279         (MULTILIB_DIRNAMES): Remove mcall-aix directories.
280         (MULTILIB_EXCEPTIONS): Delete.
281         (MULTILIB_MATCHES): Remove mcall-aix matches.
282
283         * doc/fragments.texi: Replace -mcall-aix example with an ARM
284         one.
285         * doc/install.texi: Delete powerpc-*-eabiaix target.
286         * doc/invoke.texi: Remove documentation of mcall-aix switch.
287         * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
288         * config.gcc: Delete powerpc-*-eabiaix target.
289
290 2003-04-13  Kazu Hirata  <kazu@cs.umass.edu>
291
292         * doc/invoke.texi: Fix typos.
293         * doc/tm.texi: Likewise.
294
295 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
296
297         * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
298
299 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
300
301         * tree.c (build_constructor): New function.
302         * tree.h: Prototype it.
303
304         * c-typeck.c (build_c_cast, pop_init_level)
305         * profile.c (build_function_info_value, build_gcov_info_value)
306         (create_profiler):
307         Use build_constructor.
308
309         * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
310
311         * objc/objc-act.c (build_constructor):
312         Rename objc_build_constructor. Use build_constructor.
313         (build_objc_string_object, objc_add_static_instance)
314         (init_def_list, init_objc_symtab, init_module_descriptor)
315         (generate_static_references, build_selector_translation_table)
316         (build_descriptor_table_initializer, generate_descriptor_table)
317         (build_protocol_initializer, build_ivar_list_initializer)
318         (generate_ivars_list, build_dispatch_table_initializer)
319         (generate_dispatch_table, generate_protocol_list)
320         (build_category_initializer, build_shared_structure_initializer):
321         Update to match.
322
323 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
324
325         * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
326
327 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
328
329         * config/m68hc11/m68hc11-protos.h
330         (m68hc11_eq_compare_operator): Declare
331         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
332         * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
333         (d_register_operand): Check the operand mode.
334         (hard_addr_reg_operand): Likewise.
335
336 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
337
338         * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
339         pattern for dbcc/ibcc generation for 68HC12.
340         ("doloop_end"): New pattern.
341         ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
342         ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
343         ("m68hc12_dbcc_dec_qi"): New pattern.
344         ("m68hc12_dbcc_inc_qi"): New pattern.
345         (split): Add split for the above when we can't use dbcc/ibcc due to
346         reloading.
347         (peephole2): Add peephole2 to generate the above when possible.
348
349 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
350
351         * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
352         mode of operand 0.
353         (peephole2 optimize const load): Likewise for operand 2.
354         ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
355         clobbers CC_REGNUM.
356         ("*rotrhi3_with_carry"): Likewise.
357         (ashift:DI 1 split): Update pattern to create the above rotate.
358         (lshiftrt:DI 1 split): Likewise.
359
360 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
361
362         * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
363         ("tstqi_z_used" split): Use it.
364         ("cmphi_z_used"): Likewise.
365         ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
366         ("cmpqi_z_used"): Likewise.
367
368 2003-04-12  Mark Mitchell  <mark@codesourcery.com>
369
370         PR c++/7910
371         * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
372
373 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
374
375         * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
376         * configure, config.in: Regenerate.
377         * intl.c (gcc_gettext_width): New function.
378         * intl.h: Prototype it.
379
380 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
381
382         * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
383         recognize -mnorelax.
384         (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
385         (REG_CLASS_NAMES): Add its name.
386         (REG_CLASS_CONTENTS): Define its content.
387
388 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
389
390         * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
391         parameters so that offsets are valid for far definition.
392         (__mulsi3): Likewise and use ret to return.
393         (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
394
395 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
396
397         * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
398
399 2003-04-12  Alexandre Oliva  <aoliva@redhat.com>
400
401         * mklibgcc.in (libgcc-stage-start): For every multilib  directory
402         containing a libgcc.a, move lib* to the corresponding stage dir.
403
404         * Makefile.in (stage1-start, stage2-start, stage3-start,
405         stage4-start): Move $(SPECS) to specs in stage dir.
406         (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
407         back as $(SPECS).
408
409         * mklibgcc.in (libgcc-stage-start): Move into the stage directory
410         object files from the non-libgcc/ multilib directories as well.
411
412 2003-04-11  Geoffrey Keating  <geoffk@apple.com>
413
414         * profile.c (read_counts_file): Initialise 'checksum'.
415
416         * emit-rtl.c (gen_rtx): Really correct typo.
417
418         PR c++/9393
419         * doc/invoke.texi (Debugging Options): Document -frandom-seed.
420         * configure.in: Check for gettimeofday.
421         * tree.c (flag_random_seed): Define.
422         (default_flag_random_seed): New.
423         (append_random_chars): Use flag_random_seed rather than trying
424         to acquire randomness here.
425         * tree.h (default_flag_random_seed): Declare.
426         * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
427         descriptions.
428         (decode_f_option): Handle -frandom-seed.
429         (print_switch_values): Call default_flag_random_seed.
430         * flags.h (flag_random_seed): Declare.
431         * configure: Regenerate.
432         * config.in: Regenerate.
433         * config/alpha/t-crtfm: Use -frandom-seed.
434
435         * doc/extend.texi (Empty Structures): New.
436
437         * c-pch.c: Include flags.h.  Add comments to routines.
438         (struct c_pch_validity): New.
439         (get_ident): Update PCH file version number.
440         (pch_init): Output current debugging type.
441         (c_common_valid_pch): Check debugging type.
442         * Makefile.in (c-pch.o): Update dependencies.
443         * flags.h (debug_type_names): Declare.
444         * toplev.c (debug_type_names): Move out of decode_g_option.
445
446 2003-04-11  Eric Christopher  <echristo@redhat.com>
447
448         * emit-rtl.c (gen_rtx): Fix typos.
449
450 2003-04-11  Richard Henderson  <rth@redhat.com>
451
452         * emit-rtl.c (gen_rtx): Zero '0' fields.
453
454 2003-04-11  Richard Henderson  <rth@redhat.com>
455
456         PR c++/10202
457         * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
458         not COMPLETE_TYPE_P for re-invoking layout_decl.
459
460 2003-04-11  Simon Law  <sfllaw@engmail.uwaterloo.ca>
461
462         * doc/bugreport.texi: Fix paragraph breaking between sections
463         in preparation for TeXinfo's paragraph indentation fixes.
464         * doc/extend.texi: Ditto.
465         * doc/invoke.texi: Ditto.
466         * doc/objc.texi: Ditto.
467         * doc/gcov.texi: Wrap 'gcov' in @command{}.
468         * doc/invoke.texi (Darwin Options): Add a preamble.
469
470 2003-04-11  Richard Henderson  <rth@redhat.com>
471
472         * config/i386/i386.c (tls_model_chars): Remove.
473         (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
474         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
475         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
476         (tls_symbolic_operand_1): Likewise.
477         (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
478         * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
479         (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
480         * config/i386/winnt.c (i386_pe_encode_section_info): Replace
481         bits "copied from i386.h" with default_encode_section_info.
482
483 2003-04-11  Richard Henderson  <rth@redhat.com>
484
485         * rtl.def (SYMBOL_REF): Add two 0 fields.
486         * gengtype.c (adjust_field_rtx_def): Handle them.
487         * print-rtl.c (print_rtx): Print them.
488         * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
489         (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
490         (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
491         (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
492         (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
493         (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
494         (SYMBOL_FLAG_MACH_DEP): New.
495         * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
496         * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
497         (assemble_static_space): Set SYMBOL_REF_FLAGS.
498         (assemble_trampoline_template): Likewise.
499         (output_constant_def, force_const_mem): Likewise.
500         (default_encode_section_info): New.
501         * output.h: Declare it.
502         * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
503
504 2003-04-11  Richard Henderson  <rth@redhat.com>
505
506         * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
507         (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
508         * optabs.c (init_optabs): Initialize them.
509         (init_libfuncs): Use init_one_libfunc.
510         * calls.c (expand_call): Use gcov_flush_libfunc.
511         * expr.c (store_constructor): Use setbits_libfunc.
512         * function.c (expand_main_function): Use init_one_libfunc.
513         * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
514
515 2003-04-11  Mark Mitchell  <mark@codesourcery.com>
516
517         * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
518         documentation; add DECL_FRIEND_CONTEXT.
519
520 2003-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
521
522         * doc/install.texi (hppa): Update links for HP-UX patches.  Revise
523         notes on linker selection and configuration for 64-bit HP-UX port.
524         * doc/invoke.texi (hppa): Remove hppa text from description for
525         -ffunction-sections and -fdata-sections.  Document -static, -nolibdld
526         and -threads options.
527
528         * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
529         libc.a on libdld.sl when -static is specified and -nolibdld is not
530         specified.
531         * pa64-hpux.h (LIB_SPEC): Likewise.
532         * pa-hpux11.h (LIB_SPEC): Likewise.
533         (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
534         is not specified.
535
536 2003-04-11  Zack Weinberg  <zack@codesourcery.com>
537
538         * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
539         not IDENTIFIER_LOCAL_VALUE.
540
541 2003-04-11  Richard Henderson  <rth@redhat.com>
542
543         PR c/10201
544         * expr.c (expand_expr): Move DECL_RTL frobbing ...
545         * stor-layout.c (layout_decl): ... here.
546
547 2003-04-11  James A. Morrison <ja2morri@uwaterloo.ca>
548
549         * doc/invoke.texi: Eliminate extra white-space caused by
550         @gccoptlist{ on its own line.
551         * doc/invoke.texi: Ensured there are two spaces between each option.
552         * doc/invoke.texi: Re-wrapped option lines that were too wide.
553         Added @gol to options that didn't have them.
554
555 2003-04-11  Nathan Sidwell  <nathan@codesourcery.com>
556
557         * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
558         gcov-iov.h.
559
560         Simplify interface to gcov reading and writing.
561         * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
562         gcov_alloc, gcov_modified, gcov_errored): Move into ...
563         (struct gcov_var gcov_var): ... this static structure.
564         (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
565         Return void.
566         (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
567         read object.
568         (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
569         (gcov_reserve_length): Remove.
570         (gcov_write_tag): New.
571         (gcov_write_length): Adjust.
572         (gcov_read_summary, gcov_write_summary): Adjust.
573         (gcov_eof, gcov_ok): Rename to ...
574         (gcov_is_eof, gcov_is_error): ... here. Return error code.
575         (gcov_save_position, gcov_resync): Rename to ...
576         (gcov_position, gcov_seek): ... here.
577         (gcov_skip, gcov_skip_string): Remove.
578         (gcov_error): Remove.
579         (gcov_open, gcov_close): Adjust.
580         * gcov.c (find_source): Take const char *, copy it on allocation.
581         (read_graph_file): Adjust.
582         (read_count_file): Adjust.
583         * libgcov.c (gcov_exit): Adjust.
584         * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
585         tag_arc_counts, tag_summary): Return void. Adjust.
586         (struct tag_format): Adjust proc member.
587         (dump_file): Adjust gcov calls.
588
589 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
590
591         * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
592         mkfixinc.sh.
593         * fixinc/mkfixinc.sh (defs): Add LIBERTY.
594         * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
595         build != host sysrooted builds.
596         * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
597         TARGET_SYSTEM_ROOT even on sysrooted natives.
598         * configure: Rebuilt.
599
600 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
601
602         * c-decl.c (struct binding_level): Add shadowed_tags and
603         function_body; remove this_block, tag_transparent, and
604         subblocks_tag_transparent; update comments.
605         (clear_binding_level, lookup_tag_reverse): Kill.
606         (make_binding_level): Use ggc_alloc_cleared or memset.
607         (lookup_tag): Remove struct binding_level* parameter.  All
608         callers changed. Just look at IDENTIFIER_TAG_VALUE, and
609         current_binding_level->tags if asked for thislevel_only or if
610         we might have to diagnose "struct foo; union foo;"
611         (pushlevel): Ignore argument.  Do not push another binding
612         level on the transition from the parameters to the top level
613         of the function body; just tweak the flags and proceed.
614         (poplevel): Overhaul.  Clear IDENTIFIER_TAG_VALUEs; on exiting
615         a function body, separate the parameter list from the
616         top-level local variables.
617         (set_block): Do nothing.
618         (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
619         shadowed_tags if necessary.
620         (warn_if_shadowing): Nuke the special case for local shadowing
621         parameter.
622         (pushdecl): Do not create a shadow entry if we are replacing
623         an older decl in the same binding level.
624         (pushdecl_function_level): Tweak for new way of indicating
625         function scope.
626         (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
627         (start_function): Don't set subblocks_tag_transparent.
628         (finish_function): Fix up the binding_level stack for totally
629         empty functions.  Otherwise, don't call poplevel.
630
631         * c-common.c (shadow_warning): MANDATORY argument is no longer
632         necessary.  Always use plain warning.
633         * c-common.h: Update to match.
634
635         * cfglayout.c (scope_to_insns_initialize): Clear block when we
636         hit the FUNCTION_DECL.
637         * function.c: Do not create cyclic tree structure.
638
639 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
640
641         * c-tree.h (struct lang_identifier): Replace global_value,
642         local_value members with symbol_value, tag_value.  Kill
643         implicit_decl and limbo_value.
644         (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
645         IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
646         C_MISSING_PROTOTYPE_WARNED): Kill.
647         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
648         C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
649         (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
650         (implicit_decl_warning, lookup_name_current_level,
651         record_function_scope_shadow): Don't prototype.
652         (pushdecl_function_level): Prototype.
653
654         * c-decl.c (truly_local_externals): New variable.
655         (struct binding_level): Adjust commentary.
656         (get_function_binding_level, clear_limbo_values,
657         record_function_scope_shadow): Kill.
658         (lookup_name_current_level, implicit_decl_warning): Are now static.
659         (any_external_decl, record_external_decl): New static functions.
660         (clone_underlying type): Split out of pushdecl.
661         (c_print_identifier): Update to match changes to struct
662         lang_identifier.
663         (poplevel): Delete #if 0 block.  Make externals invisible
664         instead of clearing their IDENTIFIER_SYMBOL_VALUEs.  Don't
665         call clear_limbo_values.  Refer to IDENTIFIER_SYMBOL_VALUE not
666         IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
667         (duplicate-decls): For real parm decl after a forward decl,
668         set TREE_ASM_WRITTEN here.  Allow void foo(...) followed by
669         foo(...) { } with only a warning.  Say whether a previous
670         declaration was implicit.
671         (warn_if_shadowing): Now handles all shadowing, not just
672         local-over-local.  Clarify comments.
673         (pushdecl): Rewritten.  There is no longer a distinction
674         between global and local symbol values; they're all
675         IDENTIFIER_SYMBOL_VALUE.  Call record_external_decl on all
676         DECL_EXTERNAL decls, and use any_external_decl to check
677         against previous externals.  Kill #if 0 blocks.  Don't
678         tolerate error_mark_node being NULL.
679         (pushdecl_top_level): Handle only those cases which
680         Objective C (the only user) needs.
681         (pushdecl_function_level): New function.
682         (implicitly_declare): Create ordinary decls with
683         C_DECL_IMPLICIT set.  Recycle old decls, however they got
684         created.
685         (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
686         for C_DECL_INVISIBLE symbols.
687         (lookup_name_current_level): Likewise.  Use chain_member.
688         (c_make_fname_decl): Don't muck with DECL_CONTEXT.
689         Use pushdecl_function_level.
690         (builtin_function): Use C_DECL_INVISIBLE.
691         (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
692         Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
693         (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
694         (identifier_global_value): Same.  Must scan
695         global_binding_level in extremis.
696
697         * c-typeck.c (undeclared_variable): New static function, split
698         from build_external_ref.
699         (build_external_ref): Use DECL_CONTEXT, not
700         IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
701         an instance variable.  Restructure for clarity.
702         * objc/objc-act.c: Use identifier_global_value, not
703         IDENTIFIER_GLOBAL_VALUE.
704
705 2003-04-08  Jonathan Wakely  <redi@gcc.gnu.org>
706
707         * doc/extend.texi (Template Instantiation): Refer to ISO standard,
708         not Working Paper.
709         * doc/invoke.texi (C++ Dialect Options): Same.
710
711 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
712
713         * tree.c (tree_operand_check_failed): New function.
714         * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
715         TREE_RTL_OPERAND_CHECK): New checking macros.
716         (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
717         RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
718         CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
719         EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
720         EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
721         TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
722         checking macros.
723
724 Thu Apr 10 23:52:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
725
726         PR inline-asm/8803
727         * function.c (instantate_virtual_regs):  Verify that all ASM statements
728         match after the virutal regs instantiation.
729
730 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
731
732         * ia64-protos.h (addp4_optimize_ok): New.
733         * ia64.c (addp4_optimize_ok): New.
734         * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
735         (*ptr_extend_plus_2): Ditto.
736
737 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
738
739         * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
740         not with convert_memory_address.
741         (store_constructor): Ditto, and same for copy_size_rtx.
742         (expand_expr): Ditto.
743
744 2003-04-10  Douglas B Rupp  <rupp@gnat.com>
745
746         * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
747
748 2003-04-10  Bob Wilson  <bob.wilson@acm.org>
749
750         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
751         even if it is configured to be write-through.
752
753 2003-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
754
755         * config/s390/s390.c (larl_operand): Do not allow symbols
756         marked with '@'.
757         (s390_encode_section_info): Mark symbols with forced 1-byte
758         alignment with '@'.
759         (s390_strip_name_encoding): Strip '@'.
760         (legitimize_pic_address): Handle symbols that are not valid
761         LARL operands in 64-bit mode.
762
763 2003-04-10  Andrew Haley  <aph@redhat.com>
764
765         * tree-inline.c (inlinable_function_p): Disable inlining for
766         synchronized methods.
767
768 2003-04-09  Steven Bosscher  <steven@gcc.gnu.org>
769
770         * c-common.h (lang_statement_code_p): Remove declaration.
771         (statement_code_p): Ditto.
772         (c_common_stmt_codes): Define; list of c-common statement codes.
773         (statement_code_p): New extern declaration.
774         (STATEMENT_CODE_P): Define.
775         (INIT_STATEMENT_CODES): Define.
776         * c-common.c (statement_code_p): Kill the function, declare
777         as an array of bools instead.
778         (lang_statement_code_p): Remove.
779         (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
780         (c_safe_from_p): Ditto.
781         * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
782         to initialize the statement_code_p array.
783         * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
784         statement_code_p.
785         (copy_tree_r): Ditto.
786         * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
787         statement tree codes.
788         * cp/lex.c (cxx_init): Add missing print line break.  Use
789         INIT_STATEMENT_CODES to initialize the statement_code_p array.
790         * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
791         instead of statement_code_p.
792         * cp/pt.c (tsubst_expr): Ditto.
793         * cp/tree.c (verify_stmt_tree_r): Ditto.
794         (cp_statement_code_p): Remove.
795         (init_tree): Don't set lang_statement_code_p, it's gone.
796
797 2003-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
798             Zack Weinberg  <zack@codesourcery.com>
799
800         * regrename.c (struct du_chain): Use a bitfield for reg_class.
801         * cse.c (struct qty_table_elem, struct table_elt, struct set):
802         Use bitfields for fields holding enum rtx_code or
803         enum machine_mode values.  Add comments explaining size choices.
804
805 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
806
807         * config/fp-bit.c (unpack_d): Handle pair of doubles with
808         different signs correctly.
809
810 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
811
812         * sched-deps.c (reg_pending_barrier_mode): New enumeration.
813         (reg_pending_barrier): Make it of the enumeration type.
814         (sched_analyze_2): Define the barrier as MOVE_BARRIER or
815         TRUE_BARRIER.
816         (sched_analyze): Ditto.
817         (sched_analyze_insn): Ditto.  Use anti-dependencies for
818         MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
819         (init_deps_global): Initialize the barrier as NO_BARRIER.
820
821 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
822
823         * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
824         Check that asm insn starts on a new cycle.  Add nops after asm
825         insn to end bundle.
826         (bundling): Move insn type evaluation from the loop.  Call
827         issue_nops_and_insn with the new parameter.  Ignore changing
828         position for nops after asm insn.
829
830 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
831
832         * optabs.c: Comment that gen_add2_insn and others may actually
833         return emitted insns, if the gen functions turn out to return
834         emitted insns.
835         * reload1.c (reload_cse_move2add): Cope with emitted insns from
836         gen_add2_insn.
837
838 2003-04-09  Richard Henderson  <rth@redhat.com>
839
840         * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
841         but not tls_symbolic_operand.
842         (ia64_expand_load_address): Remove scratch operand.
843         (ia64_expand_tls_address): Split out from ia64_expand_move.
844         (ia64_expand_move): Split symbolics only after reload.
845         (ia64_emit_cond_move): New.
846         * config/ia64/ia64-protos.h: Update.
847         * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
848         (symbolic splitter): Accept SImode operands too.
849         (cmove splitter): Use ia64_emit_cond_move.
850
851 2003-04-09  Nick Clifton  <nickc@redhat.com>
852
853         * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
854         newer.
855         * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
856         instead of -mno-fpu.
857         * config/arm/semi.h (ASM_SPEC): Likewise.
858         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
859         but only if -msoft-float is specified pass.  Otherwise pass
860         -mfpu=softvfp.
861
862 2003-04-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
863
864         * function.c (purge_addressof): Use free_INSN_LIST_node instead of
865         free_EXPR_LIST_node.
866
867 2003-04-08  Roger Sayle  <roger@eyesopen.com>
868
869         * fold-const.c (fold):  Use "fold" following build in more places.
870         Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
871         pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
872
873 2003-04-08  Roger Sayle  <roger@eyesopen.com>
874
875         * builtins.c (fold_builtin):  Constant fold expressions as x*0.5
876         instead of x/2.0.  Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
877         log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
878         pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
879         Delete function scope "fcode" variable to avoid shadowing.
880
881 2003-04-08  Kevin Buettner  <kevinb@redhat.com>
882
883         * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
884         Take into account DWARF_INITIAL_LENGTH_SIZE.
885
886 2003-04-08  Hans-Peter Nilsson  <hp@axis.com>
887
888         * reorg.c (fill_slots_from_thread): When considering changing the
889         insn following a reg-to-reg copy insn to use the source reg of the
890         copy, bail out if there's overlap between the registers.
891
892 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
893
894         * function.c (postponed_insns): New.
895         (purge_addressof_1): Postpone processing of insns if addressofs
896         are not put into stack.
897         (purge_addressof): Process postponed insns.
898
899 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
900
901         * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
902         this is FP_MODE_DOUBLE .
903         * sh.c (ra.h): #include.
904         (push_regs): Add second parameter.  Changed all callers.
905         If necessary, set fpscr before saving floating point registers.
906         (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
907         do saves / restores with SZ == 1.
908         (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
909         (sh_expand_epilogue): Likewise.  For TARGET_FMOVD, if floating point
910         registers are being restored, restore FPSCR only after restoring them.
911
912 2003-04-08  Aldy Hernandez  <aldyh@redhat.com>
913
914         * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
915         regardless of architecture.
916         (spe_init_builtins): Change V2SI and V2SF types to opaque types.
917
918 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
919
920         * sh.c (push_regs, calc_live_regs): Return int.  Take single
921         HARD_REG_SET * parameter.  Changed all callers.
922
923 Tue Apr  8 11:12:07 CEST 2003  Jan Hubicka  <jh@suse.cz>
924
925         * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
926         GOTOFF operand.
927         (legitimize_pic_address): Move plus outside the unspec.
928         * i386.c (legitimate_constant_p):  Check (CONST (PLUS (UNSPEC ...
929         for validity.
930
931 2003-04-08  Nathan Sidwell  <nathan@codesourcery.com>
932
933         * gcov-io.h (gcov_save_position): Remove __inline__ from
934         declaration.
935
936 2003-04-07  Matt Kraai  <kraai@alumni.cmu.edu>
937
938         * doc/install.texi: Use @command and @samp for single- and
939         multi-word commands respectively.
940         * doc/makefile.texi: Likewise.
941         * doc/sourcebuild.texi: Likewise.
942
943 2003-04-07  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
944             Richard Henderson  <rth@redhat.com>
945
946         PR c/9516
947         * expr.c (safe_from_p): Rearrange to avoid deep recursion in
948         favour of looping and tail recursion for TREE_LIST and binops.
949
950 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
951
952         * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
953         for insns without luid.
954
955 2003-04-07  Glen Nakamura  <glen@imodulo.com>
956
957         PR opt/8634
958         * explow.c (maybe_set_unchanging): Don't flag non-static const
959         aggregate type initializers with RTX_UNCHANGING_P.
960
961 2003-04-07  Richard Henderson  <rth@redhat.com>
962
963         PR opt/8634
964         * function.c (purge_addressof_1): Don't try arithmetics for
965         unchanging memories.
966
967 2003-04-07  Janis Johnson  <janis187@us.ibm.com>
968
969         * doc/sourcebuild.texi (Test Suites): Document testing support for
970         gcov and profile-directed optimizations; describe gcc.misc-tests.
971
972 Mon Apr  7 22:19:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
973
974         PR target/10077
975         * i386.md (movsi_1, movsi_nointerunit_1):  Fix SSEMOV alternative.
976
977 2003-04-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
978
979         * doc/rtl.texi (Comparison operations): Update to
980         record the allowed comparison modes.
981
982 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
983
984         * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
985         V2SI_type_node to opaque_V2SI_type_node.  Rename all
986         V2SF_type_node to opaque_V2SF_type_node.
987         (rs6000_init_builtins): Define opaque_V2SI_type_node and
988         opaque_V2SF_type_node.
989         (is_ev64_opaque_type): The types opaque_V2SI_type_node and
990         opaque_V2SF_type_node are opaque types.
991
992 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
993
994         * gcse.c (replace_store_insn): Use single_set.
995
996 2003-04-07  Nathan Sidwell  <nathan@codesourcery.com>
997
998         Change gcov file interface to single file at a time.
999         * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
1000         Convert to C89 prototypes.
1001         (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
1002         gcov_error, gcov_modified): New static variables.
1003         (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
1004         functions.
1005         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
1006         gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
1007         (gcov_read_summary, gcov_write_summary): Adjust.
1008         (gcov_save_position, gcov_reserve_length, gcov_write_length):
1009         Adjust.
1010         (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
1011         (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
1012         (da_file_position, da_file_seek, da_file_write, da_file_read):
1013         Remove.
1014         (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
1015         * gcov.c (gcov_type): Don't typedef here.
1016         (IN_GCOV): #define
1017         (read_graph_file, read_count_file): Adjust.
1018         * gcov-dump.c (gcov_type): Don't typedef here.
1019         (IN_GCOV): #define.
1020         (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
1021         Remove FILE parameter, adjust.
1022         (struct tag_format): Adjust proc member.
1023         (dump_file): Adjust.
1024         * libgcov.c (IN_LIBGCOV): #define.
1025         (gcov_exit): Adjust.
1026         * loop-init.c: Don't #include gcov-io.h
1027         * profile.c (struct counts_entry): New structure to hold counter
1028         values.
1029         (struct section_reference, struct da_index_entry): Remove.
1030         (bbg_file, da_file): Remove.
1031         (htab_counts_index_hash, htab_counts_index_eq,
1032         htab_counts_index_del): Replace with ...
1033         (htab_counts_entry_hash, htab_counts_entry_eq,
1034         htab_counts_entry_del): ... these.
1035         (cleanup_counts_index, index_counts_file): Remove.
1036         (read_counts_file): New function.
1037         (get_exec_counts): Adjust.
1038         (compute_branch_probabilities): Don't free the exec counts here.
1039         (branch_prob): Adjust.
1040         (init_branch_prob): Adjust.
1041         (end_branch_prob): Adjust.
1042
1043 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
1044
1045         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1046         -mfloat-gprs.
1047
1048         * config/rs6000/rs6000.c: Delete rs6000_fprs.
1049         Declare rs6000_float_gprs.
1050         Declare rs6000_float_gprs_string.
1051         (rs6000_parse_float_gprs_option): New.
1052         (rs6000_override_options): Genericize rs6000_parse_* calls to use
1053         rs6000_parse_yes_no_option.
1054         Change check for cpu=8540, to use TARGET_E500.
1055         (rs6000_parse_isel_option): Delete.
1056         (rs6000_parse_spe_option): Delete.
1057         (rs6000_parse_vrsave_option): Delete.
1058
1059         * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
1060         Define rs6000_float_gprs_string.
1061         (TARGET_OPTIONS): Add rs6000_float_gprs option.
1062
1063         * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
1064
1065         * config/rs6000/eabispe.h: Set rs6000_float_gprs.
1066
1067 Mon Apr  7 14:36:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
1068
1069         PR opt/10024
1070         * cfglayout.c (cfg_layout_redirect_edge):
1071         Redirect any branch edges unified with the fallthru one.
1072         * cfgrtl.c (force_nonfallthru_and_redirect):  Do not special
1073         case fallthru edges when called via cfglayout.c
1074
1075 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
1076
1077         * c-typeck.c (output_init_element): Check for type == error_mark_node.
1078
1079 2003-04-07  Kazu Hirata  <kazu@cs.umass.edu>
1080
1081         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
1082         split.
1083         (a splitter): Do zero-extension via HImode.
1084
1085 2003-04-07  James A. Morrison <ja2morri@uwaterloo.ca>
1086
1087         * doc/invoke.texi: Eliminate extra white-space caused by
1088         @gccoptlist{ on its own line.
1089         * doc/invoke.texi: Ensured there are two spaces between each option.
1090         * doc/invoke.texi: Re-wrapped option lines that were too wide.
1091         Added @gol to options that didn't have them.
1092
1093 2003-04-07  James A Morrison <ja2morri@student.math.uwaterloo.ca>
1094
1095         * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
1096
1097 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
1098
1099         * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
1100         at the sizes of the relevant structures, rather than relying
1101         on TREE_CODE_LENGTH.  Call lang_hooks.tree_size to get the
1102         sizes of any such we don't know about.  Use
1103         lang_hooks.identifier_size for IDENTIFIER_NODE.
1104
1105         (initializer_zerop): Use CONSTRUCTOR_ELTS.
1106         * tree.def: Update commentary.  Make fourth element of
1107         the definition for all 'c' and 'x' nodes zero.
1108
1109         * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
1110         * langhooks-def.h: Update to match.
1111         * langhooks.c: New default, lhd_tree_size.
1112
1113         * c-common.def (SRCLOC): Kill.
1114         * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
1115         Remove entirely - was already #if-ed out.
1116
1117
1118 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
1119
1120         * mklibgcc.in: Use a here document to avoid running afoul of
1121         shells that generate control-A from "echo \1".
1122
1123 2003-04-06  Aldy Hernandez  <aldyh@redhat.com>
1124
1125         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
1126         option.
1127
1128         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
1129         rs6000_spe.
1130
1131         * config/rs6000/eabi.h (TARGET_E500): Define.
1132
1133         * config/rs6000/rs6000.h (TARGET_E500): Define.
1134         (TARGET_OPTIONS): Add spe= option.
1135         Declare rs6000_spe and rs6000_spe_string extern.
1136
1137         * config/rs6000/rs6000.c (branch_positive_comparison_operator):
1138         Change TARGET_SPE to TARGET_E500.
1139         (ccr_bit): Change TARGET_SPE to TARGET_E500.  Check for
1140         !TARGET_FPRS.
1141         (print_operand): Same.
1142         (rs6000_generate_compare): Same.
1143         (output_cbranch): Same.
1144         (rs6000_spe): Declare.
1145         (rs6000_spe_string): Declare.
1146         (rs6000_override_options): Call rs6000_parse_spe_option.
1147         (rs6000_parse_spe_option): New.
1148
1149 2003-04-06  Steven Bosscher  <steven@gcc.gnu.org>
1150
1151         * hashtable.c (gcc_obstack_init): Delete this function
1152         and everything related to it.
1153         * hashtable.h: Remove prototype.
1154         * bitmap.c (bitmap_element_allocate): Cleanup redundant
1155         defines.  Cleanup some unnecessary whitespace.
1156         * defaults.h (obstack_chunk_alloc): Redefine with
1157         appropriate casts for libiberty obstacks.
1158         (obstack_chunk_free): Ditto.
1159         (OBSTACK_CHUNK_SIZE): Define, default to 0.
1160         (gcc_obstack_init): Define as a call to _obstack_begin.
1161         * tree.c (print_obstack_statistics): Delete this unused
1162         function.
1163         * tree.h (obstack): Don't forward-declare.
1164         (print_obstack_statistics): Delete prototype.
1165         (print_obstack_name): Ditto.
1166         (gcc_obstack_init): Ditto.
1167         * rtl.h (gcc_obstack_init): Ditto.
1168         * java/jv-scan.c (gcc_obstack_init): Delete this
1169         function, its prototype and related defines.
1170         * java/jvgenmain.c (gcc_obstack_init): Delete this
1171         function, and related defines.
1172         * java/parse-scan.y (obstack_chunk_alloc): Don't define.
1173         (obstack_chunk_free): Ditto
1174
1175 2003-04-06  Geoffrey Keating  <geoffk@apple.com>
1176
1177         * dbxout.c (dbxout_handle_pch): Move prototype out from
1178         #if defined DBX_DEBUGGING_INFO.
1179
1180 2003-04-05  Nathan Sidwell  <nathan@codesourcery.com>
1181
1182         * gcov.c (struct arc_info): Replace local_span with cycle.
1183         (struct block_info): Replace u.span with u.cycle. Add is_call_return.
1184         (solve_flow_graph): Set is_call_return.
1185         (add_line_counts): Adjust. In block mode, blocks attach to last line.
1186         (accumulate_line_counts): Find graph cycles, not spanning tree.
1187         (output_branch_count): Adjust.
1188         (output_lines): Adjust.
1189         * doc/gcov.texi: Update.
1190
1191 2003-04-06  Kazu Hirata  <kazu@cs.umass.edu>
1192
1193         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
1194         the second alternative to "#".
1195
1196 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
1197
1198         * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
1199         (single_zero_operand): Likewise.
1200
1201 2003-04-05  Daniel Berlin  <dberlin@dberlin.org>
1202
1203         * Makefile.in (df.o):  Depend on alloc-pool.h, not obstack.h.
1204         * df.c: Include alloc-pool.h, not obstack.h.
1205         (df_ref_obstack): Remove.
1206         (df_ref_pool, df_link_pool): Add pools.
1207         (df_alloc): Init the new pools.
1208         (df_free): And free them.
1209         (df_link_create): Use the pools.
1210         (df_ref_create): Ditto.
1211
1212 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
1213
1214         * simplify-rtx.c: Fix formatting.
1215
1216 2003-04-05  Andrew Pinski  <apinski@apple.com>
1217
1218         * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
1219         reg with reg1 == reg2 and offset1 = -8.
1220
1221 2003-04-05  David Edelsohn  <edelsohn@gnu.org>
1222
1223         * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
1224         multiply costs.  Correct Power4 divide costs.
1225         * config/rs6000/power4.md: Restore multiply and FP latency.
1226
1227 2003-04-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1228
1229         * alias.c (find_base_term): Export.
1230         * rtl.h (find_base_term): Declare.
1231         * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
1232         instead of flag_exceptions.  Move test for parameter passing ...
1233         (store_killed_in_insn): ... here.
1234
1235 2003-04-05  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1236
1237         PR bootstrap/10267
1238         * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
1239         for configuring.
1240
1241 2003-04-04  Geoffrey Keating  <geoffk@apple.com>
1242
1243         * dbxout.c (scope_labelno): Add GTY.
1244         (have_used_extensions): Add GTY.
1245         (source_label_number): Add GTY.
1246         (lastfile): Add GTY.
1247         (lastfile_is_base): New.
1248         (base_input_file): New.
1249         (dbxout_handle_pch): New.
1250         (dbx_debug_hooks): Add handle_pch.
1251         (xcoff_debug_hooks): Likewise.
1252         (dbxout_function_end): Remove scope_labelno.
1253         (dbxout_init): Set base_input_file.
1254         (dbxout_handle_pch): New.
1255         (dbxout_source_file): Honour lastfile_is_base.
1256         * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
1257         * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
1258         * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
1259         * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
1260         * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
1261         * debug.h (struct gcc_debug_hooks): Add handle_pch.
1262         * c-pch.c (pch_init): Don't call start_source_file, but do call
1263         handle_pch.
1264         (c_common_write_pch): Call handle_pch.
1265         (c_common_read_pch): Don't call start_source_file,
1266         or end_source_file.
1267
1268 Fri Apr  4 17:43:52 2003  Olivier Hainque <hainque@act-europe.fr>
1269
1270         * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
1271         use of default attributes to agree MEM_ALIGN macro.
1272
1273 Fri Apr  4 17:33:24 2003  Joel Brobecker  <brobecker@gnat.com>
1274
1275         * dbxout.c (dbxout_type): When printing type index of range type
1276         whose bounds are printed in octal format, print type of parent type if
1277         it exists so enumerated type descriptions are not transformed
1278         into unsigned types.
1279
1280 2003-04-04  Kazu Hirata  <kazu@cs.umass.edu>
1281
1282         * config/h8300/h8300-protos.h: Add a prototype for
1283         compute_a_shift_cc.
1284         * config/h8300/h8300.c (shift_one): Update the CC status.
1285         (shift_two): Likewise.
1286         (output_a_shift_cc): Set cc_inline and cc_special.
1287         (compute_a_shift_cc): New.
1288         * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
1289
1290 2003-04-04  Richard Henderson  <rth@redhat.com>
1291
1292         * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
1293
1294 2003-04-04  Loren James Rittle  <ljrittle@acm.org>
1295
1296         * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
1297         * fixinc/fixincl.x: Rebuilt.
1298         * fixinc/tests/base/stdio.h: Regenerated.
1299
1300 2003-04-04  Nathan Sidwell  <nathan@codesourcery.com>
1301
1302         * gcov.c (accumulate_line_counts): Fix span tree merge bug.
1303
1304 Fri Apr  4 15:58:52 2003  J"orn Rennecke <joern.rennecke@superh.com>
1305
1306         * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
1307         (NORMAL_MODE).
1308         * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
1309
1310 2003-04-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1311
1312         * doc/contrib.texi (Contributors): Add entries for Wolfgang
1313         Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
1314         Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
1315         Danny Smith, and Ulrich Weigand.
1316         Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
1317         entry.
1318
1319 2003-04-04  Nick Clifton  <nickc@redhat.com>
1320
1321         * config/sparc/sol2-bi.h: Revert previous delta.
1322         * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
1323
1324 2003-04-04  Nick Clifton  <nickc@redhat.com>
1325
1326         * config/v850/v850.c (expand_prologue): Only use register save
1327         helper functions if long calls are not being used.
1328         Add a clobber of r11 id using long calls.
1329         (pattern_is_ok_for_prologue): Account for the extra clobber.
1330         (construct_save_jarl): Likewise.
1331         * config/v850/v850.md (prolog pattern): Do not use this pattern
1332         for v850e's.
1333
1334 2003-04-04  Andreas Schwab  <schwab@suse.de>
1335
1336         * stor-layout.c (layout_decl): Avoid syntax error in last change
1337         when PCC_BITFIELD_TYPE_MATTERS is defined but not
1338         EMPTY_FIELD_BOUNDARY.
1339
1340 2003-04-03  Jason Merrill  <jason@redhat.com>
1341
1342         PR c/10175
1343         * jump.c (never_reached_warning): Revert patch of 2002-11-02.
1344         Look backwards for a line note.
1345
1346 2003-04-03  Neil Booth  <neil@daikokuya.co.uk>
1347
1348         * fix-header.c (read_scan_file): Defer switch processing.
1349
1350 2003-04-03  Matt Austern  <austern@apple.com>
1351
1352         * cpppch.c (reset_ht): Remove.
1353         (cpp_read_state): Remove loop to reset hashtable identifiers.
1354         * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
1355         after pch file is written.
1356         * ggc.h (gt_pch_fixup_stringpool): Declare.
1357         * stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
1358         hashnode's value to another hashtable, then clear the original.
1359         (saved_ident_hash): Define.
1360         (gt_pch_save_stringpool): Create saved_ident_hash, use it to
1361         store definitions in ident_hash, and clear ident_hash.
1362         (gt_pch_fixup_stringpool): Define.  Restore definitions from
1363         saved_ident_hash to ident_hash, then destroy saved_ident_hash.
1364
1365 Thu Apr  3 22:27:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
1366
1367         * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
1368
1369 2003-04-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1370
1371         PR optimization/10157
1372         * gcse.c (can_copy_p): Rename it to can_copy.
1373         (can_copy_init_p): Remove.
1374         (compute_can_copy): Use can_copy instead of can_copy_p.
1375         (can_copy_p): New exported function. Call compute_can_copy.
1376         (hash_scan_set): Use it.
1377         (gcse_main): Don't call compute_can_copy.
1378         (bypass_jumps): Don't call compute_can_copy.
1379         * rtl.h (can_copy_p): Declare.
1380         * loop.c (scan_loop): Don't move the source and add a reg-to-reg
1381         copy if the mode doesn't support copy operations.
1382
1383 2003-04-03  Jason Merrill  <jason@redhat.com>
1384
1385         * Makefile.in (unstrap): Also remove stage_last.
1386
1387         * dwarf2out.c (lookup_filename): Don't check for "<internal>".
1388         (dwarf2out_source_line): Don't do anything if line==0.
1389
1390         * stor-layout.c (do_type_align): New fn, split out from...
1391         (layout_decl): ...here.  Do all alignment calculations for
1392         FIELD_DECLs here.
1393         (update_alignment_for_field): Not here.
1394         (start_record_layout, debug_rli): Remove unpadded_align.
1395         * tree.h (struct record_layout_info_s): Remove unpadded_align.
1396         * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
1397         or DECL_MODE on the CONST_DECLs.
1398         (finish_struct): Don't mess with DECL_ALIGN.
1399
1400 Thu Apr  3 18:57:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
1401
1402         * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
1403
1404 Thu Apr  3 17:08:09 2003  J"orn Rennecke <joern.rennecke@superh.com>
1405
1406         * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
1407         function is an interrupt handler.
1408
1409         * sh.c (sh_expand_epilogue): Avoid clash of temp register for
1410         restoring target registers with EH_RETURN_STACKADJ_RTX; use
1411         multiple registers in round-robin fashion.
1412
1413 2003-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1414
1415         * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
1416         * system.h (CHAR_BITFIELD): New.
1417
1418 2003-04-03  Kazu Hirata  <kazu@cs.umass.edu>
1419
1420         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
1421         and LE.
1422         (another peephole2): Likewise.
1423
1424 2003-04-03  Nick Clifton  <nickc@redhat.com>
1425
1426         * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
1427         (DEF_ARCH64_SPEC): Likewise.
1428
1429 Thu Apr  3 09:53:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
1430
1431         * i386.c (constant_address_p): Use legitimate_constant_p.
1432         (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
1433
1434 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
1435
1436         * config/h8300/h8300-protos.h: Add a prototype for
1437         gtle_operator.
1438         * config/h8300/h8300.c (gtle_operator): New.
1439         * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
1440         gtle_operator.
1441         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
1442         and LE.
1443
1444 2003-04-02  Richard Henderson  <rth@redhat.com>
1445
1446         * libgcc-std.ver (_Unwind_GetCFA): New.
1447         * unwind-dw2.c (_Unwind_GetCFA): New.
1448         * unwind-libunwind.c (_Unwind_GetCFA): New.
1449         * unwind-sjlj.c (_Unwind_GetCFA): New.
1450         * unwind.h: Declare it.
1451
1452 Thu Apr  3 00:31:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
1453
1454         PR inline-asm/8088
1455         * i386.c (ix86_hard_regno_mode_ok):  Return 0 for MMX/SSE registers
1456         when MMX/SSE is not available.
1457
1458 2003-04-02  Mike Stump  <mrs@apple.com>
1459
1460         * doc/install.texi (Specific): Update pointers to apple.com.
1461
1462 Thu Apr  3 00:18:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
1463
1464         * i386.c (override_options):  Disable red zone by default on i386.
1465         (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
1466         Do not test TARGET_64BIT together with TARGET_RED_ZONE
1467
1468 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
1469
1470         * config/h8300/h8300.md (a peephole2): Tighten the condition.
1471
1472 2003-04-02  Richard Henderson  <rth@redhat.com>
1473
1474         * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
1475
1476 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
1477
1478         * config/h8300/h8300.md (a peephole2): New.
1479
1480 2003-04-02  Richard Henderson  <rth@redhat.com>
1481
1482         * except.c (sjlj_find_directly_reachable_regions): Recognize when
1483         must-not-throw region has been deleted.
1484
1485 2003-04-02  Richard Henderson  <rth@redhat.com>
1486
1487         * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
1488         optimization when flag_exceptions not enabled.
1489
1490 2003-04-02  Vladimir Makarov  <vmakarov@redhat.com>
1491
1492         * config/rs6000/rs6000.c
1493         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
1494         macros.
1495         (rs6000_issue_rate): Add case for 8540.
1496         (rs6000_use_sched_lookahead): New function.
1497
1498         * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
1499         units into MU ones.
1500         (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
1501         reservation before retirement.
1502         (ppc8540_multiply, ppc8540_load, ppc8540_store,
1503         ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
1504         Remove additional cycle in the reservation before retirement.
1505         (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
1506         reservation of ppc8540_issue.
1507
1508 2003-04-02  Andreas Schwab  <schwab@suse.de>
1509
1510         * real.c (decode_ieee_single): Fix decoding of SNaN bit.
1511
1512 2003-04-01  Richard Henderson  <rth@redhat.com>
1513
1514         * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
1515         notes for nothrow calls if flag_forced_unwind_exceptions.
1516         (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
1517         (sjlj_find_directly_reachable_regions): Likewise.
1518         (reachable_handlers): Likewise.
1519         (can_throw_external): Likewise.
1520         (collect_one_action_chain): Record cleanups after catch-all and
1521         must-not-throw if flag_forced_unwind_exceptions.
1522         * flags.h (flag_forced_unwind_exceptions): Declare.
1523         * toplev.c (flag_forced_unwind_exceptions): New.
1524         (lang_independent_options): Add it.
1525         * doc/invoke.text: Add it.
1526
1527 2003-04-01  David Mosberger <davidm@hpl.hp.com>
1528
1529         * config/ia64/crti.asm: Clean up trailing whitespace.
1530         Remove trailing hashes (#) from identifiers.
1531
1532         * config/ia64/crtn.asm: Ditto.
1533
1534         * config/ia64/crtend.asm: Remove trailing hashes (#) from
1535         identifiers.
1536         (__do_global_ctors_aux): Align to 32-byte boundary.  Add unwind
1537         directives.  Drop explicit bundling---it just makes the code
1538         harder to read.  Don't save/restore gp needlessly.
1539
1540         * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
1541         identifiers (they're only needed if the identifier would clash
1542         with a register name otherwise).
1543         (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
1544         directives.  Drop explicit bundling---it just makes the code
1545         harder to read.
1546         (__do_jv_register_classes): Ditto.
1547         (.fini_array): Remove "progbits" (newer
1548         assemblers don't like wrong section-types).
1549         (.init_array): Ditto.
1550
1551 2003-04-01  Roger Sayle  <roger@eyesopen.com>
1552
1553         PR fortran/9974
1554         * gcse.c (reg_killed_on_edge): New function to test whether the
1555         given reg is overwritten by any instruction queued on an edge.
1556         (bypass_block): Ignore substitutions killed on incoming edges.
1557         Don't bypass outgoing edges that have queued instructions.
1558
1559 2003-04-01  Alexandre Oliva  <aoliva@redhat.com>
1560
1561         * real.h (EXP_BITS): Make room for...
1562         (struct real_value): ... added canonical bit.
1563         (struct real_format): Added pnan.
1564         (mips_single_format, mips_double_format, mips_extended_format,
1565         mips_quad_format): New.
1566         * real.c: Copy p to pnan in all formats.
1567         (get_canonical_qnan, get_canonical_snan): Set canonical bit.
1568         (real_nan): Use pnan to compute significand's shift.
1569         (real_identical): Disregard significand in canonical
1570         NaNs.
1571         (real_hash): Likewise.  Take signalling into account.
1572         (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
1573         Disregard significand bits in canonical NaNs.  Set all bits of
1574         canonical NaN if !qnan_msb_set.
1575         (encode_ibm_extended, decode_ibm_extended): Likewise.  Use
1576         qnan_msb_set to tell the base double format.
1577         (ibm_extended_format): Use 53 as pnan.
1578         (mips_single_format, mips_double_format, mips_extended_format,
1579         mips_quad_format): Copied from the corresponding ieee/ibm
1580         formats, with qnan_msb_set false.
1581         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
1582         * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
1583         * config/mips/mips.c (override_options): Use mips_single_format
1584         and mips_double_format.  Default TFmode to mips_quad_format.
1585         * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
1586         * config/mips/t-irix6: Likewise.
1587         * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
1588         * config/fp-bit.c (pack_d, unpack_d): Obey it.
1589
1590 2003-04-01  Geoffrey Keating  <geoffk@apple.com>
1591
1592         * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
1593         (live_image_destructor): Reset image to initial state.
1594         (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
1595
1596 2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
1597
1598         * config/sparc/sparc.c (input_operand): Accept bare
1599         CONSTANT_P_RTX operands.
1600
1601 2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1602
1603         * gcse.c (struct ls_expr): Added pattern_regs field.
1604         (ldst_entry): Initialize it.
1605         (extract_mentioned_regs, extract_mentioned_regs_helper): New.
1606         (store_ops_ok): Use regs precomputed by them.
1607         (find_loads, store_killed_in_insn, load_kills_store): Change return
1608         type to bool.
1609         (store_killed_before, store_killed_after): Take position of register
1610         set in account.
1611         (reg_set_info): Store position of the setter.
1612         (gcse_main): Enable store motion.
1613         (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
1614         (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
1615         sharing.
1616         (simple_mem): Enable store motion of non-symbol mems.
1617         (regvec): Type changed.
1618         (LAST_AVAIL_CHECK_FAILURE): New.
1619         (compute_store_table_current_insn): New.
1620         (build_store_vectors): Computation of availability and anticipatability
1621         moved ...
1622         (compute_store_table, find_moveable_store): ... here.
1623         (delete_store): Remove senseless comment.
1624         (store_motion): Reorganize.
1625
1626 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
1627
1628         * config/mips/mips.c (override_options): Provide mappings for
1629         HI_REGNUM and LO_REGNUM.
1630         * config/mips/mips.h (MD_DBX_FIRST): Define.
1631
1632 2003-04-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1633
1634         * combine.c (merge_outer_ops): Fix typo.
1635
1636         * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
1637
1638 2003-04-01  David Edelsohn  <edelsohn@gnu.org>
1639
1640         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
1641         power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
1642         imul_compare.  Add lmul_compare.
1643         * config/rs6000/power4.md: Bump some latencies.  Model extra cycle
1644         in second pair of dispatch slots.  Model stores more accurately.
1645         Tweak multiply model.  Add bypasses for CR instructions dependent
1646         on complicated compares.
1647         * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
1648         (muldi3): Add lmul_compare patterns.
1649         * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
1650         and FPSTORE_UX to split instructions and add COMPARE,
1651         DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
1652         (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
1653         (rs6000_rtx_costs): Separate POWER4 multiply case.
1654
1655 2003-04-01  Ulrich Weigand  <uweigand@de.ibm.com>
1656
1657         * config/s390/s390.c (s390_fixup_clobbered_return_reg):
1658         Do nothing if __builtin_return_address was not used.
1659
1660 Tue Apr  1 18:18:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
1661
1662         * i386.md (test patterns):  Allow memory operand in operand1.
1663
1664 2003-02-31  Aldy Hernandez  <aldyh@redhat.com>
1665
1666         * testsuite/gcc.c-torture/execute/simd-3.c: New.
1667
1668         * expr.c (expand_expr): Handle VECTOR_CST.
1669         (const_vector_from_tree): New.
1670
1671         * varasm.c (output_constant): Handle VECTOR_CST.
1672
1673         * c-typeck.c (digest_init): Build a vector constant from a
1674         VECTOR_TYPE.
1675
1676         * config/rs6000/rs6000.c: Remove prototype for
1677         easy_vector_constant.
1678         (easy_vector_constant): Add mode parameter.  Rewrite to handle
1679         more easy constants.
1680         (rs6000_emit_move): Pass mode to easy_vector_constant.
1681         Call emit_easy_vector_insn for SPE V2SI vector constant moves.
1682         (emit_easy_vector_insn): New.
1683         (easy_vector_same): New.
1684         (EASY_VECTOR_15): New macro.
1685         (EASY_VECTOR_15_ADD_SELF): New macro.
1686         (bdesc_2arg): Rename to xorv2si3.
1687         (easy_vector_constant_add_self): New.
1688         (input_operand): Allow vector constants.
1689
1690         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
1691         easy_vector_constant, easy_vector_constant_add_self.
1692         (EXTRA_CONSTRAINT): Add 'W'.
1693
1694         * config/rs6000/rs6000-protos.h: Add prototype for
1695         easy_vector_constant, emit_easy_vector_insn.
1696
1697         * config/rs6000/altivec.md (xorv8hi3): New.
1698         (xorv16qi3): New.
1699         Remove all _const0 patterns.
1700         (movv4si_internal): Rewrite to use code.  Add vector constant to
1701         vector alternative.  Add splitter.
1702         (movv8hi_internal): Same.
1703         (movv16qi_internal): Same.
1704         (movv4sf_internal): Same.
1705         Change the unspecs for vspltis* to use constants.
1706
1707         * config/rs6000/spe.md ("xorv4hi3"): New.
1708         ("spe_evxor"): Rename to xorv2si3.
1709         ("xorv1di3"): New.
1710         Remove all _const0 patterns.
1711         (movv2si_internal): Rewrite to use code.  Add vector constant to
1712         alternatives.  Add splitter.
1713         (movv4hi_internal): Add vector constant to alternatives.
1714         (movv1di_internal): Same.
1715         (movv2sf_internal): Same.
1716
1717 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
1718
1719         PR c/9936
1720         * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
1721         variably-sized arrays in parameters.
1722         (set_save_expr_context): New function.
1723         (c_expand_body): Use it, via walk_tree.
1724
1725 2003-03-31  Eric Christopher  <echristo@redhat.com>
1726
1727         * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
1728         (combinable_i3pat): Remove call to expand_field_assignment and
1729         #if 0'd code.
1730
1731 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
1732
1733         PR c++/10278
1734         * c-common.c (finish_label_address_expr): Handle the
1735         error_mark_node.
1736
1737 2003-03-31  Richard Henderson  <rth@redhat.com>
1738
1739         * real.c (real_identical): Reorg so as to not compare
1740         signalling for normals.
1741
1742 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
1743
1744         * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
1745
1746 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
1747
1748         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
1749         notes as they are boggus.
1750         (m68hc11_gen_movqi): Likewise.
1751
1752 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
1753
1754         * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
1755         save the soft registers after the frame pointer so that gdb can unwind
1756         the frame more easily.
1757         (expand_epilogue): Likewise in opposite order; allow to use X register
1758         as scratch if the return value is by reference.
1759
1760 2003-03-31  Jason Merrill  <jason@redhat.com>
1761
1762         PR java/10145
1763         * stor-layout.c (update_alignment_for_field): Respect
1764         DECL_USER_ALIGN for zero-length bitfields, too.
1765         * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
1766         fields.
1767
1768 2003-03-31  Matt Austern  <austern@apple.com>
1769
1770         * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
1771         (count_defs): Keep track of number of defs as well as total size.
1772         (write_defs): Put every definition in cpp_savedstate's defs array.
1773         (comp_hashnode): Define.  Comparison function for qsort.
1774         (cpp_write_pch_deps): Sort definitions before writing them.
1775         (struct ht_node_list): Define. Like cpp_savedstate but simpler.
1776         (collect_ht_nodes): Define.
1777         (cpp_valid_state): When verifying that undefined identifiers in
1778         the pch file are still undefined, read a sorted list of undefined
1779         identifiers, collect all defined identifiers into a sorted list,
1780         and walk through both lists to make sure there's no match.
1781
1782 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
1783
1784         * config/h8300/h8300.md (a peephole2): New.
1785
1786 2003-03-31  Michael Matz  <matz@suse.de>
1787
1788         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
1789
1790 2003-03-31  Segher Boessenkool  <segher@koffie.nl>
1791
1792         PR target/10177
1793         * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
1794         * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
1795         all call-clobbered registers as used.
1796
1797 2003-03-31  Michael Matz  <matz@suse.de>
1798
1799         * cppexp.c (cpp_classify_number): Accept '.' after "0x".
1800         * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
1801
1802 2003-03-31  Nathan Sidwell  <nathan@codesourcery.com>
1803
1804         * gcov.c: Add -a & -u options.
1805         (struct arc_info): Add local_span, is_call_non_return,
1806         is_nonlocal_return, is_unconditional flags, remove is_call flag.
1807         (struct block_info): Add flags, is_call_site, is_nonlocal_return
1808         members. Make encodings a union with span member.
1809         (struct function_info): Add blocks_executed, line, src, line_next
1810         members.
1811         (struct coverage_info): Make branches a union with blocks member.
1812         (struct source_info): Add functions member.
1813         (object_summary, program_count): New global variables.
1814         (flag_all_blocks, flag_unconditional): New flags.
1815         (find_source, output_branch_count): New functions.
1816         (print_usage): Adjust.
1817         (options): Adjust.
1818         (process_args): Adjust.
1819         (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
1820         <GCOV_TAG_BLOCKS>: Read flags.
1821         <GCOV_TAG_LINES>: Adjust.
1822         (read_count_file): Process SUMMARY tags.
1823         (solve_flow_graph): Set is_unconditional and clear is_call_site
1824         appropriately.
1825         (add_branch_counts): Adjust. Don't count unconditional branches.
1826         (add_line_counts): Deal with all-blocks mode, accumulate block
1827         coverage.
1828         (accumulate_line_counts): Adjust, generate local spanning tree for
1829         all-blocks mode.
1830         (output_lines): Adjust.
1831         * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
1832         * doc/gcov.texi: Document.
1833
1834 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
1835
1836         * config/h8300/h8300.md: Organize peephole2's that transform
1837         (compare (reg:HI) (const_int)).
1838
1839 2003-03-31  Roger Sayle  <roger@eyesopen.com>
1840
1841         * emit-rtl.c (dconstm2, dconsthalf): New real constants.
1842         (init_emit_once): Initialize dconstm2 and dconsthalf here.
1843         * real.h (dconstm2, dconsthalf): Add prototypes here.
1844         * real.c (real_sqrt): Use dconsthalf rather than local copy.
1845         * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
1846         exp(x/2.0) remember to fold the division if possible.
1847         Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
1848         pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
1849         1.0/(x*x) and pow(x,0.5) as sqrt(x).
1850
1851 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
1852
1853         * config/h8300/h8300.md (a new peephole2): New.
1854
1855 2003-03-31  Richard Sandiford  <rsandifo@redhat.com>
1856
1857         * gcse.c (simple_mem): Return false for floating-point accesses
1858         if flag_float_store is true.
1859
1860 2003-03-30  Roger Sayle  <roger@eyesopen.com>
1861
1862         * gcse.c (gcse_constant_p): New function to identify constants
1863         suitable for constant propagation, including COMPARE with two
1864         integer constant arguments.
1865         (hash_scan_set): Use gcse_constant_p.
1866         (find_avail_set): Likewise.
1867         (cprop_insn): Likewise.
1868         (do_local_cprop): Likewise.
1869         (find_implicit_sets): Likewise.
1870         (find_bypass_set): Likewise.
1871
1872 2003-03-30  Matt Kraai  <kraai@alumni.cmu.edu>
1873
1874         * except.h: Remove definition of varray_type.
1875
1876 2003-03-30  Richard Henderson  <rth@redhat.com>
1877
1878         PR opt/10011, opt/10252:
1879         * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
1880         before post-gcse cse pass.
1881
1882 2003-03-30  Roger Sayle  <roger@eyesopen.com>
1883
1884         * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
1885
1886 2003-03-30  DJ Delorie  <dj@redhat.com>
1887
1888         * profile.c (instrument_edges): Make sure any newly created
1889         jump insns have correct jump label info.
1890
1891 2003-03-30  Richard Henderson  <rth@redhat.com>
1892
1893         * cfgbuild.c (make_edges): Use tablejump_p.
1894         * cfgcleanup.c (label_is_jump_target_p): Likewise.
1895         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
1896         * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
1897         (try_redirect_by_replacing_jump): Likewise.
1898         (redirect_edge_and_branch): Likewise.
1899         * cse.c (fold_rtx): Likewise.
1900         * jump.c (delete_related_insns): Likewise.
1901         * rtlanal.c (get_jump_table_offset): Likewise.
1902         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
1903
1904 2003-03-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1905
1906         * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
1907         (STRICT2_WARN): Likewise.
1908
1909 2003-03-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1910
1911         PR other/6955
1912         * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
1913         * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
1914
1915 2003-03-30  Richard Henderson  <rth@redhat.com>
1916
1917         PR c/10083
1918         * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
1919         don't zero_extend const inputs.
1920
1921 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
1922
1923         * reload1.c (reload_cse_move2add): Fix a comment typo.
1924
1925 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
1926
1927         * config/h8300/h8300.md (a peephole2): Remove useless code.
1928
1929 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
1930
1931         * config/h8300/h8300.md (*iorsi3_and_ashift): New.
1932         (*iorsi3_and_lshiftrt): Likewise.
1933         (*iorsi3_zero_extract): Likewise.
1934
1935 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
1936
1937         * config/h8300/h8300.md (*insv_si_8_8): New.
1938         (*insv_si_8_8_lshiftrt_8): Likewise.
1939         (a peephole2): Likewise.
1940
1941 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1942
1943         * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
1944         Uniformly use bugfix instead of bug fix.
1945
1946 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1947
1948         PR doc/895
1949         * ONEWS: Remove those items that already appear in the EGCS
1950         release notes on our web pages.
1951
1952 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
1953
1954         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
1955         TARGET_HARD_FLOAT.  Reformat.
1956         (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
1957
1958 2003-03-28  Albert Chin-A-Young  <china@thewrittenword.com>
1959
1960         * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
1961         work on Solaris 2.5.1.
1962
1963 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>
1964
1965         * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
1966         section of h8300.md
1967         (*addsi3_and_nor_r_1): Likewise.
1968
1969 2003-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
1970
1971         * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
1972         set up before any trapping memory access if flag_non_call_exceptions.
1973
1974 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
1975
1976         * reload1.c (reload_as_needed): Allow a USE in asm reloads.
1977
1978         * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
1979
1980 2003-03-28  Nathanael Nerode  <neroden@gcc.gnu.org>
1981
1982         * configure.in: Clarify comments.
1983         * configure: Regenerate.
1984
1985 2003-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
1986
1987         * config/s390/s390.md ("literal_pool_31"): Output pool anchor
1988         label even if pool empty when generating PIC.
1989         ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
1990
1991 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>,
1992             Dhananjay Deshpande  <dhananjayd@kpit.com>
1993
1994         PR target/10205
1995         * config/h8300/h8300.c (h8300_initial_elimination_offset):
1996         Correct the offset computation when TARGET_NORMAL.
1997
1998 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
1999
2000         PR target/10067
2001         * config/sparc/sparc.md (jump pattern): Correct order
2002         when issuing the annuling marker.
2003
2004 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
2005
2006         PR c/8281
2007         * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
2008         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
2009
2010 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
2011
2012         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
2013         globalize_label.
2014         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2015         * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2016         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2017         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2018         * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2019         * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2020         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
2021
2022 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
2023
2024         * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
2025         (replace_loop_mems): Add "written" param.  Remove invalid REG_EQUAL
2026         notes after hoisting.
2027         (load_mems): Adjust replace_loop_mems call.
2028
2029 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
2030             Richard Henderson  <rth@redhat.com>
2031
2032         PR target/10114 and PR target/10084
2033         * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
2034
2035 2003-03-27  Richard Henderson  <rth@redhat.com>
2036
2037         * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
2038
2039 2003-03-27  Roger Sayle  <roger@eyesopen.com>
2040
2041         * fold-const.c (fold_inf_compare):  New function to simplify FP
2042         comparisons against +Infinity or -Infinity.
2043         (fold):  Optimize floating point comparisons against Infs and NaNs.
2044
2045 2003-03-27  Janis Johnson  <janis187@us.ibm.com>
2046
2047         * libgcov.c: Provide only dummy functions if libc is not available.
2048
2049 2003-03-27  Richard Henderson  <rth@redhat.com>
2050
2051         * real.h (struct real_value): Add signalling.
2052         (EXP_BITS): Decrement.
2053         * real.c (get_canonical_qnan): Don't set MSB-1.
2054         (get_canonical_snan): Likewise.  Set signalling.
2055         (real_identical): Compare signalling.
2056         (round_for_format): Remove force-one-bit on code.
2057         (real_nan): Likewise.  Set signalling.
2058         (encode_ieee_single): Add force-one-bit code; honor signalling.
2059         (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
2060         (decode_ieee_single): Set signalling.
2061         (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
2062
2063 2003-03-27  Olivier Hainque  <hainque@act-europe.fr>
2064
2065         PR ada/9953
2066         * ada/Makefile.in (gnatlib configuration for HPUX): Split
2067         the general section for HPUX into specific sections for
2068         HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
2069         11 case.
2070
2071 2003-03-27  Glen Nakamura  <glen@imodulo.com>
2072
2073         PR opt/10087
2074         * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
2075         while incrementing giv.
2076         (record_biv): Check for duplicate biv locations and
2077         set (struct induction *) v->same if found.
2078
2079 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
2080
2081         * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
2082         v0.9 API change: replace read of UNW_REG_HANDLER with
2083         unw_get_proc_info().
2084         (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
2085         with unw_get_proc_info().
2086         (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
2087         unw_get_proc_info().
2088
2089 2003-03-27  Vladimir Makarov  <vmakarov@redhat.com>
2090
2091         * config/rs6000/8540.md: Use presence_set instead of absence_set.
2092
2093 2003-03-26  Richard Henderson  <rth@redhat.com>
2094
2095         * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
2096
2097 2003-03-26  Roger Sayle  <roger@eyesopen.com>
2098
2099         PR bootstrap/10051, PR bootstrap/10169.
2100         * mips-tfile.c (init_file): Don't provide a static initializer.
2101         (initialize_init_file): Initialize the contents of init_file.
2102         (add_file): Call initialize_init_file if not already initialized.
2103
2104 2003-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
2105
2106         * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
2107         registers used for global asm variables.
2108         (s390_frame_info, s390_arg_frame_offset): Likewise.
2109         (s390_emit_prologue, s390_emit_epilogue): Likewise.
2110
2111 2003-03-26  Vladimir Makarov  <vmakarov@redhat.com>
2112
2113         * config/rs6000/8540.md: New file.
2114
2115         * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
2116         power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
2117         reservations for imul.
2118
2119         * config/rs6000/rs6000.md: Include 8540.md.  Change
2120         delayed_compare onto mult_compare for insns generating
2121         multiplication.
2122         (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
2123         New type attribute values.
2124
2125         * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
2126         fpsimple instead of fp.
2127         (*divsf3_gpr): Use type vecfdiv instead of fp.
2128         (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
2129         instead of vecfloat.
2130         (spe_evfsdive): Use type vecfdiv instead of vecfloat.
2131         (spe_brinc): Use type brinc instead of veccomplex.
2132         (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
2133         veccomplex.
2134         (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
2135         (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
2136         *movv2sf_internal): Define type attribute values for all
2137         alternatives.
2138         (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
2139         of fpcompare.
2140         (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
2141         instead of fpcompare.
2142
2143 2003-03-26  David Edelsohn  <edelsohn@gnu.org>
2144
2145         * config/rs6000/power4.md: Allow delay between dispatch and
2146         function units for simple instructions.  Correct store units.
2147         Allow branch to occupy as many dispatch slots as necessary.
2148
2149 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
2150
2151         * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
2152         (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
2153         zero extend old to it.
2154         * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
2155         operand.
2156
2157 2003-03-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
2158
2159         PR target/7784
2160         * reload.c (find_reloads_address): Handle
2161         (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
2162         all base registers.
2163
2164 2003-03-25  Marcelo Abreu  <mmabreu@inf.ufrgs.br>
2165
2166         PR other/10203
2167         * version.c: Reference the GCC web site in the URL.
2168
2169 2003-03-26  Alan Modra  <amodra@bigpond.net.au>
2170
2171         * c-incpath.c (add_standard_paths): Add both "translated" and
2172         non-translated header paths.
2173
2174 2003-03-25  Loren James Rittle  <ljrittle@acm.org>
2175
2176         * doc/install.texi (*-*-freebsd*): Update with known status.
2177
2178 2003-03-21  Jason Merrill  <jason@redhat.com>
2179
2180         PR optimization/10171
2181         * unroll.c (unroll_loop): Don't delete the jump at the end unless
2182         we also delete a jump at the beginning.
2183
2184 2003-03-25  Stephane Carrez  <stcarrez@nerim.fr>
2185
2186         * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
2187         contributor.
2188
2189 Tue Mar 25 20:35:51 CET 2003  Jan Hubicka  <jh@suse.cz>
2190
2191         * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
2192         constants are not expensive.
2193
2194 Mon Mar 24 20:03:03 CET 2003  Jan Hubicka  <jh@suse.cz>
2195
2196         PR opt/10056
2197         * cfglayout.c (fixup_reorder_chain):  Fix dealing with the conditional
2198         jump jumping to the next instruction.
2199         * cfgrtl.c (force_nonfallthru_and_redirect):  Likewise.
2200
2201 2003-03-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2202
2203         * doc/passes.texi (Passes): Properly document that we do not
2204         perform jump2 any longer; remove command-line option -dJ.
2205
2206 2003-03-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
2207
2208         PR optimization/8746
2209         * config/i386/i386.md (and promoting splitters): Disable HImode to
2210         SImode promoting when the sign bit matters and is not preserved, or
2211         when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
2212         for size.
2213
2214 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
2215
2216         * config/h8300/h8300.md (a peephole2): Extend to support loads
2217         in QImode and HImode.
2218
2219 2003-03-24  Stephane Carrez  <stcarrez@nerim.fr>
2220
2221         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
2222         _return_far
2223         (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
2224         (MULTILIB_EXCEPTIONS): Likewise.
2225         * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
2226         by calling some board support routine.
2227         ("call_value"): Likewise.
2228         ("*return_void"): Likewise for return.
2229         ("*return_16bit"): Likewise.
2230         ("*return_32bit"): Likewise.
2231         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
2232         for 68HC11 too.
2233         (DWARF2_ADDR_SIZE): Use 4 so that addresses can
2234         * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
2235         -mlong-calls for 68HC11.
2236         * config/m68hc11/larith.asm (declare_near): New macro.
2237         (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
2238         (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
2239         (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
2240         (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
2241         (__mulhi32): Likewise.
2242         (ret): Update macro for 68HC11.
2243         (__far_trampoline): Implement for 68HC11.
2244         (__call_a16, __call_a32, __return_void, __return_16): New support
2245         routines for 68HC11 memory bank switching calling support.
2246         (__return_32): Likewise.
2247
2248 2003-03-24  Neil Booth  <neil@daikokuya.co.uk>
2249
2250         * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
2251
2252 2003-03-24  Janis Johnson  <janis187@us.ibm.com>
2253
2254         * doc/install.texi (Testing): Mention test result links from build
2255         status pages.
2256
2257 2003-03-24  Mark Mitchell  <mark@codesourcery.com>
2258
2259         * function.c (put_var_into_stack): Change bool parameter to int.
2260         (gen_mem_addressof): Likewise.
2261         * rtl.h (gen_mem_addressof): Likewise.
2262         * tree.h (put_var_into_stack): Likewise.
2263         * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
2264         gen_mem_addressof or put_var_into_stack.
2265         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
2266         * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
2267
2268 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
2269
2270         * config/h8300/h8300.md (a peephole2): New.
2271
2272 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
2273
2274         * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
2275
2276 2003-03-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2277
2278         * doc/contrib.texi (Contributors): Update Janis Johnson.
2279
2280 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
2281
2282         PR target/10072
2283         * combine.c (simplify_if_then_else): Check that the mode
2284         has MODE_INT class before applying the (OP Z (mult COND C2))
2285         transformation.
2286
2287 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
2288
2289         PR optimization/9414
2290         * config/sparc/sparc.md (widening peepholes): Use
2291         widen_memory_access instead of change_address.
2292
2293 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
2294
2295         PR c++/7086
2296         * c-typeck.c (c_mark_addressable): Adjust calls to
2297         put_var_into_stack.
2298         * expr.c (expand_expr): Likewise.
2299         * function.c (put_var_into_stack): Add rescan parameter.  Do not
2300         call fixup_var_refs when rescan is false.
2301         (gen_mem_addressof): Likewise.
2302         (assign_parms): Adjust calls to put_var_into_stack.
2303         (setjmp_protect): Likewise.
2304         (setjmp_protect_args): Likewise.
2305         * rtl.h (gen_mem_addressof): Change prototype.
2306         * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
2307         * tree.h (put_var_into_stack): Change prototype.
2308
2309 2003-03-23  Arpad Beszedes <beszedes@cc.u-szeged.hu>
2310
2311         PR middle-end/9967
2312         * builtins.c (expand_builtin_fputs): When optimizing for size,
2313         don't transform fputs into fwrite.
2314
2315 2003-03-23  Glen Nakamura <glen@imodulo.com>
2316
2317         PR c/8224
2318         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
2319         when signedness changes for division or modulus.
2320
2321 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
2322
2323         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
2324         globalize_label.
2325
2326 2003-03-23  Roger Sayle  <roger@eyesopen.com>
2327
2328         PR c/10178
2329         * stmt.c (expand_end_case_type): Check for overflow in range when
2330         determining whether to use a bit-test implementation.
2331
2332 2003-03-23  Richard Henderson  <rth@redhat.com>
2333
2334         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
2335         before flow2.
2336         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
2337
2338 2003-03-23  Richard Henderson  <rth@redhat.com>
2339
2340         PR opt/10116
2341         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
2342         from then_bb or else_bb after flow2.
2343
2344 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
2345
2346         * configure.in: Check whether it is necessary to link against
2347         libm to use ldexp.
2348         * configure: Regenerate.
2349         * Makefile.in: Add LDEXP_LIB substitution variable.
2350
2351 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
2352
2353         * config/h8300/h8300.md: Fix comment typos.
2354
2355 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2356
2357         * pa.c (output_cbranch): Fix typo in comment.
2358
2359 2003-03-22  Richard Henderson <rth@redhat.com>
2360
2361         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
2362         after reload.
2363
2364 2003-03-22  DJ Delorie  <dj at redhat dot com>,
2365         Bruce Korb  <bkorb at gnu dot org>
2366
2367         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
2368         buggy Solaris 2.6 mutex/cond initializers.
2369         (solaris_mutex_init): Rename to solaris_mutex_init_2.
2370         * fixinc/fixincl.x: Regenerate.
2371         * fixinc/tests/base/pthread.h: Update.
2372         * fixinc/fixincl.c(initialize): be explicit about the default case
2373         and indicate verbose level when being very, very verbose.
2374         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
2375
2376 2003-03-22  Andreas Jaeger  <aj@suse.de>
2377
2378         * config/i386/i386.c (ix86_init_machine_status): Return value.
2379
2380 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2381
2382         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
2383         conditional branch to the following instruction.  Use next_real_insn
2384         instead of next_active_insn.
2385         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
2386         instead of next_active_insn.
2387
2388 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
2389
2390         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
2391         instead of 'm' constraint in forced-split alternatives.
2392         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
2393         VALIDATE_ADDRESS parameter to operand_subword.
2394
2395 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
2396
2397         * config/h8300/h8300.c (notice_update_cc): Correctly handle
2398         the case where the set destination is STRICT_LOW_PART.
2399
2400 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
2401
2402         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
2403         c30 instead of a c40 processor.
2404
2405 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
2406
2407         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
2408
2409 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
2410
2411         * c-common.c: Include intl.h.
2412         (shadow_warning): Rewrite to allow better diagnostic translations.
2413         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
2414         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
2415         use it throughout.
2416         * Makefile.in (c-common.o): Add intl.h.
2417
2418 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
2419
2420         * config.gcc: Remove 'float_format'.
2421
2422         * fixproto: Define NULL and size_t in generated stdlib.h and
2423         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
2424         Rearrange file generation loop for readability.  Generate time.h,
2425         string.h if missing.
2426         * tsystem.h: Include <string.h>, <time.h> unconditionally.
2427         * config.gcc: Blow away POSIX defines.
2428
2429 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
2430
2431         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
2432
2433 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
2434
2435         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
2436         writing .interrupt command.
2437         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
2438         if it's a far or near function.
2439         ("call_value"): Likewise.
2440         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
2441         near attributes.
2442         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
2443         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
2444         (m68hc11_initial_elimination_offset): Set current_function_far
2445         according to attributes.
2446         (expand_prologue): Likewise.
2447         (trap_handler_symbol): New global to keep track of trap handlers.
2448         (m68hc11_encode_section_info): Mark symbol as far if needed; set
2449         trap symbol.
2450         (m68hc11_is_far_symbol): New function.
2451         (m68hc11_is_trap_symbol): New function.
2452         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
2453         (m68hc11_is_trap_symbol): Declare.
2454
2455 2003-03-21  Jan Hubicka  <jh@suse.cz>
2456
2457         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
2458         only when amount of saved regs changed.
2459         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
2460         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
2461
2462 2003-03-21  Jan Hubicka  <jh@suse.cz>
2463
2464         PR inline-asm/7916
2465         * function.c (instantiate_virtual_regs_lossage): New function.
2466         (instantiate_virtual_regs_1): Use it.
2467         (instantiate_virtual_regs): Do not continue in substition when insn has
2468         been deleted.
2469
2470 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
2471
2472         * combine.c (make_field_assignment): Fix a warning.
2473
2474 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
2475
2476         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
2477
2478 2003-03-21  Dale Johannesen  <dalej@apple.com>
2479
2480         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
2481         priority for R2 on Darwin.
2482         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
2483
2484 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
2485
2486         * combine.c (make_field_assignment): Remove unnecessary AND
2487         when storing into zero_extract.
2488
2489 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
2490
2491         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
2492         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
2493         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
2494         in comment.
2495
2496 2003-03-21  DJ Delorie  <dj@redhat.com>
2497
2498         * optabs.c (init_integral_libfuncs): Make sure we init at least up
2499         to "long long" size words.
2500
2501 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
2502
2503         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
2504         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
2505         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
2506
2507 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2508
2509         PR doc-bug/9813
2510         * doc/extend.texi: Move misplaced paragraph about underscores in
2511         variables in macros.
2512
2513 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
2514             Richard Henderson  <rth@redhat.com>
2515
2516         PR optimization/8366
2517         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
2518         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
2519         PIC+SYMBOLIC_CONST in other modes than Pmode.
2520         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
2521         the form PIC+SYMBOLIC_CONST as mode dependent.
2522
2523 2003-03-21  DJ Delorie  <dj@redhat.com>
2524
2525         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
2526         sure we always emit at least one insn.
2527
2528 2003-03-21  Christopher Faylor  <cgf@redhat.com>
2529
2530         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
2531         stub t-cygming. Use common target header cygming.h. Add extra
2532         c_target_obj and cxx_target_obj file. Default cygwin to posix
2533         threading. Enforce i386 as float format.
2534         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
2535         Remove cygwin.h as target header. Use common target header
2536         cygming.h  Enforce i386 as float format. Correct typo.
2537         * config/i386/cygming.h: New file, containing definitions
2538         common to mingw32 and cygwin.
2539         * config/i386/cygwin.h: Remove definitions common to cygwin and
2540         mingw.  Simplify special spec logic.  Define "wrappers" around
2541         certain include path defines to accommodate -mno-cygwin.
2542         Remove some #if 0'ed code.
2543         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
2544         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
2545         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
2546         * config/i386/mingw32.h: Remove definitions common to cygwin and
2547         mingw.
2548         (EXTRA_OS_CPP_BUILTINS): Adjust.
2549         (TARGET_VERSION): Define.
2550         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
2551         mingw32.h definitions.
2552         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
2553         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
2554         Add compilation rules for cygwin1.o cygwin2.o.
2555         * config/i386/cygwin1.c: New file.
2556         * config/i386/cygwin2.c: New file.
2557         * config/i386/t-cygming: New makefile stub.
2558
2559 2003-03-20  Richard Henderson  <rth@redhat.com>
2560
2561         * fold-const.c (extract_muldiv_1): Revert changing order of
2562         operands in case MULT_EXPR of 2003-02-16 patch.
2563
2564 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
2565         Merge changes from new-regalloc-branch
2566
2567         From Michael Matz  <matz@suse.de>
2568         * df.c (df_ref_record_1): Move init of loc to safe point.
2569         Only recurse on interesting things in parallels.
2570         Handle CLASS_CANNOT_CHANGE_MODE smarter.
2571         (df_uses_record): Ditto.
2572
2573         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
2574         it's already okay to use memory operands in (IE doesn't require
2575         adding another insn or anything).
2576
2577 2003-03-20  Richard Henderson  <rth@redhat.com>
2578
2579         PR middle-end/6348
2580         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
2581         different from word_mode.
2582
2583 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
2584
2585         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
2586         source operand to those that can be extracted with bld.
2587
2588 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
2589
2590         PR 10066
2591         * arm.md (UNSPEC_PIC_BASE): New constant.
2592         (pic_add_dot_plus_four): Wrap with unspec.
2593         (pic_add_dot_plus_eight): Likewise.
2594
2595 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
2596
2597         * config/h8300/h8300.md (*insv_si_1_n): New.
2598         (*insv_si_1_n_lshiftrt): Likewise.
2599
2600 2003-03-20  Roger Sayle  <roger@eyesopen.com>
2601
2602         * fold-const.c (fold_mathfn_compare): New function to simplify
2603         comparisons against built-in math functions.  Fold comparisons
2604         of sqrt against constants.
2605         (fold): Call fold_mathfn_compare when appropriate.
2606
2607 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
2608
2609         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
2610         information.
2611
2612 2003-03-20  Per Bothner  <pbothner@apple.com>
2613
2614         Various cleanups to help compile server.
2615
2616         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
2617         and pass that to _cpp_init_hashtable.
2618         (cpp_read_main_file):  Drop hash_table* argument; don't call
2619         _cpp_init_hashtable.
2620         * cpplib.h:  Update declarations to match.
2621         * c-opts.c (c_common_init_options):  Pass ident_hash to
2622         cpp_create_reader.
2623         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
2624         * fix-header.c (read_scan_file):  Likewise pass NULL table to
2625         cpp_create_reader rather than cpp_read_main_file.
2626
2627         * cppfiles.c (cpp_rename_file):  Generalized and renamed
2628         to cpp_change_file.
2629         * cpplib.h:  Update declaration to match.
2630         * c-opts.c (push_command_line_line, finish_options):  Change
2631         cpp_rename_file calls to cpp_change_file.
2632
2633         * line-map.c (add_line_map):  Allow leaving the outermost file.
2634         Allowing entering an outermost-file after the initial time.
2635
2636         * toplev.c (pop_srcloc):  Allow popping from initial file.
2637
2638 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
2639
2640         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
2641
2642 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
2643
2644         * config/h8300/h8300.md (a peephole2): New.
2645
2646 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
2647
2648         * config/h8300/h8300.md (*addsi3_and_r_1): New.
2649         (*addsi3_and_not_r_1): Likewise.
2650
2651 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
2652
2653         * Makefile.in (STRICT2_WARN): Add @WERROR@.
2654         (GCC_WARN_CFLAGS): Remove $(WERROR).
2655         (fixinc.sh-warn): New.
2656         * ada/Make-lang.in (ada-warn): Add $(WERROR).
2657         * cp/Make-lang.in (cp-warn): Add $(WERROR).
2658         * f/Make-lang.in (f-warn): Add $(WERROR).
2659         * java/Make-lang.in (java-warn): Add $(WERROR).
2660         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
2661
2662 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
2663
2664         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
2665         langhooks-def.h (lhd_tree_dump_dump_tree),
2666         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
2667         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
2668         true and false in return statements.
2669
2670 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
2671
2672         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
2673         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
2674         DWARF_INITIAL_LENGTH_SIZE.
2675         (output_compilation_unit_header, output_pubnames, output_aranges)
2676         (output_line_info): Output 0xffffffff escape value for 64-bit
2677         DWARF extension.
2678         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
2679
2680 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
2681
2682         * config/s390/s390.c (s390_preferred_reload_class): Do not
2683         force constants to the pool unless necessary.
2684         (s390_decompose_address): Prefer to use pointer as base,
2685         not index register.
2686         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
2687         Q alternative.
2688         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
2689         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
2690         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
2691         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
2692         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
2693
2694 2003-03-19  Jan Hubicka  <jh@suse.cz>
2695
2696         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
2697         * i386.c (use_fast_prologue_epilogue): Remove.
2698         (ix86_frame): New field save_regs-using_mov;
2699         (ix86_compute_frame_layout):  Decide on fast prologues;
2700         allocate saved registers in red zone.
2701         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
2702
2703 2003-03-19  Nick Clifton  <nickc@redhat.com>
2704
2705         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
2706
2707 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2708
2709         PR 10062
2710         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
2711         * pa-protos.h (output_lbranch): New prototype.
2712         * pa.c (compute_frame_size): Change size of the frame marker on the
2713         64-bit ports to 48 bytes.
2714         (pa_output_function_prologue): Document why SAVE_SP is set.
2715         (hppa_expand_prologue): Save previous stack pointer into frame marker
2716         on targets which use the hpux unwind library.
2717         (output_cbranch): Use output_lbranch.
2718         (output_lbranch): New function to output long unconditional branches.
2719         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
2720         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
2721         64-bit ports.
2722         * pa.md (jump): Use output_lbranch.
2723         (allocate_stack): New expander for dynamic stack allocation.
2724
2725 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
2726
2727         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
2728         when debugging on XCOFF targets.  Delete "abi" temp.
2729
2730         PR target/10073
2731         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
2732
2733 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
2734
2735         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
2736         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
2737         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
2738
2739         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
2740         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
2741         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
2742
2743 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
2744
2745         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
2746         the result of machopic_function_base_name.
2747         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
2748         string rather than a static array.
2749
2750         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
2751
2752         * gengtype.c: Include rtl.h.
2753         (enum rtx_code): Don't define.
2754         (rtx_format): Make declaration match rtl.h.
2755         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
2756         users.
2757         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
2758         * Makefile.in (gengtype.o): Update dependencies.
2759
2760 2003-03-18  Andreas Schwab  <schwab@suse.de>
2761
2762         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
2763         martin@blom.org.
2764
2765 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
2766
2767         * function.c (next_block_index): Mark with GTY.
2768
2769         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
2770
2771 2003-03-18  Richard Henderson  <rth@redhat.com>
2772
2773         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
2774         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
2775         until after reload.
2776
2777 2003-03-18  Richard Henderson  <rth@redhat.com>
2778
2779         * builtins.c (expand_builtin_unop): New target_mode operand;
2780         use it to convert the result to the correct mode.
2781         (expand_builtin): Update all callers.
2782
2783 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
2784
2785         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
2786
2787 2003-03-18  Jan Hubicka  <jh@suse.cz>
2788
2789         * i386.md:  Fix previous commit that mistakely applied the patch
2790         twice.
2791
2792         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
2793         canonicalized.
2794         (memrefs_conflict_p): Likewise.
2795         (addr_side_effect_eval): Canonicalize the constructed address.
2796
2797 2003-03-18  Jan Hubicka  <jh@suse.cz>
2798
2799         * i386.md (cvtts?2si peep2): New.
2800
2801 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
2802
2803         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
2804
2805 2003-03-18  Andreas Schwab  <schwab@suse.de>
2806
2807         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
2808         for format.
2809
2810 2003-03-17  Jason Merrill  <jason@redhat.com>
2811
2812         PR c++/10091
2813         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
2814         an unaligned member of TREE_ADDRESSABLE type.
2815
2816 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
2817
2818         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
2819         (TARGET_PROFILE_KERNEL): Define.
2820         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
2821         (PROFILE_BEFORE_PROLOGUE): Don't define.
2822         (PROFILE_KERNEL): Remove hacks.
2823         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
2824         (rs6000_stack_info): No need to save lr if just for profiling when
2825         TARGET_PROFILE_KERNEL.
2826         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
2827         (output_function_profiler): Localize label generation.  Emit code
2828         for kernel profiling.
2829
2830 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
2831
2832         * config/h8300/h8300-protos.h: Add a prototype for
2833         byte_accesses_mergeable_p.
2834         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
2835         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
2836         (a splitter): Likewise.
2837         (*iorsi3_ashift_16_ashift_24): Likewise.
2838         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
2839
2840 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2841
2842         * dwarf2asm.h: Delete obsolete comment.
2843         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
2844         dw2_asm_output_pcrel, dw2_asm_output_addr,
2845         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
2846         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
2847         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
2848         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
2849
2850 2003-03-17  Zack Weinberg <zack@codesourcery.com>
2851
2852         * c-tree.h (struct lang_identifier): Remove error_locus field.
2853         (IDENTIFIER_ERROR_LOCUS): Kill.
2854         (record_function_scope_shadow): New prototype.
2855         * c-typeck.c (build_external_ref): Don't complain if
2856         decl is error_mark_node.  When not at file scope, bind the
2857         decl's local value to error_mark_node to suppress further
2858         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
2859
2860         * c-decl.c (get_function_binding_level): New static function.
2861         (record_function_scope_shadow): New exported function.
2862         (c_make_fname_decl): Use get_function_binding_level.
2863
2864 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
2865
2866         * stmt.c (tail_recursion_args): Call promote_mode to set
2867         unsignedp flag correctly before calling convert_move.
2868
2869 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2870
2871         * loop-unroll.c (decide_peel_completely,
2872         decide_unroll_constant_iterations, decide_unroll_stupid,
2873         decide_unroll_runtime_iterations, decide_peel_simple): Set
2874         loop->has_desc.
2875
2876 2003-03-17  Jan Hubicka  <jh@suse.cz>
2877
2878         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
2879
2880 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
2881
2882         * function.c (assign_parms): For a struct value address passed as
2883         first argument, delay the function's result RTL setup code until
2884         after the emission of parameter conversions.
2885
2886 2003-03-17  Dave Love  <fx@gnu.org>
2887             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2888
2889         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
2890         __arch64__ to match Compaq cc.
2891
2892 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
2893
2894         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
2895         (c_common_init): Set EBCDIC in cpp options.
2896         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
2897         not conditional compilation.
2898         * cpplib.h (struct cpp_options): New entry EBCDIC.
2899
2900 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
2901
2902         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
2903
2904 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
2905
2906         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
2907         argument to 0 for redirect_jump.
2908
2909 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
2910
2911         PR c++/8805
2912         * except.c (eh_region_u_cleanup): Add prev_try.
2913         (expand_eh_region_end_cleanup): Set it.
2914         (reachable_handlers): Use it to skip over cleanup blocks.
2915
2916 2003-03-17  Andreas Jaeger  <aj@suse.de>
2917
2918         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
2919
2920 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
2921
2922         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
2923         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
2924         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
2925         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
2926
2927 2003-03-16  Richard Henderson  <rth@redhat.com>
2928
2929         * simplify-rtx (simplify_binary_operation): Don't abort for
2930         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
2931
2932 2003-03-16  Richard Henderson  <rth@redhat.com>
2933
2934         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
2935         optimize_size as well.
2936
2937 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
2938
2939         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
2940         for D register to specify the low part of it, aka B.
2941         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
2942         the register if we are loading 1 or -1 to it; avoid using temp
2943         register when moving X/Y to Y/X.
2944         (m68hc11_gen_movqi): Likewise.
2945         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
2946
2947 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
2948
2949         PR optimization/9016
2950         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
2951         into the constant pool.
2952
2953 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2954
2955         PR target/9164
2956         * tree.c (get_narrower): For extensions with unchanged bit number,
2957         return the unsignedness of the outer mode.
2958
2959 2003-03-16  Roger Sayle  <roger@eyesopen.com>
2960
2961         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
2962         to avoid "may be used uninitialized" warning on ia64-hpux.
2963         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
2964
2965 2003-03-16  Andreas Jaeger  <aj@suse.de>
2966
2967         * configure.in: Improve check for memcheck.h.
2968         * configure: Regenerated.
2969
2970 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
2971
2972         * doc/cppopts.texi: Remove documentation of -A-.
2973
2974 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
2975
2976         * doc/libgcc.texi: Remove @tie.
2977
2978 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
2979
2980         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
2981         (rtx_pair): Added new element update_label_nuses, renamed to
2982         replace_label_data.
2983         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
2984         replace_label_data instead of rtx_pair.
2985         * loop.c (load_mems): Likewise.
2986         * rtlanal.c (replace_label): Replace label in pool constants and in
2987         INSN_LIST (in REG_LABEL note).
2988         (subrtx_p): Renamed to rtx_referenced_p.
2989         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
2990         LABEL_REF with CODE_LABEL, traverse constants from pool.
2991
2992 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
2993             Zack Weinberg  <zack@codesourcery.com>
2994
2995         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
2996         * doc/libgcc.texi: New file.
2997         * doc/interface.texi: Delete paragraph about libgcc interface.
2998         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
2999
3000 2003-03-15  Jason Merrill  <jason@redhat.com>
3001
3002         PR debug/9039
3003         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
3004
3005         PR debug/6387
3006         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
3007         function DIEs at toplevel.
3008         (decls_for_scope): At -g1, don't descend into subblocks.
3009
3010 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
3011
3012         * varasm.c (struct rtx_const): Change type of un.addr member
3013         to struct holding an additional 'symbol' member.
3014         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
3015         with equal string addresses as equal.
3016         (simplify_subtraction): Adapt to struct rtx_const change.
3017
3018 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
3019
3020         * fix-header.c (read_scan_file): Read main file before handling -D.
3021
3022 2003-03-15  Roger Sayle  <roger@eyesopen.com>
3023
3024         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
3025         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
3026         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
3027         (find_sub_basic_blocks): Likewise.
3028         * cgraphunit.c (cgraph_expand_functions): Likewise.
3029         * dwarf2out.c (prune_unused_types): Likewise.
3030         * expr.c (store_field): Likewise.
3031         * genextract.c (print_path): Likewise.
3032         * haifa-sched.c (schedule_insn): Likewise.
3033         * lcm.c (compute_antinout_edge): Likewise.
3034         * loop-unroll.c (decide_peel_once_rolling): Likewise.
3035         * ra-colorize.c (ra_colorize_free_all): Likewise.
3036         * ra-debug.c (dump_igraph): Likewise.
3037         (debug_hard_reg_set): Likewise.
3038         * reg-stack.c (reg_to_stack): Likewise.
3039         * rtlanal.c (refers_to_regno_p): Likewise.
3040         * tracer.c (layout_superblocks): Likewise.
3041
3042 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
3043
3044         * fix-header.c (read_scan_file): Fix thinko.
3045
3046 2003-03-15  Glen Nakamura  <glen@imodulo.com>
3047
3048         * reload1.c (choose_reload_regs): Use && instead of ||
3049         with REG_CANNOT_CHANGE_MODE_P condition.
3050
3051 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
3052
3053         * Makefile.in: Update.
3054         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
3055         * c-lex.c (init_c_lex): Register builtins hook is dead.
3056         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
3057         (c_common_decode_option): Don't call cpp_handle_option.
3058         Handle -A, -D and -U.
3059         (handle_deferred_opts): Simplify.
3060         (finish_options): Define builtins and command line macros.
3061         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
3062         * cppinit.c: Don't include intl.h.
3063         (init_builtins): Rename cpp_init_builtins.  No hook to call.
3064         (init_library): Don't need to sort options.
3065         (cpp_create_reader): Don't set pending.
3066         (cpp_destroy): Don't free pending.
3067         (struct pending_option, cl_directive_handler, struct cpp_pending,
3068         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
3069         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
3070         cl_options, cpp_handle_option): Remove.
3071         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
3072         cpp_finish_options): Remove.
3073         (cpp_init_builtins): New.
3074         * fix-header.c (read_scan_file): Update to handle -D.  Fix
3075         handling of -I.  Replace call to cpp_finish_options.
3076
3077 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
3078
3079         PR optimization/9387
3080         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
3081         for conditional returns.
3082
3083 2003-03-14  Jason Merrill  <jason@redhat.com>
3084
3085         PR optimization/6871
3086         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
3087
3088 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
3089
3090         * c-opts.c (finish_options): New.
3091         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
3092         (missing_arg): Handle OPT_include and OPT_imacros.
3093         (c_common_init, c_common_parse_file): Use finish_options.
3094         (handle_deferred_opts): Update.
3095         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
3096         (cpp_finish_options): Don't handle -imacros here.
3097         (no_fil): Remove.
3098         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
3099
3100 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
3101
3102         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
3103         rs6000_maybe_dead if !fromprolog.
3104
3105 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
3106
3107         * Makefile.in: Update.
3108         * c-common.h (fe_file_change, pp_file_change): New.
3109         * c-lex.c (init_c_lex): Don't set cb_file_change.
3110         (c_common_parse_file): Move to c-opts.c.
3111         (cb_file_change): Rename fe_file_change.
3112         * c-opts.c: Include debug.h.
3113         (warn_unused_macros, include_cursor): New.
3114         (push_command_line_include, cb_file_change): New.
3115         (COMMAND_LINE_OPTIONS): Handle -include.
3116         (c_common_decode_option): Use local warn_unused_macros.
3117         Handle OPT_include.
3118         (c_common_post_options): Set file change callback.
3119         (handle_deferred_opts): Skip -include.  Don't free the array.
3120         (c_common_init): Call cpp_finish_options here, and push an
3121         initial -include file.
3122         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
3123         (preprocess_file): Don't call cpp_finish_options.
3124         (init_pp_output): Don't set the file change callback.
3125         (pp_file_change): Return if no line commands or no output.
3126         * cpphash.h (next_include_file, first_unused_line): Remove.
3127         * cppinit.c (include_head, include_tail): Remove.
3128         (cpp_destroy): Don't free -include chain.
3129         (cpp_finish_options): Don't handle -include, or worry about
3130         -Wunused-macros.
3131         (_cpp_maybe_push_include_file): Remove.
3132         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
3133         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
3134         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
3135         Used flag is set based upon the state of the warn_unused_macros
3136         flag, and so use of first_unused_line is unnecessary.
3137
3138 2003-03-13  Jan Hubicka  <jh@suse.cz>
3139
3140         * cselib.c (clear_table): Do not take argument; always clear just
3141         used slots.
3142         (cselib_process_insn):  Update call of clear_table
3143         (cselib_init): Do not call clear_table.
3144         (cselib_finish): Clear table.
3145
3146         * cse.c (count_reg_usage): Do not check side_effects_p.
3147         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
3148         like noop.
3149         (find_reg_equal_equiv_note): Do not use find_reg_note.
3150
3151 2003-03-14  Richard Henderson  <rth@redhat.com>
3152
3153         PR target/9700
3154         * config/alpha/alpha.c (alpha_va_start): Account for
3155         current_function_pretend_args_size in the AP offset.
3156
3157         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
3158         (INITIAL_ELIMINATION_OFFSET): Move out of line.
3159         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
3160         (alpha_initial_elimination_offset) New.
3161         * config/alpha/alpha-protos.h: Update.
3162
3163 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
3164
3165         * stmt.c (expand_start_case): Call emit_queue ().
3166
3167 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
3168             Alexandre Oliva  <aoliva@redhat.com>
3169
3170         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
3171         words in new abis.
3172
3173 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
3174
3175         PR optimization/8396
3176         * tree-inline.c (initialize_inlined_parameters): Make sure the value
3177         of read-only constant arguments is passed with the right type.
3178
3179 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
3180
3181         * doc/extend.texi (Function Names): Make the example compilable.
3182
3183 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
3184
3185         * config/rs6000/rs6000.c (processor_target_table): Really allow
3186         GP optional instructions on Power4.
3187
3188 2003-03-13  Roger Sayle  <roger@eyesopen.com>
3189
3190         * calls.c (flags_from_decl_or_type): Factor and remove redundant
3191         conditional tests.
3192
3193 2003-03-13  Mike Stump  <mrs@apple.com>
3194
3195         * ggc-page.c (struct page_entry): Remove varray.h header.
3196         Add index_by_depth field.
3197         Remove save_in_use_p field.
3198         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
3199         by_depth_max, by_depth, and save_in_use fields.
3200         (INITIAL_PTE_COUNT): Add.
3201         (save_in_use_p_i): Add.
3202         (save_in_use_p): Add.
3203         (adjust_depth): Add.
3204         (move_ptes_to_front): Add.
3205         (push_depth): Add.
3206         (push_by_depth): Add.
3207         (prefetch): Add.
3208         (free_page): Add support for and use faster data structures.
3209         (ggc_alloc): Likewise.
3210         (init_ggc): Likewise.
3211         (ggc_recalculate_in_use_p): Likewise.
3212         (ggc_pop_context): Likewise.
3213         (clear_marks): Likewise.
3214         (ggc_pch_read): Likewise.
3215         * Makefile.in (ggc-page.o): Remove varray.h.
3216
3217 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
3218
3219         * ChangeLog: Rotated last year's entries to...
3220         * ChangeLog.8: New.
3221
3222         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
3223         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
3224         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
3225         config/ia64/ia64-protos.h, config/ia64/ia64.c,
3226         config/ia64/ia64.h, config/ia64/ia64.md,
3227         config/ia64/itanium1.md, config/ia64/itanium2.md,
3228         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
3229         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
3230
3231 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
3232
3233         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
3234         Differentiate endianness.
3235         (s6000_override_options): Use cpu type instead of TARGET_SPE.
3236
3237 2003-03-13  Nick Clifton  <nickc@redhat.com>
3238
3239         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
3240         LDM instructions with writeback enabled.
3241         (output_return_instruction): Likewise.
3242
3243         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
3244         (CALL_USED_REGISTERS): Remove definition.
3245         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
3246
3247 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
3248
3249         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
3250         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
3251         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
3252         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
3253         (rs6000_legitimize_address): Formatting.
3254         (rs6000_emit_move): Likewise.
3255         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
3256         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
3257         (rs6000_elf_select_section): Comment reason for shlib being
3258         set for ABI_AIX.
3259         (rs6000_elf_unique_section): Likewise.
3260         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
3261         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
3262         as well as flag_pic.
3263         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
3264         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3265         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
3266
3267 2003-03-13  Richard Henderson  <rth@redhat.com>
3268
3269         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
3270
3271         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
3272         (ia64_gp_save_reg): Remove.
3273         (struct ia64_frame_info): Move to the beginning of the file;
3274         add reg_save_gp.
3275         (ia64_expand_call): Rearrange for new call patterns.
3276         (ia64_reload_gp): New.
3277         (ia64_split_call): New.
3278         (ia64_compute_frame_size): Allocate reg_save_gp.
3279         (ia64_expand_prologue): Save reg_save_gp.
3280         (ia64_expand_epilogue): Don't restore gp.
3281         (ia64_hard_regno_rename_ok): Remove R4 hack.
3282         (ia64_function_ok_for_sibcall): New.
3283         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
3284         call try_split on sibcall pattern.
3285         * config/ia64/ia64-protos.h: Update.
3286         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
3287         Rename from nopic versions.  Confiscate 2nd argument to call as
3288         a marker.
3289         (call_pic, call_value_pic, sibcall_pic): Remove.
3290         (call_gp, call_value_gp, sibcall_gp): New.
3291         (builtin_setjmp_setup): Remove.
3292         (builtin_setjmp_receiver): Call ia64_reload_gp.
3293
3294 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
3295
3296         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
3297         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
3298         "GNU CC" with "GCC".
3299
3300         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
3301         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
3302         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
3303         GCC, not GNU CC.
3304
3305         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
3306         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
3307
3308         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
3309         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
3310         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
3311         "GNU CC" with "GCC".
3312
3313         * config/v850/lib1funcs.asm, config/v850/rtems.h,
3314         config/v850/v850-c.c, config/v850/v850-protos.h,
3315         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
3316         GCC, not GNU CC.
3317
3318         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
3319         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
3320         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
3321         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
3322         GNU CC.
3323
3324 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
3325
3326         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
3327
3328 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
3329
3330         * fixinc/fixinc.interix: Remove dead code (most of it).
3331         * fixinc/fixinc.dgux: Remove.
3332
3333         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
3334         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
3335
3336 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3337
3338         * pa.c (pa_init_builtins): Fix warning.
3339
3340 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
3341
3342         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
3343         (ASM_OUTPUT_XDATA_SHORT): Remove.
3344         (ASM_OUTPUT_XDATA_INT): Remove.
3345         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
3346         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
3347         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
3348         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
3349
3350 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
3351
3352         PR c++/7050
3353         * expr.c (store_expr): Don't attempt to store void-typed trees,
3354         just evaluate them for side effects.
3355
3356 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
3357
3358         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
3359         * cppinit.c (push_include): Move with changes to cppfiles.c.
3360         (cpp_read_main_file): Mark named operators here...
3361         (cpp_finish_options): ...not here.  Update.
3362         (_cpp_maybe_push_include_file): Update.
3363         * cpplib.h (cpp_push_include, cpp_rename_file): New.
3364
3365 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
3366
3367         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
3368         _gcc_COMPUTE_GAS_VERSION.
3369         * configure.in: Use them.
3370         * configure: Regenerate.
3371
3372 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
3373
3374         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
3375         to detect carry.
3376         (subdi3): Reorder emitted instructions.
3377
3378 2003-03-12  Andreas Jaeger  <aj@suse.de>
3379
3380         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
3381         NETBSD_OS_CPP_BUILTINS_LP64.
3382
3383 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
3384
3385         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
3386         Rearrange.  Reorganize.
3387         * configure.in: Rearrange.
3388         * configure: Regenerate.
3389
3390 2003-03-12  Andreas Jaeger  <aj@suse.de>
3391
3392         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
3393         LP64 targets.
3394
3395         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
3396         _LP64.
3397
3398         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
3399         _LP64 macros here.
3400         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3401
3402         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
3403         NETBSD_OS_CPP_BUILTINS_LP64.
3404         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
3405         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
3406
3407         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
3408
3409 2003-03-12  Jan Hubicka  <jh@suse.cz>
3410
3411         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
3412
3413 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
3414
3415         Fix PR target/9797 and PR c/9853.
3416         * stmt.c (expand_decl_init): Call push_temp_slots () and
3417         pop_temp_slots ().
3418
3419 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
3420
3421         * sh.c: Include basic-block.h.
3422         (sh_output_mi_thunk, emit_load_ptr): New functions.
3423         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
3424
3425 2003-03-12  Nick Clifton  <nickc@redhat.com>
3426
3427         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
3428         (CALL_USED_REGISTERS): Likewise.
3429         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
3430         describing how this value is calculated.
3431
3432 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
3433
3434         * configure.in (rlim_t): Define to long if no valid definition
3435         found in sys/resource.h.
3436         * config.in, configure: Regenerate.
3437
3438 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
3439
3440         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
3441         TARGET_OS_CPP_BUILTINS.
3442         * config/mcore/mcore-pe.h: Similarly.
3443         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
3444         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
3445
3446 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
3447
3448         PR c/9928
3449         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
3450         only if it is a VAR_DECL.
3451
3452 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
3453
3454         PR optimization/9888
3455         * config/i386/i386.md (jcc_1): Fix range.
3456         (jcc_2): Likewise.
3457         (jump): LIkewise.
3458         (doloop_end_internal): Likewise.
3459
3460 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
3461
3462         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
3463         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
3464         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
3465         DLL_IMPORT_EXPORT_PREFIX and "i."
3466         (i386_pe_dllexport_name_p): Here.
3467         (i386_pe_dllimport_name_p): Here.
3468         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
3469         not 9 chars when getting identifier name.
3470         (i386_pe_mark_dllimport): Here.
3471         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
3472         not 9 chars when getting identifier name. Correct comment.
3473         (i386_pe_strip_name_encoding): Here. Add comments for different
3474         cases.
3475         (gen_fastcall_suffix): Break down xmalloc() argument to
3476         components.
3477         (gen_stdcall_suffix): Likewise.
3478         Update copyright year.
3479
3480 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
3481
3482         PR optimization/9888
3483         * config/i386/i386.md (movsi_1): Remove special alternatives
3484         for %eax register.
3485         (movsi_1_nointernunit): Likewise.
3486         (movhi_1): Likewise.
3487         * config/i386/i386.c (memory_address_length): Do not use
3488         short displacement when there is no base.
3489         (ix86_attr_length_address_default): Handle LEA instructions.
3490
3491 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
3492
3493         * c-cppbuiltin.c (builtin_define_std): Make non-static.
3494
3495 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
3496
3497         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
3498         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
3499         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
3500         * config/freebsd.h (CPP_PREDEFINES): Remove.
3501         (TARGET_OS_CPP_BUILTINS): New.
3502         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
3503         instead of TARGET_OS_CPP_BUILTINS.
3504         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
3505
3506 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
3507
3508         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
3509
3510 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
3511
3512         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
3513         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
3514
3515         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
3516
3517 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
3518
3519         * toplev.c (independent_decode_option): Return success for --help,
3520         --target-help and --version.
3521
3522 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
3523
3524         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
3525         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
3526         specified.
3527         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
3528         DRIVER_SELF_SPECS.
3529         (LINK_SPEC): Let endian options affect the linker emulation name.
3530
3531 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
3532
3533         * sh.md (reload_inqi): Fix mode for source in second set.
3534
3535 2003-03-11  Jan Hubicka  <jh@suse.cz>
3536
3537         * cselib.c (cselib_invalidate_mem_1): Move too ...
3538         (cselib_invalidate_mem): ... here; use new list
3539         (dummy_val, first_containing_mem): New static variables.
3540         (clear_table): Initialize first_containing_mem.
3541         (discard_useless_values):  Compact the containing_mem list.
3542         (add_mem_for_addr): Add to the list.
3543         * cselib.h (cselib_val): Add next_containing_mem.
3544
3545 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
3546
3547         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
3548         instructions for e500.
3549
3550 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
3551
3552         * Makefile.in: Update.
3553         * c-cppbuiltin.c: Include tm_p.h.
3554
3555 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
3556
3557         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
3558
3559         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
3560         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
3561         (_Unwind_SetGR): Same.
3562         (_Unwind_GetGRPtr): New.
3563         (_Unwind_SetGRPtr): New.
3564         (uw_update_context_1): Use accesor functions instead of accessing
3565         context->reg[] directly.
3566         (uw_install_context_1): Same.
3567         (execute_cfa_program): Same.
3568         (__frame_state_for): Same.
3569
3570         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
3571         the synthetic register offset.
3572
3573         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
3574
3575 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
3576
3577         * config/cris/cris.md: Remove lingering EGCS reference.
3578         ("*extopqihi_side_biap"): For HI operation, match
3579         cris_additive_operand_extend_operator, not
3580         cris_operand_extend_operator.  Adjust condition.
3581         ("*extopqihi_side", "*extopqihi"): Ditto.
3582         ("*extopqisi_side_biap"): Correct operand numbers in condition.
3583         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
3584         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
3585         ("*extophisi_swap"): Ditto.
3586         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
3587         PLUS, not cris_operand_extend_operator.  Adjust condition and
3588         output template.
3589         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
3590         * config/cris/cris.h (PREDICATE_CODES): Add
3591         cris_additive_operand_extend_operator.
3592         * config/cris/cris.c (cris_additive_operand_extend_operator):
3593         New predicate.
3594
3595 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
3596
3597         * df.c (read_modify_subreg_p): Change from static to global.
3598         * df.h (read_modify_subreg_p): Add prototype.
3599         * sched-deps.c (sched_analyze_1): Generate true dependency for
3600         strict_low_part, certain subregs and zero/sign_extract.
3601
3602 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
3603
3604         * Makefile.in: Update.
3605         * c-common.c: Don't include real.h or except.h.
3606         (REGISTER_PREFIX): Remove.
3607         (builtin_define_std, builtin_define_with_value,
3608         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
3609         builtin_define_type_max, builtin_define_type_precision,
3610         builtin_define_float_constants): Move to c-cppbuiltin.c.
3611         (c_stddef_cpp_builtins): New.
3612         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
3613         * c-cppbuiltin.c: New, extracted from c-common.c.
3614         (define__GNUC__): New.
3615         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
3616         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
3617         (cpp_unique_options): Don't support no-gcc.
3618         (do_spec_1): Remove support of version specs.
3619         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
3620         * doc/passes.texi: Update.
3621         * doc/tm.texi: Update.
3622
3623 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
3624
3625         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
3626
3627 2003-03-10  Andrew Pinski  <apinski@apple.com>
3628
3629         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
3630         is on should not get here.
3631         (machopic_indirect_data_reference): If dynamic-no-pic is on just
3632         generate high/low parts of the address.
3633         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
3634         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
3635         symbol and labels with a new reg.  Dynamic-no-pic does not have a
3636         pic_offset_table_rtx.
3637         (machopic_select_section): Change references of flag_pic to
3638         MACHOPIC_INDIRECT.
3639         (machopic_asm_out_destructor): Likewise.
3640         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
3641         reference of flag_pic to MACHOPIC_INDIRECT.
3642         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
3643         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
3644         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
3645         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
3646         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
3647         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
3648         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
3649         (TARGET_DYNAMIC_NO_PIC): Define.
3650         (SUBTARGET_SWITCHES): Define, have sub-target switches for
3651         dynamic-no-pic.
3652         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
3653         rs6000_override_options to here. Dynamic-no-pic overrides
3654         pic.
3655         (CC1_SPEC): Change from not static then pic to not static and not
3656         dynamic-no-pic then pic.
3657         * config/rs6000/rs6000.c (rs6000_override_options): Move the
3658         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
3659         (rs6000_legitimize_reload_address): Add case for loading floating in
3660         dynamic-no-pic.
3661         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
3662         of flag_pic to MACHOPIC_INDIRECT.
3663         (secondary_reload_class): Conditional change the reference of
3664         flag_pic to MACHOPIC_INDIRECT.
3665         (rs6000_output_mi_thunk): Change reference of flag_pic to
3666         MACHOPIC_INDIRECT.
3667         (output_profile_hook): Likewise.
3668         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
3669         * config/rs6000/rs6000.md (movdf_low): Add the case for
3670         MACHO_DYNAMIC_NO_PIC_P.
3671         (call): Change references for flag_pic in TARGET_MACHO to
3672         MACHOPIC_INDIRECT.
3673         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
3674         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
3675         * doc/invoke.texi (-mdynamic-no-pic): Document.
3676
3677 2003-03-10  Devang Patel  <dpatel@apple.com>
3678
3679         PR c++/9394
3680         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
3681         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
3682         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
3683         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
3684         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
3685         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
3686
3687 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3688
3689         PR optimization/7189
3690         * toplev.c (rest_of_compilation):  Move
3691         check_function_return_warnings up to just after
3692         delete_unreachable_blocks.
3693
3694 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
3695
3696         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
3697         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
3698         Declare.
3699         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
3700         for reg rename optimization to avoid using Z and Y registers.
3701
3702 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
3703
3704         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
3705         when adding to X and Y since leax/leay are fast.
3706         ("*addhi3"): Accept 'I' constraint when adding to address register.
3707         ("rotlhi3"): Operand 1 must be a register_operand.
3708         (peephole2): New peephole to optimize some adds.
3709         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
3710         to represent -2 .. 2 small integer range.
3711
3712 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
3713
3714         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
3715         each 16-bit rotation.
3716
3717 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
3718
3719         * c-opts.c (add_prefixed_path): Don't use concat.  When
3720         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
3721         cpp_GCC_INCLUDE_DIR_len characters.
3722
3723 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
3724
3725         * testsuite/gcc.dg/altivec-9.c: New file.
3726
3727         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
3728         (rs6000_emit_prologue): Use rs6000_frame_related instead.
3729
3730 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
3731
3732         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
3733         vectors.
3734         (__ev_convert_u64): Remove macro.  Define as inline.
3735         (__ev_convert_s64): Same.
3736
3737 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
3738
3739         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
3740         (rs6000_stack_t): Add spe_64bit_regs_used.
3741
3742         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
3743         spe_64bit_regs_used, and use it to determine the size of the
3744         frame.
3745         (spe_func_has_64bit_regs_p): New.
3746         (spe_synthesize_frame_save): New.
3747         (rs6000_frame_related): Handle SPE synthetic registers.
3748         (rs6000_emit_prologue): Only save in 64-bits if the function used
3749         any registers in 64-bit mode.
3750         (rs6000_emit_epilogue): Same, but for restore.
3751
3752 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
3753
3754         * arm.h (enum floating_point_type): Delete.  Replace with...
3755         (enum fputype): ... new.
3756         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
3757         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
3758         * arm.md (attr fpu): Reworked for new underlying enum values.
3759         * arm.c (arm_fpu_arch): Now enum fputype.
3760         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
3761         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
3762         Update uses of arm_fpu_arch and arm_fpu_tune.
3763
3764 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
3765
3766         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
3767         (try_crossjump_to_edge): Replace refereces to one jump table by
3768         references to identical jump table.
3769         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
3770         (replace_label): Moved to rtlanal.c.
3771         (struct rtx_pair): Moved to rtl.h.
3772         * rtl.h (struct rtx_pair): Moved from loop.c.
3773         (replace_label): New extern function.
3774         (subrtx_p): New extern function.
3775         (tablejump_p): New extern function.
3776         * rtlanal.c (replace_label): Moved from loop.c.
3777         (subrtx_p_1): New static function.
3778         (subrtx_p): New function.
3779         (tablejump_p): New function.
3780
3781 2003-03-10  Jan Hubicka  <jh@suse.cz>
3782
3783         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
3784
3785         * cfgcleanup.c (merge_blocks): Return where to iterate next.
3786         (try_optimize_cfg): Use return value of merge_blocks
3787
3788 2003-03-10  Michael Matz  <matz@suse.de>
3789
3790         * cfg.c (unchecked_make_edge): New.
3791         (cached_make_edge): Use it.
3792         * basic-block.h (unchecked_make_edge): Declare.
3793         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
3794
3795 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
3796
3797         * fpa.md: New file.  Move all patterns relating to FPA co-processor
3798         to here...
3799         * arm.md: ... from here.
3800         (cirrus.md, fpa.md): Include at end of description.
3801         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
3802         (pic_load_addr_based): Remove register constraint from expander.
3803         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
3804         (sordered, sungt, sunle, sunge, sunlt): Likewise.
3805         (eh_epilogue, tablejump): Likewise.
3806
3807 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
3808             Mostafa Hagog
3809
3810         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
3811         condition.
3812
3813 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
3814
3815         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
3816         * config/ip2k/ip2k.h: Similarly.
3817         * config/m32r/m32r.h: Similarly.
3818         * config/m68hc11/m68hc11.h: Similarly.
3819         * config/mn10200/mn10200.h: Similarly.
3820         * config/mn10300/mn10300.h: Similarly.
3821         * config/pdp11/pdp11.h: Similarly.
3822         * config/v850/v850.h: Similarly.
3823         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
3824         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
3825         * config/mips/iris3.h: Remove #if 0 block.
3826
3827 2003-03-09  Roger Sayle  <roger@eyesopen.com>
3828             Joern Rennecke <joern.rennecke@superh.com>
3829
3830         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
3831         pending argument upon return from handle_braces here.
3832         (do_spec_2): Instead handle it upon return from do_spec_1 here.
3833
3834 2003-03-09  Roger Sayle  <roger@eyesopen.com>
3835             Joern Rennecke <joern.rennecke@superh.com>
3836
3837         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
3838         pending argument upon return from handle_braces here.
3839         (do_spec_2): Instead handle it upon return from do_spec_1 here.
3840
3841 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3842
3843         * varasm.c (make_decl_one_only): Use declare_weak().
3844
3845 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3846
3847         PR middle-end/9986
3848         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
3849         after the common builtins.
3850         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
3851         * pa.c (TARGET_INIT_BUILTINS): Define.
3852         (pa_init_builtins): New function.
3853
3854         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
3855         space has been allocated for the outgoing arguments, set the arg
3856         pointer for a call emitted after virtuals have been instantiated
3857         using the stack pointer offset, otherwise abort.
3858
3859 2003-03-09  DJ Delorie  <dj@redhat.com>
3860
3861         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
3862
3863 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
3864
3865         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
3866         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
3867         conversion to integer.
3868         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
3869
3870 2003-03-09  Roger Sayle  <roger@eyesopen.com>
3871
3872         * builtins.def: Fix typo and improve grammar.
3873         * loop-unroll.c (decide_peel_completely): Tidy log message.
3874
3875 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
3876
3877         * config/h8300/h8300.md (*tstsi_upper_bit): New.
3878         (*iorsi3_e2f): Likewise.
3879
3880 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
3881
3882         * config/h8300/h8300.c (h8300_and_costs): Return the number of
3883         assembly instructions needed.
3884         (h8300_shift_costs): Likewise.
3885
3886 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
3887
3888         * config/cris/aout.h (ENDFILE_SPEC): Undef.
3889
3890         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
3891         moves from here ...
3892         * expr.c (emit_move_insn_1): ... to here.
3893
3894         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
3895         (TARGET_OS_CPP_BUILTINS): New macro.
3896         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
3897         (TARGET_OS_CPP_BUILTINS): New macro.
3898         (CPP_PREDEFINES): Don't define.  Move old definitions and...
3899         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
3900         (TARGET_CPU_CPP_BUILTINS): New macro.
3901         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
3902         definitions and the optional __PIC__, __pic__ and
3903         __NO_UNDERSCORES__ definitions to...
3904         (TARGET_OS_CPP_BUILTINS): New macro.
3905
3906         * flags.h (flag_leading_underscore): Declare.
3907
3908         * c-opts.c (c_common_post_options): On fopen failure, return
3909         false, not NULL.
3910
3911 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
3912
3913         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
3914         config.h.
3915         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
3916         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
3917
3918 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
3919
3920         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
3921         CPP_PREDEFINES.
3922         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
3923         CPP_PREDEFINES.
3924
3925 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
3926
3927         * c-common.h (c_common_init, c_common_post_options): Update.
3928         * c-objc-common.c (c_objc_common_init): Update for new prototype.
3929         * c-opts.c (saved_lineno): New.
3930         (c_common_post_options, c_common_init): Update prototypes,
3931         move call to cpp_read_main_file from latter to former.
3932         * c-tree.h (c_ojbc_common_init): Update.
3933         * langhooks-def.h (lhd_post_options): New.
3934         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
3935         * langhooks.c (lhd_post_options): New.
3936         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
3937         * toplev.c (no_backend): New.
3938         (process_options): Call post_options hook and set main_input_filename
3939         and input_filename here.
3940         (lang_dependent_init, do_compile): post_options hook moved to
3941         process_options.
3942         * objc/objc-act.c (objc_init): Update prototype.
3943         * objc/objc-act.h (objc_init): Update prototype.
3944
3945 2003-03-08  Roger Sayle  <roger@eyesopen.com>
3946
3947         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
3948         a complex or vector type, using a load in the original mode.
3949
3950 2003-03-08  Jan Hubicka  <jh@suse.cz>
3951
3952         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
3953         * gt-cgraph.h: New GC file.
3954         * cgraph.c (known_fns): New static variable.
3955         (cgraph_node): Add the decl into varray.
3956
3957 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
3958
3959         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
3960
3961 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
3962
3963         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
3964         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
3965         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
3966         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
3967         All callers changed.
3968         * arm.md, arm.h, arm-protos.h: Updated.
3969
3970         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
3971         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
3972         * arm.c (arm_regno_class, f_register_operand): Updated.
3973
3974 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
3975
3976         * config/cris/cris.h: Remove EGCS references.
3977         (CPP_SPEC): Remove "-$".
3978         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
3979
3980 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
3981
3982         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
3983         preference to CPP_PREDEFINES.
3984
3985 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
3986
3987         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
3988
3989 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
3990
3991         * config/h8300/h8300.md (*extzv_16_8): New.
3992
3993 2003-03-08  Jan Hubicka  <jh@suse.cz>
3994
3995         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
3996         * cgraph.h: (cgraph_local_info): Add can_inline_once
3997         (cgraph_global_info): Add inline_once.
3998         (cgraph_node): Add previous.
3999         (cgraph_remove_node): New.
4000         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
4001         function.
4002         (cgraph_optimize): Call it.
4003         (cgraph_finalize_function):  Set inlinable flags.
4004         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
4005         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
4006         (cgraph_expand_function): Likewise.
4007         * cgraph.c
4008         (cgraph_node): Put nodes into doubly linked chain.
4009         (cgraph_remove_node): New function.
4010         * flags.h (flag_inline_functions_called_once): Declare.
4011         * tree-inline.c: Include cgraph.h
4012         (inlinable_functions_p): Add extra argument to bypass limits.
4013         (expand_call_inline):  Obey cgraph flag.
4014         * tree-inline.h (tree_inlinable_function_p): Update prototype.
4015
4016 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4017
4018         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
4019         irreducible loops.
4020
4021         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
4022         loops info correctly.
4023
4024 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
4025
4026         PR middle-end/7796
4027         * unroll.c (calculate_giv_inc): Handle constants being
4028         loaded with LSHIFTRT.
4029
4030 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
4031
4032         * config/rs6000/rs6000.c (processor_target_table): Do not disable
4033         GP optional instructions on Power3, Power4, 620, and 630.
4034
4035 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
4036
4037         * calls.c: Fix comment formatting.
4038         * cfgloopanal.c: Likewise.
4039         * cfgloopmanip.c: Likewise.
4040         * combine.c: Likewise.
4041         * dwarf2out.c: Likewise.
4042         * ggc-common.c: Likewise.
4043         * langhooks.c: Likewise.
4044         * loop-unroll.c: Likewise.
4045         * loop.c: Likewise.
4046         * ra-build.c: Likewise.
4047         * sbitmap.c: Likewise.
4048         * toplev.c: Likewise.
4049
4050 2003-03-07  James E Wilson  <wilson@tuliptree.org>
4051
4052         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
4053
4054 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
4055
4056         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
4057         support -no-integrated-cpp.
4058
4059         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
4060         than langhooks.name.
4061
4062 2003-03-07  Michael Matz  <matz@suse.de>
4063
4064         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
4065         (DF_FOR_REGALLOC): New.
4066         * df.c (df_ref_record): Set DF_REF_STRIPPED.
4067         (read_modify_subreg_p): Simplify.
4068         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
4069         Use DF_FOR_REGALLOC.
4070         * ra.h (struct web): New member subreg_stripped.
4071         (invalid_mode_change_regs): Declare.
4072         * ra.c (invalid_mode_change_regs): New.
4073         (init_ra): Initialize it.
4074         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
4075         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
4076         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
4077         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
4078         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
4079
4080 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
4081
4082         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
4083         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
4084         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
4085         machine description file from ...
4086         * cirrus.md: ... here.
4087
4088 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
4089
4090         * config/h8300/h8300.md (a peephole2): Don't use
4091         reg_overlap_mentioned_p.
4092
4093 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
4094
4095         * c-pch.c: Include langhooks.h.
4096         (IDENT_LENGTH): New.
4097         (get_ident): New.
4098         (pch_ident): Delete.
4099         (pch_init): Use get_ident, IDENT_LENGTH.
4100         (c_common_valid_pch): Likewise.  Also, use actual language
4101         in warning message.
4102         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
4103
4104         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
4105         c-parse.in.
4106         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
4107         gt-objc-objc-act.h.
4108         (gt-objc-objc-act.h): New rule.
4109         * objc/lang-specs.h: Support PCH.
4110         * objc/objc-act.c: Include gt-objc-objc-act.h.
4111         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
4112         (build_selector_reference_decl): Move idx out, mark for PCH.
4113         (build_class_reference_decl): Likewise.
4114         (build_objc_string_decl): Move *_idx out, mark for PCH.
4115         (build_tmp_function_decl): Move xxx out, mark for PCH.
4116
4117 2003-03-06  Dale Johannesen  <dalej@apple.com>
4118
4119         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
4120         global functions for inlining on Darwin.
4121
4122 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
4123
4124         * haifa-sched.c (schedule_block): Don't call reorder when sorting
4125         is prohibited.
4126
4127 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
4128
4129         * Makefile.in (c-ppoutput.o): Update.
4130         * c-common.h (init_pp_output): New.
4131         (preprocess_file): Update.
4132         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
4133         Register builtins.
4134         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
4135         Make call to cpp_read_main_file common to whether preprocessing
4136         or not.  Don't register builtins.
4137         * c-ppoutput.c: Include c-pragma.h.
4138         (setup_callbacks): Rename init_pp_output.
4139         (preprocess_file): No longer setup callbacks or call
4140         cpp_read_main_file.
4141         * cpphash.h (_cpp_init_mbchar): New.
4142         * cppinit.c (init_library): Call _cpp_init_mbchar.
4143         * cpplex.c (_cpp_init_mbchar): New.
4144
4145 2003-03-06  Roger Sayle  <roger@eyesopen.com>
4146
4147         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
4148         MEM, try loading the MEM into a register and taking the low-part
4149         of that, to help CSE see the use of the MEM in its true mode.
4150
4151 2003-03-05  Tom Tromey  <tromey@redhat.com>
4152
4153         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
4154         Define.
4155
4156 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
4157
4158         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
4159         operand 2.
4160         ("*ineqbranchsi"): Likewise.
4161
4162 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
4163
4164         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
4165         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
4166         register store followed by a stack increment.
4167
4168 2003-03-05  Chris Moller  <cmoller@redhat.com>
4169
4170         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
4171         to inhibit saving CARRY_REGS.
4172
4173         * config/stormy16/stormy16.c (xs_hi_general_operand):
4174         added predicate to detect and error-out on out-of-range
4175         const_ints for movhi.
4176         * config/stormy16/stormy16.md (movhi): use
4177         xs_hi_general_operand.
4178
4179         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
4180         added a check for local vbl size overflow.
4181         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
4182         added predicate to detect and error-out on out-of-range
4183         const_ints for addhi and subhi.
4184         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
4185         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
4186
4187         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
4188         add a term to accept PRE_MODIFY addresses.
4189         * config/stormy16/stormy16.c (xstormy16_expand_move):
4190         add code to expand PRE_MODIFY addresses to an add followed
4191         by a move.
4192
4193 2003-03-06  Jason Merrill  <jason@redhat.com>
4194
4195         * tree-inline.c (inlinable_function_p): Revert earlier change
4196         pending investigation.
4197
4198 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
4199
4200         * config/h8300/h8300.md (a new peephole2): New.
4201
4202 2003-03-06  Jan Hubicka  <jh@suse.cz>
4203
4204         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
4205
4206 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4207
4208         * dwarf2out.c (size_of_die): Compute size of external reference to
4209         die correctly.
4210
4211 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
4212
4213         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
4214         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
4215         expanders.
4216
4217 2003-03-05  Roger Sayle  <roger@eyesopen.com>
4218
4219         * expr.h (lang_expand_expr): Delete obsolete prototype.
4220
4221 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
4222
4223         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
4224
4225 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
4226
4227         * config/h8300/h8300.md (a peephole2): Generalize to
4228         accept a memory operand.
4229
4230 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
4231
4232         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
4233         * config/alpha/alpha.c (print_operand, case '+'): New.
4234         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
4235         (call_value_osf_1_noreturn): Likewise.
4236
4237 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4238
4239         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
4240         (expand_end_bindings): Likewise.
4241
4242 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4243
4244         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
4245         (epilogue): Don't generate return_external_pic when emitting PA 2.0
4246         code.
4247
4248 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
4249
4250         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
4251
4252         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
4253
4254         * hooks.c (hook_rtx_rtx_null): New.
4255
4256         * hooks.h (hook_rtx_rtx_null): Protoize.
4257
4258         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
4259         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
4260
4261         * target.h (struct gcc_target): Add dwarf_register_span.
4262
4263         * dwarf2out.c (multiple_reg_loc_descriptor): New.
4264         (one_reg_loc_descriptor): New.
4265         (reg_loc_descriptor): Add support for values that span more than
4266         one register.
4267
4268 2003-03-05  Jan Hubicka  <jh@suse.cz>
4269
4270         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
4271         * alias.c:  Include cgraph.h
4272         (mark_constant_function): Use cgraph_rtl_info.
4273         * calls.c:  Include cgraph.h
4274         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
4275         calls.
4276         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
4277         * cgraph.c (cgraph_rtl_info): New function.
4278         * cgraph.h (cgraph_rtl_info): Declare
4279         (cgraph_rtl_info): Likewise.
4280         * function.h (struct function): Add recursive_call_emit.
4281         * toplev.c: Include cgraph.h.
4282         (rest_of_compilation): Set preferred_incoming_stack_boundary.
4283
4284 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
4285
4286         * config/h8300/h8300.c (output_simode_bld): Clear the
4287         destination first if possible.
4288         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
4289         alternative.
4290         (extzv_1_r_inv_h8300hs): Likewise.
4291
4292 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4293
4294         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
4295         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
4296         * cfgloop.c (flow_loop_free): Made global.
4297         (establish_preds): New static function.
4298         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
4299         (get_loop_exit_edges): New.
4300         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
4301         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
4302         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
4303         loops.
4304         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
4305         removability of an edge.
4306         (fix_irreducible_loops): New static function.
4307         (find_path, remove_path): Add ability to remove enclosing loops.
4308         (unloop): New.
4309         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
4310         flags.
4311         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
4312         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
4313         not neccessary.
4314         (decide_peel_completely, peel_loops_completely): Allow complete peeling
4315         of non-duplicable once rolling loops.
4316         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
4317
4318 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
4319
4320         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
4321         for align_jumps is 4.
4322
4323         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
4324         use GENERAL_REGS.
4325
4326 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
4327
4328         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
4329         according to va_arg type.
4330         (EXPAND_BUILTIN_VA_ARG): Remove.
4331         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
4332         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
4333
4334 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
4335
4336         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
4337         else clauses.
4338
4339 2003-03-05  Michael Matz  <matz@suse.de>
4340
4341         * i386/i386.c (ix86_save_reg): Also test
4342         current_function_uses_const_pool.
4343
4344 2003-03-05  Michael Matz  <matz@suse.de>
4345
4346         * unwind.h: Add the GPL exception.
4347         * Makefile.in (USER_H): Add unwind.h.
4348
4349 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
4350
4351         PR c/9799
4352         * c-typeck.c (push_init_level): Add sanity check.
4353
4354 2003-03-05  Jan Hubicka  <jh@suse.cz>
4355
4356         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
4357         RTL inlining is done.
4358
4359         * cgraphunit.c (cgraph_mark_local_functions): New local function.
4360         (cgraph_optimize): Mark local functions.
4361         * i386-protos.h (init_cumulative_args): Update prototype.
4362         * i386.c (init_cumulative_args): Use register passing convention for
4363         local functions.
4364
4365         * cgraph.c (cgraph_global_info_ready): New global variable
4366         (cgraph_local_info, cgraph_global_info): New functions.
4367         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
4368         structures.
4369         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
4370         Declare.
4371         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
4372         (cgraph_mark_functions_to_output): Use inline_many.
4373         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
4374         (cgraph_expand_functions): Expand inline functions last.
4375         (cgraph_optimize): Do not emit uneeded functions.
4376
4377 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
4378
4379         * expr.c (convert_modes): Check for legal hard register.
4380
4381 2003-03-04  Tom Tromey  <tromey@redhat.com>
4382
4383         * doc/sourcebuild.texi (Front End Directory): Document tags.
4384         * configure: Rebuilt.
4385         * configure.in (target_list): Added tags.
4386         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
4387         TAGS files by reference.
4388         * objc/Make-lang.in (objc.tags): New target.
4389
4390 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4391
4392         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
4393         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
4394         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
4395         gcov_read_string, gcov_write_length): Modified to enable reading/
4396         writing of whole .da file just once.
4397         (da_file_open, da_file_close, da_file_eof, da_file_error,
4398         da_file_position, da_file_seek, da_file_write, da_file_read): New
4399         functions.
4400         (actual_da_file, actual_da_file_position, actual_da_file_length,
4401         actual_da_file_buffer, actual_da_file_buffer_size): New static
4402         functions.
4403         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
4404         just once.
4405
4406
4407 2003-03-04  Andreas Schwab  <schwab@suse.de>
4408
4409         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
4410         offset without frame pointer.
4411
4412 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
4413
4414         * expr.c (expand_expr): Call promote_mode to set unsignedp.
4415
4416 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
4417
4418         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
4419         * configure: Regenerated.
4420         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
4421
4422 2003-03-04  Andreas Jaeger  <aj@suse.de>
4423
4424         * configure.in: Check for <memcheck.h>.
4425         * configure: Regenerated.
4426
4427         * config.in: Define HAVE_MEMCHECK_H.
4428
4429         * ggc-common.c: Use <memcheck.h> if available instead of
4430         <valgrind.h>.
4431         * ggc-page.c: Likewise.
4432         * cppfiles.c: Likewise.
4433
4434 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
4435
4436         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
4437
4438 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4439
4440         PR c/9262
4441         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
4442         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
4443
4444 2003-03-04  Jan Hubicka  <jh@suse.cz>
4445
4446         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
4447         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
4448         for -O3.
4449
4450 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
4451
4452         * configure.in: Delete three unused variables.  Move a variable
4453         definition closer to its use.  Simplify use_collect2 logic.  Start to
4454         organize.  Simplify tests for in-tree gas and ld.
4455         * configure: Regenerate.
4456
4457 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
4458
4459         * Makefile.in: Update.
4460         * c-common.c (flag_no_line_commands, flag_no_output,
4461         flag_dump_macros, flag_dump_includes): New.
4462         * c-common.h (flag_no_line_commands, flag_no_output,
4463         flag_dump_macros, flag_dump_includes, preprocess_file): New.
4464         (init_c_lex): Update prototype.
4465         * c-lex.c (init_c_lex): Update prototype; move some code to
4466         c_common_init.
4467         * c-opts.c (preprocess_file): Subsume into c_common_init.
4468         (c_common_decode_option): Update flags.
4469         (c_common_init): Move code from preprocess_file and init_c_lex.
4470         (sanitize_cpp_opts): Update.
4471         * c-ppoutput.c: New, cppmain.c almost verbatim.
4472         * cpphash.h (struct printer): Remove.
4473         (struct cpp_reader): Remove print.
4474         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
4475         cpp_preprocess_file): Remove.
4476         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
4477         and dump_includes.
4478         * cppmain.c: Remove.
4479         * doc/passes.texi: Update.
4480
4481 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4482
4483         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
4484         (assign_stack_local_1): Perform overall stack alignment only when
4485         STACK_ALIGNMENT_NEEDED is non-zero.
4486         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
4487
4488         * pa.c (compute_frame_size): Rename fsize to size.  Account for
4489         alignment to a word boundary before general register save block.  Only
4490         account for double-word alignment before floating point register save
4491         block if one or more are saved.  Don't allocate space for %r3 when
4492         frame pointer is needed.
4493         (hppa_expand_prologue): Include alignment to word boundary in local
4494         frame size.
4495         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
4496         (STACK_ALIGNMENT_NEEDED): Define.
4497
4498 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
4499
4500         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
4501         global register variables.
4502
4503 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
4504
4505         * reload.c (reload_adjust_reg_for_mode): New function.
4506         (subst_reloads): Call it.
4507         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
4508         * reload.h (reload_adjust_reg_for_mode): Declare.
4509         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
4510         Call it.
4511
4512 2003-03-03  James E Wilson  <wilson@tuliptree.org>
4513
4514         * optabs.c (add_equal_note): Delete SUBREG_REG use.
4515         Fixes PR c/7872.
4516
4517 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
4518
4519         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
4520         (*ixorsi3_lshiftrt_16): New.
4521         (*iorsi3_ashift_16): Remove.
4522
4523 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
4524
4525         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
4526         pattern.
4527
4528 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
4529
4530         * doc/install.texi (Specific): Update entry for powerpc-darwin.
4531
4532 2003-03-03  Richard Henderson  <rth@redhat.com>
4533
4534         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
4535
4536 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
4537
4538         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
4539         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
4540         (rs6000_variable_issue): Do not return negative value.
4541         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
4542         scheduling pass.
4543
4544 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4545
4546         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
4547         prune_unused_types calls.
4548
4549 2003-03-03  Jason Merrill  <jason@redhat.com>
4550
4551         * tree-inline.c (find_builtin_longjmp_call): Save and restore
4552         lineno and input_filename.
4553         (find_alloca_call): Likewise.
4554         (inlinable_function_p): Run the langhook earlier.
4555
4556         * calls.c (compute_argument_addresses): Give the new MEMs a
4557         minimum alignment of PARM_BOUNDARY.
4558
4559 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
4560
4561         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
4562         subtarget_asm_isa_spec.
4563         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
4564         (ASM_SPEC): Define as SH_ASM_SPEC.
4565         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
4566         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
4567         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
4568         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
4569
4570         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
4571         and align_jumps if not set.
4572         Force align_jumps to be at least 2.
4573         When relaxing, force align_functions to be at least the maximum of
4574         align_loops, align_jumps and 4.
4575         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
4576         (sh_loop_align): Honour align_loops_log.
4577
4578         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
4579         to check for indirect_jump_scratch.
4580         (indirect_jump_scratch): Add second set.
4581         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
4582         when looking for indirect_jump_scratch.
4583         Extract scratch register taking new structure of indirect_jump_scratch
4584         into account.
4585         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
4586
4587 2003-03-03  Jan Hubicka  <jh@suse.cz>
4588
4589         * calls.c (rtx_for_function_call): Take the address as an argument
4590         (expand_call): Do not modify the expression.
4591
4592         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
4593         optimizing.
4594
4595 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
4596
4597         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
4598         TARGET_H8300H and TARGET_H8300S.
4599
4600 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
4601
4602         * config/h8300/h8300.md (a peephole2): New.
4603
4604 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
4605
4606         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
4607         operands[0] and operands[1] are different.
4608
4609 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
4610
4611         * reload1.c (reload_cse_move2add): Remove variable success.
4612
4613 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4614
4615         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
4616         warnings.
4617
4618 2003-03-02  Richard Henderson  <rth@redhat.com>
4619
4620         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
4621         * config.in, configure: Rebuild.
4622         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
4623         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
4624         paired ldtoffx and ldxmov annotations.
4625         (load_symptr_internal1): Remove.
4626         (load_symptr_high, load_symptr_low): New.
4627
4628 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
4629
4630         * c-incpath.c (add_path): Fix sysp assignment.
4631
4632 2003-03-02  Kurt Garloff  <garloff@suse.de>
4633
4634         * params.def: Introduce parameter max-inline-insns-rtl for
4635         a separate limit for the RTL inliner.
4636         * params.h: Likewise.
4637         * integrate.c (function_cannot_inline_p): Use it.
4638         * toplev.c (decode_f_option): Set multiple parameters
4639         controlling inlining with -finline-limit.
4640         * params.def: Fix orthographic and typographic errors.
4641         * doc/invoke.texi: Document parameters controlling inlining
4642         and the way -finline-limit sets multiple of them.
4643
4644         * tree.h (struct tree_decl): Introduce inlined_function_flag,
4645         recording whether the function became eligible for inlining
4646         by a compiler flag rather than the declaration.
4647         Provide DID_INLINE_FUNC macro to access it.
4648         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
4649         * cp/decl.c (grokfndecl): Likewise.
4650         * toplev.c (rest_of_compilation): Likewise.
4651         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
4652         * print-tree.c (print_node): Report it.
4653         * params.def: Introduce new max-inline-insns-auto limit.
4654         * params.h: Likewise.
4655         * tree-inline.c (inlinable_function_p): Apply it to functions
4656         with DID_INLINE_FUNC set.
4657         * toplev.c (decode_f_option): Initialize it from -finline-limit
4658         value.
4659         * doc/invoke.texi: Document new parameter.
4660
4661 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
4662
4663         * fix-header.c (read_scan_file): Don't reference simplify_path.
4664
4665 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
4666
4667         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
4668         min/max instructions by default as may result in reload errors.
4669
4670 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
4671
4672         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
4673         avoid reload problems; define split for it.
4674
4675 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
4676
4677         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
4678         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
4679         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
4680         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
4681         rotatert and rotate.
4682         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
4683         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
4684         ("*rotrhi3_addr"): New split for shift insns on address register.
4685         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
4686         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
4687         (___rotrhi3): Likewise.
4688         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
4689
4690 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
4691
4692         * toplev.c (aux_base_name): Moved from toplev.h.
4693         (filename): Constify.
4694         (lang_dependent_init): Don't duplicate name.
4695         (process_options): Set aux_base_name here, not...
4696         (do_compile): ...here.  Change protoype.
4697         (toplev_main): Move some code from do_compile.
4698         * toplev.h: Remove aux_base_name.
4699
4700 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
4701
4702         * config/h8300/h8300-protos.h: Add a prototype for
4703         iorxor_operator.
4704         * config/h8300/h8300.c (print_operand): Handle 'c'.
4705         (iorxor_operator): New.
4706         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
4707         * config/h8300/h8300.md (*iorhi3_zext): Remove.
4708         (*iorsi3_zexthi): Likewise.
4709         (*iorsi3_zextsi): Likewise.
4710         (*xorhi3_zextqi): Likewise.
4711         (*xorsi3_zexthi): Likewise.
4712         (*xorsi3_zextsi): Likewise.
4713         (*ixorhi3_zext): New.
4714         (*ixorsi3_zext_qi): Likewise.
4715         (*ixorsi3_zext_hi): Likewise.
4716
4717 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
4718
4719         * c-incpath.c (remove_component_p, simplify_path): Move back to
4720         cppfiles.c.
4721         (remove_duplicates): Use cpp_simplify_path.
4722         * c-incpath.h (simplify_path): Remove.
4723         * c-lex.c: Don't include c-incpath.h.
4724         (init_c_lex): Remove simplify_path.
4725         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
4726         (find_or_create_entry, validate_pch): Revert.
4727
4728 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
4729
4730         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
4731           an external cpp during compilation.
4732         (option_map): Likewise.
4733         * objc/lang-specs.h (default_compilers): Similarly.
4734         * doc/invoke.texi: Document -no-integrated-cpp flag.
4735
4736 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
4737
4738         * config/h8300/h8300.md (zero_extendqisi2): Change to an
4739         expander.
4740         (*zero_extendqisi2_h8300): New.
4741         (*zero_extendqisi2_h8300hs): New.
4742         (two splitters): New.
4743
4744 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4745
4746         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
4747
4748 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
4749
4750         * config/h8300/h8300.md (a peephole2): Remove dead code.
4751
4752 2003-03-01  Roger Sayle  <roger@eyesopen.com>
4753
4754         PR c++/9367
4755         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
4756         (BT_FN_INT_CONST_STRING_VALIST_ARG,
4757         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
4758         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
4759         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
4760         BT_FN_INT_STRING_CONST_STRING_VAR,
4761         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
4762         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
4763         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
4764         ATTR_NONNULL_3): Also include the nothrow attribute.
4765         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
4766         vsnprintf, vscanf, vsscanf): Don't define attributes here.
4767         * builtins.def (putchar, puts): Make full C89 built-ins.
4768         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
4769         vsscanf, vsnprintf, vsprintf): New built-ins.
4770         * c-common.c (c_common_nodes_and_builtins): Handle new macro
4771         DEF_FUNCTION_TYPE_VAR_3.
4772
4773         * doc/extend.texi: Document these new built-in functions.
4774
4775 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
4776
4777         * config/h8300/h8300.md (a peephole2): New.
4778
4779 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
4780
4781         * predict.c (estimate_bb_frequencies): Correctly set
4782         real_values_initialized after initialization.
4783
4784 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
4785
4786         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
4787         cppinit.o, cppdefault.o, fix-header): Update.
4788         * c-incpath.c: New file.
4789         * c-incpath.h: New file.
4790         * c-lex.c: Include c-incpath.h.
4791         (init_c_lex): Register path simplifier.
4792         * c-opts.c: Include cppdefault.h and c-incpath.h.
4793         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
4794         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
4795         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
4796         (missing_arg, c_common_decode_option): Handle them.
4797         (c_common_post_options): Register include chains.
4798         (print_help): Update.
4799         * cppdefault.h (struct default include): Update.
4800         Move some macros to ...
4801         * cppdefault.c: ... here.
4802         (cpp_include_defaults): Add extra field add_sysroot.
4803         * cppfiles.c (include_file, search_from, find_or_create_entry,
4804         cpp_included, find_include_file, remap_filename): Update for
4805         renaming of search_path to cpp_path, and of the chain headers.
4806         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
4807         * cpphash.h (struct search_path): Move to cpplib.h.
4808         (struct cpp_buffer, struct cpp_reader): Update.
4809         (_cpp_simplify_pathname): Remove.
4810         * cppinit.c: Don't include prefix.h and cppdefault.h.
4811         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
4812         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
4813         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
4814         no_pth, cpp_handle_options): Remove.
4815         (struct pending_option): Remove chain members.
4816         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
4817         cpp_handle_option): Update.
4818         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
4819         (struct cpp_options): Remove quote_include, bracket_include,
4820         include_prefix, include_prefix_len, verbose, ignore_srcdir,
4821         no_standard_includes, no_standard_cplusplus_includes.
4822         (struct cpp_callbacks): Add simplify_path.
4823         (cpp_handle_options): Remove.
4824         * fix-header.c: Include c-incpath.h.
4825         (read_scan_file): Update to use c-incpath functionality.
4826         * doc/passes.texi: Update.
4827
4828 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
4829
4830         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
4831         satisfies EXTRA_CONSTRAINT 'U'.
4832
4833 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
4834
4835         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
4836         register.
4837         (*tst_extzv_memqi_1_n): Change to a splitter.
4838         (a peephole2): Update.
4839
4840 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
4841
4842         * predict.c (estimate_bb_frequencies): Initialize the sreal
4843         constants once per compilation.
4844
4845 2003-02-28  Richard Henderson  <rth@redhat.com>
4846
4847         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
4848
4849 2003-02-28  scott snyder  <snyder@fnal.gov>
4850
4851         * flags.h: Add flag_eliminate_unused_debug_types.
4852         * toplev.c: Add flag_eliminate_unused_debug_types.
4853         (f_options): Add -feliminate-unused-debug-types.
4854         * dwarf2out.c (struct file_table): Add emitted member.
4855         (splice_child_die): Fix the parent pointer for the child being
4856         spliced.
4857         (lookup_filename): Maintain file_table.emitted array.  Don't
4858         output .file directive here.
4859         (maybe_emit_file): (new)
4860         (init_file_table): Set up file_table.emitted.
4861         (dwarf2out_source_line): Use maybe_emit_file.
4862         (dwarf2out_start_source_file): Use maybe_emit_file.
4863         (dwarf2out_init): Use maybe_emit_file.
4864         (prune_unused_types_walk_attribs): (new)
4865         (prune_unused_types_mark): (new)
4866         (prune_unused_types_walk): (new)
4867         (prune_unused_types_prune): (new)
4868         (prune_unused_types): (new)
4869         (dwarf2out_finish): Call prune_unused_types if
4870         flag_eliminate_unused_debug_types is set.
4871         * doc/invoke.texi (Option Summary): Add
4872         -feliminate-unused-debug-types.
4873         (Debugging Options): Likewise.
4874
4875 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
4876
4877         * doc/invoke.texi: Change .pch to .gch.
4878         * cppfiles.c (open_file_pch): Likewise.
4879         * gcc.c (default_compilers): Likewise.
4880
4881 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
4882
4883         * floatlib.c: Remove.
4884
4885 2003-02-28  Jason Merrill  <jason@redhat.com>
4886
4887         * stor-layout.c (variable_size): Leave a "minus 1" outside the
4888         SAVE_EXPR.
4889
4890 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
4891
4892         * config/rs6000/power4.md: Add compare bypass.
4893
4894 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
4895
4896         * config/netbsd.h: Update copyright years.
4897         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
4898         -pthread is specified on the command line.
4899
4900 2003-02-28  Dale Johannesen <dalej@apple.com>
4901
4902         * loop.c (struct movable): Add insert_temp, shrink savemode.
4903         (scan_loop): Accept invariants that require copying; mark as
4904         insert_temp.
4905         (combine_movables): Don't combine insert_temp movables.
4906         (move_movables): Insert copies for insert_temp movables.
4907         Don't record the info based on regno for insert_temp's.
4908
4909 2003-02-28  Joel Sherrill <joel@OARcorp.com>
4910
4911         PR 9638/other
4912         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
4913         this constant defaults to 1.
4914
4915 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
4916
4917         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
4918
4919 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
4920
4921         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
4922         ARMv5e processor, not just for XScale.  Instructions are predicable.
4923         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
4924
4925 2003-02-28  Nick Clifton  <nickc@redhat.com>
4926
4927         * config/arm/arm.c (note_invalid_constants): Change parameter type
4928         from bool to int.
4929
4930 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
4931
4932         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
4933         test of bit 7.
4934         (*tst_extzv_memqi_1_n): Likewise.
4935         (a peephole2): New.
4936
4937 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
4938
4939         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
4940         #ifndef __mips16.
4941
4942 2003-02-28  Jan Hubicka  <jh@suse.cz>
4943
4944         * combine.c (gen_lowpart_for_combine): Update handling of
4945         subregs_of_mode
4946         * flow.c (life_analysis, mark_used_regs): Likewise.
4947         * regclass.c (subregs_of_mode): Turn into single bitmap.
4948         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
4949         dealing with subregs_of_mode
4950         * regs.h (subregs_of_mode): Update prototype.
4951
4952 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
4953
4954         * emit-rtl.c (set_reg_attrs_for_parm): New function.
4955         * rtl.h (set_reg_attrs_for_parm): New exported function.
4956         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
4957         set_reg_attrs_from_mem.
4958
4959 2003-02-27  Roger Sayle  <roger@eyesopen.com>
4960             Zack Weinberg <zack@codesourcery.com>
4961
4962         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
4963
4964 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
4965
4966         * reload1.c (sext_for_mode): Remove.
4967         (reload_cse_move2add): Use trunc_int_for_mode instead of
4968         sext_for_mode.
4969         (move2add_note_store): Likewise.
4970         Reset register information if we see a set in non-integer
4971         mode.
4972
4973 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
4974
4975         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
4976         option.
4977         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
4978         * config/rs6000/aix51.h: Same.
4979         * config/rs6000/aix52.h: Same.
4980         * config/rs6000/power4.md: Additional VMX bypasses.
4981
4982 2003-02-27   Geert Bosch <bosch@gnat.com>
4983
4984         * toplev.c (print_version): Add indentation for GGC heuristics and
4985         output after printing version information.
4986
4987 2003-02-27  James E Wilson  <wilson@tuliptree.org>
4988
4989         * combine.c (simplify_comparison): Require integral mode when
4990         permuting SUBREG with AND.
4991
4992 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
4993
4994         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
4995
4996 2003-02-27  Nick Clifton  <nickc@redhat.com>
4997
4998         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
4999         deleted when cirrus instructions were added.
5000
5001 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
5002
5003         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
5004         POSIX thread support by default.
5005
5006 2003-02-27  Roger Sayle  <roger@eyesopen.com>
5007
5008         * config/i386/cygwin.h: Don't include any other files directly.
5009         * config/i386/mingw32.h: Don't include cygwin.h directly.
5010         * config.gcc (cygwin, mingw32, uwin): Instead make these files
5011         explicit in the tm_files variable.
5012
5013 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
5014
5015         * config/rs6000/rs6000.md: Add TI constant splitter.
5016
5017 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
5018
5019         * builtins.c (purge_builtin_constant_p): Handle subreg of
5020         constant_p_rtx too.
5021
5022         * function.c (assign_stack_local_1): Truncate constant added to
5023         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
5024
5025 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
5026
5027         * config.gcc: Add power4 to PowerPC with_cpu list.
5028
5029 2003-02-26  Jan Hubicka  <jh@suse.cz>
5030
5031         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
5032
5033 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5034
5035         * gcov-dump.c (print_prefix): Fix signedness warning.
5036         * gcov-io.h (struct counter_section, struct counter_section_data): New.
5037         (struct function_info): n_arc_counts field removed, n_counter_sections,
5038         counter_sections fields added.
5039         (struct gcov_info): arc_counts, n_arc_counts fields removed,
5040         n_counter_sections, counter_sections fields added.
5041         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
5042         profile sections.
5043         * profile.h (MAX_COUNTER_SECTIONS): New.
5044         (struct section_info): New.
5045         (struct profile_info): count_instrumented_edges,
5046         count_edges_instrumented_now fields removed, n_sections, section_info
5047         fields added.
5048         (find_counters_section): Declare.
5049         * profile.c (struct function_list): count_edges field removed,
5050         n_counter_sections, counter_sections fields added.
5051         (set_purpose, label_for_tag, build_counter_section_fields,
5052         build_counter_section_value, build_counter_section_data_fields,
5053         build_counter_section_data_value, build_function_info_fields,
5054         build_function_info_value, build_gcov_info_fields,
5055         build_gcov_info_value): New static functions.
5056         (find_counters_section): New function.
5057         (instrument_edges, get_exec_counts, compute_branch_probabilities,
5058         branch_prob, create_profiler): Modified to support multiple profile
5059         sections.
5060
5061 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5062
5063         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
5064         is 8 * STACK_BOUNDARY.
5065         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
5066
5067 2003-02-26  Michael Matz  <matz@suse.de>
5068
5069         * ra-colorize.c (merge_moves): Fix list handling.
5070
5071 2003-02-26  Nick Clifton  <nickc@redhat.com>
5072
5073         * config/arm/arm.c (is_load_address): Rename to...
5074         (arm_memory_load_p) ... this and make it check for SUBREGs and
5075         constant loads that will be converted into loads from the
5076         minipool.
5077         (is_cirrus_insn): Rename to ...
5078         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
5079         of CIRRUS_NO with CIRRUS_NOT.
5080         (cirrus_reorg): Use renamed functions.
5081         (note_invalid_constants): Change from a void function to bool.
5082         Add an extra parameter, saying whether the fixups should be
5083         pushed.  Return true if fixups are needed.
5084         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
5085         of CIRRUS_NO with CIRRUS_NOT.
5086         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
5087         other floating point co-processors can also affect this.
5088         * config/arm/arm.md ("type" attribute): Add mav_farith and
5089         mav_dmult.  Replace references to "cirrus_type" attribute with
5090         "type".
5091         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
5092         ("cirrus_type" attribute): Delete - use "type" instead.
5093         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
5094         'normal'.
5095
5096 2003-02-25  Jan Hubicka  <jh@suse.cz>
5097
5098         * objc-act.c: Include cgraph.h
5099         (mark_referenced_methods): New function.
5100         (objc_init): Call it.
5101         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
5102
5103         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
5104         mode.
5105
5106         * optabs.c (expand_fix): Do not widen the input operand.
5107
5108         * expr.c (emit_group_store):  Fix crash when converting single
5109         register into complex register.
5110
5111         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
5112         * alias.c: Include timevar.h
5113         (init_alias_analysis):  Set timevar
5114         * jump.c: Include timevar.h
5115         (rebuild_jump_labels):  Set timevar
5116         * regcalss.c: Include timevar.h
5117         (reg_scan):  Set timevar
5118         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
5119
5120 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5121
5122         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
5123
5124         * Makefile.in (loop-unroll.o): New.
5125         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
5126         (unroll_and_peel_loops): Declare.
5127         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
5128         flag_old_unroll_loops.
5129         * loop.c (loop_invariant_p): Ditto.
5130         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
5131         flag_old_unroll_all_loops.
5132         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
5133         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
5134         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
5135         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
5136         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
5137         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
5138         PARAM_MAX_ONCE_PEELED_INSNS): New.
5139         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
5140         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
5141         instead of old one.
5142         (flag_peel_loops): New.
5143         (lang_independent_options): The new flags added.
5144         (rest_of_compilation): Call new unroller.
5145         (process_options): Setup flags for coexistence of old and new unroller.
5146         * doc/invoke.texi: Document new options.
5147         * doc/passes.texi: Document new unroller pass.
5148
5149 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
5150
5151         * fixinc/fixincl.x: Regenerate
5152
5153 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
5154
5155         * function.c (assign_parms): Set reg_attrs for parameters passed in
5156         registers.
5157
5158 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
5159
5160         PR target/9681
5161         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
5162
5163 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
5164
5165         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
5166         pseudo-op.
5167
5168 2003-02-25  Roger Sayle  <roger@eyesopen.com>
5169
5170         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
5171         * cse.c (invalidate_skipped_set):  Likewise.
5172         * integrate.c (subst_constants):  Likewise.
5173         * jump.c (reversed_comparison_code_parts):  Likewise.
5174         * loop.c (canonicalize_condition):  Likewise.
5175         * simplify-rtx.c (simplify_relational_operation):  Likewise.
5176
5177 2003-02-25  Roger Sayle  <roger@eyesopen.com>
5178
5179         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
5180         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
5181         the appropriate macro to define built-in function.
5182         (fmod,fmodf,fmodl): New built-in functions.
5183
5184         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
5185
5186 2003-02-25  Richard Henderson  <rth@redhat.com>
5187
5188         * config/i386/i386.c (function_arg): Pass variable sized
5189         structures correctly on the stack.
5190
5191 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
5192
5193         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
5194         does not reduce the cost of SET.
5195
5196 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5197
5198         PR target/9732
5199         * config/rs6000/rs6000.c (first_reg_to_save): Handle
5200         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
5201         (rs6000_emit_prologue): Likewise.
5202         (rs6000_emit_epilogue): Likewise.
5203         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
5204         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
5205
5206 2003-02-25  Richard Henderson  <rth@redhat.com>
5207
5208         * real.c (real_to_integer2): Force overflow result only for
5209         unsigned overflow.
5210
5211 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
5212
5213         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
5214
5215 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5216             Richard Henderson  <rth@redhat.com>
5217
5218         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
5219         there is no similar load.
5220
5221 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
5222             Richard Henderson  <rth@redhat.com>
5223
5224         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
5225         sched-rgn.c.
5226         (add_forward_dependence): New function prototype.
5227
5228         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
5229         sched-init.h.
5230         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
5231         them to haifa-sched.c.
5232
5233         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
5234         haifa_classify_insn): Move them from sched-rgn.c.
5235
5236         * sched-deps.c (add_dependence): Return flag of creating a new
5237         entry.
5238         (add_forward_dependence): New function.
5239         (compute_forward_dependences): Use the function.
5240
5241         * sched-ebb.c (earliest_block_with_similiar_load): New function.
5242         (add_deps_for_risky_insns): New function.
5243         (schedule_ebb): Call the function.
5244
5245 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
5246
5247         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
5248         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
5249
5250         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
5251         opaque types fail.
5252
5253         * c-typeck.c (comptypes): Change call to vector_types_compatible
5254         to vector_opaque_p.
5255         (convert_for_assignment): Call vector_opaque_p instead of
5256         vector_types_compatible.
5257         (really_start_incremental_init): Disallow initialization of opaque
5258         types.
5259
5260         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
5261         Define TARGET_VECTOR_OPAQUE_P.
5262         (TARGET_INITIALIZER): Same.
5263
5264         * target.h (struct gcc_target): Remove vector_types_compatible.
5265         Add vector_opaque_p.
5266
5267         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
5268         Remove.
5269         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
5270         a vector type.  Change return type to bool.
5271         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
5272         (TARGET_VECTOR_OPAQUE_P): Define.
5273
5274         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
5275         target hook.
5276         Include target.h.
5277         (cp_parser_init_declarator): Fix typo in function comments.
5278
5279 2003-02-25  Jan Hubicka  <jh@suse.cz>
5280
5281         * Makefile.in (lcm.o):  Add dependency on function.h
5282         * lcm.c (function.h): Include.
5283         * i386.c (machine_function, ix86_stack_locals,
5284         * ix86_save_varrargs_registers) : Move to
5285         ...
5286         * i386.h (machine_function, ix86_stack_locals,
5287         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
5288         (ix86_optimize_mode_switching): New.
5289         * i386.md (fix patterns): Set ix86_optimize_mode_switching
5290
5291 2003-02-25  Nick Clifton  <nickc@redhat.com>
5292
5293         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
5294         of fourth arg is 'fndecl' not 'indirect'.  Update comment
5295         describing the function's parameters.
5296
5297 2003-02-24  Jan Hubicka  <jh@suse.cz>
5298
5299         * combine.c (simplify_shift_const):  Fix previous patch.
5300
5301 2003-02-24  Jeff Law  <law@redhat.com>
5302
5303         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
5304         alternative.
5305         (testsi_1, testhi_1, testqi_1): Likewise.
5306
5307 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5308
5309         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
5310         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
5311         * doc/extend.texi (Tru64 Pragmas): Reflect this.
5312
5313         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
5314         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
5315         * fixinc/fixincl.x: Regenerate.
5316         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
5317         testcase.
5318         Fixes PR c/5059, c/6126, other/9671.
5319
5320 2003-02-24  Roger Sayle  <roger@eyesopen.com>
5321
5322         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
5323         from handle_braces in "%{...}".
5324
5325 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
5326
5327         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
5328         (prepare_move_operands): Handle TLS operands.
5329         (tls_symbolic_operand): New.
5330         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
5331         (legitimize_pic_address): Do nothing for the TLS symbol.
5332         (sh_encode_section_info): Handle TLS case.
5333         (sh_strip_name_encoding): Drop TLS encoding.
5334         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
5335         * config/sh/sh.h (SH_TLS_ENCODING): Define.
5336         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
5337         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
5338         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
5339         * config/sh/sh.md: Define TLS UNSPEC constants.
5340         (type): Add tls_load.
5341         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
5342         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
5343         ("tls_initial_exec"): New insn.
5344         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
5345         ("load_gbr"): New insn.
5346
5347         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
5348         * configure: Regenerate.
5349
5350 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
5351
5352         PR 9297, PR 9722
5353         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
5354         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
5355         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
5356         (enum block_op_methods): Reorder for better store_expr optimization.
5357         * expr.c (store_expr): Test bit 1 of "want_value" for call param
5358         stores, test bit 0 for original want_value meaning.  Pass
5359         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
5360         recursive calls, and calls to expand_param.
5361         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
5362         expected, set target to 0 rather than to subtarget.  Formatting.
5363
5364 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
5365
5366         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
5367
5368 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5369
5370         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
5371         new default behavior.
5372         * ggc-common.c: Include sys/resource.h.
5373         (ggc_rlimit_bound): New function.
5374         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
5375         defaults to account for rlimits.
5376
5377 2003-02-22  Richard Henderson  <rth@redhat.com>
5378
5379         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
5380
5381 2003-02-22  Kelley Cook <kelley@dwhoops.info>
5382
5383         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
5384         (ix86_tune_string): Rename from ix86_cpu_string.
5385
5386 2003-02-22  Kelley Cook <kelleycook@comcast.net>
5387
5388         * config/i386/i386.c: Replace "mcpu" with "mtune".
5389         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
5390         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
5391         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
5392         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
5393
5394 2003-02-23  Andreas Schwab  <schwab@suse.de>
5395
5396         * config.gcc: Delete references to m68k/t-linux and
5397         m68k/t-linux-aout.
5398         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
5399
5400 2003-02-22  Jan Hubicka  <jh@suse.cz>
5401
5402         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
5403         of track scheduling patch.
5404
5405 2003-02-22  Jan Hubicka  <jh@suse.cz>
5406
5407         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
5408         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
5409
5410 2003-02-22  Jan Hubicka  <jh@suse.cz>
5411
5412         * c-decl.c (c_expand_body_1): Fix.
5413
5414 2003-02-22  Jan Hubicka  <jh@suse.cz>
5415
5416         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
5417
5418         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
5419         when not optimizing.
5420         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
5421         when not expensive.
5422         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
5423         optimizing;  Delete trivially dead insns early; fix optimize check.
5424
5425         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
5426         dependency on cgraph.h
5427         * c-decl.c: Include cgraph.h
5428         (finish_function): Update call of tree_inlinable_function_p.
5429         * c-objc-common.c: Include cgraph.h
5430         * cgraph.h: New file.
5431         * cgraphunit.c: New file.
5432         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
5433         (cgraph_nodes, cgraph_n_nodes): Globalize.
5434         (cgraph_finalize_function, cgraph_finalize_compilation_unit
5435         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
5436         Move into cgraphunit.c
5437         * tree-inline.c: Include cgraph.h
5438         * tree-inline.c: Include cgraph.h
5439
5440 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
5441
5442         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
5443         for copying a register.
5444
5445 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5446
5447         PR other/3782
5448         * toplev.c (process_options): If flag_detailed_statistics is set,
5449         then set time_report as well.
5450
5451         PR c/8828
5452         * jump.c (never_reached_warning): Don't fall through BARRRIER
5453         insns.  Update comments to reflect what the function really does.
5454
5455 2003-02-21  Roger Sayle  <roger@eyesopen.com>
5456
5457         * fold-const.c (omit_one_operand): No longer static.
5458         * tree.h (omit_one_operand): Prototype here.
5459         (div_and_round_double): Keep fold-const.c prototypes together.
5460         * builtins.c (builtin_mathfn_code): Handle binary built-in
5461         funtions, such as "pow" and "atan2".
5462         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
5463         Simplify optimizations using "type" the builtin's return type.
5464
5465 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
5466
5467         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
5468         Fix functionalization typo.
5469
5470         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
5471         in an asm.
5472
5473 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5474
5475         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
5476         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
5477         documentation.
5478         * ggc-common.c: Include params.h
5479         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
5480         init_ggc_heuristics): New functions.
5481         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
5482         init_ggc_heuristics): Prototype.
5483         * toplev.c (print_version):  Output GGC heuristics.
5484         (parse_options_and_default_flags): Call init_ggc_heuristics.
5485
5486 2003-02-22  Jan Hubicka  <jh@suse.cz>
5487
5488         * i386.c (def_builtin):  Special case 64bit builtins.
5489         (MASK_SSE164, MASK_SSE264): New constants.
5490         (builtin_description): Add 64bit builtins.
5491         (ix86_init_mmx_sse_builtins): Likewise.
5492         * i386.h (enum ix86_builtins): Likewise.
5493         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
5494         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
5495         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
5496         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
5497         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
5498         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
5499         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
5500
5501 2003-02-22  Jan Hubicka  <jh@suse.cz>
5502
5503         * i386.c (builtin_description): Add __builtin_ia32_paddq and
5504         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
5505          and __builtin_ia32_psubq128.
5506         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
5507         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
5508         (mmx_adddi3, mmx_subdi3): New.
5509         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
5510         * xmmintrin.h (_mm_movepi64_pi64): New.
5511         (_mm_add_epi64, _mm_sub_epi64): fix.
5512         (_mm_mul_pu16): Rename to...
5513         (_mm_mul_su32): ... this one.
5514
5515         * builtins.c (expand_builtin_expect):  Do not predict
5516         flag_guess_branch_prob is not set.
5517         * c-semantics.c (expand_stmt): Likewise.
5518         * predict.c (predict_insn): Likewise.
5519         * stmt.c (expand_continue_loop): Likewise.
5520         * toplev.c (rest_of_compilation): Do not call
5521         note_prediction_to_br_prob and note_prediction_to_br_prob
5522         when not optimizing.
5523
5524 2003-02-21  Jan Hubicka  <jh@suse.cz>
5525
5526         * cfgrtl.c (commit_edge_insertions):  Call
5527         find_many_sub_basic_block only when some code has been emitted.
5528         (commit_edge_insertions_watch_calls): Bring into sync with
5529         commit_edge_insertions
5530
5531 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
5532
5533         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
5534
5535         * sh.md (binary_sf_op): Use extra constant operand instead of
5536         negating constant operand 4.
5537         * sh.c (sh_expand_binop_v2sf): Supply it.
5538
5539 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
5540
5541         * cpphash.h (struct lexer_state): Add directive_wants_padding.
5542         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
5543         for directives of type INCL.
5544         (glue_header_name, parse_include): Use get_token_no_padding.
5545         * cppmacro.c (replace_args): If directive_wants_padding,
5546         provide padding tokens.
5547
5548 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
5549
5550         * config/h8300/h8300.md (a peephole2): New.
5551
5552 2003-02-21  Jan Hubicka  <jh@suse.cz>
5553
5554         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
5555         (commit_edge_insertions): Call find_many_sub_basic_blocks
5556
5557         * reg-stack.c (convert_regs): Cleax aux for blocks.
5558
5559 2003-02-21  Jan Hubicka  <jh@suse.cz>
5560
5561         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
5562
5563 2003-02-21  Glen Nakamura  <glen@imodulo.com>
5564
5565         PR optimization/8613
5566         * builtins.c (expand_builtin): Emit postincrements before expanding
5567         builtin functions.
5568
5569 2003-02-21  Ben Elliston  <bje@redhat.com>
5570
5571         PR other/5634
5572         * doc/install.texi (Configuration): Explain using $HOME instead of
5573         the ~ metacharacter when referring to home directories.
5574
5575 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
5576
5577         * configure.in (TARGET_SYSTEM_ROOT): Set default to
5578         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
5579         '${exec_prefix}' (in addition to the expansion thereof) as
5580         relocatable.
5581         * configure: Rebuilt.
5582
5583 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
5584
5585         * config/h8300/h8300.md (addhi3_incdec): Change the name to
5586         *addhi3_incdec.
5587         (addsi3_incdec): Change the name to *addsi3_incdec.
5588
5589 2003-02-20  Roger Sayle  <roger@eyesopen.com>
5590
5591         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
5592
5593 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
5594
5595         PR fortran/9038
5596         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
5597         options to be ignored.
5598         (c_common_decode_option): Ignore them when preprocessing.
5599
5600 2003-02-20  Jan Hubicka  <jh@suse.cz>
5601
5602         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
5603         global variables.
5604         (lang_independent_options):  Add -fsched2-use-superblocks
5605         -fsced2-use-traces.
5606         (rest_of_compilation): Deal with it.
5607         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
5608         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
5609         Declare.
5610         * rtl.h (reg_to_stack):  Update prototype.
5611         * reg-stack.c (reg_to_stack): Return when something has changed;
5612         update liveness when executing after superblock scheduling.
5613
5614         * combine.c (simplify_shift_const):  Simplify few special cases
5615         into constants.
5616
5617 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
5618
5619         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
5620         (add.,subf.,neg.): Change attribute to fast_compare.
5621         All DFA descriptions updated.
5622
5623 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
5624
5625         Change base class access representation.
5626         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
5627         TREE_VIA_PRIVATE): Remove.
5628         (BINFO_BASEACCESSES): New binfo elt.
5629         (BINFO_BASEACCESS): New accessor.
5630         (BINFO_ELTS): Increase.
5631         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
5632         (access_public_node, access_protected_node,
5633         access_private_node): New global nodes.
5634         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
5635         * dbxout.c (dbxout_type): Adjust.
5636         * dwarf2out.c (gen_inheritance_die): Add access parameter.
5637         (gen_member_die): Adjust.
5638         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
5639         (output_type): Adjust.
5640         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
5641
5642         Change base class access representation. Share virtual base
5643         binfos.
5644         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
5645         call.
5646         * cp/class.c (build_base_path): Likewise.
5647         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
5648         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
5649         (make_new_vtable): Adjust.
5650         (force_canonical_binfo_r): Delete.
5651         (force_canonical_binfo): Delete.
5652         (mark_primary_virtual_base): Delete.
5653         (dfs_unshared_virtual_bases): Delete.
5654         (mark_primary_bases): Adjust.
5655         (maybe_warn_about_overly_private_class): Adjust.
5656         (dfs_base_derived_from): Delete.
5657         (base_derived_from): Follow the inheritance chain.
5658         (struct find_final_overrider_data): Add vpath member.
5659         (dfs_find_final_overrider): Adjust.
5660         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
5661         (find_final_overrider): Adjust.
5662         (update_vtable_entry_for_fn): Adjust.
5663         (modify_all_vtables): Adjust.
5664         (walk_subobject_offsets): Adjust.
5665         (layout_nonempty_base_or_field): Adjust.
5666         (layout_empty_base): Remove last parameter. Adjust.
5667         (build_base_field): Adjust.
5668         (build_base_fields): Adjust.
5669         (propagate_binfo_offsets): Remove last parameter. Adjust.
5670         (dfs_set_offset_for_unshared_vbases): Delete.
5671         (layout_virtual_bases): Adjust.
5672         (finish_struct_1): Adjust.
5673         (init_class_processing): Don't init access nodes.
5674         (dfs_get_primary_binfo): Delete.
5675         (get_primary_binfo): Adjust.
5676         (dump_class_hierarchy_r): Remove most derived arg, add IGO
5677         parameter. Adjust.
5678         (dump_class_hierarchy): Adjust.
5679         (finish_vtbls): Adjust.
5680         (get_original_base): Delete.
5681         (build_vtt_inits): Adjust.
5682         (dfs_build_secondary_vptr_vtt_inits): Adjust.
5683         (dfs_ctor_vtable_bases_queue_p): Adjust.
5684         (build_ctor_vtbl_group): Adjust.
5685         (dfs_accumulate_vtbl_inits): Adjust.
5686         (build_vtbl_initializer): Adjust.
5687         (build_vbase_offset_vtbl_entries): Adjust.
5688         (add_vcall_offset_vtbl_entries_1): Adjust.
5689         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
5690         (access_*_node): Remove.
5691         (CANONICAL_BINFO): Delete.
5692         (BINFO_UNSHARED_MARKED): Remove.
5693         (BINFO_MARKED): Set LANG_FLAG_0 directly.
5694         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
5695         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
5696         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
5697         Delete.
5698         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
5699         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
5700         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
5701         Delete.
5702         (BINFO_DEPENDENT_BASE_P): New.
5703         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
5704         index.
5705         (markedp, unmarkedp): Adjust.
5706         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
5707         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
5708         find_vbase_instance, binfo_for_vbase): Delete.
5709         (copied_binfo, original_binfo): Declare.
5710         (finish_base_specifier): Add virtual_p arg.
5711         (unshare_base_binfos): Delete.
5712         (copy_base_binfos): Declare.
5713         (reverse_path): Delete.
5714         * cp/decl.c (xref_basetypes): Access and virtuality passed
5715         differently. Don't copy direct base binfos here. Call
5716         copy_base_binfos.
5717         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
5718         (initialize_vtbl_ptrs): Adjust.
5719         (expand_member_init): Adjust.
5720         * cp/parser.c (cp_parser_base_specifier): Adjust.
5721         * cp/pt.c (instantiate_class_template): Adjust.
5722         (get_template_base_recursive): Adjust.
5723         * cp/rtti.c (get_pseudo_ti_init): Adjust.
5724         (get_pseudo_ti_desc): Adjust.
5725         * cp/tree.c (unshare_base_binfos): Rename to ...
5726         (copy_base_binfos): ... here, reimplement.
5727         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
5728         (reverse_path): Remove.
5729         * cp/typeck.c (get_delta_difference): Adjust error messages.
5730         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
5731         * cp/search.c (lookup_base_r): Adjust.
5732         (dynamic_cast_base_recurse): Adjust.
5733         (canonical_binfo): Remove.
5734         (dfs_canonical_queue): Remove.
5735         (dfs_assert_unmarked_p): Remove.
5736         (assert_canonical_unmarked): Remove.
5737         (shared_marked_p, shared_unmarked_p): Remove.
5738         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
5739         (dfs_access_in_type): Adjust.
5740         (access_in_type): Adjust.
5741         (dfs_accessible_queue_p): Adjust.
5742         (dfs_accessible_p): Adjust.
5743         (is_subobject_of_p_1, is_subobject_of_p): Remove.
5744         (struct lookup_field_info): Remove from_dep_base_p field.
5745         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
5746         (lookup_field_r): Remove dependent base code.
5747         (lookup_member): Likewise.
5748         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
5749         (dfs_unmarked_real_bases_queue_p): Remove.
5750         (dfs_marked_real_bases_queue_p): Remove.
5751         (dfs_skip_vbases): Remove.
5752         (dfs_get_pure_virtuals): Adjust.
5753         (markedp, unmarkedp): Adjust.
5754         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
5755         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
5756         (dfs_unmark): Adjust.
5757         (dfs_get_vbase_types):Remove.
5758         (dfs_build_inheritance_graph_order): Remove.
5759         (get_vbase_types): Remove
5760         (dfs_find_vbase_instance): Remove.
5761         (find_vbase_instance): Remove.
5762         (dfs_debug_unmarkedp): Adjust.
5763         (dependent_base_p): Remove.
5764         (dfs_push_type_decls): Adjust.
5765         (dfs_push_decls): Adjust.
5766         (dfs_no_overlap_yet): Adjust.
5767         (copied_binfo): New function.
5768         (original_binfo): New function.
5769         (binfo_for_vbase): Remove.
5770
5771         Change base class access representation.
5772         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
5773         (add_interface_do): Likewise.
5774
5775 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
5776
5777         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5778         * config/rs6000/power4.md (power4-store,power4-vecstore): New
5779         insn reservations.
5780         (power4-fpstore): Compact.
5781
5782 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
5783
5784         * config/h8300/h8300.md (*iorsi3_w): New.
5785
5786 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
5787
5788         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
5789         * rtl.c (reg_note_name): Likewise.
5790         * rtl.h (enum reg_note): Likewise.
5791         * doc/invoke.texi: Likewise.
5792         * doc/rtl.texi: Likewise.
5793
5794 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
5795
5796         * bb-reorder.c (find_traces_1_round): Fix comment typo.
5797
5798 2003-02-19  Roger Sayle  <roger@eyesopen.com>
5799
5800         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
5801         addition in the presence of signaling NaNs.
5802
5803 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
5804
5805         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
5806
5807 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
5808
5809         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
5810         ORing with 0xffff??00 with the highest bit of the ?? part set.
5811         (compute_logical_op_length): Update.
5812         (compute_logical_op_cc): Likewise.
5813
5814 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
5815
5816         * bb-reorder.c (find_traces_1_round): Fixed condition for small
5817         destination block with multiple predecessors.
5818         (connect_traces): Check whether the block is a start of trace.
5819
5820 2003-02-19  Jan Hubicka  <jh@suse.cz>
5821
5822         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
5823         * function.c (assign_params): Likewise.
5824         * arm-protos.h (arm_init_cumulative_args): Update prototype.
5825         * arm.c (arm_init_cumulative_args): Update function.
5826         * arm.h (INIT_CUMULATIVE_ARGS): Update.
5827         * avr-protos.h (init_cumulative_args): Update prototype.
5828         * avr.c (init_cumulative_args): Update function.
5829         * avr.h (INIT_CUMULATIVE_ARGS): Update.
5830         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
5831         * d30v.c (d30v_init_cumulative_args): Update function.
5832         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
5833         * frv-protos.h (frv_init_cumulative_args): Update prototype.
5834         * frv.c (frv_init_cumulative_args): Update function.
5835         * frv.h (INIT_CUMULATIVE_ARGS): Update.
5836         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
5837         * pa.h (INIT_CUMULATIVE_ARGS): Update.
5838         * sparc-protos.h (init_cumulative_args): Update prototype.
5839         * sparc.c (init_cumulative_args): Update function.
5840         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
5841         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
5842
5843 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
5844
5845         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
5846         (*ashiftsi_sextqi_7): Likewise.
5847
5848 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5849
5850         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
5851         ISO C99 and C++.
5852
5853         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
5854         for C++ on IRIX 6.5.1[89].
5855         * fixinc/tests/base/internal/sgimacros.h: New file.
5856
5857         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
5858         * fixinc/tests/base/internal/wchar_core.h: New file.
5859
5860         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
5861         socklen_t definition.
5862         * fixinc/fixincl.x: Regenerate.
5863         * fixinc/tests/base/sys/socket.h: New file.
5864         Fixes PR libgcj/9652.
5865
5866 2003-02-19  Jan Hubicka  <jh@suse.cz>
5867
5868         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
5869
5870 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
5871
5872         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
5873         align_jumps_max_skip and align_loops_max_skip.
5874
5875 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
5876
5877         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
5878         test size if named section.
5879
5880 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
5881
5882         * expr.c (expand_expr): Use gen_int_mode for the argument
5883         to gen_rtx_MULT.
5884
5885 2003-02-19  Jan Hubicka  <jh@suse.cz>
5886
5887         * i386.md (cosxf2):  Fix conditional.
5888
5889 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
5890
5891         * config/h8300/h8300.md (extendqisi2): Change to an expander.
5892         (*extendqisi2_h8300): New.
5893         (*extendqisi2_h8300hs): Likewise.
5894
5895 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
5896
5897         * config/h8300/h8300-protos.h: Update the prototype for
5898         split_adds_subs.  Remove the prototypes for
5899         const_int_le_2_operand and const_int_le_6_operand.
5900         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
5901         (const_int_le_2_operand): Remove.
5902         (const_int_le_6_operand): Likewise.
5903         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
5904         for const_int_le_2_operand and const_int_le_6_operand.
5905         * config/h8300/h8300.md: Update all uses of split_adds_subs.
5906         (a peephole2): New.
5907
5908 2003-02-18  Jan Hubicka  <jh@suse.cz>
5909
5910         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
5911         (cgraph_expand_function): Rewrite.
5912
5913 2003-02-18  Matt Austern <austern@apple.com>
5914
5915         * toplev.c, langhooks.c, langhooks-def.h: Move
5916         write_global_declarations from toplev.c to langhooks.c.
5917
5918 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
5919
5920         * config/h8300/h8300.c (general_operand_src): Always check
5921         MODE.
5922         (general_operand_dst): Likewise.
5923
5924 2003-02-18  Roger Sayle  <roger@eyesopen.com>
5925
5926         * convert.c (convert_to_real): Also optimize (float)log(x) into
5927         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
5928
5929 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
5930
5931         * config/sh/sh.c (unspec_caller_rtx_p): New.
5932         (sh_cannot_copy_insn_p): New.
5933         (TARGET_CANNOT_COPY_INSN_P): New.
5934
5935 2003-02-18  Richard Henderson  <rth@redhat.com>
5936
5937         * c-common.c (handle_used_attribute): Accept static data too.
5938
5939 2003-02-18  Nick Clifton  <nickc@redhat.com>
5940             Aldy Hernandez  <aldyh@redhat.com>
5941
5942         * testsuite/gcc.dg/20030218-1.c: New.
5943
5944         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
5945
5946         * target-def.h (TARGET_INITIALIZER): Add
5947         TARGET_VECTOR_TYPES_COMPATIBLE.
5948         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
5949
5950         * target.h (struct gcc_target): Add field vector_types_compatible.
5951
5952         * c-typeck.c (comptypes): Take into account
5953         TARGET_VECTOR_TYPES_COMPATIBLE.
5954         (convert_for_assignment): Same.
5955
5956         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
5957         (rs6000_spe_vector_types_compatible): New.
5958         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
5959
5960 2003-02-19  Andreas Schwab  <schwab@suse.de>
5961
5962         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
5963         * toplev.c: Include langhooks-def.h.
5964
5965 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
5966
5967         * config/mips/mips.h (enum processor_type): Sort entries
5968         alphabetically.
5969         * config/mips/mips.md (define_attr cpu): Sync with processor_type
5970         enum values, including adding entries that were missing.
5971
5972 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
5973
5974         * sh.c (calc_live_regs): Also check GET_CODE when checking if
5975         initial value for PR_REG is still the PR_REG register.
5976
5977 2003-02-18  Jim Wilson  <wilson@redhat.com>
5978
5979         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
5980         instruction in output template.
5981         (bsp_value): Change output template from string to C code, add %,
5982         before actual instruction.
5983         (flushrs): Mark as not predicable.
5984
5985 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
5986
5987         * inclhack.def (netbsd_bogus_semicolon): New fix.
5988         * fixincl.x: Rebuilt.
5989         * tests/base/ctype.h: Update.
5990
5991 2003-02-18  Roger Sayle  <roger@eyesopen.com>
5992
5993         * fold-const.c (negate_expr_p): New function to determine whether
5994         an expression can be negated cheaply.
5995         (fold) [MINUS_EXPR]: Use it to determine whether to transform
5996         -A - B into -B - A for floating point types.
5997
5998 2003-02-18  Roger Sayle  <roger@eyesopen.com>
5999
6000         * sbitmap.c (sbitmap_resize): New function.
6001         * sbitmap.h (sbitmap_resize): Prototype here.
6002         * recog.c (split_all_insns): Use sbitmap_resize.
6003
6004 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
6005
6006         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
6007         insn length.
6008         (extendqisi2): Likewise.
6009         (*extendhisi2_h8300): Likewise.
6010
6011 2003-02-18  Matt Austern <austern@apple.com>
6012
6013         * langhooks.h, langhooks-def.h: introduce new langhook,
6014         final_write_globals, with write_global_declarations as default.
6015         * toplev.c: Move invocation of wrapup_global_declarations from
6016         compile_file to new function, write_global_declarations.  Change
6017         compile_file to use final_write_globals hook.  Change
6018         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
6019         conditional.
6020
6021 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6022
6023         * pa.md: Correct and enhance comment.
6024
6025 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
6026
6027         * gcc.c (validate_switches): Don't scan past closing '}'.
6028
6029 2003-02-18  Ben Elliston  <bje@redhat.com>
6030
6031         PR c++/1607
6032         * doc/extend.texi (Function Attributes): Document the effect of
6033         the C++ "this" parameter on the counting of arguments for the
6034         "format" and "format_arg" attributes.
6035
6036 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
6037
6038         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
6039         (__ev_stdw): Same.
6040         (__ev_stdh): Same.
6041
6042 2003-02-17  Jan Hubicka  <jh@suse.cz>
6043
6044         * recog.c (split_all_insns):  Fix memory overflow.
6045
6046 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
6047
6048         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
6049         (cmphi): Likewise.
6050         (*cmphi_h8300): Likewise.
6051         (*cmphi_h8300hs): Likewise.
6052         (cmpsi): Likewise.
6053         (7 peephole2): Likewise.
6054
6055 2003-02-16  Jan Hubicka  <jh@suse.cz>
6056
6057         * c-typeck.c (build_c_cast):  Fold constant variables into
6058         initial values.
6059
6060 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6061
6062         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
6063         (Binaries): Ditto for Sinix/Reliant Unix.
6064
6065 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
6066
6067         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
6068         not overlap the final result register.
6069
6070 2003-02-16 Arend Bayer <arend.bayer@web.de>
6071            Richard Henderson  <rth@redhat.com>
6072
6073         PR c/8068
6074         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
6075         rearrange mult arguments for less recursion.
6076         (extract_muldiv): New.  Prevent runaway recursion.
6077
6078 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
6079
6080         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
6081         MASK_ALIGN_DOUBLE.
6082
6083 2003-02-15  Roger Sayle  <roger@eyesopen.com>
6084
6085         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
6086         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
6087         (ext_80387_constants_table): Global table of 80387 special constants
6088         guarded by ext_80387_constants_init flag when not initialized.
6089         (init_ext_80387_constants): New function to initialize this table.
6090         (standard_80387_constant_p): Extend to recognize extra 80387
6091         constants, in XFmode, on processors where this is a win.
6092         (standard_80387_constant_opcode): New function to return the
6093         opcode associated with standard_80387_constant_p.
6094         (standard_80387_constant_rtx): New function to return the XFmode
6095         CONST_DOUBLE associated with standard_80387_constant_p.
6096         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
6097
6098         * config/i386/i386-protos.h (standard_80387_constant_opcode):
6099         Prototype here.
6100         (standard_80387_constant_rtx): Likewise.
6101
6102         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
6103         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
6104         *movtf_integer): Simplify using new standard_80387_constant_opcode.
6105
6106 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
6107
6108         * doc/invoke.texi (Optimize Options): Correct @option syntax.
6109
6110 2003-02-15  Richard Henderson  <rth@redhat.com>
6111
6112         * Makefile.in (cfglayout.o): Depend on TARGET_H.
6113         * cfglayout.c: Include target.h.
6114         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
6115         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
6116         * target.h (struct gcc_target): Add cannot_copy_insn_p.
6117
6118         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
6119         (TARGET_CANNOT_COPY_INSN_P): New.
6120         (override_options): Revert 2003-02-08 hack.
6121
6122 2003-02-15  Richard Henderson  <rth@redhat.com>
6123
6124         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
6125         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
6126
6127 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
6128
6129         * config/rs6000/rs6000.h (processor_type): Add PPC440.
6130         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
6131         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
6132         TARGET_SCHED_VARIABLE_ISSUE): Define.
6133         (rs6000_use_dfa_pipeline_interface): New function.
6134         (rs6000_multipass_dfa_lookahead): New Function.
6135         (rs6000_variable_issue): New function.
6136         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
6137         (rs6000_issue_rate): Add PPC440.
6138         * config/rs6000/rs6000.md (unspec list): Correct typo.
6139         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
6140         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
6141         cmp, delayed_cr, mfcr, mtcr.
6142         (automata_option): Set "ndfa".
6143         (extendMMNN2): Update attributes.
6144         (movcc_internal1): Discourage move to non-cr0.  Update
6145         attributes.
6146         (movMM_update): Update attributes.
6147         (cmpMM_internal): Update attributes.
6148         (sCC CR materialization): Update attributes.
6149         (branch patterns): Do not discourage non-cr0.
6150         (cr logical patterns): Prefer destructive register allocation.
6151         Update attributes.
6152         (movesi_from_cr): Update attribute.
6153         (mtcrf_operation): Update attribute.
6154         (mtcrfsi): Update attribute.
6155         * config/rs6000/40x.md: New file.
6156         * config/rs6000/603.md: New file.
6157         * config/rs6000/6xx.md: New file.
6158         * config/rs6000/7450.md: New file.
6159         * config/rs6000/7xx.md: New file.
6160         * config/rs6000/mpc.md: New file.
6161         * config/rs6000/power4.md: New file.
6162         * config/rs6000/rios1.md: New file.
6163         * config/rs6000/rios2.md: New file.
6164         * config/rs6000/rs64.md: New file.
6165         [Some DFA descriptions based on work by Michael Hayes]
6166
6167 2003-02-15  Richard Henderson  <rth@redhat.com>
6168
6169         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
6170         successors with multiple predecessors.
6171         (connect_traces): Try harder to copy traces of length 1.
6172
6173         * function.h (struct function): Add computed_goto_common_label,
6174         computed_goto_common_reg.
6175         * function.c (free_after_compilation): Zap them.
6176         * stmt.c (expand_computed_goto): Use them to produce one
6177         indirect branch per function.
6178
6179 2003-02-15  Richard Henderson  <rth@redhat.com>
6180
6181         * cfgcleanup.c: Include params.h.
6182         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
6183         too many outgoing edges from a block.
6184         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
6185         * params.def (max-crossjump-edges): New.
6186         * doc/invoke.texi: Document it.
6187
6188 2003-02-15  Richard Henderson  <rth@redhat.com>
6189
6190         * recog.c (split_all_insns): Include new blocks in life update;
6191         do a global life update.
6192
6193 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
6194
6195         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
6196         Update copyright.
6197         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
6198         -mno-cygwin case.
6199
6200 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
6201
6202         PR optimization/7702
6203         * reload1.c (reload_cse_simplify_set): Honor
6204         CANNOT_CHANGE_MODE_CLASS.
6205
6206 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
6207
6208         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
6209         function.
6210         * config/mn10300/mn10300-protos.h: Declare it.
6211         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
6212         attribute cc of instructions that may use clr.
6213
6214 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
6215
6216         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
6217         (x - (x & y)) is found.
6218
6219 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6220
6221         * configure.in: Fix typo.
6222         * configure: Regenerate.
6223
6224 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
6225
6226         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
6227
6228 2003-02-13  Adam Nemet  <anemet@lnxw.com>
6229
6230         PR opt/2391
6231         * combine.c: Fix spelling in comment.
6232         (cached_nonzero_bits): New function.
6233         (cached_num_sign_bit_copies): New function.
6234         (nonzero_bits_with_known): New macro.
6235         (num_sign_bit_copies_with_known): New macro.
6236         (nonzero_bits1): Rename from nonzero_bits.  Add three new
6237         arguments.  Change calls from nonzero_bits to
6238         nonzero_bits_with_known.
6239         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
6240         three new arguments.  Change calls from num_sign_bit_copies to
6241         num_sign_bit_copies_with_known.
6242         (nonzero_bits): New macro.
6243         (num_sign_bit_copies): New macro.
6244         (update_table_tick): Don't traverse identical subexpression more
6245         than once.
6246         (get_last_value_validate): Likewise.
6247
6248 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
6249
6250         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
6251         * function.h (struct emit_status): Length of regno_pointer_align
6252         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
6253         not regno_pointer_align_length (i.e. length actually used, not
6254         length as allocated)
6255
6256         * config/i386/i386.c (struct stack_local_entry): New.
6257         (struct machine_function): Replace huge array with alist.
6258         (assign_386_stack_local): Change to match.
6259
6260 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
6261
6262         * inclhack.def (hpux_long_double): Tighten select and add bypass
6263         regexp.
6264         * fixincl.x: Rebuilt.
6265
6266 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
6267
6268         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
6269         edge and block ends with a jump insn it must be simple jump.
6270
6271 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
6272
6273         * Makefile.in (PREPROCESSOR_DEFINES): Add
6274         @TARGET_SYSTEM_ROOT_DEFINE@.
6275         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
6276         is specified or if building a cross compiler.
6277         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
6278         if the sysroot is under $exec_prefix.
6279         * configure: Regenerated.
6280         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
6281         defined.
6282         (struct default_include): Add add_sysroot field.
6283         (cpp_SYSROOT): Declare.
6284         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
6285         field.
6286         (cpp_SYSROOT): New variable.
6287         * cppinit.c (cpp_create_reader): Initialize
6288         CPP_OPTION (pfile, sysroot).
6289         (init_standard_includes): Handle add_sysroot.  Do not
6290         add unrelocated copies of relocated directories.
6291         (COMMAND_LINE_OPTIONS): Add -isysroot.
6292         (cpp_handle_option): Handle -isysroot.
6293         * cpplib.h (struct cpp_options): Add sysroot member.
6294         * gcc.c (The Specs Language): Update description of %I.
6295         (target_system_root_changed): New variable.
6296         (process_command): Conditionalize make_relative_prefix call
6297         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
6298         target_system_root_changed.
6299         (do_spec_1): Add -isysroot to %I.
6300         * doc/invoke.texi (Spec Files): Update description of %I.
6301         * doc/install.texi (--with-sysroot): Update comment about
6302         relocation.
6303
6304 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
6305
6306         * config/h8300/h8300.md (a peephole2): New.
6307
6308 2003-02-13  Robert Lipe <robertlipe@usa.net>
6309             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6310
6311         * doc/install.texi (Specific): Update three SCO-related URLs.
6312
6313 2003-02-13  Andreas Schwab  <schwab@suse.de>
6314
6315         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
6316         Parenthesize properly.
6317         (NPREDECESORS): Parenthesize properly.
6318
6319 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6320
6321         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
6322
6323 2003-02-12  Roger Sayle  <roger@eyesopen.com>
6324
6325         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
6326         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
6327
6328         * reg-stack.c (subst_stack_regs_pat): Add support for binary
6329         UNSPEC instructions (e.g. "fpatan").
6330
6331 2003-02-12  Mike Stump  <mrs@apple.com>
6332
6333         * varray.c (element_size): Remove.
6334         (uses_ggc): Remove.
6335         (element): Add.
6336         (varray_init): Use new interface.
6337         (varray_grow): Use new interface.
6338         (varray_clear): Use new interface.
6339
6340 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
6341
6342         * config/rs6000/spe.h: Add casts to the arguments of the following
6343         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
6344         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
6345         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
6346         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
6347         __ev_get_u16, __ev_get_s16.
6348
6349 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
6350
6351         * config/h8300/h8300.md (a peephole2): New.
6352
6353 2003-02-12  Jan Hubicka  <jh@suse.cz>
6354
6355         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
6356         (OBJS): Add callgraph.o
6357         (callgraph.o): New.
6358         * c-decl.c (expand_body_1): Break out from ...
6359         (expand_body): This one;  change calling convention
6360         (finish_function): Move some of expand_body logic here.
6361         (c_expand_deferred_function): Update call of expand_body
6362         (c_expand_stmt): Use c_expand_body_1.
6363         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
6364         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
6365         * c-tree.h (c_expand_body): Declare.
6366         * callgraph.c: New file.
6367         * flags.h (flag_unit_at_a_time): Declare.
6368         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
6369         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
6370         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
6371         * langhooks.h (struct lang_hooks_for_callgraph): New.
6372         (struct lang_hooks): Add callgraph field.
6373         * toplev.c (flag_unit_at_a_time): New.
6374         (lang_independent_options): Add flag_unit_at_a_time.
6375         (process_options): Disable unit-at-a-time mode for frontends not
6376         supporting callgraph.
6377         * tree-inline.c (typedef struct inline_data): Add "decl"
6378         (expand_call_inline): Update callgraph.
6379         (optimize_inline_calls): Set id.decl.
6380         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
6381         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
6382         cgraph_calls_p): Declare.
6383         * invoke.texi (-funit-at-a-time): Document
6384
6385 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
6386
6387         * config/rs6000/spe.h: Fix misc formatting.
6388         (__ev_create_ufix32_fs): Cast ev argument.
6389         (__ev_create_sfix32_fs): Same.
6390         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
6391         (__ev_get_ufix32_fs_internal): Same.
6392
6393 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
6394
6395         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
6396         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
6397
6398 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
6399
6400         * cpplib.c (do_include_common): Move warnings for
6401         #include_next and #import out to callers.  Use early-return
6402         instead of nested ifs.  Don't do check_eol here.
6403         (parse_include): Do check_eol here with the rest of the
6404         parsing stuff.
6405         (do_include_next, do_import): Now handle warnings.
6406
6407 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6408
6409         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
6410
6411 2003-02-12  Jan Hubicka  <jh@suse.cz>
6412
6413         * predict.c (estimate_probability):  Fix roundoff error.
6414
6415 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
6416
6417         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
6418         (two peephole2): New.
6419
6420 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
6421
6422         * config/h8300/h8300.md (several peephole2): Replace
6423         find_regno_note with peep2_reg_dead_p.
6424
6425 2003-02-11  Richard Henderson  <rth@redhat.com>
6426
6427         * gcse.c (lookup_set): Remove unused argument PAT.  Update
6428         both callers.
6429
6430 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
6431
6432         * diagnostic.c (real_abort): New.
6433         (diagnostic_report_diagnostic): Call real_abort on error.
6434         * diagnostic.h (diagnostic_abort_on_error): New.
6435         (struct diagnostic_context): Add abort_on_error field.
6436         * toplev.c (setup_core_dumping): New.
6437         (decode_d_option): Handle 'H' case.
6438         * doc/invoke.texi (Debugging Options): Document -dH.
6439
6440 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
6441
6442         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
6443         which refers to obsolete directories.
6444
6445 2003-02-11  Richard Henderson  <rth@redhat.com>
6446
6447         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
6448
6449 2002-10-21  Jan Hubicka  <jh@suse.cz>
6450
6451         * i386.c (contains_128bit_aligned_vector_p): New function.
6452         (ix86_function_arg_boundary): Properly align vector modes.
6453
6454 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
6455
6456         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
6457         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
6458         as a SET pattern.
6459
6460 2003-02-11  Roger Sayle  <roger@eyesopen.com>
6461
6462         * builtins.c:  Fix failure caused by commiting wrong patch.
6463
6464 2003-02-11  Dale Johannesen  <dalej@apple.com>
6465         * ra-build.c (compare_and_free_webs):  Relax checking.
6466         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
6467         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
6468
6469 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
6470
6471         PR optimization/9651
6472         * rtlanal.c (may_trap_p): Handle FIX.
6473
6474 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
6475
6476         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
6477         * doc/invoke.texi: Extra alias.
6478
6479 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
6480
6481         * config/rs6000/host-darwin.c: Fix comment.
6482
6483 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
6484
6485         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
6486         predicate for mod result.
6487
6488 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6489
6490         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
6491         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
6492         * fixincl.x: Rebuilt.
6493         * tests/base/stdlib.h: Update.
6494         * tests/base/ctype.h: New file.
6495
6496 2003-02-11  Jan Hubicka  <jh@suse.cz>
6497
6498         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
6499
6500 2003-02-11  Richard Henderson  <rth@redhat.com>
6501
6502         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
6503         appropriated as globals.
6504         (ix86_expand_clrstr): Similarly.
6505         * config/i386/i386.md (cmpstrsi): Similarly.
6506
6507 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
6508
6509         * config/h8300/h8300.md (a peephole2): Add a case of 255.
6510
6511 2003-02-11  Roger Sayle  <roger@eyesopen.com>
6512
6513         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
6514         (pow_optab, atan2_optab): Define corresponding macros.
6515         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
6516         * genopinit.c (optabs): Implement pow_optab and atan2_optab
6517         using pow?f3 and atan2?f3 patterns.
6518         * builtins.c (expand_errno_check): New function to update errno
6519         if necessary, split out from expand_builtin_mathfn.
6520         (expand_builtin_mathfn): Use expand_errno_check.
6521         (expand_builtin_mathfn_2): New function to handle expanding binary
6522         math functions, reusing the code in expand_errno_check.
6523         (expand_builtin): Handle the pow and atan2 math built-ins,
6524         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
6525         expand_builtin_mathfn_2.
6526
6527         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
6528
6529 2003-02-11  Jan Hubicka  <jh@suse.cz>
6530
6531         * combine.c (combine_simplify_rtx): Fix folding of
6532         nested float_truncates.
6533
6534 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
6535
6536         * config/h8300/h8300.md (a peephole2): Fix a typo.
6537
6538 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
6539
6540         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
6541         register number.
6542
6543 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
6544
6545         * config/h8300/h8300-protos.h: Add a prototype for
6546         gtuleu_operator.
6547         * config/h8300/h8300.c (gtuleu_operator): New.
6548         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
6549         * config/h8300/h8300.md (a peephole2): New.
6550
6551 2003-02-11  Jan Hubicka  <jh@suse.cz>
6552
6553         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
6554
6555 2003-02-11  Jan Hubicka  <jh@suse.cz>
6556
6557         * predict.c (choose_function_section): Choose sections correctly.
6558
6559 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6560
6561         * reload1.c (first_label_num): New.
6562         (reload): Index offsets_known_at and offsets_at using difference of
6563         label number and first label number.  Don't use offset pointers.
6564         (set_label_offsets, set_initial_label_offsets): Likewise.
6565
6566 2003-02-10  Roger Sayle  <roger@eyesopen.com>
6567
6568         * mips-tfile.c (init_file): Add missing initializers in the
6569         "#ifdef __alpha" case.
6570         (file_offset, max_file_offset): Declare as unsigned long.
6571         (write_varray): Cast to "unsigned long" in comparisons against
6572         either file_offset or max_file_offset.
6573         (write_object): Likewise.
6574         (read_seek): Likewise.
6575         (copy_object): Likewise. Declare "ifd" as int to match its use
6576         in add_ext_symbol, and avoid signed/unsigned conditional warning.
6577
6578 2003-02-10  Nick Clifton  <nickc@redhat.com>
6579             Aldy Hernandez  <aldyh@redhat.com>
6580
6581         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
6582         override options which have been specified on the command line.
6583
6584 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
6585
6586         * config/h8300/h8300.md (abssf2): New.
6587         (*abssf2_h8300): Likewise.
6588         (*abssf2_h8300hs): Likewise.
6589
6590 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
6591
6592         * tree.c (build_tree_list):  Fix parameter names in comment.
6593
6594 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
6595
6596         * config/rs6000/ppc64-fp.c: New file.
6597         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
6598
6599 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
6600
6601         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
6602         * bb-reorder.c (make_reorder_chain): Deleted.
6603         (make_reorder_chain_1): Deleted.
6604         (find_traces): New function.
6605         (rotate_loop): New function.
6606         (mark_bb_visited): New function.
6607         (find_traces_1_round): New function.
6608         (copy_bb): New function.
6609         (bb_to_key): New function.
6610         (better_edge_p): New function.
6611         (connect_traces): New function.
6612         (copy_bb_p): New function.
6613         (get_uncond_jump_length): New function.
6614         (reorder_basic_blocks): Use new functions (Software Trace Cache).
6615         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
6616         boundaries.
6617
6618 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
6619
6620         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
6621
6622 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
6623
6624         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
6625         (DECL_LIVE_RANGE_RTL): Remove.
6626
6627 2003-02-10  Nick Clifton  <nickc@redhat.com>
6628
6629         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
6630         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
6631         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
6632         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
6633         config/arm/freebsd.h, config/arm/linux-elf.h,
6634         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
6635         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
6636         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
6637         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
6638         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
6639         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
6640         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
6641         and reformat as appropriate.
6642
6643 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
6644
6645         * config/h8300/clzsi2.c: Remove.
6646         * config/h8300/ctzsi2.c: Likewise.
6647         * config/h8300/paritysi2.c: Likewise.
6648         * config/h8300/popcountsi2.c: Likewise.
6649         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
6650         ctzsi2, paritysi2, and popcountsi2.
6651
6652 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
6653             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
6654
6655         PR c/7741
6656         * c-decl.c (duplicate_decls): Discard the initializer of the
6657         new decl when the types are conflicting.
6658
6659 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
6660
6661         * Makefile.in (sreal.o): Added.
6662         (predict.o): Depends on sreal.h instead of real.h.
6663         * sreal.c: New file.
6664         * sreal.h: New file.
6665         * predict.c: Use sreal.c instead of real.c.
6666
6667 2003-02-10  Nick Clifton  <nickc@redhat.com>
6668
6669         * Contributed support for the Cirrus EP9312 "Maverick"
6670         floating point co-processor.  Written by Aldy Hernandez
6671         <aldyh@redhat.com>.
6672         (config/arm/arm.c): Add Cirrus support.
6673         (config/arm/arm.h): Likewise.
6674         (config/arm/aout.h): Likewise.
6675         (config/arm/arm.md): Likewise.
6676         (config/arm/arm-protos.h): Likewise.
6677         (config.gcc): Likewise.
6678         (doc/invoke.texi): Describe new -mcpu value and new
6679         -mcirrus-fix-invalid-insns switch,
6680         (cirrus.md): New file.
6681
6682 2003-02-10  Jan Hubicka  <jh@suse.cz>
6683
6684         * combine.c (combine_simplify_rtx): Simplify using
6685         (float_truncate (float x)) is (float x)
6686         (float_extend (float_extend x)) is (float_extend x).
6687
6688 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
6689
6690         * calls.c (try_to_integrate): Tidy stack_usage_map access.
6691         (emit_library_call_value_1): Likewise.  Formatting.
6692         (store_one_arg): Likewise.
6693
6694 2003-02-09  Nick Clifton  <nickc@redhat.com>
6695             Aldy Hernandez  <aldyh@redhat.com>
6696
6697         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
6698         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
6699         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
6700         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
6701         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
6702         docs.  Add range test for immediate value.
6703
6704 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
6705
6706         Rename spe_evxor to xorv2si3.
6707         (xorv4hi3): New.
6708         (xorv1di3): New.
6709
6710 2003-02-10  Glen Nakamura  <glen@imodulo.com>
6711
6712         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
6713         tag.
6714
6715 2003-02-10  Jan Hubicka  <jh@suse.cz>
6716
6717         * i386.c (vector_move_operand): New predicate.
6718         (ix86_expand_vector_move): Be happy about 0.
6719         * i386.h (PREDICATE_CODES): Add sse-move_operand.
6720         * i386.md (mov*_internal): Add 'C' alternative.
6721
6722 2003-02-09  Jan Hubicka  <jh@suse.cz>
6723
6724         * i386.md (floathi*): Deal with SSE.
6725
6726 2003-02-09  Jan Hubicka  <jh@suse.cz>
6727
6728         * simplify-rtx.c (simplify_unary_operation,
6729         simplify_binary_operation):  Deal with vector modes
6730         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
6731
6732 2003-02-09  Richard Sandiford  <rsandifo@redhat.com>
6733
6734         * toplev.c (rest_of_compilation): Recompute register usage after
6735         split_all_insns.
6736
6737 2003-02-09  Richard Henderson  <rth@redhat.com>
6738
6739         * libgcc-std.ver (__clztf2): New.
6740         (__ctztf2, __popcounttf2, __paritytf2): New.
6741         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
6742         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
6743         adjust code to match the different type sizes.
6744         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
6745         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
6746
6747         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
6748         TImode; select word_mode and twice that.
6749         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
6750         select the modes from float, double, and long double.
6751         (init_optabs): Remove duplicate initializations.
6752
6753 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
6754
6755         * doc/install.texi: Squeeze and streamline section on
6756         testing and regression checking.
6757
6758 2003-02-09  Jan Hubicka  <jh@suse.cz>
6759
6760         * i386.md (ahi?v*3): Set third operand type to TImode.
6761         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
6762
6763         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
6764         integer mode.
6765
6766         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
6767         Change code so they are arithmetic expressions now.
6768         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
6769         simplify_ternary_operation): Deal with VEC_* expressions.
6770
6771         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
6772
6773 2003-02-08  Jan Hubicka  <jh@suse.cz>
6774
6775         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
6776         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
6777         possibly got duplicated.
6778
6779 2003-02-08  Richard Henderson  <rth@redhat.com>
6780
6781         * config/alpha/alpha.c (override_options): Turn off explicit
6782         relocs until post-peep2 code duplication resolved.
6783
6784 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
6785
6786         * optabs.c (expand_unop): Widen clz properly when clz is done
6787         via libcall.
6788
6789 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
6790
6791         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
6792         * config/h8300/crti.asm: Likewise.
6793         * config/h8300/crtn.asm: Likewise.
6794         * config/h8300/ctzsi2.c: Likewise.
6795         * config/h8300/fixunssfsi.c: Likewise.
6796         * config/h8300/h8300-protos.h: Likewise.
6797         * config/h8300/h8300.c: Likewise.
6798         * config/h8300/h8300.h: Likewise.
6799         * config/h8300/h8300.md: Likewise.
6800         * config/h8300/paritysi2.c: Likewise.
6801         * config/h8300/popcountsi2.c: Likewise.
6802         * config/h8300/rtems.h: Likewise.
6803
6804 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6805
6806         * doc/invoke.texi: Documentation for my previous commit.
6807         * doc/passes.texi: Ditto.
6808
6809 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6810
6811         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
6812         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
6813         Declare.
6814         (DLTHE_FLAG_UPDATE_FREQ): New.
6815         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
6816         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
6817         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
6818         fix_bb_placement, fix_bb_placements, place_new_loop,
6819         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
6820         New static functions.
6821         (fix_loop_placement, can_duplicate_loop_p,
6822         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
6823         New functions.
6824
6825         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
6826         unswitch_loops): Declare.
6827         * loop-init.c: New file.
6828         * loop-unswitch.c: New file.
6829         * Makefile.in (loop-init.o, loop-unswitch.o): New.
6830         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
6831         * toplev.c (DFI_loop2): New dump.
6832         (flag_unswitch_loops): New.
6833         (lang_independent_options): Add it.
6834         (rest_of_compilation): Call new loop optimizer.
6835         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
6836
6837 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
6838
6839         * config/h8300/clzsi2.c: New.
6840         * config/h8300/ctzsi2.c: Likewise.
6841         * config/h8300/paritysi2.c: Likewise.
6842         * config/h8300/popcountsi2.c: Likewise.
6843         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
6844
6845 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
6846
6847         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
6848         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
6849         (ctzsi2): New pattern.
6850         (ffssi2): Use clz instead of unspec.
6851         (clzdi2): Rename from cntlzd2.
6852         (ctzdi2): New pattern.
6853         (ffsdi2): Use clz instead of unspec.
6854
6855 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
6856
6857         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
6858         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
6859         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
6860         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
6861
6862 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
6863
6864         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
6865
6866 2003-02-07  Richard Henderson  <rth@redhat.com>
6867
6868         PR 9226
6869         * gcse.c (local_cprop_find_used_regs): New.
6870         (local_cprop_pass): Use it.
6871
6872 2003-02-07  Fred Fish  <fnf@intrinsity.com>
6873
6874         * mips-tfile.c (parse_def): Parenthesize assignments to fix
6875         precedence bugs.
6876
6877 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
6878
6879         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
6880
6881 2003-02-07  Roger Sayle  <roger@eyesopen.com>
6882
6883         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
6884         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
6885         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
6886         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
6887         builtin functions (and their __builtin_* variants).
6888         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
6889         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
6890         when not optimizing.
6891
6892         * doc/extend.texi: Document new pow and atan2 builtins, and
6893         their float and long double variants.  Realphabetize builtins.
6894
6895 2003-02-07  Jan Hubicka  <jh@suse.cz>
6896
6897         * i386.md (sse2_nandv2di3): Fix.
6898
6899 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
6900
6901         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
6902         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
6903         definition.
6904         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
6905         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
6906
6907 2003-02-07  Jan Hubicka  <jh@suse.cz>
6908
6909         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
6910
6911 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
6912
6913         * cfg.c (dump_flow_info): Add back accidently deleted line.
6914
6915 2003-02-07  Andrey Petrov <petrov@netbsd.org>
6916
6917         * optabs.c (expand_float): Search wider integer modes first.
6918
6919 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
6920
6921         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
6922         based on preprocessor flag.
6923
6924 2003-02-07  Roger Sayle  <roger@eyesopen.com>
6925             Richard Henderson  <rth@redhat.com>
6926
6927         * gcse.c (implicit_sets): New.
6928         (compute_hash_table_work): Include them in hash table.
6929         (find_implicit_sets, fis_get_condition): New.
6930         (one_cprop_pass): Allocate and free implicit_sets; call
6931         find_implicit_sets before building hash table.
6932
6933 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
6934
6935         * config/t-netbsd (USER_H): Revert previous change.
6936
6937 2003-02-07  Gabor Greif  <ggreif@lucent.com>
6938
6939         * doc/c-tree.texi (Namespaces): Fix typo.
6940
6941 2003-02-07  Jan Hubicka  <jh@suse.cz>
6942
6943         * regrename.c (do_replace, find_oldest_value_reg,
6944         copyprop_hardreg_forward_1): Update register attributes.
6945
6946 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
6947
6948         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
6949         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
6950         variables starting with underscore.
6951         (struct unit_usage): New structure.
6952         (unit_usages, cycle_alt_unit_usages): New global variables.
6953         (check_unit_distribution_in_reserv): Remove it.
6954         (store_alt_unit_usage): New function.
6955         (check_regexp_units_distribution): Rewrite it.
6956
6957 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6958
6959         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
6960         target_cpu_default.
6961         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
6962         if not MASK_NO_SPACE_REGS.
6963         (output_call): Adjust return pointer, don't load new space register
6964         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
6965         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
6966         TARGET_NO_SPACE_REGS is true.
6967         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
6968         conditions.
6969         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
6970         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
6971         true.  Use bve when TARGET_64BIT is true.
6972
6973 2003-02-06  Richard Henderson  <rth@redhat.com>
6974
6975         * combine.c (nonzero_bits): Fix double break.
6976
6977 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
6978             Richard Henderson <rth@redhat.com>
6979
6980         PR c/9530
6981         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
6982         from functions that return a float to functions that don't.
6983
6984 2003-02-06  Jan Hubicka  <jh@suse.cz>
6985
6986         * i386.c (x86_inter_unit_moves): New variable.
6987         (ix86_secondary_memory_needed): Fix 64bit case, honor
6988         TARGET_INTER_UNIT_MOVES
6989         * i386.h (x86_inter_unit_moves): Declare.
6990         (TARGET_INTER_UNIT_MOVES): New macro.
6991         * i386.md (movsi_1): Cleanup constraints; disable
6992         when not doing inter-unit moves.
6993         (movsi_1_nointernunit): New.
6994         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
6995         (movdi_1_rex64_nointerunit): New.
6996         (mivsf_1): disable when not doing inter-unit moves.
6997         (movsf_1_nointerunit): New.
6998
6999         * basic-block.h (inside_basic_block_p):  Declare.
7000         * cfgbuild.c (inside_basic_block_p): Make global.
7001         * haifa-sched.c (unlink_other_notes0: Deal with NOT_INSN_BASIC_BLOCK.
7002         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
7003         update CFG.
7004         (fix_basic_block_boundaries, add_missing_bbs): New.
7005         (rank): Use profile.
7006         (scheudle_ebbs): Rely on CFG; update coments.
7007
7008 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
7009
7010         * Makefile.in (host_hook_obj): New.
7011         (OBJS): Add $(host_hook_obj).
7012         (host_default.o): New rule.
7013         * config.gcc (host_hook_obj): New, default to host-default.o.
7014         (powerpc-*-darwin*): Use host-darwin.o.
7015         (out_host_hook_obj): New.
7016         * configure: Regenerate.
7017         * configure.in: Print information about out_host_hook_obj, substitute
7018         into output files.
7019         * host-default.c: New file.
7020         * hosthooks.h: New file.
7021         * toplev.c (general_init): Call host_hooks.extra_signals.
7022         * config/rs6000/host-darwin.c: New file.
7023         * config/rs6000/x-darwin: New file.
7024         * doc/hostconfig.texi: Add documentation for new host hook.
7025         Rearrange existing documentation.
7026
7027 2003-02-05  Roger Sayle  <roger@eyesopen.com>
7028
7029         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
7030         with *targetm.delegitimize_address.
7031         (rtl_for_decl_location): Likewise.
7032         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
7033         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
7034
7035         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
7036         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
7037         prototype.
7038         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
7039         i386_simplify_dwarf_addr.  Made static.  Prototyped.
7040         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
7041         i386_simplify_dwarf_addr to ix86_delegitimize_address.
7042         (ix86_find_base_term): Likewise.
7043         (maybe_get_pool_constant): Likewise.
7044
7045         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
7046         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
7047         prototype.
7048         * config/s390/s390.c (s390_delegitimize_address): Renamed from
7049         s390_simplify_dwarf_addr.  Made static.  Prototyped.
7050         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
7051
7052 2003-02-05  Richard Henderson  <rth@redhat.com>
7053
7054         PR c/8602
7055         * integrate.c (output_inline_function): Reset input_filename
7056         and lineno from the decl before rest_of_compilation.
7057
7058 2003-02-05  Richard Henderson  <rth@redhat.com>
7059
7060         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
7061         (CTZ_DEFINED_VALUE_AT_ZERO): New.
7062         * doc/rtl.texi, doc/tm.texi: Document them.
7063
7064         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
7065         of the value at zero properly.
7066         * fold-const.c (tree_expr_nonnegative_p): Likewise.
7067         * simplify-rtx.c (simplify_unary_operation): Likewise.
7068
7069         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
7070         (CTZ_DEFINED_VALUE_AT_ZERO): New.
7071
7072         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
7073         (TARGET_EXPAND_BUILTIN): Remove.
7074         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
7075         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
7076         (enum arm_builtins): Remove.
7077         * config/arm/arm.md (UNSPEC_CLZ): Remove.
7078         (clzsi2): Rename from clz; use clz instead of unspec.
7079         (ctzsi2): New.
7080         * config/arm/arm-protos.h: Update.
7081
7082 2003-02-05  Jan Hubicka  <jh@suse.cz>
7083
7084         * i386-protos.h (x86_emit_floatuns):  Declare.
7085         * i386.c (x86_emit_floatuns): New global function.
7086         * i386.md (floatunssisf2, floatunsdisf2,
7087         floatunsdidf2):  New patterns.
7088
7089 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7090
7091         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
7092
7093 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
7094
7095         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
7096           config/ia64/linux.h
7097
7098 2003-02-05  Roger Sayle  <roger@eyesopen.com>
7099
7100         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
7101
7102 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
7103
7104         PR optimization/8555
7105         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
7106         instead of aborting.
7107
7108 2003-02-04  Richard Henderson  <rth@redhat.com>
7109
7110         * config/i386/i386.md (UNSPEC_BSF): Remove.
7111         (ffssi2): Split into cmove and no_cmove insns and splitters;
7112         lose pentium float trick for now.
7113         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
7114         (ctzsi2, clzsi2, bsr): New.
7115
7116 2003-02-04  Richard Henderson  <rth@redhat.com>
7117
7118         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
7119         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
7120         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
7121         (ffsdi2): Use popcount instead of unspec.
7122         (popcountdi2): Rename from *popcnt.
7123         (ctzdi2, clzdi2, getf_exp_tf): New.
7124
7125 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
7126
7127         * genconfig.c (main): Generate CC0_P.
7128         * rtl.h (CC0_P): Remove.
7129
7130 2003-02-04  Richard Henderson  <rth@redhat.com>
7131
7132         * libgcc2.h, libgcc2.c (__ffsSI2): New.
7133         (__ffsDI2): Rename from __ffsdi2.
7134         * mklibgcc.in (lib2funcs): Add _ffssi2.
7135
7136 2003-02-04  Richard Henderson  <rth@redhat.com>
7137
7138         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
7139         rounds with a "bit table" lookup.
7140
7141 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7142
7143         * reload.c (find_reloads): Do not use the mode specified in the insn
7144         pattern as reload mode for address operands.  Do not generate optional
7145         reloads for operands where a mandatory reload was already pushed.
7146
7147 2003-02-04  Richard Henderson  <rth@redhat.com>
7148
7149         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
7150         builtins instead of inline assembly.
7151
7152 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
7153
7154         PR c/9376
7155         * libgcc2.c (__subvdi3): Fix typo.
7156
7157 2003-02-04  Jan Hubicka  <jh@suse.cz>
7158
7159         * i386.md (movti_rex64):  Fix constraint.
7160
7161 2003-02-04  Jan Hubicka  <jh@suse.cz>
7162
7163         * i386.md (vector push splitters):  Fix typo in resolving conflict.
7164
7165 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
7166
7167         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
7168
7169 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
7170
7171         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
7172         for recent libstdc++.  Remove formatting cruft.
7173
7174 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
7175
7176         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
7177         attribute even if input file name is absolute, but one of the
7178         includes is relative.
7179
7180 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
7181
7182         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
7183         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
7184         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
7185
7186 2003-02-03  Richard Henderson  <rth@redhat.com>
7187
7188         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
7189         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
7190         return type to "int".  Shuffle declarations and undef int trap.
7191         * libgcc2.h: Remove their declarations.
7192         * optabs.c (expand_unop): Force outmode to int for bitops.
7193
7194 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
7195
7196         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
7197         coprocessor registers before floating-point registers.
7198         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
7199         to account for a previously removed register.
7200         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
7201         Delete unused macros.
7202
7203 2003-02-03  Jan Hubicka  <jh@suse.cz>
7204
7205         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
7206         (mov*_internal): Fix predicates; require one of operands to not be
7207         memory.
7208         (SSE?MMX move expanders):  Fix predicates; force one of operands to
7209         register.
7210         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
7211         (movups/movupd/movdqu patterns): Force one of operands to not be
7212         memory.
7213
7214 2003-02-03  Roger Sayle  <roger@eyesopen.com>
7215
7216         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
7217         takes a single rtx and returns it unmodified.
7218         * hooks.h (hook_rtx_rtx_identity): Prototype here.
7219         * target.h (struct gcc_target): Add "delegitimize_address"
7220         field to target structure.
7221         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
7222         for delegitimize_address target using hook_rtx_rtx_identity.
7223         (TARGET_INITIALIZER): Initialize delegitimize_address field
7224         using TARGET_DELEGITIMIZE_ADDRESS macro.
7225         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
7226         extensions of constant pool references.  Use delegitimize_address
7227         to undo the obfuscation of "-fpic".
7228         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
7229
7230         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
7231         i386_simplify_dwarf_addr.
7232         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
7233         (maybe_get_pool_constant): Likewise.
7234
7235 2003-02-03  Jan Hubicka  <jh@suse.cz>
7236
7237         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
7238
7239 2003-02-03  Jan Hubicka  <jh@suse.cz>
7240
7241         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
7242
7243 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7244
7245         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
7246         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
7247
7248 2003-02-02  Andreas Schwab  <schwab@suse.de>
7249
7250         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
7251
7252 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
7253
7254         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
7255         (epilogue_insns): Likewise.
7256
7257 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7258
7259         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
7260
7261 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7262
7263         * pa-protos.h (attr_length_millicode_call): Remove second argument.
7264         (attr_length_indirect_call, attr_length_indirect_call,
7265         attr_length_save_restore_dltp): New prototypes.
7266         * pa.c (attr_length_millicode_call): Remove second argument.  Check
7267         INSN_ADDRESSES_SET_P in distance calculation.
7268         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
7269         INSN_ADDRESSES.
7270         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
7271         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
7272         Call attr_length_call directly.
7273         (attr_length_indirect_call, output_indirect_call,
7274         attr_length_save_restore_dltp): New functions.
7275         * pa.md (attr_length_millicode_call): Drop second argument from all
7276         patterns.
7277         (return_internal_pic): Delete.
7278         (return_external_pic): Remove use of PIC register and pic operand and
7279         flag checks.
7280         (epilogue): Use return_internal for both normal and pic code.
7281         (call, call_value): Emit new 32-bit pic patterns for symref and
7282         indirect calls.  Remove uses for arg pointer and pic register.
7283         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
7284         call_reg_pic_post_reload, call_val_symref_pic,
7285         call_val_symref_pic_post_reload, call_val_reg_pic,
7286         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
7287         Implement define_split and define_peephole2 patterns for pre reload
7288         patterns.
7289         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
7290         call_value_internal_reg_64bit): Shorten names.
7291         (all call patterns): Explicitly indicate registers used and clobbered.
7292         Use attr_length_indirect_call and attr_length_save_restore_dltp for
7293         attribute length calculation.  Move code generation for indirect calls
7294         to output_indirect_call.
7295         (sibcall, sibcall_value): Don't restore PIC register.
7296         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
7297         register retore.
7298
7299 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7300
7301         * doc/install.texi (Testing): Simplify and compress instructions
7302         concerning Dejagnu.
7303
7304 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7305
7306         * collect2.c (pexecute_pid): Rename to pid.
7307         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
7308         pid.
7309
7310 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
7311
7312         * doc/extend.texi (Function Attributes): Remove documentation
7313         for PowerPC Windows NT function attributes..
7314
7315 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
7316
7317         * dwarf2out.c (gen_type_die): Check for typedefs before calling
7318         for TYPE_MAIN_VARIANT.
7319
7320 2003-02-01  Richard Henderson  <rth@redhat.com>
7321
7322         * libgcc2.c: Include auto-host.h.
7323         (ATTRIBUTE_HIDDEN): New.
7324         (__clz_tab): Don't declare here for clz and ctz.
7325         (__clzsi2, __clzdi2): Use count_leading_zeros.
7326         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
7327         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
7328         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
7329         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
7330
7331 2003-02-01  Richard Henderson  <rth@redhat.com>
7332
7333         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
7334         to the conditional.
7335         (ashlsi3_1_zext splitter): Likewise.
7336
7337 2003-02-01  Richard Henderson  <rth@redhat.com>
7338
7339         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
7340         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
7341         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
7342         return type to Wtype.
7343
7344         * libgcc-std.ver (GCC_3.4): Fix inheritance.
7345
7346         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
7347         expander input constraint.
7348
7349 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
7350
7351         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
7352         OTI_parity.
7353         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
7354         * optabs.c (widen_clz, expand_parity): New.
7355         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
7356         for libcalls to clz, ctz, popcount, and parity.
7357         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
7358         parity_optab, and set up libfunc handlers.
7359         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
7360         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
7361         __popcount_tab): New.
7362         * libgcc2.h: Declare them.
7363         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
7364         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
7365         and parity_optab.
7366         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
7367         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
7368         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
7369         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
7370         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
7371         BUILT_IN_PARITYLL): New.
7372         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
7373         and add optab argument.
7374         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
7375         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
7376         * expr.c (expand_expr): Handle them.
7377         * fold-const.c (tree_expr_nonnegative_p): Likewise.
7378         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
7379         * reload1.c (eliminate_regs): Handle them.
7380         (elimination_effects): Likewise.
7381         * function.c (instantiate_virtual_regs_1): Likewise
7382         * genattrtab.c (check_attr_value): Likewise.
7383         * simplify-rtx.c (simplify_unary_operation): Likewise.
7384         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
7385         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
7386         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
7387         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
7388         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
7389         __builtin_arm_clz.
7390         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
7391         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
7392         * doc/extend.texi (Other Builtins): Add new builtins.
7393         * doc/md.texi (Standard Names): Add new patterns.
7394
7395 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
7396
7397         * reload.c: Revert 2003-01-31 change.
7398
7399 2003-02-01  Jan Hubicka  <jh@suse.cz>
7400
7401         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
7402
7403 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
7404
7405         * flags.h (flag_volatile): Remove declaration.
7406         (flag_volatile_global, flag_volatile_static): Likewise.
7407         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
7408         * toplev.c (flag_volatile): Remove definition.
7409         (flag_volatile_global, flag_volatile_static): Likewise.
7410         (f_options): Remove corresponding entries here.
7411         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
7412         or flag_volatile_static.
7413         * doc/invoke.texi: Remove documentation of -fvolatile,
7414         -fvolatile-global and -fvolatile-static.
7415
7416 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7417
7418         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
7419         updating of total_code_bytes from prologue to epilogue.
7420
7421 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
7422
7423         * reload.c (find_reloads): Do not use the mode specified in the insn
7424         pattern as reload mode for address operands.  Do not generate optional
7425         reloads for operands where a mandatory reload was already pushed.
7426         Generate optional reloads only in the final pass though find_reloads.
7427         (have_replacement_p): New function.
7428
7429 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7430
7431         * doc/install.texi (Testing): Remove a reference to our obsolete
7432         /testresults web pages and strip redundant information concerning
7433         test results.
7434         (Binaries): Refer to Microsoft Windows instead of listing all
7435         possible variants.
7436
7437 2003-02-01  Jan Hubicka  <jh@suse.cz>
7438
7439         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
7440         RTL chain.
7441
7442         * combine.c (simplify_set): Reverse order of ragumetns to
7443         REG_CANNOT_CHANGE_MODE_P
7444         * df.c (df_def_record_1): Likewise.
7445         * recog.c (register_operand): Likewise.
7446         * simplify-rtx.c (simplify_subreg): Likewise.
7447         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
7448         CANNOT_CHANGE_MODE_CLASS.
7449         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
7450         Likewise.
7451         * reload.c (push_reload): Likewise.
7452         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
7453         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
7454         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
7455         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
7456         * mips.c (mips_cannot_change_mode_class): Update.
7457         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
7458         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
7459         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
7460         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
7461         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
7462         * sh.c (sh_cannot_change_mode_class): Update.
7463         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
7464         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
7465
7466 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
7467
7468         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
7469         change to LINK_COMMAND_SPEC in gcc.c.
7470
7471 2003-01-31  Jan Hubicka  <jh@suse.cz>
7472
7473         PR c/9506
7474         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
7475
7476 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7477
7478         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
7479         duplicated code.
7480
7481 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
7482
7483         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
7484         (BINFO_ELTS): New #define.
7485         * stor-layout.c (finalize_record_size): Don't set them.
7486         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
7487         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
7488         (BINFO_LANG_ELTS): New #define.
7489         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
7490         * java/class.c (make_class): Use BINFO_ELTS.
7491         (set_super_info): Likewse.
7492         (add_interface_do): Likewise.
7493         * objc/objc-act.c (start_class): Use BINFO_ELTS.
7494
7495 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
7496
7497         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
7498         (times): Don't ever declare if not HAVE_TIMES.
7499         (clock): Don't ever declare if not HAVE_CLOCK.
7500
7501 2003-01-30  Richard Henderson  <rth@redhat.com>
7502
7503         * flow.c (update_life_info): Zap life info after cleanup_cfg.
7504         (regno_uninitialized): Use correct live at function entry set.
7505         (regno_clobbered_at_setjmp): Likewise.
7506
7507         * expr.c (store_expr): Promote all MEM intermediates to regs.
7508
7509 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7510
7511         * config/arm/arm.c: Fix comment typos.
7512         * config/arm/arm.h: Likewise.
7513         * config/arm/netbsd-elf.h: Likewise.
7514         * config/arm/netbsd.h: Likewise.
7515
7516 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
7517
7518         * gengtype.c (struct walk_type_data): Add needs_cast_p.
7519         (walk_type): Set needs_cast_p in walk_type_data.
7520         (write_types_process_field): Supply casts when required to suppress
7521         warnings.
7522         (write_root): Cast gt_pch_n_S to suppress warning.
7523         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
7524         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
7525         when they might exist.
7526         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
7527         insn-conditions.o, and rs6000.o.
7528
7529 2003-01-30  Richard Henderson  <rth@redhat.com>
7530
7531         * ggc-page.c (G.context_depth_allocations): New.
7532         (G.context_depth_collections): New.
7533         (alloc_page): Set G.context_depth_allocations.
7534         (ggc_collect): Set G.context_depth_collections.
7535         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
7536         (ggc_pop_context): Early exit for no allocations or collections.
7537
7538 2003-01-30  Richard Henderson  <rth@redhat.com>
7539
7540         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
7541
7542 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
7543
7544         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
7545         size, the link register is always saved if any other register is
7546         saved.
7547
7548 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7549
7550         * config/h8300/h8300-protos.h: Update the prototype for
7551         compute_plussi_cc.
7552         (cpp_reader): Declare before it is used.
7553         * config/h8300/h8300.c (compute_plussi_cc): Change the return
7554         type to int.
7555         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
7556         see an unknown H8 variant.
7557
7558 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
7559
7560         PR target/9316
7561         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
7562         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
7563         * config/rs6000/t-rtems: New file. multilib variants to match OS.
7564         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
7565         rs6000/t-ppcgas so we get the desired multilibs.
7566
7567 2003-01-30  Nick Clifton  <nickc@redhat.com>
7568
7569         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
7570         when popping saved IP register off the stack.
7571
7572 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7573
7574         * config/rs6000/aix43.h: Fix comment typos.
7575         * config/rs6000/aix51.h: Likewise.
7576         * config/rs6000/aix52.h: Likewise.
7577         * config/rs6000/altivec.h: Likewise.
7578         * config/rs6000/rs6000.c: Likewise.
7579         * config/rs6000/rs6000.h: Likewise.
7580         * config/rs6000/rs6000.md: Likewise.
7581         * config/rs6000/spe.md: Likewise.
7582
7583 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
7584
7585         * c-common.c (builtin_define_float_constants): Define
7586         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
7587
7588 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7589
7590         * config/sh/lib1funcs.asm: Fix comment typos.
7591         * config/sh/linux.h: Likewise.
7592         * config/sh/sh.c: Likewise.
7593         * config/sh/sh.md: Likewise.
7594
7595 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
7596
7597         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
7598
7599 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
7600
7601         * config/fp-bit.h (__make_dp): Declare if TMODES.
7602
7603 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
7604
7605         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
7606         general_operand_src and general_operand_dst.
7607
7608 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
7609
7610         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
7611         Return true for variable sized types.
7612         (rs6000_va_arg): Handle variable sized types passed by reference
7613         on non-SVR4 ABI.
7614
7615 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
7616
7617         * arm.c (arm_legtimize_address): New function.
7618         * arm-protos.h (arm_legtimize_address): Add prototype.
7619         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
7620         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
7621         do ... while (0)
7622
7623 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
7624
7625         PR bootstrap/9296
7626         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
7627         depended on it being defined until now.
7628
7629 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
7630
7631         PR target/9295
7632         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
7633         RTEMS code knows which C++ initialization style the toolset
7634         configuration is using.
7635
7636 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
7637
7638         PR bootstrap/9293
7639         * config/m68k/t-crtstuff: Replace spaces with tabs, add
7640          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
7641
7642 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
7643
7644         PR bootstrap/9292
7645         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
7646         RTEMS threads.
7647         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
7648
7649 2003-01-29  Nick Clifton  <nickc@redhat.com>
7650
7651         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
7652         not $(srcdir).
7653
7654 2003-01-29  Andrew Haley  <aph@redhat.com>
7655
7656         * tree-inline.c (walk_tree): Add CHAR_TYPE.
7657
7658 2003-01-29  Jan Hubicka  <jh@suse.cz>
7659
7660         * i386.md (subdi3_carry_rex64): Fix typo.
7661
7662 2003-01-28  Stan Shebs  <shebs@apple.com>
7663
7664         * coretypes.h (cpp_reader): Forward declare struct.
7665         * c-pragma.h (cpp_reader): Remove forward declaration.
7666         * hashtable.h (cpp_reader): Likewise.
7667         * scan.h (cpp_reader): Likewise.
7668         * tree.h (cpp_reader): Likewise.
7669         * config/darwin-protos.h (cpp_reader): Likewise.
7670         * config/arm/arm-protos.h (cpp_reader): Likewise.
7671         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
7672         struct cpp_reader in prototypes.
7673
7674 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
7675
7676         * doc/install.texi: Add documentation for installation into
7677         tooldirs and with DESTDIR.
7678
7679 2003-01-28  Richard Henderson  <rth@redhat.com>
7680
7681         * config.gcc (ia64*-*-aix*): Remove.
7682         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
7683         * config/ia64/unwind-aix.c: Remove file.
7684
7685 2003-01-28  Andreas Schwab  <schwab@suse.de>
7686
7687         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
7688         register.
7689         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
7690         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
7691         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
7692         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
7693         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
7694         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
7695         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
7696
7697 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
7698
7699         * combine.c (nonzero_bits): Fix check for negative divide operands.
7700
7701 2003-01-28  Richard Henderson  <rth@redhat.com>
7702
7703         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
7704         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
7705
7706 2003-01-28  Richard Henderson  <rth@redhat.com>
7707
7708         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
7709
7710         * config/cris/cris.c (cris_address_cost): Make static.
7711         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
7712         * config/cris/cris.h (ADDRESS_COST): Remove.
7713         * config/cris/cris-protos.h: Update.
7714
7715 2003-01-23  Mike Stump  <mrs@apple.com>
7716
7717         * regclass.c (init_reg_autoinc): New function.
7718         (regclass): Move initialization of forbidden_inc_dec_class from
7719         here...
7720         (init_regs): to here.  Avoids reinitialization for each function,
7721         saving compilation time.
7722
7723 2003-01-28  Jason Merrill  <jason@redhat.com>
7724
7725         * cpplib.h (struct cpp_options): Add warn_deprecated field.
7726         * cppinit.c (cpp_create_reader): Turn it on by default.
7727         * c-opts.c (c_common_decode_option): Set it.
7728         * cpplib.c (do_pragma_once): Only complain about #pragma once
7729         if warn_deprecated is set.
7730
7731 2003-01-28  Dale Johannesen  <dalej@apple.com>
7732
7733         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
7734         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
7735         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
7736
7737 2003-01-28  Richard Henderson  <rth@redhat.com>
7738
7739         * target.h (targetm.address_cost): New.
7740         * target-def.h (TARGET_ADDRESS_COST): New.
7741         (TARGET_RTX_COSTS): Uncomment.  Oops.
7742         * cse.c (address_cost): Use new target hook.
7743         (default_address_cost): New.
7744         * output.h (default_address_cost): Declare.
7745         * hooks.c (hook_int_rtx_0): New.
7746         * hooks.h (hook_int_rtx_0): Declare.
7747         * loop.c (combine_givs_p): Remove if 0 code.
7748         * system.h (ADDRESS_COST): Poison.
7749
7750         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
7751         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
7752         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
7753         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
7754         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
7755         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
7756         config/xtensa/xtensa.c, config/xtensa/xtensa.h
7757         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
7758         (ADDRESS_COST): Remove.
7759
7760         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
7761         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
7762         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
7763         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
7764         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
7765         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
7766         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
7767         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
7768         config/mips/mips.c, config/mips/mips.h,
7769         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
7770         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
7771         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
7772         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
7773         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
7774         config/vax/vax.c, config/vax/vax.h
7775         (foo_address_cost): Make static.
7776         (TARGET_ADDRESS_COST): New.
7777         (ADDRESS_COST): Remove.
7778
7779         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
7780         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
7781         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
7782         config/stormy16/stormy16.h
7783         (ADDRESS_COST): Move code ...
7784         (foo_address_cost): ... here.
7785         (TARGET_ADDRESS_COST): New.
7786
7787         * config/m32r/m32r.c (m32r_address_cost): Remove.
7788         * config/m32r/m32r-protos.h: Update.
7789
7790         * config/mmix/mmix.c (mmix_address_cost): Remove.
7791         * config/mmix/mmix-protos.h: Update.
7792
7793         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
7794         mn10300_address_cost; move unsig allocation ...
7795         (mn10300_address_cost): ... here.
7796         (TARGET_ADDRESS_COST): New.
7797         * config/mn10300/mn10300-protos.h: Update.
7798         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
7799
7800         * doc/tm.texi: Update.
7801
7802 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
7803
7804         * haifa-sched.c (schedule_insn): Return necessary cycle advance
7805         after issuing the insn.
7806         (rank_for_schedule): Make a insn with /S the highest priority
7807         insn.
7808         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
7809         (choose_ready): Check SCHED_GROUP_P.
7810         (schedule_block): Advance cycle after issuing insn if it is
7811         necessary.  Don't reorder insns if there is an insn with /S.
7812         (set_priorities): Ignore schedule groups.
7813
7814         * sched-deps.c (remove_dependence, group_leader): Remove the
7815         functions.
7816         (add_dependence): Ignore schedule groups.
7817         (set_sched_group_p): Don't make copy of dependencies from previous
7818         insn of the schedule group.  Add anti-dependency to the previous
7819         insn of the schedule group.
7820         (compute_forward_dependences): Ignore schedule groups.
7821
7822         * sched-ebb.c (init_ready_list): Ignore schedule groups.
7823
7824         * sched-rgn.c (init_ready_list): Ditto.
7825         (can_schedule_ready_p): Ditto.
7826
7827 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
7828
7829         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
7830         register to another one.
7831
7832 2003-01-28  Richard Henderson  <rth@redhat.com>
7833
7834         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
7835
7836 2003-01-28  Roger Sayle  <roger@eyesopen.com>
7837
7838         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
7839
7840 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
7841
7842         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
7843         class contains a floating-point register, return the size of the
7844         mode in half words.
7845
7846 2003-01-28  Jan Hubicka  <jh@suse.cz>
7847
7848         * i386.c (ix86_carry_flag_operator):  New predicate.
7849         (fcmov_operator): Fix whitespace.
7850         (ix86_expand_carry_flag_compare):  Deal with floating point.
7851         (ix86_expand_int_movcc): Deal with fp; update insn expansion
7852         (ix86_expand_int_addcc): Likewise.
7853         (ix86_expand_strlensi_unroll_1): likewsie.
7854         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
7855         * i386.md (add?i_carry_rex64): Use new predicate.
7856         (sub?i3_carry_rex64): Likewise.
7857         (x86_mov?icc_0_m1*): Likewise.
7858
7859 2003-01-28  Andreas Schwab  <schwab@suse.de>
7860
7861         * cfgloopmanip.c (create_preheader): Initialize src to avoid
7862         warning.
7863
7864         * expmed.c (emit_store_flag): Fix cast to avoid sign
7865         comparison warning.
7866
7867         * combine.c (force_to_mode): Add cast to fix warning when
7868         STORE_FLAG_VALUE is negative.
7869
7870 2003-01-27  Richard Henderson  <rth@redhat.com>
7871
7872         * Makefile.in (cse.o): Depend on TARGET_H.
7873         * cse.c (rtx_cost): Use targetm.rtx_costs.
7874         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
7875         * doc/tm.texi: Update.
7876
7877         * target.h (targetm.rtx_costs): New.
7878         * target-def.h (TARGET_RTX_COSTS): New.
7879         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
7880         * hooks.h: Update.
7881
7882         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
7883         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
7884         * config/alpha/alpha.h (PROCESSOR_MAX): New.
7885         (CONST_COSTS, RTX_COSTS): Remove.
7886
7887         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
7888         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
7889         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
7890         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
7891         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
7892         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
7893         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
7894         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
7895         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
7896         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
7897         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
7898         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
7899         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
7900         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
7901         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
7902         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
7903         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
7904         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
7905         config/v850/v850.c, config/v850/v850.h,
7906         config/xtensa/xtensa.c, config/xtensa/xtensa.h
7907         (CONST_COSTS, RTX_COSTS): Move code ...
7908         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
7909
7910         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
7911         (arm_rtx_costs, TARGET_RTX_COSTS): New.
7912         * config/arm/arm-protos.h: Update.
7913         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
7914
7915         * config/avr/avr.h (CONST_COSTS): Move code ...
7916         * config/avr/avr.c (avr_rtx_costs): ... here.
7917         (default_rtx_costs): Make static.
7918         * config/avr/avr-protos.h: Update.
7919
7920         * config/h8300/h8300.c (const_costs): Make static.
7921         (h8300_and_costs, h8300_shift_costs): Likewise.
7922         * config/h8300/h8300-protos.h: Update.
7923
7924         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
7925         (CONST_COSTS): Move code ...
7926         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
7927         default_rtx_costs; update for signature change.
7928         * config/ip2k/ip2k-protos.h: Update.
7929
7930         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
7931         (CONST_COSTS): Move code ...
7932         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
7933         (TARGET_RTX_COSTS): New.
7934         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
7935         * config/m68hc11/m68hc11-protos.h: Update.
7936
7937         * config/m68k/m68k.c (const_int_cost): Make static.
7938         * config/m68k/m68k-protos.h: Update.
7939
7940         * config/mcore/mcore.c (mcore_const_costs): Make static.
7941         (mcore_and_cost, mcore_ior_cost): Likewise.
7942         * config/mcore/mcore-protos.h: Update.
7943
7944         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
7945         (mmix_rtx_cost_recalculated): Remove.
7946         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
7947         * config/mmix/mmix-protos.h: Update.
7948
7949         * config/sh/sh.c (shiftcosts): Make static.
7950         (addsubcosts, andcosts, multcosts): Likewise.
7951         * config/sh/sh-protos.h: Update.
7952
7953         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
7954         (sparc_rtx_costs): Make static; update for change in signature.
7955         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
7956         * config/sparc/sparc-protos.h: Update.
7957
7958         * config/v850/v850.c (const_costs): Make static.
7959         * config/v850/v850-protos.h: Update.
7960
7961         * config/vax/vax.h (RTX_COSTS): Remove.
7962         (CONST_COSTS): Move code ...
7963         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
7964         from vax_rtx_cost.
7965         (vax_rtx_costs, TARGET_RTX_COSTS): New.
7966
7967 2003-01-27  Richard Henderson  <rth@redhat.com>
7968
7969         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
7970         * config/vax/vax-protos.h: Update.  Really.
7971
7972 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
7973
7974         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
7975         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
7976         zero if no hardware floating point.
7977         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
7978         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
7979         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
7980         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
7981         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
7982         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
7983         even FP registers on N32 and N64.
7984         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
7985         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
7986         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
7987         even-register-like alignment to 128-bit arguments.
7988         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
7989         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
7990         on N32 or N64.
7991         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
7992         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
7993         (TPBIT): Set to tp-bit.c.
7994         (tp-bit.c): Create out of fp-bit.c.
7995
7996 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7997
7998         * c-parse.in: Remove '%expect 32' directive in objc mode.
7999
8000 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
8001
8002         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
8003         (LIBGCOV): New variable.
8004         (libgcc.mk): Add LIBGCOV.
8005         (LIBGCC_DEPS): Add libgcov.c.
8006         (libgcov.a): New target.
8007         (clean): Remove libgcov.a.
8008         (install-libgcc): Do libgcov too.
8009         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
8010         with libgcov.a.
8011         * libgcc2.c (L_gcov): Move into ...
8012         * libgcov.c: ... here. New file.
8013         * mklibgcc.in: Add libgcov rules.
8014         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
8015
8016         * doc/invoke.texi (profile-arcs, test-coverage): Update and
8017         clarify.
8018
8019         * profile.c (index_counts_file): Remove duplicate check for open file.
8020
8021 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
8022
8023         * gcc/doc/invoke.texi (Optimization Options): Group together
8024         optional and experimental flags.  Move trapv and bounds-check
8025         out of this section.  Group floating point flags together.
8026         (Code Gen Options): Move trapv and bounds-check to here.
8027
8028 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
8029
8030         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
8031
8032 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
8033
8034         PR optimization/9090
8035         * function.c (purge_addressof_1): After pushing an addressed register
8036         onto the stack, simplify the result.
8037
8038 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8039
8040         * doc/extend.texi: Fix typo.
8041
8042 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8043
8044         * doc/cppopts.texi: Fix typo.
8045         * doc/objc.texi: Likewise.
8046         * doc/passes.texi: Likewise.
8047
8048 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
8049
8050         * real.c (ibm_extended_format): Add 53 to minimum exponent.
8051         (encode_ibm_extended): Adjust.
8052
8053 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
8054
8055         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
8056         timevar_id enumerations.
8057
8058 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8059
8060         * combine.c: Fix formatting.
8061
8062 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8063
8064         * doc/gccint.texi: Update the copyright.
8065
8066 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8067
8068         * doc/cpp.texi: Fix typos.
8069         * doc/extend.texi: Likewise.
8070         * doc/gty.texi: Likewise.
8071         * doc/install.texi: Likewise.
8072         * doc/passes.texi: Likewise.
8073         * doc/rtl.texi: Likewise.
8074         * doc/tm.texi: Likewise.
8075
8076 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8077
8078         * config/ia64/fde-glibc.c: Fix comment typos.
8079         * config/ia64/hpux.h: Likewise.
8080         * config/ia64/ia64.c: Likewise.
8081         * config/ia64/ia64.h: Likewise.
8082         * config/ia64/unwind-ia64.c: Likewise.
8083
8084 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8085
8086         * config/i386/i386-modes.def: Fix comment typos.
8087         * config/i386/i386.c: Likewise.
8088         * config/i386/i386.md: Likewise.
8089
8090 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
8091
8092         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
8093         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
8094         ASM_FINISH_DECLARE_OBJECT before defining it.
8095         * toplev.c (rest_of_decl_compilation):  Don't define
8096         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
8097         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
8098         parameters for DWARF2 targets because they _are_ used.
8099
8100 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
8101
8102         * fp-bit.h: Define macros for TFmode floating-point constants
8103         in IBM-extended TFmode types.
8104         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
8105         widths.
8106         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
8107         TFmode type.
8108
8109         * config/fp-bit.h: Define macros for TFmode floating-point
8110         constants in IEEE quad TFmode type.  Declare functions according
8111         to L_ macros.
8112         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
8113         (TFtype, TItype, UTItype): Define if TMODES is defined.
8114         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
8115         (F_T_BITOFF, D_T_BITOFF): Define.
8116         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
8117         guaranteed to be wide enough.
8118         * config/fp-bit.c: Check for L_ macros for tf functions.
8119         (__thenan_tf): New.
8120         (nan): Adjust.
8121         (pack_d, unpack_d): Support IEEE 854 quad type.
8122         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
8123         from FRAC_NBITS, FRAC_BITS and NGARDS.
8124         (usi_to_float): Cast constants to be shifted to fractype
8125         instead of assuming long long is wide enough.
8126         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
8127
8128 2003-01-26  Andreas Jaeger  <aj@suse.de>
8129
8130         * df.c: Remove prototype of unused function df_regno_rtl_debug.
8131
8132 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
8133
8134         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
8135         (DBBIT_FUNCS): Added _df_to_tf.
8136         (TPBIT_FUNCS): New.
8137         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
8138         (LIBGCC_DEPS): Added TPBIT.
8139         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
8140
8141         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
8142         been able to move the result to target.
8143
8144         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
8145         for the appropriate mode.
8146
8147         * calls.c (emit_library_call_value_1): Handle return values
8148         in a PARALLEL.
8149
8150         * rtl.c (get_mode_alignment): Moved to...
8151         * stor-layout.c: ... here.
8152
8153         * print-rtl.c (print_rtx): Don't print MEM details in
8154         GENERATOR_FILEs.
8155
8156 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
8157
8158         * df.h: Update comments, tidy formatting.
8159         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
8160         REVERSE, UNION, INTERSECTION.  All uses updated.
8161         (OLD_DF_INTERFACE): Remove.
8162         (struct insn_info): Remove commented out insn field.
8163         * df.c: Update comments, tidy formatting.
8164         (df_def_table_realloc): Remove.
8165
8166
8167 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
8168
8169         * calls.c (save_fixed_argument_area): Tidy.
8170         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
8171         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
8172         call chain loop at 1 if !try_tail_call.  Formatting.
8173         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
8174         Use save_fixed_argument_area and restore_fixed_argument_area.
8175
8176 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8177
8178         * df.c (df_uses_record): Handle CC0.
8179
8180 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
8181
8182         * reload.c (maybe_memory_address_p): New function.
8183         (find_reloads_address): Use it instead of memory_address_p.
8184
8185 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
8186
8187         * final.c (shorten_branches): Align the address of code label
8188         when computing initial lengths and addresses.
8189
8190 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8191
8192         * config/m68hc11/m68hc11.md: Fix a comment typo.
8193
8194 2003-01-25  Andreas Jaeger  <aj@suse.de>
8195
8196         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
8197         TARGET_MACHO.
8198
8199 2003-01-25  Roger Sayle  <roger@eyesopen.com>
8200
8201         * gcse.c (bypass_last_basic_block): New global variable.
8202         (bypass_block):  Use redirect_edge_and_branch_force to redirect
8203         fall-through edges.  Use bypass_last_basic_block to determine
8204         which blocks have valid PRE information.
8205         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
8206
8207 2003-01-25  Jan Hubicka  <jh@suse.cz>
8208
8209         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
8210
8211 2003-01-25  Jan Hubicka  <jh@suse.cz>
8212                               Eric Botcazou <ebotcazou@libertysurf.fr>
8213         PR opt/8492
8214         * gcse.c (one_cprop_pass): Delete unreachable blocks.
8215
8216 2003-01-25  Richard Henderson  <rth@redhat.com>
8217
8218         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
8219         from ia64_aix_select_rtx_section.
8220         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
8221         instead of saving and restoring flag_pic.
8222         (ia64_rwreloc_unique_section): Similarly.
8223         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
8224         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
8225         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
8226         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
8227
8228 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8229
8230         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
8231         comment.
8232
8233 2003-01-25  Richard Henderson  <rth@redhat.com>
8234
8235         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
8236
8237 2003-01-25  Kelley Cook <kelleycook@comcast.net>
8238
8239         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
8240
8241 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
8242
8243         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
8244         type for bitmaps.  Use unsigned long.
8245         (nBITMAP_WORD_BITS): New macro.
8246         (BITMAP_WORD_BITS): New macro.
8247         (rest of file): Use it.
8248         * bitmap.c: Use it.
8249
8250 2003-01-25  Richard Henderson  <rth@redhat.com>
8251
8252         2002-02-19  Robert Lipe  <robertlipe@usa.net>
8253         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
8254
8255 2003-01-25  Roger Sayle  <roger@eyesopen.com>
8256
8257         * builtins.c (purge_builtin_constant_p): Scan insn stream
8258         sequentially rather than by basic block.
8259         * function.c (purge_addressof): Simplify test with INSN_P.
8260
8261 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8262
8263         * combine.c (simplify_comparison, case AND): Remove a redundant test.
8264
8265 2003-01-25  Roger Sayle  <roger@eyesopen.com>
8266
8267         * function.h (struct function): New field calls_constant_p.
8268         (current_function_calls_constant_p): New macro for above.
8269         * function.c (prepare_function_start): Initialize calls_eh_return
8270         and calls_constant_p.
8271         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
8272         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
8273         when the current_function_calls_constant_p.
8274         * integrate.c (expand_inline_function): Set calls_constant_p if
8275         the function being inlined has calls_constant_p set.
8276
8277 2003-01-25  Roger Sayle  <roger@eyesopen.com>
8278
8279         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
8280         optimizing, even if flag_gcse is true.
8281         * toplev.c (rest_of_compilation): purge_builtin_constant_p
8282         only needs to be called when "optimize > 0 && flag_gcse".
8283
8284 2003-01-25  Roger Sayle  <roger@eyesopen.com>
8285
8286         * stmt.c (emit_case_bit_tests): New routine to implement suitable
8287         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
8288         (case_bit_test_cmp): New comparison function for "qsort" to order
8289         case_bit_tests by decreasing number of destination nodes.
8290         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
8291         (expand_end_case_type): Use emit_case_bit_tests to implement
8292         suitable switch statments.
8293         (CASE_USE_BIT_TESTS): New target macro to disable the above.
8294         * Makefile.in (stmt.o): Add dependency on optab.h.
8295         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
8296
8297 2003-01-23  Andreas Schwab  <schwab@suse.de>
8298
8299         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
8300         __do_global_ctors_aux hidden global and don't put it in
8301         .init_array.
8302         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
8303         instead so that it comes first.
8304
8305 2003-01-25  Jan Hubicka  <jh@suse.cz>
8306
8307         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
8308         subreg is read/modify.
8309
8310 2003-01-25  Jan Hubicka  <jh@suse.cz>
8311
8312         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
8313         do libcall for large blocks.
8314         * i386.md (comi patterns): Set type to ssecomi.
8315         (sse2_unpck?pd): Fix mode of vec_select.
8316
8317         * cse.c: Include except.h
8318         (cse_set_around_loop):  Do not create new basic blocks.
8319         * Makefile.in (cse.o): Add dependnecy on except.h
8320
8321 2003-01-25  Jan Hubicka  <jh@suse.cz>
8322
8323         * builtins.c (fold_trunc_transparent_mathfn): New function.
8324         (fold_builtin): Use it.
8325         * convert.c (convert_to_real): Re-enable code to convert
8326         math functions; add support for floor familly functions.
8327
8328 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8329
8330         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
8331         dependencies on coretypes.h and $(TM_H).
8332
8333 2003-01-25  Jan Hubicka  <jh@suse.cz>
8334
8335         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
8336
8337 2003-01-24  Stuart Hastings  <stuart@apple.com>
8338
8339         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
8340
8341 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8342
8343         * config/c4x/c4x.md (UNSPEC_BU): New constants.
8344         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
8345         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
8346         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
8347         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
8348         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
8349         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
8350         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
8351
8352 2003-01-24  Jan Hubicka  <jh@suse.cz>
8353
8354         * emit-rtl.c (reg_attrs_htab): New static variable.
8355         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
8356         functions.
8357         (reg_rtx): Do not maintain regno_decl.
8358         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
8359         set_mem_attrs_from_reg): New global function.
8360         (init_emit): Do not initialize regno_decl.
8361         (init_emit_once): initialize reg_attrs_htab.
8362         * final.c (alter_subreg): Do not replace REG by SUBREG.
8363         (gen_mem_expr_from_op): Improve output.
8364         (output_asm_operands): Likewise.
8365         * function.c (assign_params): Do not set REGNO_DECL.
8366         * function.h (struct function): Kill regno_decl.
8367         (REGNO_DECL): Kill.
8368         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
8369         * print_rtl.c (print_rtx): Output REG information.
8370         * regclass.c (reg_scan_mark_refs): Update attrs.
8371         * reload1.c (alter_reg): Likewise.
8372         * simplify_rtx.c (simplify_subreg): Likewise.
8373         * stmt.c (expand_decl): Likewise.
8374         * rtl.def (REG): Add new field.
8375         * rtl.h (struct reg_attrs): New.
8376         (rtunion_def): At rtreg.
8377         (X0MEMATTR): Add checking.
8378         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
8379         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
8380         Declare.
8381         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
8382
8383 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
8384
8385         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
8386         (xtensa_emit_call, print_operand): Fix printf format strings
8387         to avoid compile warnings.
8388         (xtensa_function_prologue, xtensa_function_epilogue): Change type
8389         of "size" argument to HOST_WIDE_INT to fix compile warnings.
8390         * config/xtensa/xtensa-protos.h
8391         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
8392
8393 2003-01-24  Jan Hubicka  <jh@suse.cz>
8394
8395         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
8396         (implicit_built_in_decls): New global array.
8397         (mathfn_built_in): New global function.
8398         (fold_trunc_transparent_mathfn): New static function
8399         (expand_builtin_strstr, expand_bultin_strchr,
8400         expand_builtin_strpbrk, expand_builtin_strcpy,
8401         expand_builtin_strncpy, expand_bultin_strcmp,
8402         expand_bultin_strncat, expand_builtin_fputs): Use
8403         implicint_built_in_decls.
8404         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
8405         * builtins.def: Fix comments.
8406         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
8407         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
8408         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
8409         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
8410         (DEF_C99_C90RES_BULTIN): New.
8411         (*f, *l builtins): Update.
8412         * c-common.c (DEF_BUILTIN): Initialize implicit array.
8413         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
8414         * convert.c (strip_float_extensions): New global function.
8415         * tree.h (DEF_BUILTIN): Accept 10 arguments.
8416         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
8417         Declare.
8418         * java/builtins.c (define_builtin): Handle implicit.
8419         (DEF_BUILTIN): Update.
8420         * tm.texi (TARGET_C99_FUNCTIONS): Document.
8421         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
8422         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
8423         when using glibc2.
8424
8425 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
8426
8427         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
8428         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
8429         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
8430         * config/xtensa/crti.asm: New file.
8431         * config/xtensa/crtn.asm: New file.
8432         * config/xtensa/t-elf: New file.
8433         * config/xtensa/t-linux: New file.
8434         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
8435         Move various CFLAGS settings to new t-elf file.
8436
8437 2003-01-24  Richard Henderson  <rth@redhat.com>
8438
8439         PR optimization/4382
8440         * tree-inline.c (find_builtin_longjmp_call_1): New.
8441         (find_builtin_longjmp_call): New.
8442         (inlinable_function_p): Use it.
8443
8444 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8445
8446         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
8447         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
8448         * config/i386/i386.c (function_arg_pass_by_reference): New.
8449         (ix86_va_arg): Support arguments passed by reference.
8450
8451 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8452
8453         * cfgloopanal.c: New file.
8454         * cfgloopmanip.c: New file.
8455         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
8456         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
8457         cfglayout.o): Add dependency on cfgloop.h.
8458         (cfgloop.o): Add flags.h dependency.
8459         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
8460         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
8461         (struct loop, struct loops, flow_loops_find, flow_loops_update,
8462         flow_loops_free, flow_loops_dump, flow_loop_dump,
8463         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
8464         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
8465         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
8466         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
8467         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
8468         find_common_loop, verify_loop_structure): Declarations moved to ...
8469         * cfgloop.h: New file.
8470         * bb-reorder.c (reorder_basic_blocks): Modified.
8471         * cfglayout.c: Include cfgloop.h.
8472         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
8473         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
8474         (break_superblocks): New static function.
8475         (cfg_layout_finalize): Use it.
8476         (cfg_layout_split_block): New function.
8477         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
8478         fields.
8479         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
8480         changed.
8481         (cfg_layout_split_block): Declare.
8482         * cfgloop.c: Include cfgloop.h and flags.h.
8483         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
8484         get_loop_body): Avoid signed versus unsigned comparison warnings.
8485         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
8486         loop_latch_edge): Modified.
8487         (verify_loop_structure): Modified to use flags stored in loop structure;
8488         check irreducible loops.
8489         (cancel_loop, cancel_loop_tree): New functions.
8490         (estimate_probability): Use loop analysis code for predictions.
8491         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
8492         warnings.
8493         * doloop.c: Include cfgloop.h.
8494         * loop.c: Include cfgloop.h.
8495         * predict.c: Include cfgloop.h.
8496         * toplev.c: Include cfgloop.h.
8497         * unroll.c: Include cfgloop.h.
8498         * tracer.c (tracer): Modified.
8499
8500 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8501
8502         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
8503
8504 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
8505
8506         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
8507         * configure: Regenerate.
8508
8509         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
8510         (tls_symbolic_reference_mentioned_p): Add prototype.
8511         (s390_tls_get_offset): Add prototype.
8512         (emit_pic_move): Remove prototype, replace by ...
8513         (emit_symbolic_move): .. this new prototype.
8514
8515         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
8516         (tls_model_chars): New global variable.
8517         (s390_encode_section_info): Encode TLS model.
8518         Use targetm.binds_local_p to check for local symbols.
8519         (s390_strip_name_encoding): New function.
8520         (TARGET_STRIP_NAME_ENCODING): Define.
8521
8522         (get_thread_pointer): New function.
8523         (legitimize_tls_address): New function.
8524         (legitimize_address): Call it.
8525         (emit_pic_move): Remove, replace by ...
8526         (emit_symbolic_move): ... this new function.
8527
8528         (larl_operand): Handle TLS operands.
8529         (legitimate_constant_p): Likewise.
8530         (s390_decompose_address): Likewise.
8531         (s390_cannot_force_const_mem): New function.
8532         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8533
8534         (s390_output_symbolic_const): Handle TLS unspecs.
8535         (print_operand): New code 'J'.
8536         (machine_function): Add struct member 'some_ld_name'.
8537         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
8538
8539         (enum s390_builtin): New type.
8540         (code_for_builtin_64, code_for_builtin_31): New global variables.
8541         (s390_init_builtins, s390_expand_builtin): New functions.
8542         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
8543
8544         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
8545         (ASM_OUTPUT_LABELREF): Define.
8546         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
8547
8548         * config/s390/s390.md: Define TLS UNSPEC constants.
8549         ("movdi", "movsi"): Handle TLS operands.
8550         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
8551         ("*tls_load_64", "*tls_load_31"): New insns.
8552         ("call_value_tls", "call_value_tls_exp"): New expanders.
8553         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
8554         "bas_tls_64", "bas_tls_31"): New insns.
8555
8556 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
8557
8558         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
8559         spe ABI is configured, if requested.
8560
8561 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8562
8563         * doc/passes.texi: Fix typo.
8564
8565 2003-01-24  Andreas Schwab  <schwab@suse.de>
8566
8567         * stor-layout.c (excess_unit_span): Only define if used.
8568
8569 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
8570
8571         * gcc/doc/invoke.texi (Optimization Options): List -O levels
8572         for each optimization flag.
8573
8574 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8575
8576         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
8577
8578 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8579
8580         * doc/bugreport.texi: Use @command instead of @code for commands.
8581         * doc/collect2.texi: Likewise.
8582         * doc/headerdirs.texi: Likewise.
8583         * doc/invoke.texi: Likewise.
8584         * doc/standards.texi: Likewise.
8585         * doc/tm.texi: Likewise.
8586         * doc/trouble.texi: Likewise.
8587
8588 2003-01-24  Nick Clifton  <nickc@redhat.com>
8589
8590         * config/arm/arm.c (use_return_insn): Do not use a single return
8591         instruction for interrupt handelrs which have to create a stack
8592         frame.
8593         (arm_expand_prologue): Do not pre-bias the return address of
8594         interrupt handlers which create a stack frame.
8595
8596 2003-01-24  Nick Clifton  <nickc@redhat.com>
8597
8598         * Add sh2e support:
8599
8600         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
8601
8602                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
8603                 med_cbranches.  Fix logic in short_cbranches.
8604
8605         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
8606
8607                 * config/sh/sh.md (delay for cbranch): Don't annul delay
8608                 slots on SH2e.
8609                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
8610                 cbranch with unfilled delay slot on SH2e.
8611                 (output_branch): Fill with a nop the delay slot of a
8612                 branch that required a delay slot but didn't get one.
8613
8614         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
8615
8616                 * doc/invoke.texi (SH options): Document -m2e.
8617                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
8618                 * config/sh/lib1funcs.asm: Likewise.
8619                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
8620                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
8621                 not __sh1__.
8622                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
8623                 SH2E up.
8624                 (SH3E_BIT): Renamed to...
8625                 (SH_E_BIT): ... this.  Replace all uses.
8626                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
8627                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
8628                 (TARGET_SWITCHES): Added 2e.
8629                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
8630                 (processor_type): Added PROCESSOR_SH2E.
8631                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
8632                 TARGET_SH2E, except in sqrtsf2_i.
8633                 (attribute cpu): Added sh2e.
8634                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
8635                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
8636                 * config.gcc: Add sh2e target support.
8637
8638 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
8639
8640         Rename -W to -Wextra.
8641         * c-decl.c:  Update comments.
8642         * c-typeck.c:  Likewise.
8643         * flags.h:  Likewise.
8644         * function.c:  Likewise.
8645         * stmt.c:  Likewise.
8646         * toplev.c:  Update comments.
8647         (W_options):  Add 'extra'.
8648         (display_help):  Remove '-W'.
8649         (decode_W_option):  Special warn_uninitialized treatment in the case
8650         of -Wextra.
8651         * doc/invoke.texi:  Update with new entries.
8652
8653 2003-01-23  Richard Henderson  <rth@redhat.com>
8654
8655         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
8656         in no-else-block case.  Add commentary.
8657
8658 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8659
8660         * configure.in: Revert last change.
8661
8662 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8663
8664         * configure.in: Don't include ansidecl.h in tconfig.h.
8665         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
8666         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
8667         ATTRIBUTE_UNUSED.
8668
8669         * configure: Regenerate.
8670
8671 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8672
8673         PR java/6748
8674         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
8675         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
8676         kernels.
8677
8678 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8679
8680         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
8681
8682 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
8683
8684         * genattrtab.c (write_attr_get): Mark 'insn' paramter
8685         as ATTRIBUTE_UNUSED.
8686
8687 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
8688
8689         * arm.c (thumb_base_register_rtx_p): New function.
8690         (thumb_index_register_rtx_p): New function.
8691         (thumb_legitimate_address_p): New function.
8692         (thumb_legitimate_offset_p): New function.
8693         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
8694         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
8695         definitions.
8696         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
8697         (THUMB_LEGITIMATE_OFFSET): Delte.
8698         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
8699         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
8700         (thumb_legitimate_offset_p): Likewise.
8701
8702 2003-01-23  Andreas Schwab  <schwab@suse.de>
8703
8704         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
8705
8706 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8707
8708         * fixinc/Makefile.in (FL_LIST): Revert last change.
8709
8710 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8711
8712         PR other/7341
8713         * invoke.texi (ftest-coverage): Fix broken cross-reference.
8714         Change @code to @command for gcov command.
8715
8716         * gcc.texi: Adjust title of gcov section.
8717         Adjust copyright.
8718         * gcov.texi: Likewise.
8719
8720 2003-01-22  Roger Sayle  <roger@eyesopen.com>
8721
8722         PR optimization/8423
8723         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
8724         its argument is constant, or 0 if !flag_gcse.
8725         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
8726         if it's argument is constant.
8727         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
8728         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
8729         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
8730         * builtins.c (purge_builtin_constant_p): New function to force
8731         instantiation of any remaining CONSTANT_P_RTX nodes.
8732         * rtl.h (purge_builtin_constant_p): Prototype here.
8733         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
8734         pass after GCSE and before loop.
8735         (flag_gcse): No longer static.
8736         * flags.h (flag_gcse): Prototype here.
8737
8738 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
8739
8740         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
8741         introduced by last change.
8742
8743 2003-01-22  Andreas Schwab  <schwab@suse.de>
8744
8745         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
8746
8747 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
8748
8749         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
8750         request a scratch reg on H8S when the shift count is 8.
8751
8752 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
8753
8754         * config/s390/s390-protos.h (preferred_la_operand_p):
8755         Remove second parameter.
8756         * config/s390/s390.c (preferred_la_operand_p): Likewise.
8757         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
8758         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
8759         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
8760         Add peepholes to transform ADD to LOAD ADDRESS.
8761
8762 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
8763
8764         * arm.c (arm_address_register_rtx_p): New function.
8765         (arm_legitimate_address_p): New function.
8766         (arm_legitimate_index_p): New function.
8767         (legitimize_pic_address): Use arm_legitimate_index_p.
8768         * arm-protos.h (arm_legtimate_address_p): Add prototype.
8769         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
8770         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
8771
8772 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
8773
8774         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
8775         * config/s390/2064.md (define_bypass): Correct 'Load' and
8776         'Load-address' bypass values.
8777
8778 2003-01-22  Andreas Schwab  <schwab@suse.de>
8779
8780         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
8781
8782 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
8783
8784         * genautomata.c (output_internal_insn_latency_func,
8785         output_print_reservation_func): Short circuit when there is no
8786         automaton to generate code for.
8787
8788 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8789
8790         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
8791         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
8792
8793 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
8794
8795         * config/rs6000/rs6000.md: Remove warning.
8796         (builtin_setjmp_receiver): Likewise.
8797         * config/darwin.c (update_stubs): Slightly improve terrible hack
8798         with identifiers.  Add comment pointing out problems with it.
8799         (update_non_lazy_ptrs): Likewise.
8800
8801 2003-01-21  Richard Henderson  <rth@redhat.com>
8802
8803         * dwarf2out.c (lookup_filename): Fix printf format warning.
8804         * system.h (fread_unlocked, fwrite_unlocked): Undef.
8805
8806         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
8807         (fixincl.o-warn, gnu-regex.o-warn): New.
8808         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
8809         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
8810         * fixinc/fixincl.c (process): Fix printf format warning.
8811
8812 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
8813
8814         * dwarf2out (output_file_names): Don't crash if called
8815         with empty file_table.
8816
8817 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
8818
8819         * genautomata.c (output_internal_insn_latency_func): Add
8820         missing break statement to generated code.
8821
8822 2003-01-21  Roger Sayle  <roger@eyesopen.com>
8823
8824         * stmt.c (same_case_target_p): New function to determine whether
8825         two case labels branch to the same target.  Split out from...
8826         (group_case_nodes): ... here.  Use same_case_target_p instead.
8827         (strip_default_case_nodes): Remove explicit case nodes
8828         that branch to the default destination.
8829         (expand_end_case_type): Call strip_default_case_nodes after
8830         group_case_nodes, to simplify the case-list before we count it.
8831         Only generate table_label RTX when actually needed.  Try to share
8832         thiscase->exit_label and thiscase->data.case_stmt.default_label
8833         when a switch has no explicit default case.  Simplify test for
8834         constant index.
8835
8836 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
8837
8838         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
8839         \t.
8840         (*negsf2_h8300hs): Likewise.
8841         (*addsi3_lshiftrt_16_zexthi): Likewise.
8842         (*iorhi3_lshiftrt_8): Likewise.
8843
8844 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
8845
8846         * dwarf2out.c (fde_table_in_use): Mark GTY.
8847         (dwarf2out_cfi_label_num): New variable, marked GTY.
8848         (dwarf2out_cfi_label): Use it instead of static label_num.
8849         * emit-rtl.c (label_num): Mark GTY.
8850
8851 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
8852
8853         * config/h8300/h8300.c (output_plussi): Support H8/300.
8854         (compute_plussi_length): Likewise.
8855         (compute_plussi_cc): Likewise.
8856         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
8857         output assembly instructions.
8858
8859 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8860
8861         * calls.c (fix_unsafe_tree): Prototype.
8862
8863         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
8864         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
8865         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
8866         c-parse.o-warn): Add -Wno-error.
8867         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
8868
8869         * configure.in (--enable-werror): Add new flag.
8870         * doc/install.texi (--enable-werror): Document.
8871         * configure: Regenerate.
8872
8873         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
8874
8875 2003-01-21  Andreas Schwab  <schwab@suse.de>
8876
8877         * genautomata.c (output_internal_insn_latency_func): Fix missing
8878         close paren in output.
8879
8880 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
8881
8882         * genautomata.c: Space savings in generated code:
8883         (output_dfa_insn_code_func): Split out the table-enlargement
8884         path to an out-of-line static function, dfa_insn_code_enlarge.
8885         (output_internal_insn_latency_func): Use a lookup table for the
8886         default latencies.
8887         (output_print_reservation_func): Use a lookup table for the
8888         strings.
8889
8890 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
8891
8892         PR opt/7507
8893         * calls.c (fix_unsafe_tree): Split out from ...
8894         (expand_call): ... here.  Use it on the function address too.
8895
8896 2003-01-20  Richard Henderson  <rth@redhat.com>
8897
8898         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
8899
8900 2003-01-20  Richard Henderson  <rth@redhat.com>
8901
8902         PR opt/7154
8903         * stmt.c (expand_asm_operands): Validize memory operands.
8904
8905 2003-01-20  Richard Henderson  <rth@redhat.com>
8906
8907         PR opt/8848
8908         * ifcvt.c (noce_process_if_block): Correct arguments to
8909         modified_between_p for no-else-block case.
8910
8911 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
8912
8913         * config/h8300/h8300.c (const_costs): Remove a warning.
8914         (output_plussi): Likewise.
8915         (compute_plussi_length): Likewise.
8916         (compute_plussi_cc): Likewise.
8917
8918 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
8919
8920         * config/h8300/h8300.md (addsi_h8300): Remove the last
8921         alternative.
8922
8923 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
8924
8925         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
8926
8927 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8928
8929         * system.h (__NO_STRING_INLINES): Define.
8930
8931 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8932
8933         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
8934         is not a scalar int mode.
8935
8936 2003-01-20  Roger Sayle  <roger@eyesopen.com>
8937
8938         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
8939         insn's notes following a substitution inside a libcall.
8940
8941 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
8942
8943         * configure.in: Check for system-provided 'uchar' type.
8944         * configure, config.in: Regenerate.
8945         * cpphash.h: Only typedef 'uchar' if the system doesn't.
8946
8947 2003-01-20  Richard Henderson  <rth@redhat.com>
8948
8949         * expr.h (MUST_PASS_IN_STACK): Move implementation...
8950         * calls.c (default_must_pass_in_stack): ... here.
8951
8952 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
8953
8954         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
8955
8956         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
8957
8958         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
8959         Wrap up definition of `insn_alts'.
8960
8961         * genattrtab.c (main): Wrap up `insn_alts'.
8962
8963 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8964
8965         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
8966         prototyping.
8967         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
8968
8969         * config.in, configure: Regenerate.
8970
8971 2003-01-20  Nick Clifton  <nickc@redhat.com>
8972
8973         * config/arm/arm.md (sibcall_epilogue): Add an
8974         UNSPEC_PROLOGUE_USE to prevent the link register from being
8975         considered dead.
8976
8977 2003-01-20  Jan Hubicka  <jh@suse.cz>
8978
8979         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
8980
8981 2003-01-20  Andreas Schwab  <schwab@suse.de>
8982
8983         * system.h: Don't declare strsignal if the decl test hasn't been
8984         run yet.
8985
8986 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
8987
8988         * config/h8300/h8300.c (notice_update_cc): Don't assume that
8989         recog_data.operands[0] is always associated with cc0.
8990
8991 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
8992
8993         * collect2.c (ldgetname): Expand declaration to prototype.
8994         * read-rtl.c (atoll): Add prototype.
8995         * system.h (strsignal): Also declare if no declaration found.
8996
8997 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
8998
8999         * config.gcc (mips64*-*-linux*): Added.
9000         * config/mips/linux64.h, config/mips/t-linux64: New file.
9001         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
9002         * config/mips/mips.c (override_options): Use it.
9003         * config/mips/mips.h (TARGET_SWITCHES): Added...
9004         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
9005         * Makefile.in (SPECS): New.
9006         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
9007         * gcc.c (process_command): Move self-spec processing past spec
9008         file loading.
9009         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
9010         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
9011         CRTSTUFF_T_CFLAGS.
9012         (SPECS): Document.
9013         * doc/invoke.texi (-mabi-fake-default): Document.
9014
9015 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
9016
9017         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
9018         z_reg, z_reg_qi): Declare static and GTY().
9019         (da_reg): Remove.
9020         (create_regs_rtx): Don't create da_reg.
9021         ("gt-m68hc11.h"): Include for GTY roots.
9022         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
9023         and GTY() here.
9024         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
9025         (m68hc11_soft_tmp_reg): Likewise.
9026         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
9027
9028 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
9029
9030         * basic-block.h: Fix comment formatting.
9031         * calls.c: Likewise.
9032         * combine.c: Likewise.
9033         * convert.c: Likewise.
9034         * gcov.c: Likewise.
9035         * haifa-sched.c: Likewise.
9036         * libgcc2.c: Likewise.
9037         * loop.c: Likewise.
9038         * profile.c: Likewise.
9039         * system.h: Likewise.
9040
9041 2003-01-18  Roger Sayle  <roger@eyesopen.com>
9042
9043         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
9044
9045 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9046
9047         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
9048
9049 2003-01-17  Dale Johannesen  <dalej@apple.com>
9050
9051         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
9052           (*floatunssidf2_internal):  Ditto.
9053
9054 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
9055
9056         * alias.c: Fix comment typos.
9057         * basic-block.h: Likewise.
9058         * c-common.c: Likewise.
9059         * c-common.h: Likewise.
9060         * c-decl.c: Likewise.
9061         * c-opts.c: Likewise.
9062         * c-pragma.c: Likewise.
9063         * c-pretty-print.h: Likewise.
9064         * cfg.c: Likewise.
9065         * cfganal.c: Likewise.
9066         * cfgbuild.c: Likewise.
9067         * cfgcleanup.c: Likewise.
9068         * cfglayout.c: Likewise.
9069         * cfgrtl.c: Likewise.
9070         * convert.c: Likewise.
9071         * cpphash.h: Likewise.
9072         * cpplex.c: Likewise.
9073         * cpplib.h: Likewise.
9074         * df.h: Likewise.
9075         * diagnostic.c: Likewise.
9076         * diagnostic.h: Likewise.
9077         * dwarf2.h: Likewise.
9078
9079 2003-01-17  Stan Shebs  <shebs@apple.com>
9080
9081         * config/darwin-protos.h: Forward-declare struct cpp_reader.
9082
9083 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
9084
9085         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
9086         mistake in last checkin.
9087
9088 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
9089
9090         * et-forest.c: Fix comment typos.
9091         * et-forest.h: Likewise.
9092         * except.c: Likewise.
9093         * expr.c: Likewise.
9094         * flags.h: Likewise.
9095         * flow.c: Likewise.
9096         * gcc.c: Likewise.
9097         * gcse.c: Likewise.
9098         * genattrtab.c: Likewise.
9099         * genautomata.c: Likewise.
9100         * gengtype.c: Likewise.
9101         * genrecog.c: Likewise.
9102         * global.c: Likewise.
9103         * gthr-rtems.h: Likewise.
9104
9105 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9106
9107         * i386.c (x86_function_profiler): Fix format specifier.
9108
9109 2003-01-17  Richard Henderson  <rth@redhat.com>
9110
9111         * gengtype.c (walk_type): Allow paramN_is.
9112
9113 2003-01-17  Nick Clifton  <nickc@redhat.com>
9114
9115         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
9116
9117 2003-01-16  Richard Henderson  <rth@redhat.com>
9118
9119         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
9120
9121 2003-01-16  Richard Henderson  <rth@redhat.com>
9122
9123         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
9124         (alpha_next_sequence_number): Likewise.
9125         (alpha_this_literal_sequence_number): Likewise.
9126         (alpha_this_gpdisp_sequence_number): Likewise.
9127         (struct alpha_funcs, alpha_funcs_num): Likewise.
9128         (struct alpha_links): Fix branch merge error.
9129         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
9130
9131 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
9132
9133         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
9134         R. Ghazi.
9135
9136 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
9137
9138         * ifcvt.c: Fix comment typos.
9139         * lcm.c: Likewise.
9140         * libgcc2.c: Likewise.
9141         * local-alloc.c: Likewise.
9142         * loop.c: Likewise.
9143         * predict.c: Likewise.
9144         * ra-build.c: Likewise.
9145         * ra.c: Likewise.
9146         * ra-colorize.c: Likewise.
9147         * ra.h: Likewise.
9148         * ra-rewrite.c: Likewise.
9149         * regmove.c: Likewise.
9150         * reload.h: Likewise.
9151         * rtlanal.c: Likewise.
9152         * toplev.c: Likewise.
9153         * tree.h: Likewise.
9154         * unwind-dw2-fde-glibc.c: Likewise.
9155         * vmsdbgout.c: Likewise.
9156
9157 2003-01-16  Richard Henderson  <rth@redhat.com>
9158
9159         * dwarf2out.c (struct file_table): Remove.
9160         (FILE_TABLE_INCREMENT): Remove.
9161         (file_table): Make a varray; mark for GC.  Update all users.
9162         (file_table_last_lookup_index): Extract from struct file_table.
9163         (output_file_names): Fix unsigned compare warnings.
9164         (add_name_attribute): Remove inline marker.
9165         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
9166         (lookup_filename): Don't manage size of file_table.
9167         (init_file_table): Allocate file_table with GC.
9168         (dwarf2out_init): Don't record main_input_filename here.
9169         (dwarf2out_finish): Do it here instead.
9170
9171 2003-01-16  Bruce Korb  <bkorb@gnu.org>
9172
9173         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
9174
9175 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
9176
9177         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
9178         instead of rotldi3_mextr.
9179
9180 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
9181
9182         * haifa-sched.c (move_insn): Restore moving all schedule group.
9183         (set_priorities): Restore taking SCHED_GROUP_P into account.
9184
9185         * sched-deps.c (add_dependence): Restore processing the last group
9186         insn.
9187         (remove_dependence, group_leader): Restore the functions.
9188         (set_sched_group_p): Restore adding dependencies from previous insn
9189         in the group.
9190         (compute_forward_dependences): Restore usage of group_leader.
9191
9192         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
9193         account.
9194
9195         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
9196         account.
9197         (can_schedule_ready_p): Ditto.
9198         (add_branch_dependences): Restore skipping over the group insns.
9199
9200 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
9201
9202         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
9203         68HC12 pre/post inc/dec side effects.
9204
9205 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
9206
9207         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
9208
9209 2003-01-16  J"orn Rennecke <amylaar@onetel.net.uk>
9210
9211         * sh.md (mshflo_w_x): Fix description of operation.
9212
9213 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
9214
9215         * config/rs6000/rs6000.h: Mention Altivec registers in
9216         commentary.  Fix typo.
9217
9218 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
9219
9220         * config/rs6000/rs6000.md (movti_string): Remove clobber.
9221         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
9222         generate PARALLEL with clobber for TARGET_POWER.
9223
9224 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9225
9226         * ra-colorize.c (colorize_one_web): Initialize variable.
9227         * regmove.c (fixup_match_1): Likewise.
9228         * reload1.c (reload_as_needed): Likewise.
9229         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
9230
9231 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9232
9233         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
9234
9235 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9236
9237         * dbxout.c (lastfile, cwd): Fix `unused' warning.
9238         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
9239         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
9240         is_main_source, file_table, decl_die_table_in_use,
9241         abbrev_die_table_in_use, line_info_table_in_use,
9242         separate_line_info_table_in_use, pubname_table_in_use,
9243         arange_table_in_use, ranges_table_in_use,
9244         current_function_has_inlines): Likewise.
9245         * flow.c (life_analysis): Likewise.
9246         * genemit.c (gen_insn): Likewise.
9247         * protoize.c (cplus_suffix): Likewise.
9248
9249         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
9250         * arm.h (ROUND_UP_WORD): Likewise.
9251
9252         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
9253         warning.
9254         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
9255         init_emit_once): Likewise.
9256         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
9257         Likewise.
9258         * function.c (assign_stack_temp_for_type): Likewise.
9259         * loop.c (loop_invariant_p): Likewise.
9260         * recog.c (push_operand): Likewise.
9261         * regclass.c (init_reg_sets_1): Likewise.
9262         * reload.c (update_auto_inc_notes): Likewise.
9263         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
9264         * stmt.c (expand_asm_operands): Likewise.
9265         * stor-layout.c (start_record_layout): Likewise.
9266
9267 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
9268
9269         * config/c4x/c4x.md (epilogue): Correct last patch.
9270
9271 2003-01-15  Richard Henderson  <rth@redhat.com>
9272
9273         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
9274         also check that GP is being used.
9275         (alpha_find_lo_sum_using_gp): New.
9276         (alpha_does_function_need_gp): Use get_attr_usegp.
9277         * config/alpha/alpha-protos.h: Update.
9278         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
9279         as needed.
9280
9281 2003-01-15  Roger Sayle  <roger@eyesopen.com>
9282
9283         * gcse.c (one_cprop_pass): Change function arguments to take both
9284         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
9285         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
9286         (bypass_jumps): New function to perform separate jump bypassing pass.
9287         * rtl.h (bypass_jumps): Add function prototype.
9288         * timevar.def (TV_BYPASS): New timing variable.
9289         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
9290         (dump_file): New entry for the bypass RTL dump file.
9291         (rest_of_compilation): Insert new jump bypassing optimization
9292         pass after loop.
9293         * doc/passes.texi: Document new pass.
9294
9295 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9296
9297         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
9298         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
9299         * pa.h (TARGET_SOM_SDEF): Define.
9300         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
9301
9302 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
9303
9304         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
9305         allocate 4-bytes of locals on 68HC11.
9306         (expand_epilogue): Likewise.
9307         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
9308
9309 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
9310
9311         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
9312         and -mshort-double to the assembler to specify the ABI.
9313         (LINK_SPEC): Likewise.
9314         (CPP_SPEC): Pass HCS12 specific define.
9315         (MASK_M68S12): New define.
9316         (TARGET_M68S12): Likewise.
9317         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
9318         (TARGET_VERSION): Update.
9319         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
9320         (LINK_SPEC): Update.
9321         (ASM_SPEC): Update.
9322         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
9323         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
9324
9325 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
9326
9327         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
9328         the return code.
9329
9330 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
9331
9332         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
9333         flag before setting it.
9334
9335 2003-01-15  Roger Sayle  <roger@eyesopen.com>
9336
9337         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
9338         when loop condition is known true, i.e.  "while (1) { ... }".
9339         (genrtl_for_stmt): Similarly for "for" statements.
9340
9341 2003-01-15  Roger Sayle  <roger@eyesopen.com>
9342
9343         * real.c (real_sqrt): Return a bool result indicating whether
9344         a floating point exception or trap should be raised.
9345         * real.h (real_sqrt): Update function prototype.
9346         * builtins.c (fold_builtin): Only fold non-trapping square
9347         roots unless we're ignoring errno and trapping math.
9348
9349 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
9350
9351         * expr.h (emit_conditional_add): Add PARAMS to declaration.
9352         * gengtype-lex.l (malloc, realloc): Move defines after include of
9353         system.h.  Remove duplicate include of system.h.
9354
9355 2003-01-15  Roger Sayle  <roger@eyesopen.com>
9356
9357         PR middle-end/9009
9358         * optabs.c (expand_unop):  When manipulating the FP sign bit
9359         using integer operations, account for targets with different
9360         integer and FP word orders.
9361         (expand_abs): Likewise.
9362
9363 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
9364
9365         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
9366         file extension in section name.
9367
9368 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
9369
9370         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
9371         constant offset.
9372
9373 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
9374
9375         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
9376         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
9377         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
9378         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
9379
9380 2003-01-15  Jan Hubicka  <jh@suse.cz>
9381
9382         PR f/9258
9383         * global.c (struct allocno): Add no_stack_reg.
9384         (global_conflicts): Set no_stack_reg.
9385         (find_reg): Use it.
9386
9387         * convert.c (convert_to_real): Fold - and abs only when profitable.
9388         * fold-const.c (fold): Fold truncates in - and abs.
9389
9390 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
9391
9392         Segher Boessenkool  <segher@koffie.nl>
9393
9394         * predict.c (real_inv_br_prob_base): New variable.
9395         (propagate_freq): Use multiply by reciprocal instead of
9396         division.  Don't divide by 1.0 at all.
9397         (estimate_bb_frequencies): Similar.
9398
9399 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
9400
9401         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
9402         * configure: Rebuilt.
9403
9404 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
9405
9406         * config/s390/s390.c (s390_safe_attr_type): New function.
9407         (s390_use_dfa_pipeline_interface): New function, return true for z900.
9408         (s390_issue_rate): New function.
9409         (s390_agen_dep_p): New function.
9410         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
9411         (s390_adjust_cost): Return 'cost' if new DFA is used.
9412         (s390_adjust_priority): Delete function.
9413         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
9414         * config/s390/s390.md (atype attribute): Attribute 'atype' default
9415         determined by 'op_type'.
9416         (type attribute): Added more type attributes.
9417         * config/s390/2064.md: New DFA description for z900 pipeline.
9418
9419 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
9420
9421         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
9422         forced to memory.  Fixes PR bootstrap/9036.
9423
9424         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
9425         to set $gp before the call.
9426
9427 2003-01-14  Richard Henderson  <rth@redhat.com>
9428
9429         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
9430         for force_const_mem.
9431
9432 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9433
9434         * genattr.c (main): Rearrange output to avoid prototype warning.
9435         * genautomata.c (transform_3): Fix ambiguous-else warning.
9436         * local-alloc.c (requires_inout): Add parentheses around
9437         assignment used as truth-value.
9438         * timevar.c: Move system includes above local includes.  Include
9439         toplev.h
9440         * Makefile.in (timevar.o): Depend on toplev.h.
9441
9442 2003-01-14  Denis Chertykov  <denisc@overta.ru>
9443
9444         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
9445         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
9446
9447         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
9448         attributes.
9449         (TARGET_ATTRIBUTE_TABLE): New macro.
9450         (valid_machine_type_attribute): Remove.
9451         (valid_machine_decl_attribute): Remove.
9452         (ip2k_handle_progmem_attribute): New function.
9453         (ip2k_handle_fndecl_attribute): New function.
9454
9455 2003-01-10  Andrew Haley  <aph@redhat.com>
9456
9457         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
9458         registers to be in correct order.  Add rip.
9459
9460 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
9461
9462         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
9463         (*iorsi3_and_lshiftrt_9_sb): Likewise.
9464
9465 2003-01-14  Jan Hubicka  <jh@suse.cz>
9466
9467         * convert.c (strip_float_extensions):  Look for narrowest type handling
9468         FP constants.
9469
9470         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
9471         float1 CMP float2.
9472         * convert.c (strip_float_extensions): Make global.
9473         * tree.h (strip_float_extensions): Declare.
9474
9475 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9476
9477         * timevar.def: define TV_NAME_LOOKUP.
9478         * timevar.c (timevar_pop): Be verbose when aborting.
9479
9480 2003-01-13  Andreas Schwab  <schwab@suse.de>
9481
9482         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
9483         $(parsedir), just move the temporary file at the end.
9484         ($(parsedir)/gengtype-yacc.c): Likewise.
9485
9486 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
9487
9488         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
9489         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
9490         splitting.
9491         * configure: Rebuilt.
9492
9493 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9494
9495         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
9496         internal_mcount): Don't use PARAMS.
9497         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
9498         ISO C style.
9499         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
9500
9501 2003-01-13  Andreas Schwab  <schwab@suse.de>
9502
9503         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
9504         directive.
9505
9506 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
9507
9508         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
9509         (*iorsi3_and_lshiftrt_n_sb): Likewise.
9510
9511 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
9512
9513         PR c++/9264
9514         * c-lex.c (c_lex): Set the token value to error_mark_node for
9515         invalid numeric constants.
9516
9517 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9518
9519         * c-pch.c (asm_file_startpos): Change to `long'.
9520         (pch_init): Use ftell, not ftello.
9521         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
9522         Use `long' instead of `off_t'.
9523         (c_common_read_pch): Likewise.
9524         * ggc-common.c (gt_pch_save): Use long/ftell instead of
9525         off_t/ftello.
9526
9527 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
9528
9529         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
9530
9531 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
9532
9533         * arm-protos.h (struct cpp_reader): Add declaration.
9534
9535 2003-01-11  Jan Hubicka  <jh@suse.cz>
9536
9537         PR target/9068
9538         * i386.c (output_fp_compare): Fix typo.
9539
9540 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
9541
9542         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
9543
9544 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
9545
9546         * Makefile.in (parsedir): New variable.
9547         (docobjdir): New variable.
9548         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
9549         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
9550         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
9551         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
9552         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
9553         Use docobjdir.
9554         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
9555         objc.maintainer-clean): Use parsedir.
9556
9557         * varasm.c (struct constant_descriptor_rtx): Remove unused
9558         `label' field.
9559
9560         * toplev.c (documented_lang_options): Document -Winvalid-pch.
9561
9562 2003-01-10  Richard Henderson  <rth@redhat.com>
9563
9564         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
9565         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
9566
9567 2003-01-10  Richard Henderson  <rth@redhat.com>
9568
9569         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
9570         not INTEGRAL_MODE_P when widening extensions.
9571
9572 2003-01-10  Richard Henderson  <rth@redhat.com>
9573
9574         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
9575
9576 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
9577
9578         * ggc-page.c (ggc_collect): Avoid overflow computing
9579         min_expand.
9580
9581         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
9582         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
9583         Remove calls.
9584         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
9585
9586 2003-01-10  Jan Hubicka  <jh@suse.cz>
9587
9588         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
9589         with weird operands.
9590
9591 2003-01-10  Dale Johannesen <dalej@apple.com>
9592
9593         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
9594         parameters.  Call check_sibcall_argument_overlap if indicated.
9595         (check_sibcall_argument_overlap):  Add mark_stored_args_map
9596         parameter.  Don't mark parameter area as clobbered if not set.
9597         (expand_call):  Adjust calls to above.
9598
9599 2003-01-10 Kelley Cook <kelleycook@comcast.net>
9600
9601         * configure.in (linker read-only and read-write section mixing):
9602         Squelch some assembler warnings.
9603         * configure: Likewise.
9604
9605 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
9606
9607         * doc/invoke.texi: Document -mtune, delete -mcpu
9608         option for S/390 and zSeries.
9609         * config/s390/s390.c (s390_tune_string) New variable.
9610         (s390_cpu_string) Delete variable.
9611         (override_options): Use s390_tune_string instead of
9612         s390_cpu_string.
9613         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
9614
9615 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
9616
9617         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
9618
9619 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
9620
9621         * jump.c (next_nonnote_insn_in_loop): New function.
9622         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
9623         next_nonnote_insn.
9624         (duplicate_loop_exit_test). Likewise.
9625
9626 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
9627
9628         Merge from pch-branch:
9629
9630         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
9631
9632         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
9633         load.
9634
9635         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
9636
9637         * cpplib.c (count_registered_pragmas): New function.
9638         (save_registered_pragmas): New function.
9639         (_cpp_save_pragma_names): New function.
9640         (restore_registered_pragmas): New function.
9641         (_cpp_restore_pragma_names): New function.
9642         * cpphash.h (_cpp_save_pragma_names): Prototype.
9643         (_cpp_restore_pragma_names): Likewise.
9644         * cpppch.c (struct save_macro_item): Split from save_macro_data.
9645         (struct save_macro_data): New field 'saved_pragmas'.
9646         (save_macros): Update for changes to struct save_macro_data.
9647         (cpp_prepare_state): Call _cpp_save_pragma_names, update
9648         for changes to struct save_macro_data.
9649         (cpp_read_state): Call _cpp_restore_pragma_names, update
9650         for changes to struct save_macro_data.
9651
9652         * cpppch.c (cpp_read_state): Restore the hashtable references
9653         in the cpp_reader.
9654
9655         * tree.h (built_in_decls): Mark for PCH.
9656
9657         * dbxout.c (lastfile): Don't mark for PCH.
9658
9659         * ggc.h: Document PCH calls into memory managers.
9660
9661         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
9662
9663         * doc/invoke.texi (Precompiled Headers): Document the
9664         directory form of PCH.
9665         * cppfiles.c (validate_pch): New function.
9666         (open_file_pch): Search suitably-named directories for PCH files.
9667
9668         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
9669
9670         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
9671         reorder options.
9672         (Type Information): Mention that the information is also
9673         used to implement PCH.
9674         * doc/passes.texi (Passes): Improve documentation of
9675         language-specific files.
9676
9677         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
9678
9679         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
9680         (struct walk_type_data): Add reorder_fn field.
9681         (walk_type): Process 'reorder' option.
9682         (write_types_process_field): Reorder parameters to gt_pch_note_object,
9683         call reorder_note_routine.
9684         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
9685         (ggc_wtd): Update for change to struct write_types_data.
9686         (pch_wtd): Likewise.
9687         * ggc.h (gt_pch_note_object): Reorder parameters.
9688         (gt_handle_reorder): New definition.
9689         (gt_pch_note_reorder): New prototype.
9690         * ggc-common.c (struct ptr_data): Add reorder_fn.
9691         (gt_pch_note_object): Reorder parameters.
9692         (gt_pch_note_reorder): New.
9693         (gt_pch_save): Call reorder_fn.
9694         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
9695
9696         * dbxout.c (cwd): Don't mark for PCH.
9697
9698         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
9699
9700         * gengtype.c (finish_root_table): Fix some warnings.
9701         (write_root): Handle TYPE_STRING.
9702         * ggc.h (gt_ggc_m_S): Add prototype.
9703         * stringpool.c (gt_ggc_m_S): New function.
9704
9705         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
9706
9707         * dwarf2out.c (dw2_string_counter): New.
9708         (AT_string_form): Use it.
9709         (same_dw_val_p): Update for removal of hashtable.h hash tables.
9710
9711         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
9712
9713         * dbxout.c: Include gt-dbxout.h.
9714         (lastfile): Mark for PCH/GGC.
9715         (cwd): Likewise.
9716         (struct typeinfo): Likewise.
9717         (typevec): Likewise.
9718         (typevec_len): Likewise.
9719         (next_type_number): Likewise.
9720         (struct dbx_file): Likewise.
9721         (current_file): Likewise.
9722         (next_file_number): Likewise.
9723         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
9724         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
9725         (dbxout_end_source_file): Don't free struct dbx_file.
9726         (dbxout_type): Use GGC to allocate typevec.
9727         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
9728         (GTFILES): Add dbxout.c.
9729         (gt-dbxout.h): New rule.
9730
9731         * Makefile.in (c-pch.o): Add debug.h as dependency.
9732         * c-pch.c: Include debug.h.
9733         (pch_init): Call start_source_file to keep nesting right.
9734         (c_common_read_pch): Add orig_name parameter.  Call
9735         start_source_file debug hook.  Call end_source_file debug hook.
9736         * c-common.h (c_common_read_pch): Update prototype.
9737         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
9738         callback.
9739         * cppfiles.c (struct include_file): Add new field `header_name'.
9740         (find_or_create_entry): Default it to `name'.
9741         (open_file_pch): Set it to the original header file searched for.
9742         (stack_include_file): Don't stack an empty buffer, just handle
9743         PCH files immediately.  Pass header_name field to read_pch callback.
9744
9745         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
9746
9747         * function.c (funcdef_no): Mark to be saved in a PCH.
9748
9749         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
9750
9751         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
9752
9753         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
9754
9755         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
9756
9757         * optabs.h (code_to_optab): Add GTY marker.
9758
9759         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
9760
9761         * Makefile.in (GTFILES): Add cpplib.h.
9762         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
9763         * c-decl.c (build_compound_literal): Don't use var_labelno.
9764         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
9765         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
9766         * varasm.c (const_labelno): Use gengtype to mark.
9767         (var_labelno): Likewise.
9768         (in_section): Likewise.
9769         (in_named_name): Likewise.
9770         (struct in_named_entry): Likewise.
9771         (in_named_htab): Likewise.
9772         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
9773         (init_varasm_once): Use GGC to allocate in_named_htab.
9774         * config/darwin.c (current_pic_label_num): Mark for PCH.
9775
9776         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
9777
9778         * ggc-simple.c (init_ggc_pch): New stub procedure.
9779         (ggc_pch_count_object): Likewise.
9780         (ggc_pch_total_size): Likewise.
9781         (ggc_pch_this_base): Likewise.
9782         (ggc_pch_alloc_object): Likewise.
9783         (ggc_pch_prepare_write): Likewise.
9784         (ggc_pch_write_object): Likewise
9785         (ggc_pch_finish): Likewise.
9786         (ggc_pch_read): Likewise.
9787
9788         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
9789
9790         * c-pch.c (c_common_write_pch): Write the macro definitions after
9791         the GCed data.
9792         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
9793         definitions after the GCed data.
9794         * cpplib.c (save_macros): New.
9795         (reset_ht): New.
9796         (cpp_write_pch_deps): Split out of cpp_write_pch.
9797         (cpp_write_pch_state): Split out of cpp_write_pch.
9798         (cpp_write_pch): Delete.
9799         (struct save_macro_data): Delete.
9800         (cpp_prepare_state): New.
9801         (cpp_read_state): Erase and restore initial macro definitions.
9802         * cpplib.h (struct save_macro_data): Forward-declare.
9803         (cpp_write_pch_deps): Prototype.
9804         (cpp_write_pch_state): Prototype.
9805         (cpp_write_pch): Delete prototype.
9806         (cpp_prepare_state): Prototype.
9807         (cpp_read_state): Add fourth argument.
9808
9809         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
9810
9811         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
9812         (write_array): Remove warning.
9813
9814         * gengtype.c (contains_scalar_p): New.
9815         (finish_root_table): Add the table to all languages, even if it's
9816         empty.
9817         (write_roots): Output gt_pch_scalar_rtab.
9818         * ggc-common.c (gt_pch_save): Write out scalars.
9819         (gt_pch_restore): Read scalars back.
9820
9821         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
9822         (struct page_entry): Delete pch_page field.
9823         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
9824         (clear_marks): Likewise.
9825         (sweep_pages): Likewise.
9826         (poison_pages): Likewise.
9827         (ggc_print_statistics): Likewise.
9828         (ggc_pch_read): Don't free objects read from a PCH.
9829         Properly set up in_use_p and page_tails.
9830
9831         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
9832
9833         * gengtype.c (struct write_types_data): New.
9834         (struct walk_type_data): Make `cookie' const; add extra
9835         prev_val item; add `orig_s' field.
9836         (walk_type): Update prev_val[3].
9837         (write_types_process_field): New.
9838         (write_func_for_structure): Take write_types_data structure.
9839         (write_types): New.
9840         (ggc_wtd): New.
9841         (pch_wtd): New.
9842         (write_types_local_process_field): New.
9843         (gc_mark_process_field): Delete.
9844         (write_local_func_for_structure): New.
9845         (gc_mark_func_name): Delete.
9846         (write_gc_types): Delete.
9847         (write_local): New.
9848         (finish_root_table): Don't include 'ggc_' in PFX.
9849         (write_root): Rename from write_root.  Fill pchw field of structures.
9850         (write_array): New.
9851         (write_roots): Rename from write_gc_roots.  Split out to write_array.
9852         Update to changes to other routines.  Write gt_pch_cache_rtab table.
9853         (main): Write PCH walking routines.
9854         * ggc-common.c: Include toplev.h, sys/mman.h.
9855         (ggc_mark_roots): For cache hashtables, also mark the hash table
9856         and the array of entries.
9857         (saving_htab): New.
9858         (struct ptr_data): New.
9859         (POINTER_HASH): New.
9860         (gt_pch_note_object): New.
9861         (saving_htab_hash): New.
9862         (saving_htab_eq): New.
9863         (struct traversal_state): New.
9864         (call_count): New.
9865         (call_alloc): New.
9866         (compare_ptr_data): New.
9867         (relocate_ptrs): New.
9868         (write_pch_globals): New.
9869         (struct mmap_info): New.
9870         (gt_pch_save): New.
9871         (gt_pch_restore): New.
9872         * ggc-page.c (ROUND_UP_VALUE): New.
9873         (ROUND_UP): New.
9874         (struct page_entry): Add field `pch_page'.
9875         (init_ggc): Use ROUND_UP.
9876         (struct ggc_pch_data): Declare.
9877         (init_ggc_pch): New.
9878         (ggc_pch_count_object): New.
9879         (ggc_pch_total_size): New.
9880         (ggc_pch_this_base): New.
9881         (ggc_pch_alloc_object): New.
9882         (ggc_pch_prepare_write): New.
9883         (ggc_pch_write_object): New.
9884         (ggc_pch_finish): New.
9885         (ggc_pch_read): New.
9886         * ggc.h (gt_pointer_operator): New.
9887         (gt_note_pointers): New.
9888         (gt_pch_note_object): New prototype.
9889         (gt_pointer_walker): New.
9890         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
9891         (LAST_GGC_ROOT_TAB): Update.
9892         (gt_pch_cache_rtab): Declare.
9893         (gt_pch_scalar_rtab): Declare.
9894         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
9895         (LAST_GGC_CACHE_TAB): Update.
9896         (gt_pch_save_stringpool): Declare.
9897         (gt_pch_restore_stringpool): Declare.
9898         (gt_pch_p_S): Declare.
9899         (gt_pch_n_S): Declare.
9900         (struct ggc_pch_data): Forward-declare.
9901         (init_ggc_pch): Declare.
9902         (ggc_pch_count_object): Declare.
9903         (ggc_pch_total_size): Declare.
9904         (ggc_pch_this_base): Declare.
9905         (ggc_pch_alloc_object): Declare.
9906         (ggc_pch_prepare_write): Declare.
9907         (ggc_pch_write_object): Declare.
9908         (ggc_pch_finish): Declare.
9909         (ggc_pch_read): Declare.
9910         (gt_pch_save): Declare.
9911         (gt_pch_restore): Declare.
9912         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
9913         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
9914         const_double_htab, mem_attrs_htab using GGC.
9915         * c-pch.c: Include ggc.h.
9916         (pch_init): Allow reading PCH file back.
9917         (c_common_write_pch): Call gt_pch_save.
9918         (c_common_read_pch): Call gt_pch_restore.
9919         * c-parse.in (init_reswords): Delete now-untrue comment.
9920         Allocate ridpointers using GGC.
9921         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
9922         calling expand_deferred_fns.
9923         * c-common.h (ridpointers): Mark for GTY machinery.
9924         * Makefile.in (stringpool.o): Update dependencies.
9925         (c-pch.o): Update dependencies.
9926         (ggc-common.o): Update dependencies.
9927         * stringpool.c: Include gt-stringpool.h.
9928         (gt_pch_p_S): New.
9929         (gt_pch_n_S): New.
9930         (struct string_pool_data): New.
9931         (spd): New.
9932         (gt_pch_save_stringpool): New.
9933         (gt_pch_restore_stringpool): New.
9934         * tree.c (init_ttree): Make type_hash_table allocated using GC.
9935
9936         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
9937
9938         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
9939         (output_mangled_typename): Don't pass size_t to printf.
9940
9941         * tree.h (union tree_type_symtab): Add tag to `address' field.
9942         (union tree_decl_u2): Add tag to 'i' field.
9943         * varasm.c (union rtx_const_un): Add tags to all fields.
9944         * gengtype.c (struct walk_type_data): New.
9945         (output_escaped_param): Take struct walk_type_data parameter.
9946         (write_gc_structure_fields): Delete.
9947         (walk_type): New.
9948         (write_gc_marker_routine_for_structure): Delete.
9949         (write_func_for_structure): New.
9950         (gc_mark_process_field): New.
9951         (gc_mark_func_name): New.
9952         (gc_counter): Delete.
9953         (write_gc_types): Use write_func_for_structure.
9954         (write_gc_roots): Use walk_type.
9955
9956         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
9957
9958         * ggc-common.c (ggc_mark_roots): Delete 'x'.
9959         (ggc_splay_dont_free): Fix warning about unused 'x'.
9960         (ggc_print_common_statistics): Remove warnings.
9961
9962         2002-10-01  Mike Stump  <mrs@apple.com>
9963
9964         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
9965         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
9966
9967         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
9968             Catherine Moore  <clm@redhat.com>
9969
9970         * Makefile (c-pch.o): Update dependencies.
9971         (LIBCPP_OBJS): Add cpppch.o.
9972         (cpppch.o): New.
9973         * c-common.c (c_common_init): Don't call pch_init here.
9974         * c-common.h (c_common_read_pch): Update prototype.
9975         * c-lex.c (c_common_parse_file): Call pch_init here.
9976         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
9977         (c_common_decode_option): Handle them.
9978         * c-pch.c: Include c-pragma.h.
9979         (save_asm_offset): Delete.
9980         (pch_init): Move contents of save_asm_offset into here, call
9981         cpp_save_state.
9982         (c_common_write_pch): Call cpp_write_pch.
9983         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
9984         cpp_valid_state.
9985         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
9986         * cppfiles.c (stack_include_file): Update for change to
9987         parameters of cb.read_pch.
9988         * cpphash.h (struct cpp_reader): Add `savedstate' field.
9989         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
9990         `restore_pch_deps' fields.
9991         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
9992         (cpp_save_state): Prototype.
9993         (cpp_write_pch): Prototype.
9994         (cpp_valid_state): Prototype.
9995         (cpp_read_state): Prototype.
9996         * cpppch.c: New file.
9997         * flags.h (version_flag): Remove prototype.
9998         * mkdeps.c (deps_save): New.
9999         (deps_restore): New.
10000         * mkdeps.h (deps_save): Prototype.
10001         (deps_restore): Prototype.
10002         * toplev.c (late_init_hook): Delete.
10003         (version_flag): Make static again.
10004         (compile_file): Don't call late_init_hook.
10005         * toplev.h (late_init_hook): Delete.
10006         * doc/cppopts.texi: Document -fpch-deps.
10007         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
10008
10009         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
10010
10011         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
10012         callers.
10013         (c_common_valid_pch): Rename from c_valid_pch, change callers.
10014         (c_common_read_pch): Rename from c_read_pch, change callers.
10015
10016         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
10017         a space between it and its argument.
10018
10019         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
10020
10021         * c-pch.c: New file.
10022         * toplev.h (late_init_hook): Declare.
10023         * toplev.c (late_init_hook): Define.
10024         (version_flag): Make globally visible.
10025         (compile_file): Call late_init_hook.
10026         (init_asm_output): Make output file seekable.
10027         * gcc.c (default_compilers): Update c-header rule.
10028         * flags.h (version_flag): Declare.
10029         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
10030         fields.
10031         * cppfiles.c (struct include_file): Add 'pch' field.
10032         (INCLUDE_PCH_P): New.
10033         (open_file_pch): New.
10034         (stack_include_file): Handle PCH files specially.
10035         (find_include_file): Call open_file_pch instead of open_file.
10036         (_cpp_read_file): Explain why open_file is used instead of
10037         open_file_pch.
10038         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
10039         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
10040         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
10041         in cpplib callbacks.
10042         * c-common.c (pch_file): Correct comment.
10043         (allow_pch): Define.
10044         (c_common_init): Call pch_init.
10045         * c-common.h (allow_pch): Declare.
10046         (pch_init): Declare.
10047         (c_valid_pch): Declare.
10048         (c_read_pch): Declare.
10049         (c_write_pch): Declare.
10050         * Makefile.in (c-pch.o): New.
10051         (C_AND_OBJC_OBJS): Add c-pch.o.
10052         * doc/invoke.texi (Precompiled Headers): Add index entries,
10053         complete truncated paragraph.
10054
10055         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
10056
10057         * c-common.c: (pch_file): Define.
10058         * c-common.h (pch_file): Declare.
10059         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
10060         (missing_arg): Require --output-pch= to have an argument.
10061         (c_common_decode_option): Handle --output-pch=.
10062         * gcc.c: Document new %V.
10063         (default_compilers): Handle compiling C header files.
10064         (do_spec_1): Implement %V.
10065         (main): Handle "gcc foo.h" without trying to run linker.
10066         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
10067         (Overall Options): Document what the driver does with header files,
10068         document new -x option possibilities.
10069         (Invoking G++): More documentation for PCH.
10070         (Precompiled Headers): New.
10071
10072         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
10073
10074         * ggc.h: Don't include varray.h.  Rearrange functions to be more
10075         organized.
10076         (ggc_add_root): Delete.
10077         (ggc_mark_rtx): Delete.
10078         (ggc_mark_tree): Delete.
10079         (struct ggc_statistics): Remove contents.
10080         * ggc-common.c: Remove unneeded includes.
10081         (struct ggc_root): Delete.
10082         (roots): Delete.
10083         (ggc_add_root): Delete.
10084         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
10085         (ggc_print_common_statistics): Remove most of the contents.
10086         * Makefile.in (GGC_H): No longer uses varray.h.
10087         (ggc-common.o): Update dependencies.
10088         (c-parse.o): Add varray.h to dependencies.
10089         (c-common.o): Add varray.h.
10090         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
10091         (mark_ident_hash): Rename to ggc_mark_stringpool.
10092         (init_stringpool): Don't use ggc_add_root.
10093         * c-parse.in: Include varray.h.
10094         * c-common.c: Include varray.h.
10095         * objc/Make-lang.in (objc-act.o): Add varray.h.
10096         * objc/objc-act.c: Include varray.h.
10097
10098         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
10099
10100         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
10101         (dw_cfi_oprnd1_desc): Likewise.
10102
10103         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
10104
10105         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
10106         move out of ifdef.
10107         (alpha_links): Use gengtype to mark; move out of ifdef.
10108         (mark_alpha_links_node): Delete.
10109         (mark_alpha_links): Delete.
10110         (alpha_need_linkage): Use GGC to allocate splay tree, struct
10111         alpha_links, strings.  Don't use ggc_add_root.
10112         * ggc-common.c (ggc_splay_alloc): New.
10113         (ggc_splay_dont_free): New.
10114         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
10115         (ggc_mark_tree): Likewise.
10116         (splay_tree_new_ggc): New.
10117         (ggc_splay_alloc): Declare.
10118         (ggc_splay_dont_free): Declare.
10119         * dwarf2asm.c: Include gt-dwarf2asm.h.
10120         (mark_indirect_pool_entry): Delete.
10121         (mark_indirect_pool): Delete.
10122         (indirect_pool): Use gengtype to mark.
10123         (dw2_force_const_mem): Don't use ggc_add_root.
10124         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
10125         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
10126         (gt-dwarf2asm.h): Depend on s-gtype.
10127
10128         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
10129
10130         * tree.h (union tree_type_symtab): Mark `die' field.
10131         * Makefile.in (dwarf2out.o): Update dependencies.
10132         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
10133         hash tables.
10134         (dw_cfi_oprnd1_desc): New function.
10135         (dw_cfi_oprnd2_desc): New function.
10136         (indirect_string_alloc): Delete.
10137         (debug_str_do_hash): New function.
10138         (debug_str_eq): New function.
10139         (mark_limbo_die_list): Delete.
10140         (dwarf2out_init): Don't call ggc_add_root.
10141
10142 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
10143
10144         The following changes are merged from itanium-sched-branch:
10145
10146         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
10147
10148         * doc/md.texi: Clarify assignment of units to automata description.
10149
10150         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
10151
10152         * genautomata.c (unit_decl): Remove members
10153         `the_same_automaton_unit' and
10154         `the_same_automaton_message_reported_p'.
10155         (process_unit_to_form_the_same_automaton_unit_lists,
10156         form_the_same_automaton_unit_lists_from_regexp,
10157         form_the_same_automaton_unit_lists, the_same_automaton_lists):
10158         Remove them.
10159         (annotation_message_reported_p): New global variable.
10160         (check_unit_distribution_in_reserv,
10161         check_regexp_units_distribution): New functions.
10162         (check_unit_distributions_to_automata): Rewrite it.
10163
10164         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
10165
10166         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
10167         Use continue instead of break if cycle is too big.
10168
10169         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
10170
10171         * genautomata.c (check_unit_distributions_to_automata): Output at
10172         most one message for a unit.
10173         (process_unit_to_form_the_same_automaton_unit_lists): Check
10174         automaton of units instead of units themself.
10175
10176         * doc/md.texi: Describe the constraint about assigning unit to
10177         automata.
10178
10179         2002-12-20  Jan Hubicka  <jH@suse.cz>
10180                     Vladimir Makarov  <vmakarov@redhat.com>
10181
10182         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
10183         and `in_set_p'.
10184         (gen_cpu_unit): Initialize the new members.
10185         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
10186         up `min_occ_cycle_num'.
10187         (evaluate_max_reserv_cycles): Change the function call.
10188         (CLEAR_BIT): New macro.
10189         (states_union, state_shift): Use the mask.
10190         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
10191         (form_reservs_matter): New function.
10192         (make_automaton): Call the function and use the mask.
10193         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
10194         account.
10195
10196         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
10197
10198         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
10199
10200         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
10201
10202         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
10203         for Itanium.
10204
10205         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
10206
10207         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
10208         default cpu.
10209
10210         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
10211                 2002-10-31  Dale Johannesen <dalej@apple.com>
10212
10213         * haifa-sched.c (find_set_reg_weight): New function.
10214         (find_insn_reg_weight): Use the new function.
10215         (schedule_block): Do sorting ready queue always
10216         after insn issue.
10217
10218         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
10219
10220         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
10221
10222         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
10223
10224         * haifa-sched.c (choice_entry): New structure.
10225         (choice_stack, cycle_issued_insns): New variables.
10226         (max_issue): Rewrite it.
10227         (choose_ready): Set up ready_try for unknown insns too.
10228         (schedule_block): Allocate and free choice_stack.  Set up
10229         and modify cycle_issued_insns.
10230
10231         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
10232         with and without filling the bundle.
10233         (bundling): Combine calls of issue_nops_and_insn.
10234
10235         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
10236
10237         * config/ia64/itanium1.md: New file.
10238
10239         * config/ia64/itanium2.md: New file.
10240
10241         * config/ia64/ia64.md: Move DFA descriptions into the new files.
10242         Remove the old pipeline description.
10243
10244         * config/ia64/ia64.c (ia64_override_options): Add aliases of
10245         itanium processor names.
10246
10247         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
10248
10249         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
10250         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
10251
10252         * config/ia64/ia64.md: Add descriptions for Itanium2.
10253
10254         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
10255
10256         * config/ia64/ia64.h (processor_type): New enumeration.
10257         (ia64_tune, ia64_tune_string): New external declarations.
10258         (TARGET_OPTIONS): Add option `tune='.
10259
10260         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
10261         variables.
10262         (ia64_override_options): Set up `ia64_tune'.
10263         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
10264         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
10265         (bundling): Add nops for MM-insns only for Itanium.
10266         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
10267         Itanium.
10268
10269         * config/ia64/ia64.md (cpu): New attribute.
10270         (DFA description): Enable it only for Itanium.
10271
10272         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
10273                     Richard Henderson  <rth@redhat.com>
10274
10275         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
10276         MASK_EARLY_STOP_BITS.
10277         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
10278         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
10279         `early-stop-bits'.
10280
10281         * config/ia64/ia64.c (ia64_dfa_new_cycle,
10282         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
10283         instead of TARGET_TUNE_STOP_BITS.
10284
10285         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
10286         `-mearly-stop-bits'.
10287
10288         * config/ia64/ia64.c (automata_option "v"): Comment it.
10289
10290         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
10291
10292         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
10293         New macros.
10294         (TARGET_SWITCHES): Add entries for the new option.
10295
10296         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
10297         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
10298         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
10299         global variables.
10300         (ia64_sched_reorder2): Set up `clocks'.
10301         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
10302         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
10303         queue when TARGET_TUNE_STOP_BITS.
10304         (bundling): Insert additional nops for MM-insns.
10305         (final_emit_insn_group_barriers): Add insertion of stop bits
10306         according `stops_p'.
10307         (ia64_reorg): Initiate the new varibales.
10308
10309         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
10310
10311         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
10312
10313         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
10314         insns at the end of block insn scheduling.
10315
10316         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
10317
10318         * sched-deps.c (remove_dependence, group_leader): Remove it.
10319         (add_dependence): Add dependence to group leader to.
10320         (set_sched_group_p): Add dependence to the first insn of the
10321         schedule group too.
10322         (sched_analyze_insn): Make dependence to jump as anti-dependence.
10323         Change true dependence by anti-dependence when
10324         `reg_pending_barrier'.
10325
10326         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
10327         add_branch_dependences): Ignore schedule groups.
10328
10329         * sched-ebb.c (init_ready_list): Ditto.
10330
10331         * (move_insn, set_priorities): Ditto.
10332
10333         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
10334         flag is clear after reload.
10335         (adjust_cost): Change cost only for output dependencies.
10336
10337         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
10338
10339         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
10340
10341         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
10342
10343         * target.h (gcc_target): Add member
10344         `dependencies_evaluation_hook'.
10345
10346         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
10347         macro.
10348         (TARGET_SCHED): Add initiatialization of the new member.
10349
10350         * sched-ebb.c: Include `target.h'.
10351         (schedule_ebb): Call `dependencies_evaluation_hook'.
10352
10353         * sched-rgn.c (schedule_region): Call
10354         `dependencies_evaluation_hook'.
10355
10356         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
10357         New macro.
10358         (ia64_dependencies_evaluation_hook): New function.
10359
10360         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
10361         Describe the new hook.
10362
10363         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
10364
10365         * target.h (gcc_target): Add members
10366         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
10367
10368         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
10369         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
10370         macros.
10371         (TARGET_SCHED): Add initiatialization of the new members.
10372
10373         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
10374         insn scheduling too.
10375         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
10376         initialize `ready_try'.
10377         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
10378         `dfa_new_cycle' says not to do it.
10379
10380         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
10381         bundling.
10382
10383         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
10384
10385         * config/ia64/ia64.c: Include `hashtab.h'.
10386         (ia64_first_cycle_multipass_dfa_lookahead_guard,
10387         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
10388         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
10389         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
10390         bundle_state_eq_p, insert_bundle_state,
10391         initiate_bundle_state_table, finish_bundle_state_table,
10392         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
10393         get_template, get_next_important_insn, bundling): New functions.
10394         (ia64_internal_sched_reorder): Remove it.
10395         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
10396         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
10397         (ia64_safe_itanium_requires_unit0): Remove it.
10398         (group_barrier_needed_p): Place group barrier right before a real
10399         insn.
10400         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
10401         Remove them.
10402         (bundle_name): New variable.
10403         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
10404         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
10405         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
10406         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
10407         temp_dfa_state, prev_cycle_state): New global variables.
10408         (insn_matches_slot, maybe_rotate, finish_last_head,
10409         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
10410         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
10411         find_best_packet, itanium_reorder, dump_current_packet,
10412         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
10413         (sched_data, sched_ready, sched_types): Remove them.
10414         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
10415         `init_insn_group_barriers'.
10416         (ia64_sched_reorder, ia64_sched_reorder2): Call
10417         ia64_dfa_sched_reorder.
10418         (ia64_variable_issue): Rewrite it.
10419         (bundle_state): New structure.
10420         (index_to_bundle_states, bundle_states_num,
10421         allocated_bundle_states_chain, free_bundle_state_chain): New
10422         global variables.
10423         (ia64_sched_finish): Add stop bits and call `bundling' after the
10424         2nd insn scheduling.
10425         (ia64_use_dfa_pipeline_interface): Return zero always.
10426         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
10427         insn scheduling.
10428         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
10429         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
10430         (ia64_reorg): Add bundling insns.
10431
10432         * doc/tm.texi
10433         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
10434         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
10435
10436         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
10437
10438         * config/ia64/ia64.md: Add Itanium1 DFA description.
10439         (itanium_class): Add `nop' and `pre_cycle'.  Add
10440         define_function_unit for `nop'.
10441         (nop): Change attribute `itanium_class'.
10442         (pre_cycle): New define_insn.
10443
10444         * config/ia64/ia64-protos.h (bundling_p): New external variable.
10445         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
10446         ia64_produce_address_p): New function prototypes.
10447
10448         * config/ia64/ia64.c (bundling_p): New global variable.
10449         (ia64_use_dfa_pipeline_interface,
10450         ia64_first_cycle_multipass_dfa_lookahead,
10451         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
10452         functions.
10453         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10454         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10455         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
10456         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
10457         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
10458         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
10459         (dfa_pre_cycle_insn): New variable.
10460
10461         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
10462
10463         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
10464         constructions.
10465
10466         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
10467         New function prototypes.
10468
10469         * genattrtab.c (main): Process the new constructions.
10470
10471         * genautomata.c (gen_presence_absence_set,
10472         process_presence_absence_names, process_presence_absence_patterns,
10473         add_presence_absence, check_absence_pattern_sets): Add parameter
10474         `final_p'.
10475         (unit_decl): Add new members `final_presence_list' and
10476         `final_absence_list'.
10477         (unit_pattern_rel_decl): Add new member `final_p'.
10478         (gen_final_presence_set, gen_final_absence_set): New functions.
10479         (process_decls): Use member `final_p'.
10480         (temp_reserv): New global variable.
10481         (reserv_sets_are_intersected): Add processing `final_presence_set'
10482         and `final_absence_set'.
10483         (initiate_states): Allocate `temp_reserv'.
10484         (unit_final_presence_set_table, unit_final_absence_set_table): New
10485         gloabal variables.
10486         (initiate_presence_absence_pattern_sets): Initiate them.
10487         (NDFA_to_DFA): Fix typo.
10488         (output_description): Output `final_presence_set' and
10489         `final_absence_set'.
10490
10491         * doc/md.texi (final_presence_set, final_absence_set): Describe
10492         them.
10493
10494         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
10495
10496         * genautomata.c (transform_3): Process a missing case (nothing on
10497         unit place).
10498
10499         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
10500
10501         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
10502         comments about queried units and the minimization.
10503
10504         * doc/md.texi: Ditto.
10505
10506         * genautomata.c (create_composed_state): Return nonzero if the new
10507         state has been created.
10508         (first_cycle_unit_presence): New function.
10509         (state_is_differed): Add new parameter.  Use the new function.
10510         Take queried units into account.
10511         (partition_equiv_class): Pass additional parameter to
10512         `state_is_differed'.
10513         (merge_states): Process composed states too.
10514         (build_automaton, create_automata, output_min_issue_delay_table,
10515         output_tables, output_statistics): Output more information.
10516         (output_reserved_units_table): Use function
10517         `first_cycle_unit_presence'.
10518         (output_tables): Output table of queried units even if the
10519         minimization is switched on.
10520         (write_automata): Output code for querying units even if the
10521         minimization is switched on.
10522
10523         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
10524
10525         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
10526         syntax of the constructions.
10527
10528         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
10529         extended syntax of the constructions.
10530
10531         * genautomata.c (unit_rel_decl): Rename it to
10532         `unit_pattern_rel_decl'.
10533         (pattern_set_el, pattern_reserv): New structures.
10534         (pattern_set_el_t, pattern_reserv_t): New types.
10535         (gen_presence_absence_set): New function.
10536         (process_presence_absence): Remove it.
10537         (process_presence_absence_names,
10538         process_presence_absence_patterns): New functions.
10539         (get_presence_absence_set): Remove it.
10540         (initiate_presence_absence_sets): Rename it on
10541         `initiate_presence_absence_pattern_sets'.  Use new function
10542         `form_reserv_sets_list'.
10543         (form_reserv_sets_list, check_presence_pattern_sets,
10544         check_absence_pattern_sets, output_pattern_set_el_list): New
10545         functions.
10546         (unit_decl): Change types of members `presence_list' and
10547         `absence_list'.
10548         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
10549         (decl): Change types of members `excl', `presence', and `absence'.
10550         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
10551         at the end of the vector.
10552         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
10553         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
10554         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
10555         (gen_presence_set, gen_absence_set): Use new function
10556         `gen_presence_absence_set'.
10557         (add_presence_absence): Process `pattern_list' instead of
10558         `source_list'.
10559         (process_decls): USe new functions
10560         `process_presence_absence_names' and
10561         `process_presence_absence_patterns'.
10562         (reserv_sets_are_intersected): Use new function
10563         `check_presence_pattern_sets'.
10564         (presence_set, absence_set): Remove them.
10565         (unit_presence_set_table, unit_absence_set_table): New global
10566         variables.
10567         (output_description): Use new function
10568         `output_pattern_set_el_list'.
10569         (generate): Use `initiate_presence_absence_pattern_sets'.
10570
10571         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
10572
10573         * genattr.c (main): Add output of prototype of new interface
10574         function `dfa_clean_insn_cache'.
10575
10576         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
10577         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
10578         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
10579         the generated code.
10580         (write_automata): Call the new function.
10581
10582 2003-01-09  Jan Hubicka  <jh@suse.cz>
10583
10584         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
10585         correctly.
10586
10587 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
10588
10589         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
10590
10591 2003-01-09  J"orn Rennecke <joern.rennecke@superh.com>
10592
10593         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
10594         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
10595         (CONSTRAINT_LEN): Provide default definition.
10596         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
10597         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
10598         (EXTRA_CONSTRAINT_STR): Likewise.
10599         (REG_CLASS_FROM_CONSTRAINT): Define.
10600         * genoutput.c (check_constraint_len, constraint_len): New functions.
10601         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
10602         constraint / modifier.
10603         (gen_insn): Call check_constraint_len.
10604         * local-alloc.c (block_alloc): Update to use new macros / pass
10605         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
10606         * ra-build.c (handle_asm_insn): Likewise.
10607         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
10608         (constrain_operands, peep2_find_free_register): Likewise.
10609         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
10610         * regmove.c (find_matches): Likewise.
10611         * reload.c (push_secondary_reload, find_reloads): Likewise.
10612         (alternative_allows_memconst): Likewise.
10613         * reload1.c (maybe_fix_stack_asms): Likewise.
10614         (reload_cse_simplify_operands): Likewise.
10615         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
10616         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
10617         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
10618         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
10619         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
10620         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
10621
10622         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
10623
10624 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10625
10626         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
10627         length.
10628         (*extzv_1_r_h8300hs): Likewise.
10629         (*extzv_1_r_inv_h8300): Likewise.
10630         (*extzv_1_r_inv_h8300hs): Likewise.
10631
10632 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10633
10634         * config/h8300/h8300.h (PREDICATE_CODES): New.
10635
10636 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10637
10638         * config/h8300/h8300.md (*addsi3_upper): New.
10639         (*iorsi3_shift): Likewise.
10640         (two splitters): Likewise.
10641         (*addsi3_shift): Likewise.
10642         (two splitters): Likewise.
10643
10644 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
10645
10646         * Makefile.in (optabs.o): Add dependency on basic-block.h.
10647         * basic-block.h (control_flow_insn_p): Fuction was exported.
10648         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
10649         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
10650         notes only when the region is contained in a single basic block.
10651
10652 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
10653
10654         PR inline-asm/8832
10655         * tree.h (expand_asm): New prototype.
10656         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
10657         to do so.
10658         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
10659         down to expand_asm.
10660         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
10661         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
10662         (volatile_refs_p) [ASM_INPUT]: Likewise.
10663         (side_effects_p) [ASM_INPUT]: Likewise.
10664
10665 2003-01-09  Jan Hubicka  <jh@suse.cz>
10666
10667         * i386.md (*mul*): FIx constraints; remove confused comment; fix
10668         athlon_decode attributes
10669         (imul/k8 optimization peep2s): New.
10670
10671         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
10672         * i386.md (type attribute): Add ssecomi.
10673         (unit, memory, prefix attributes): Handle ssecomi.
10674         (cvt?2? patterns): Fix athlon_decode attribute
10675         (comi patterns): Set attribute to ssecomi.
10676
10677         PR target/8343
10678         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
10679
10680 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
10681
10682         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
10683         that match register_operands.
10684         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
10685         register_operand the default case.
10686
10687 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
10688
10689         PR c/8032
10690         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
10691         an empty element, do not advance the pointer to unfilled
10692         fields if there are pending initializers.
10693
10694 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
10695
10696         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
10697         (install-gcc-tooldir, install-cpp, installdirs,
10698         install-common, install-driver, install-info, install-man,
10699         install-headers, install-include-dir, install-headers-tar,
10700         install-headers-cpio, install-headers-cp, install-mkheaders,
10701         install-collect2, uninstall): Prepend $(DESTDIR) to
10702         destination paths in all (un)installation commands.
10703         (install-driver): Rewrite $(LN) commands to support DESTDIR
10704         with "ln" as well as with "ln -s".
10705         (installdirs): Simply use mkinstalldirs.
10706         (install-libgcc, install-multilib): Also pass DESTDIR.
10707         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
10708         installation destination variable ldir.
10709         * config/alpha/t-osf4, config/arm/t-netbsd,
10710         config/ia64/t-hpux, config/mips/t-iris5-6,
10711         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
10712         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
10713         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
10714         in the definition of SHLIB_INSTALL.
10715         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
10716         $(libsubdir) in the installation commands.
10717
10718 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
10719
10720         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
10721         non-optimizing compile.
10722         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
10723         compile.
10724
10725 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
10726
10727         * config/i386/i386.c (ix86_attribute_table): Add new attributes
10728         ms_struct and gcc_struct.
10729         (ix86_handle_struct_attribute): New function.
10730         (ix86_ms_bitfield_layout_p): Update to take new attributes
10731         into account.
10732         * doc/extend.texi: Document new attributes.
10733         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
10734
10735 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
10736
10737         PR optimization/8750
10738         * config/i386/i386.c (ix86_expand_prologue): Don't allow
10739         scheduling pass to move insns across __alloca call.
10740
10741 2003-01-08  Dale Johannesen  <dalej@apple.com>
10742
10743         * config/rs6000/rs6000.md:  Replace *store_multiple_string
10744         with *stmsi[3-8].
10745
10746 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
10747
10748         PR target/9210
10749         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
10750         Set SYMBOL_REF_FLAG on local data sym_ref.
10751
10752 2003-01-08  Dale Johannesen  <dalej@apple.com>
10753
10754         * function.c (assign_parms):  Don't set pretend_args_size if
10755           REG_PARM_STACK_SPACE.
10756           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
10757           pretend_args_size.
10758
10759 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
10760
10761         * gcc.hlp: Delete.
10762
10763 2003-01-09  Jan Hubicka  <jh@suse.cz>
10764
10765         * i386.c  (ix86_expand_int_addcc): Fix thinko.
10766
10767 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
10768
10769         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
10770         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
10771         as hook_bool_tree_hwi_hwi_tree_true.
10772         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
10773         (rs6000_emit_epilogue): Same.
10774         (rs6000_output_mi_thunk): Re-implement as RTL.
10775         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
10776         xcoffout_declare_function if any debugging enabled.
10777
10778 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
10779
10780         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
10781         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
10782         * config/mips/mips.h (enum processor_type): Rename
10783         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
10784         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
10785         Add PROCESSOR_M4K.
10786         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
10787         (ISA_MIPS32R2): New define.
10788         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
10789         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
10790         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
10791         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
10792         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
10793         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
10794         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
10795         compiling MIPS16 code.
10796         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
10797         comment.
10798         (ISA_HAS_SEB_SEH): New define.
10799         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
10800         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
10801         processor_type value renaming.  Add support for MIPS32R2.
10802         Clean up comments, and move "sb1" entry with other MIPS64 CPU
10803         entries.
10804         (override_options): Reimplement -mipsN option handling so that
10805         it will work correctly for -mips32r2.  Avoid branch-likely
10806         instructions on MIPS32R2.
10807         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
10808         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
10809         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
10810         (extendhisi2_hw, extendqisi2_hw): New.
10811         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
10812         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
10813         MIPS32R2, and MIPS64.
10814         (LINK_SPEC): Pass -mips32r2 to linker.
10815         * config/mips/t-isa3264: Built -mips32r2 multilibs.
10816         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
10817         for mips32r2 in the -march description.  Alphabetically sort
10818         CPU names in the -march description.  Add long-missed -mips32
10819         and -mips64 to MIPS option summary.
10820
10821         * config.gcc: Update copyright years to include 2003.
10822         * config/mips/mips.c: Likewise.
10823         * config/mips/mips.h: Likewise.
10824         * config/mips/mips.md: Likewise.
10825         * config/mips/netbsd.h: Likewise.
10826         * doc/invoke.texi: Likewise.
10827
10828 2003-01-08  Andreas Schwab  <schwab@suse.de>
10829
10830         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
10831         variable.
10832         * configure: Regenerated.
10833
10834 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
10835
10836         * config/h8300/h8300.c (output_logical_op): Replace byte/word
10837         extraction of det with b0, b1, w0, w2, etc.
10838         (compute_logical_op_length): Likewise.
10839         (compute_logical_op_cc): Likewise.
10840
10841 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
10842
10843         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
10844         HIGH on all variants.
10845
10846 2003-01-08  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
10847
10848         * Makefile.in (PARTITION_H): New.
10849         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
10850         * basic-block.h: Include hard-reg-set.h.
10851
10852 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
10853
10854         * arm.h (ENABLE_XF_PATTERNS): Delete.
10855         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
10856         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
10857         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
10858         (cmpxf_trap): Delete.
10859         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
10860
10861 2003-01-08  Jan Hubicka  <jh@suse.cz>
10862
10863         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
10864         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
10865         (add??cc): New expanders.
10866         * i386.c (expand_int_addcc): New function.
10867         * i386-protos.h (expand_int_addcc): Declare.
10868
10869         * alias.c (memory_modified_1): New static function.
10870         (memory_modified): New static varaible.
10871         (memory_modified_in_insn_p): New global function.
10872         * rtl.h (memory_modified_in_insn_p): Declare.
10873         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
10874         references.
10875
10876         * expr.h (emit_conditional_add): Declare.
10877
10878 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
10879
10880         PR other/8947
10881         * doc/invoke.texi (-malign-double): Explain that the option breaks
10882         binary compatibility.
10883
10884 2003-01-08  Andreas Schwab  <schwab@suse.de>
10885
10886         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
10887         should come from the generic *-*-linux* entry.
10888
10889 2003-01-07  Jan Hubicka  <jh@suse.cz>
10890
10891         * cselib.c (cselib_current_insn_in_libcall): New static variable.
10892         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
10893         we are inside libcall.
10894         * cselib.h (elt_loc_list): Add in_libcall.
10895         * gcse.c (do_local_cprop): Do not copy propagate using insns
10896         in libcalls.
10897
10898 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
10899
10900         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
10901         not normally affect to issue rate.
10902
10903 2003-01-07  Jan Hubicka  <jh@suse.cz>
10904
10905         * genopinit.c (optabs): Add addc_optab.
10906         * ifcvt.c (noce_try_store_flag): Rename to ...
10907         (noce_try_addcc): ... this one; handle generic conditional increment.
10908         (noce_process_if_block): Update noce_try_addcc call.
10909         * optabs.c (emit_conditional_add): New.
10910         (init_obtabs): Initialize addc_optab.
10911         * optabs.h (optab_index): Add OTI_addcc.
10912         (addcc_optab): New macro.
10913         * md.texi: Document addMcc
10914
10915         PR target/8322
10916         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
10917         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
10918         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
10919
10920         * reload1.c (delete_output_reload): Avoid repeated attempts
10921         to delete insn.
10922
10923 2003-01-07  Andreas Schwab  <schwab@suse.de>
10924
10925         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
10926         Move --enable-initfini-array check ...
10927         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
10928         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
10929         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
10930         * configure: Rebuild.
10931
10932 2003-01-07  Richard Henderson  <rth@redhat.com>
10933
10934         * alias.c (find_base_value): Only use new_reg_base_value shortcut
10935         if the register is set once.
10936
10937 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
10938
10939         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
10940         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
10941         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
10942
10943 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
10944             Sunil Davasam  <sunil.k.davasam@intel.com>
10945
10946         PR libstdc++/9076
10947         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
10948         DW_CFA_same_value, read next and ignore.
10949
10950 2003-01-07  Richard Henderson  <rth@redhat.com>
10951
10952         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
10953
10954 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
10955
10956         * cfg.c: Include alloc-pool.h
10957         (edge_pool): New pool.
10958         (bb_pool): New pool.
10959         (first_deleted_edge): Remove.
10960         (first_deleted_block): Remove.
10961         (init_flow): Alloc/free the pools.
10962         (free_edge): Use pools.
10963         (alloc_block): Ditto.
10964         (expunge_block): Ditto.
10965         (cached_make_edge): Ditto.
10966
10967         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
10968
10969 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
10970
10971         * et-forest.c: Include alloc-pool.h.
10972         (struct et_forest): Add node_pool and occur_pool.
10973         (et_forest_create): Create the new pools.
10974         (et_forest_delete): Delete them.
10975         (et_forest_add_node): Allocate and free using pools.
10976         (et_forest_add_edge): Ditto.
10977         (et_forest_remove_node): Ditto.
10978         (et_forest_remove_edge): Ditto.
10979
10980         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
10981
10982 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
10983
10984         * config/h8300/h8300.c (output_logical_op): Simplify and
10985         optimize the handling of SImode.
10986         * config/h8300/h8300.c (compute_logical_op_length): Update
10987         accordingly.
10988         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
10989
10990 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
10991
10992         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
10993         big-endian correction to indirect arguments too.
10994
10995 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
10996
10997         Segher Boessenkool  <segher@koffie.nl>
10998
10999         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
11000         (alt_reg_names): Ditto, fix formatting.
11001         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
11002
11003 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
11004
11005         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
11006         (output_logical_op): Constify intval and det.
11007         (compute_logical_length): Likewise.
11008         (compute_logical_cc): Likewise.
11009         (output_a_shift): Constify mask.
11010         (h8300_encode_label): Constify len.
11011
11012 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
11013
11014         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
11015         (h8300_expand_epilogue): Likewise.
11016
11017 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
11018
11019         Segher Boessenkool  <segher@koffie.nl>
11020
11021         * config/rs6000/altivec.md: Remove spaces from assembler
11022         instruction argument lists.
11023
11024 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11025
11026         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
11027         c4x_assembler_function_p.
11028         (c4x_null_epilogue_p): Complement return value, all uses updated.
11029         (c4x_insert_attributes): Add naked.
11030         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
11031         * doc/extend.texi: Update C4x function attributes.
11032
11033 2003-01-06  Richard Henderson  <rth@redhat.com>
11034
11035         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
11036         properly when changing "local-ness".
11037         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
11038
11039 2003-01-06  Dale Johannesen  <dalej@apple.com>
11040
11041         * config/darwin-protos.h:  Add prototypes for new section functions.
11042
11043 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
11044
11045         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
11046         to EABI.
11047
11048 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
11049
11050         * hwint.h: If the current compiler has no 64-bit type at all,
11051         make HOST_WIDEST_INT 32 bits.
11052
11053 2003-01-06  Eric Christopher  <echristo@redhat.com>
11054
11055         * config/mips/mips.md (movdf_internal2): Fix constraints.
11056
11057 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
11058
11059         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
11060
11061 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
11062
11063         * config/mips/mips.md (leadi): Use dla rather than la.
11064
11065 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
11066
11067         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
11068         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
11069
11070 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
11071
11072         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
11073         redefinition.
11074
11075 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11076
11077         * config/h8300/h8300.md (*extzv_8_23): New.
11078
11079 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11080
11081         * pa64-hpux.h (JCR_SECTION_NAME): Define.
11082         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
11083         USE_EH_FRAME_REGISTRY when defining.
11084
11085 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11086
11087         * config/h8300/h8300.c (output_a_shift): Do not output a
11088         variable shift.
11089         * config/h8300/h8300.md (two splitters): New.
11090
11091 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
11092
11093         * config/mips/mips.md: Disable the movstrsi define_split.
11094
11095 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11096
11097         * alloc-pool.c: Don't include "libiberty.h".
11098         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
11099         * convert.c (convert_to_real): Hide unused variable.
11100
11101 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11102
11103         * Makefile.in (gtyp-gen.h): Const-ify.
11104         * gcov-dump.c (tag_table): Likewise.
11105
11106 2003-01-04  Bruce Korb  <bkorb@gnu.org>
11107
11108         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
11109         of *both* the file name and the fix name.
11110
11111 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
11112
11113         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
11114         collect2.
11115         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
11116         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
11117         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
11118         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
11119         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
11120         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
11121         elfos.h.
11122         (EH_FRAME_IN_DATA_SECTION): Delete define.
11123         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
11124         (STARTFILE_SPEC): Use crtbegin.o.
11125         (ENDFILE_SPEC): Use crtend.o.
11126         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
11127         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
11128         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
11129         DTOR_LIST_BEGIN): Define.
11130         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
11131         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
11132         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
11133
11134 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
11135
11136         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
11137         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
11138         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
11139         Cleanup handling of replacement text.
11140         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
11141
11142 2003-01-04  Bruce Korb  <bkorb@gnu.org>
11143
11144         * fixinc/tests/base/math.h: removed obsolete results
11145         * fixinc/tests/base/stdlib.h: ditto
11146         * fixinc/tests/base/sys/param.h: ditto
11147         * fixinc/tests/base/sys/stat.h: ditto
11148         * fixinc/tests/base/time.h: ditto
11149         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
11150         * fixinc/tests/base/sys/byteorder.h: ditto
11151         * fixinc/inclhack.def: Remove superfluous backslashes
11152
11153 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
11154
11155         * config/h8300/h8300-protos.h: Add prototypes for
11156         the new functions defined below.
11157         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
11158         define.
11159         (dosize): Emit RTL instead of assembly code.
11160         (push): Likewise.
11161         (pop): Likewise.
11162         (h8300_output_function_prologue): Remove.
11163         (h8300_expand_prologue): New.
11164         (h8300_expand_epilogue): New.
11165         (h8300_output_function_epilogue): Do only the reset of
11166         pragma_saveall.
11167         * config/h8300/h8300.md (push_h8300): New.
11168         (push_h8300hs): Likewise.
11169         (pop_h8300): Likewise.
11170         (pop_h8300hs): Likewise.
11171         (*stm_h8300s_2): Change the name to stm_h8300s_2.
11172         (*stm_h8300s_3): Change the name to stm_h8300s_3.
11173         (*stm_h8300s_4): Change the name to stm_h8300s_4.
11174         (*ldm_h8300s_2): New.
11175         (*ldm_h8300s_3): Likewise.
11176         (*ldm_h8300s_4): Likewise.
11177         (return): Likewise.
11178         (*return_1): Likewise.
11179         (prologue): Likewise.
11180         (epilogue): Likewise.
11181         (monitor_prologue): Likewise.
11182
11183 2003-01-03  Dale Johannesen  <dalej@apple.com>
11184
11185         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
11186           machopic_picsymbol_stub1.
11187           (EXTRA_SECTION_FUNCTIONS):  Ditto.
11188         * rs6000/rs6000.c:  Update copyright.
11189           (machopic_output_stub):  Use them.  Remove an insn from stub code.
11190
11191 2003-01-02  Jason Merrill  <jason@redhat.com>
11192
11193         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
11194
11195         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
11196         static/external decls.
11197
11198         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
11199         outermost scope.
11200         * c-decl.c (c_make_fname_decl): Push the decls there, too.
11201
11202 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
11203
11204         * config/h8300/h8300-protos.h: Add a prototype for
11205         h8300_current_function_interrupt_function_p.
11206         * config/h8300/h8300.c (interrupt_handler): Remove.
11207         (os_task): Likewise.
11208         (monitor): Likewise.
11209         (pragma_interrupt): New.
11210         (WORD_REG_USED): Use
11211         h8300_current_function_interrupt_function_p.
11212         (dosize): Likewise.
11213         (h8300_output_function_prologue): Likewise.
11214         Do not set interrupt_handler, os_task, monitor.
11215         (h8300_output_function_prologue): Use
11216         h8300_current_function_interrupt_function_p.
11217         Do not set interrupt_handler, os_task, monitor.
11218         (h8300_current_function_interrupt_function_p): New.
11219         (h8300_pr_interrupt): Set pragma_interrupt.
11220         (h8300_insert_attributes): Reset pragma_interrupt.
11221
11222 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11223
11224         * doc/install.texi (Configuration): Fix markup for reference to
11225         gcc/config.gcc.
11226
11227 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
11228
11229         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
11230         (*iorhi3_two_qi): Likewise.
11231         (*iorsi3_zexthi): Likewise.
11232         (*xorhi3_zextqi): Likewise.
11233         (*xorsi3_zexthi): Likewise.
11234         (*xorsi3_zextqi): Likewise.
11235
11236 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
11237
11238         * config/h8300/h8300.c (stack_pointer_operand): New.
11239         (const_int_gt_2_operand): Likewise.
11240         (const_int_ge_8_operand): Likewise.
11241         * config/h8300/h8300.md (a splitter): Likewise.
11242         (a peephole2): Likewise.
11243         * config/h8300/h8300-protos.h: Add prototypes for the new
11244         functions above.
11245
11246 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
11247
11248         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
11249         objc/objc-act.h: Fix copyright years.
11250
11251 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
11252
11253         * doc/passes.texi: Fix documentation for -fssa-ccp
11254
11255 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
11256
11257         * gccbug.in: Update for new categories.
11258
11259 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
11260
11261         * config/h8300/h8300.md: Reorder some patterns.
11262
11263 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
11264
11265         * config/h8300/h8300.c (output_logical_op): Fix a warning.
11266
11267 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
11268
11269         * config/darwin-protos.h, config/c4x/c4x-protos.h,
11270         config/cris/cris-protos.h, config/i370/i370-protos.h,
11271         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
11272         config/v850/v850-protos.h: Use struct, and don't conditionally
11273         compile on GCC_C_PRAGMA_H.
11274
11275 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
11276
11277         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
11278         * config/h8300/h8300-protos.h: Likewise.
11279         * config/sh/sh-protos.h: Likewise.
11280
11281 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
11282
11283         * config/arm/arm-protos.h: Use struct cpp_reader instead of
11284         cpp_reader.
11285         * config/h8300/h8300-protos.h: Likewise.
11286         * config/sh/sh-protos.h: Likewise.
11287
11288 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
11289
11290         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
11291         arm_pr_long_calls_off): Use struct.
11292         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
11293         : Similarly.
11294         Don't include cpplib.h.
11295         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
11296         sh_pr_nosave_low_regs): Similarly.
11297
11298 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
11299
11300         * config/h8300/h8300.c: Include cpplib.h.
11301
11302 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
11303
11304         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
11305           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
11306           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
11307           "GCC" in the copyright header.
11308
11309 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
11310
11311         * c-pragma.c (c_register_pragma): New.
11312         (init_pragma): Use it.
11313         * c-pragma.h (cpp_register_pragma): Don't declare.
11314         (c_register_pragma): New.
11315         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
11316         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
11317         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
11318         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
11319         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
11320         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
11321         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
11322         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
11323         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
11324         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
11325         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
11326         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
11327
11328 See ChangeLog.8 for earlier changes.