OSDN Git Service

PR c++/5287, PR c++/7910, PR c++/11021
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
2
3         PR c++/5287, PR c++/7910, PR c++/11021
4         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
5         dllimport attribute if function is defined at declaration, but
6         report error instead. Likewise for dllimport'd variable
7         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
8         declared within functions, Report error if dllimport or dllexport
9         symbol is not global.
10         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
11         if defined after declaration or if inlined. Don't allow definition
12         of static data members of C++ classes. Don't dllimport virtual
13         methods.
14         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
15         (i386_pe_mark_dllimport): Remove unnecessary checks.
16         (i386_pe_encode_section_info): Warn if the dllimport attribute
17         and symbol prefix have been instantiated and then overridden.
18
19         * doc/extend.texi: Document dllimport and dllexport attributes.
20
21         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
22
23 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
24
25         * config/kaos.h (CPP_PREDEFINES): Delete.
26         (TARGET_OS_CPP_BUILTINS): New.
27
28 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29
30         * c-aux-info.c: Include toplev.h after c-tree.h.
31         * c-common.c: Likewise.
32         (GCC_DIAG_STYLE): Undef.
33         * c-semantics.c (GCC_DIAG_STYLE): Define.
34         * c-tree.h (GCC_DIAG_STYLE): Likewise.
35         * diagnostic.h (inform): Move prototype to toplev.h.
36         * jump.c: Include diagnostic.h before toplev.h.
37         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
38         (warning, error, fatal_error, pedwarn, sorry, inform,
39         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
40
41 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
42
43         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
44         at all if edge is not specified.
45         (can_copy_bbs_p, copy_bbs): New.
46         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
47         * cfgloop.c (get_loop_body): Comment more precisely.
48         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
49         (scale_bbs_frequencies): Fix comment typo.
50         (can_duplicate_loop_p): Use can_copy_bbs_p.
51         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
52
53 2003-07-03  Devang Patel <dpatel@apple.com>
54
55         * c-opts.c (c_common_parse_file): Remove extra
56         debug_hooks->start_source_file call.
57         
58 2003-07-03  Roger Sayle  <roger@eyesopen.com>
59
60         * real.c (real_trunc, real_floor, real_ceil): New functions
61         to implement trunc, floor and ceil respectively.
62         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
63         * builtins.c (integer_valued_real_p): New function to test if
64         a floating point expression has an integer valued result.
65         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
66         foo(x) where foo is an integer rounding function.  Similarly,
67         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
68         (double)(int)x when both foo and bar are integer rounding
69         functions and we don't need to honor errno.
70         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
71         New functions to fold trunc, floor and ceil.
72         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
73         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
74         to fold BUILT_IN_CEIL*.
75         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
76         the remaining integer rounding functions.
77
78 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
79
80         * config/sparc/sparc.c (function_arg_partial_nregs): Use
81         SPARC_INT_ARG_MAX to determine where to split unnamed
82         complex FP arguments.
83
84 Thu Jul  3 20:36:47 CEST 2003  Jan Hubicka  <jh@suse.cz>
85
86         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
87         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
88         (merge_blocks_move_predecessor_nojumps,
89          merge_blocks_move_successor_nojumps): Use merge_blocks.
90         (try_optimize_cfg): Use merge_blocks_move.
91         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
92         (merge_blocks_nomove): Rename to rtl_merge_blocks.
93         (cfg_layout_create_basic_block): New.
94         (rtl_can_merge_blocks): New.
95         (cfg_layout_split_block): Do not alloc aux by hand.
96         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
97         merge_blocks.
98         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
99         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
100         * cfgloopmanip.c (loop_split_edge_with): Likewise.
101         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
102
103         * basic-block.h (basic_block_def): Add field 'rbi'.
104         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
105         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
106         * cfg.c (entry_exit_blocks): Add new field.
107         * cfglayout.c: Include alloc-pool.h;
108         (cfg_layout_pool): New.
109         (record_effective_endpoints, fixup_reorder_chain,
110         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
111         of rbi.
112         (cfg_layout_initialize_rbi): New function.
113         (cfg_layout_initialize): Use it.
114         (cfg_layout_finalize): Clear rbi fields.
115         * cfglayout.h (RBI): Kill.
116         (cfg_layout_initialize_rbi): Declare.
117         * cfgloopmanip.c (copy_bbs): Use rbi.
118         (record_exit_edges): Likewise.
119         (duplicate_loop_to_header_edge): Likewise.
120         * cfgrtl.c (cfg_layout_create_basic_block): Use
121         cfg_layout_initialize_rbi.
122         (cfg_layout_split_block): Use rbi.
123         (cfg_layout_delete_block): Likewise.
124         * loop-init.c (loop_optimizer_finalize): Likewise.
125         * loop-unswitch.c (unswitch_loop): Likewise.
126         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
127
128         * cfgrtl.c: Update comments.
129         (try_redirect_by_replacing_jump): New argument.
130         (redirect_branch_edge): Break out from ...
131         (rtl_redirect_edge_and_branch): ... this one.
132         (update_cfg_after_block_merging): Break out from ...
133         (rtl_merge_blocks): ... this one.
134         (cfg_layout_split_edge): New.
135         (cfg_layout_merge_blocks): New.
136         (cfg_layout_can_merge_blocks_p): New.
137         (cfg_layout_redirect_edge_and_branch): Reorganize.
138         (cfg_layout_rtl_cfg_hooks): Fill in.
139         (cfg_layout_delete_block): Kill barriers.
140         * cfganal.c (can_fallthru): Deal with exit blocks
141         * cfglayout.c (cfg_layout_function_header): New function
142         (record_effective_endpoints): Record function header.
143         (fixup_reorder_chain): Fixup dead jumptables; place header
144
145         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
146         * bb-reorder.c (cfg_layout_initialize): Update call.
147         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
148         edges in cfglayout mode.
149         * cfglayout.c (cleanup_unconditional_jumps): Kill.
150         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
151         * cfglayout.h (cfg_layout_initialize): Update prototype.
152         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
153         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
154         * flow.c (propagate_block): Do not crash when basic block ends
155         by first insn in the chain.
156         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
157         do loop discovery.
158         * tracer.c (tracer): Update call of cfg_layout_initialize.
159
160 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
161
162         * Makefile.in: Use dependency variables in lieu of explicit
163         files throughout.
164
165 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
166
167         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
168         * tree.h: ...to here.
169
170 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
171
172         * config/s390/2064.md: Fix comment typos.
173         * config/s390/2084.md: Likewise.
174         * config/s390/s390.c: Likewise.
175         * config/s390/s390.md: Likewise.
176         * config/sh/sh.c: Likewise.
177         * config/sh/sh.h: Likewise.
178         * config/sh/sh.md: Likewise.
179         * config/sparc/sparc.c: Likewise.
180         * config/sparc/sparc.h: Likewise.
181         * config/sparc/sparc.md: Likewise.
182         * config/stormy16/stormy16.c: Likewise.
183         * config/stormy16/stormy16.h: Likewise.
184         * config/stormy16/stormy-abi: Fix a typo.
185
186 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
187
188         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
189
190 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
191
192         * config/mips/mips.h (save_argv): Delete.
193
194 2003-07-03  Roger Sayle  <roger@eyesopen.com>
195
196         PR target/10700
197         * fold-const.c (extract_muldiv_1): There's nothing that can be done
198         if the expression is a SAVE_EXPR.
199
200 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
201
202         * config/m32r/m32r.c: Fix comment typos.
203         * config/m68hc11/m68hc11.c: Likewise.
204         * config/m68hc11/m68hc11.h: Likewise.
205         * config/m68k/m68k.c: Likewise.
206         * config/mcore/mcore.c: Likewise.
207         * config/mcore/mcore.h: Likewise.
208         * config/mcore/mcore.md: Likewise.
209         * config/mips/mips.c: Likewise.
210         * config/mips/mips.h: Likewise.
211         * config/mips/mips.md: Likewise.
212         * config/mips/netbsd.h: Likewise.
213         * config/mn10300/mn10300.c: Likewise.
214
215 2003-07-03  Andreas Schwab  <schwab@suse.de>
216
217         * dbxout.c (pending_bincls): Move decl down inside
218         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
219
220 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
221
222         * rtl.h (NOTE_DATA): Refer to whole union.
223         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
224
225 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
226
227         PR optimization/11381
228         * simplify-rtx.c (simplify_relational_operation): Check that
229         two equal operands have no side-effects before simplifying
230         the comparison.
231
232 2003-07-02  Jeff Law  <law@redhat.com>
233
234         * expr.c (do_store_flag): Remove special case folding for
235         single bit tests.  Instead call back into the commonized folder
236         routine.
237         * fold-const.c (fold_single_bit_test): New function, mostly
238         extracted from do_store_flag, with an additional case extracted
239         from fold.
240         (fold): Call fold_single_bit_test appropriately.
241         * tree.h (fold_single_bit_test): Prototype.
242
243 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
244
245         * system.h: Include filenames.h.
246         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
247         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
248         define based on HAVE_DOS_BASED_FILE_SYSTEM.
249         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
250         * config/i386/xm-mingw32.h: Don't define
251         HAVE_DOS_BASED_FILE_SYSTEM,
252         DIR_SEPARATOR, or DIR_SEPARATOR_2.
253         * doc/hostconfig.texi: Update to match.
254
255         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
256         config/i386/cygwin.h:
257         Use IS_ABSOLUTE_PATH throughout.
258         * gcc.c (DIR_UP): Delete, unused.
259         * protoize.c (IS_SAME_PATH): Define in terms of
260         FILENAME_CMP.
261         (is_abspath): Delete.
262
263 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
264
265         * config/i386/emmintrin.h: Fix comment typos.
266         * config/i386/i386.c: Likewise.
267         * config/i386/i386.h: Likewise.
268         * config/i386/sco5.h: Likewise.
269         * config/ia64/ia64.c: Likewise.
270         * config/ia64/itanium2.md: Likewise.
271
272 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
273
274         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
275         DBX_USE_BINCL.
276         (emit_bincl_stab): Same.
277         (emit_pending_bincls): Same.
278
279 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
280
281         * config/h8300/h8300.c (compute_mov_length): Fix the length of
282         loading CONST0_RTX (SFmode).
283         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
284         'G' to CONST0_RTX (SFmode).
285         * config/h8300/h8300.md (movsf_h8300): Change the first
286         constraint to 'G'.
287         (movsf_h8300h): Likewise.
288
289 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
290
291         * c-common.h (c_common_init_options): New prototype.
292         * c-opts.c (deferred_size): Remove.
293         (defer_opt): Array is now pre-allocated.
294         (c_common_init_options): Pre-allocate deferred_opts.  Make
295         lang_flags unsigned.
296         (push_command_line_options): Free deferred_opts.
297         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
298         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
299         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
300         * langhooks.h (struct lang_hooks): New prototype for init_options.
301         * main.c (main): Cast argv.
302         * opts.c (handle_option, handle_options): Update prototypes.
303         (decode_options): save_argc, save_argv are not global.  Constify.
304         * opts.h (decode_options): New prototype.
305         * toplev.c (general_init): New protoype.
306         (save_argv): Make static.
307         (save_argc): Remove.
308         (print_switch_values, general_init): Constify.
309         (toplev_main): Save argv.
310         * toplev.h (toplev_main): Update prototype.
311         (save_argc, save_argv): Remove.
312
313 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
314
315         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
316         (emit_bincl_stab): Same.
317         (emit_pending_bincls): Same.
318
319 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
320
321         PR c++/11072
322         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
323
324 2003-07-02  Andreas Schwab  <schwab@suse.de>
325
326         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
327
328 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
329
330         PR optimization/11210
331         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
332         about the behaviour with regard to bitfields.
333         * fold-const (decode_field_reference): Record outermost type in
334         case the expression is a NOP. Strip all NOPs. Set the signedness
335         to that of the outermost type (if any) when the bitsize is equal
336         to the size of the type.
337
338 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
339
340         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
341         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
342         (adddi3_internal_3, addsi3_internal_2): Likewise.
343
344 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
345
346         * config/mips/mips.c (machine_function): Add new fields:
347         ignore_hazard_length_p and all_noreorder_p.
348         (mips_flag_delayed_branch): New variable.
349         (override_options): Treat '/' as an operand punctuation character.
350         Set up mips_flag_delayed_branch.
351         (print_operand): Handle '/'.
352         (mips_output_function_prologue): Put the whole function in
353         .set noreorder and .set nomacro if all_noreorder_p is true.
354         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
355         (mips16_optimize_gp): Remove "first insn" parameter.
356         (mips16_lay_out_constants): New function, split out from mips_reorg.
357         (mips_avoid_hazard, mips_avoid_hazards): New functions.
358         (mips_reorg): For mips16 code, call mips16_lay_out_constant
359         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
360         do delayed-branch scheduling followed by hazard detection.
361         (mips_adjust_insn_length): Only account for hazards if
362         !ignore_hazard_length_p.
363         (mips_output_load_label): Add a nop to the o32 sequence if
364         the target suffers from load delays.
365         (mips_output_conditional_branch): Add %/ to the end of branches.
366         (mips_output_division): Fill the branch delay slot with %#.
367         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
368         instructions.  End all other %* branches with %/.
369         (ffssi2, ffsdi2): Fix lengths.
370         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
371         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
372         (fix_truncsfsi2_macro): Likewise.
373         (mov_lwl): Set hazard to "none".
374         (ashldi3_internal): Fill the branch delay slot with %#.
375         (ashrdi3_internal, lshrdi3_internal): Likewise.
376         (exception_receiver): Explicitly set $28.
377         (hazard_nop): New pattern.
378
379 Wed Jul  2 08:12:36 CEST 2003  Jan Hubicka  <jh@suse.cz>
380
381         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
382         before calling tree_inlinable_function_p.
383
384 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
385
386         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
387         <internal/stdio_core.h> too.
388         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
389         <internal/wchar_core.h> too.
390         Substitute va_list uses in inline definition.
391         * fixinc/fixincl.x: Regenerate.
392
393 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
394
395         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
396         Undef before redefinition.
397         (LABEL_AFTER_LOC): Likewise.
398         (DEFAULT_SIGNED_CHAR): Likewise.
399         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
400         Fix IRIX spelling.
401
402         * config/mips/iris3.h: Remove, unused.
403         * config/mips/iris4.h: Likewise.
404
405         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
406
407         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
408         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
409         target_cpu_default.
410
411         * config/mips/iris5.h: Move explicit includes ...
412         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
413
414         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
415         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
416         tm_defines.
417
418         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
419         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
420         target_cpu_default.
421
422         * config/mips/iris6.h: Fix IRIX spelling.
423         (MULTILIB_DEFAULTS): Undef before redefinition.
424
425         * config/mips/iris6.h: Move explicit includes ...
426         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
427
428 Wed Jul  2 02:16:48 CEST 2003  Jan Hubicka  <jh@suse.cz>
429
430         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
431         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
432         Use next_needed field instead of aux to maintain the queue.
433         * cgraph.h (cgraph_node): Add next_needed.
434         (cgraph_varpool_node): Add next_needed; remove aux.
435         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
436
437 Wed Jul  2 02:12:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
438
439         * cgraphunit.c (cgraph_finalize_function): Set finalized.
440         (cgraph_finalize_function): Do not examine inlinablility.
441         (cgraph_finalize_compilation_unit): Do it here.
442         * cgraph.h (cgraph_local_info): Add finalized field.
443
444 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
445
446         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
447         (gt_pch_restore): Likewise.
448
449 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
450
451         * config/alpha/alpha.c: Fix comment typos.
452         * config/alpha/elf.h: Likewise.
453         * config/arm/arm.c: Likewise.
454         * config/arm/arm.h: Likewise.
455         * config/arm/arm.md: Likewise.
456         * config/arm/t-arm-coff: Likewise.
457         * config/arm/t-strongarm-pe: Likewise.
458         * config/arm/xscale-elf.h: Likewise.
459         * config/avr/avr.h: Likewise.
460
461 2003-07-01  Jeff Law  <law@redhat.com>
462
463         * stmt.c (any_pending_cleanups): Remove another redundant test.
464
465 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
466             J"orn Rennecke <joern.rennecke@superh.com>
467
468         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
469         for MEM case.
470
471 2003-07-01  Devang Patel  <dpatel@apple.com>
472
473         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
474         (binclstatus): New.
475         (struct dbx_file): New members - bincl_status, pending_bincl_name and
476         prev.
477         (pending_bincls): New.
478         (dbxout_init): Initialize new dbx_file members.
479         (dbxout_start_source_file): Same.
480         (emit_bincl_stab): New function.
481         (emit_pending_bincls): Same.
482         (emit_pending_bincls_if_required): Same.
483         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
484         processed.
485         (dbxout_begin_block): Emit pending BINCL stabs.
486         (dbxout_end_block): Same.
487         (dbxout_function_decl): Same.
488         (dbxout_continue): Same.
489         (dbxout_type): Same.
490         (dbxout_class_name_qualifiers): Same.
491         (dbxout_symbol): Same.
492         (dbxout_symbol_location): Same.
493         (dbxout_parms): Same.
494
495 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
496
497         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
498         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
499
500 2003-07-01  Andreas Jaeger  <aj@suse.de>
501
502         * fold-const.c: Convert prototypes to ISO C90.
503         * function.c: Likewise.
504         * function.h: Likewise.
505
506 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
507
508         * doc/contrib.texi: Fix typos.
509         * doc/invoke.texi: Likewise.
510         * doc/passes.texi: Likewise.
511         * doc/sourcebuild.texi: Likewise.
512         * doc/tm.texi: Likewise.
513
514 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
515
516         * basic-block.h: Fix comment typos.
517         * bb-reorder.c: Likewise.
518         * c-format.c: Likewise.
519         * cfgcleanup.c: Likewise.
520         * cfghooks.h: Likewise.
521         * cfgloop.c: Likewise.
522         * cfgloopmanip.c: Likewise.
523         * cfgrtl.c: Likewise.
524         * cgraph.h: Likewise.
525         * cgraphunit.c: Likewise.
526         * combine.c: Likewise.
527         * convert.c: Likewise.
528         * dbxout.c: Likewise.
529         * df.c: Likewise.
530         * df.h: Likewise.
531         * diagnostic.c: Likewise.
532         * dwarf2out.c: Likewise.
533         * et-forest.h: Likewise.
534         * flow.c: Likewise.
535         * fold-const.c: Likewise.
536         * function.h: Likewise.
537         * gcov-io.h: Likewise.
538         * gcov.c: Likewise.
539         * gcse.c: Likewise.
540         * genautomata.c: Likewise.
541         * ggc-common.c: Likewise.
542         * ggc-page.c: Likewise.
543         * loop-unroll.c: Likewise.
544         * loop-unswitch.c: Likewise.
545         * loop.c: Likewise.
546         * mips-tfile.c: Likewise.
547         * optabs.c: Likewise.
548         * ra-build.c: Likewise.
549         * ra-colorize.c: Likewise.
550         * ra-rewrite.c: Likewise.
551         * ra.h: Likewise.
552         * regmove.c: Likewise.
553         * reload.c: Likewise.
554         * rtlanal.c: Likewise.
555         * sched-ebb.c: Likewise.
556         * sched-int.h: Likewise.
557         * sched-vis.c: Likewise.
558         * sreal.c: Likewise.
559         * ssa-ccp.c: Likewise.
560         * ssa.c: Likewise.
561         * toplev.c: Likewise.
562         * tree-inline.c: Likewise.
563         * value-prof.c: Likewise.
564         * value-prof.h: Likewise.
565
566 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
567
568         * rtl.h (emit_line_note_after): Remove.
569         (emit_note_copy_after, emit_note_copy): New.
570         * emit-rtl.c (reorder_insns_with_line_notes): Replace
571         emit_line_note_after with emit_note_copy_after.
572         (emit_insn_after_with_line_notes): Likewise.
573         (emit_line_note_after): Kill.
574         (emit_note_copy_after): New.
575         (emit_note_copy): New.
576         * function.c (emit_return_into_block): Use emit_note_copy_after.
577         (thread_prologue_and_epilogue_insns): Likewise.
578         * integrate.c (expand_inline_function): Use emit_note_copy.
579         (copy_insn_list): Likewise.
580         * unroll.c (copy_loop_body): Likewise.
581         * cfglayout.c (duplicate_insn_chain): Likewise.
582
583 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
584
585         * c-tree.h (define_label): Replace filename and lineno arguments
586         with a location_t.
587         * c-decl.c (poplevel): Adjust define_label call.
588         (pop_label_level): Likewise.
589         (define_label): Replace filename and lineno arguments with a
590         location_t.
591         (store_parm_decls): Use DECL_SOURCE_LOCATION.
592         * c-parse.in (label): Adjust define_label call.
593
594 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
595
596         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
597         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
598         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
599         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
600         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
601
602 2003-07-01  Andreas Jaeger  <aj@suse.de>
603
604         * final.c: Convert prototypes to ISO C90.
605         * flow.c: Likewise.
606         * flags.h: Likewise.
607         * gcov-io.c: Likewise.
608         * gcov-io.h: Likewise.
609
610 2003-06-30  Bruno Haible  <bruno@clisp.org>
611
612         PR middle-end/6578
613         * libgcc2.c (__subvsi3): Remove simplification that would not work
614         when subtracting -0x80000000.
615         (__subvdi3): Remove simplification that would return a wrong result.
616         (__mulvsi3): Fix overflow check.
617         (__absvdi2): Fix simplification that would return a wrong result.
618         (__mulvdi3): Fix overflow check.
619
620 2003-06-30  Jeff Law  <law@redhat.com>
621
622         * stmt.c (any_pending_cleanups): Lose argument THIS_CONTOUR, it
623         was always passed in the value '1'.  Simplify body appropriately.
624         * tree.h (any_pending_cleanups): Corresponding changes.
625         * calls.c: (expand_call): Corresponding changes.
626
627 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
628
629         * combine.c (distribute_notes): Don't bother REG_WAS_0.
630         * cse.c (cse_insn): Likewise.
631         * final.c (final_scan_insn): Likewise.
632         * jump.c (duplicate_loop_exit_test): Likewise.
633         * rtl.c (reg_note_name): Remove REG_WAS_0.
634         * rtl.h (REG_WAS_0): Remove.
635         * unroll.c (final_reg_note_copy): Don't bother REG_WAS_0.
636         * config/avr/avr.c (output_movqi): Don't use reg_was_0.
637         (output_movhi): Likewise.
638         (output_movsisf): Likewise.
639         (reg_was_0): Remove.
640         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't use
641         REG_WAS_0.
642         (m68hc11_gen_movqi): Likewise.
643         * config/vax/vax-protos.h: Remove the prototype for
644         reg_was_0_p.
645         * config/vax/vax.c (follows_p): Remove.
646         (reg_was_0_p): Likewise.
647         * config/vax/vax.md (movsi): Don't use reg_was_0_p.
648         (movhi): Likewise.
649         (movqi): Likewise.
650         * doc/rtl.texi (REG_WAS_0): Remove.
651
652 2003-06-30  Mark Mitchell  <mark@codesourcery.com>
653
654         * config/rs6000/spe.h (__ev_set_spefscr_frmc): Set the flag.
655
656 2003-06-30  Bob Wilson  <bob.wilson@acm.org>
657
658         * config/xtensa/lib1funcs.asm: Use "xtensa-config.h" from
659         top-level include directory.
660         * config/xtensa/lib2funcs.S: Likewise.
661         * config/xtensa/xtensa.h: Likewise.
662         * config/xtensa/xtensa-config.h: Remove.
663         * doc/install.texi: Update location of "xtensa-config.h" header.
664
665 2003-06-30  Ulrich Weigand  <uweigand@de.ibm.com>
666
667         * config/s390/s390.c (s390_extra_constraint): New function.
668         * config/s390/s390-protos.h (s390_extra_constraint): Declare it.
669         * config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
670         * config/s390/s390.c (q_constraint): Remove.
671         * config/s390/s390-protos.h (q_constraint): Likewise.
672         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'R', 'S', 'T'.
673         (EXTRA_ADDRESS_CONSTRAINT): Define.
674
675         * config/s390/s390.c (larl_operand): Refuse out-of-range operands.
676         (DISP_IN_RANGE, s390_short_displacement): New.
677         (legitimate_reload_operand_p): Support long displacements.
678         (s390_decompose_address): Likewise.
679         (legitimize_pic_address): Likewise.
680         (legitimize_address): Likewise.
681         (s390_fixup_clobbered_return_reg): Likewise.
682         (s390_emit_prologue, s390_emit_epilogue): Likewise.
683         (s390_output_mi_thunk): Likewise.
684
685         * config/s390/s390.md (attr "op_type"): Add "RXY", "RSY", "SIY".
686         (attr "atype", attr "length"): Add defaults for new op_types.
687         (all insns): Change op_type attribute where appropriate.
688
689         ("*movdi_lay", "*movsi_lay", "*extendqidi2", "*extendqisi2"): New insns.
690         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", *tmqi_mem",
691         "*tstsi", "*tstsi_cconly", "*tsthiCCT", "*tsthiCCT_cconly",
692         "*tsthi", "*tsthi_cconly", "*tstqiCCT", "*tstqiCCT_cconly",
693         "*tstqi", "*tstqi_cconly", "*cmpsi_ccs_sign", "*cmpsi_ccs",
694         "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu", "*cli",
695         "movti", "*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
696         "movqi", "*movstrictqi", "*movstricthi", "movstrictsi",
697         "*movdf_64", "*movdf_31", "*movsf",
698         "*load_multiple_si", "*store_multiple_di",
699         "*sethighqisi", "*sethighhisi", "*sethighqidi_31", "*extendhisi2",
700         "*la_64", "*la_31", "*la_31_and", "force_la_31",
701         "*addsi3_carry1_cc", *addsi3_carry1_cconly",
702         "*addsi3_carry2_cc", *addsi3_carry2_cconly",
703         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
704         "*addsi3_sign", "*addsi3_sub", "addsi3",
705         "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
706         "*subsi3_cconly", "*subsi3_sign", "*subsi3_sub", "subsi3",
707         "mulsi3"
708         "*andsi3_cc", "*andsi3_cconly", "andsi3",
709         "*andqi3_ss", "*andqi3_ss_inv",
710         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
711         "*iorqi3_ss", "*iorqi3_ss_inv",
712         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3",
713         "*xorqi3_ss", "*xorqi3_ss_inv",
714         "*tls_load_31"): Add alternatives for long-displacement instructions.
715
716         ("*cmpdf_ccs", "*cmpdf_ccs_ibm", "*cmpsf_ccs", "*cmpsf_ccs_ibm",
717         "*load_multiple_di", "*store_multiple_di",
718         "*sethighqidi_64", "*zero_extendhisi2_31",
719         "truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
720         "adddf3", "*adddf3", "*adddf3_ibm",
721         "addsf3", "*addsf3", "*addsf3_ibm",
722         "subdf3", "*subdf3", "*subdf3_ibm",
723         "subsf3", "*subsf3", "*subsf3_ibm",
724         "mulsi_6432", "divmoddisi3",
725         "muldf3", "*muldf3", "*muldf3_ibm",
726         "mulsf3", "*mulsf3", "*mulsf3_ibm",
727         "divdf3", "*divdf3", "*divdf3_ibm",
728         "divsf3", "div*sf3", "*divsf3_ibm",
729         "sqrtdf2", "sqrtsf2",
730         "*cjump_long", "*icjump_long", "indirect_jump", "casesi_jump",
731         "*doloop_si_long", "*doloop_di_long", "bas_64", "bas_31",
732         "bas_r_64", "bas_r_31", "bas_tls_31", "bas_tls_64"): Adapt memory
733         and address constraints for instructions that do not accept long
734         displacements.
735
736 2003-06-30  Hartmut Penner  <hpenner@de.ibm.com>
737             Ulrich Weigand  <uweigand@de.ibm.com>
738
739         * config/s390/2084.md: New file.
740         * config/s390/s390.md: Include it.
741         * config/s390/s390.c (s390_adjust_priority): New function.
742         (TARGET_SCHED_ADJUST_PRIORITY): Define.
743         (s390_first_cycle_multipass_dfa_lookahead): New function.
744         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
745         (s390_sched_reorder2): New function.
746         (TARGET_SCHED_REORDER2): Define.
747         (s390_adjust_cost): Support PROCESSOR_2084_Z990 cpu type.
748         (s390_issue_rate): Likewise.
749
750 Mon Jun 30 23:47:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
751
752         * Makefile.in (GTFILES): Add cgraph.h.
753         * cgraph.c (known_decls): Remove.
754         (cgraph_hash, cgraph_nodes, cgraph_nodes_queue,
755         cgraph_varpool_hash, cgraph_varpool_nodes_queue): GTYize.
756         (cgraph_node): Do not allocate known_decls; use polutate hashtable.
757         (cgraph_varpool_node): Likewise; add next pointer.
758         (cgraph_varpool_nodes): New static variable.
759         * cgraph.h (cgraph_local_info, cgraph_global_info, cgraph_rtl_info,
760         cgraph_node, cgraph_edge, cgraph_varpool_node, cgraph_nodes, cgraph_n_nodes,
761         cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): GTYize.
762         * gengtype.c (open_base_files): Include cgraph.h
763
764 2003-06-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
765
766         * Changelog: Remove ">>>>>>>" from previous change.
767
768 2003-06-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
769
770         * config/cris/cris.c: Fix spelling for "testcase".
771         * config/cris/cris.h: Likewise.
772         * config/cris/cris.md: Likewise.
773         * config/mmix/crti.asm: Likewise.
774         * config/mmix/mmix.h: Likewise.
775         * config/mmix/mmix.md: Likewise.
776
777 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
778
779         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Make it always
780         1.
781
782 2003-06-30  Ulrich Weigand  <uweigand@de.ibm.com>
783
784         * config.gcc [s390*-*-*]: Support --with-arch, --with-tune, and
785         --with-mode configure options.
786         * config/s390/s390.h (OPTION_DEFAULT_SPECS): Define.
787         (DRIVER_SELF_SPECS): Define.
788         * config/s390/linux.h (ASM_SPEC): Pass architecture mode and cpu
789         architecture to assembler.
790         (LINK_SPEC): Merge 31-bit and 64-bit variants.
791         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC, EXTRA_SPECS): Remove.
792         * config/s390/s390.c (override_options): New default rules for
793         architecture mode and cpu architecture selection.
794         * doc/invoke.texi (-mesa, -mzarch, -march, -mtune): Document
795         new default rules.
796
797         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2084_Z990.
798         * config/s390/s390.md (attr "cpu"): Add "z990" processor type.
799         * config/s390/s390.c (override_options): Add "z990" to
800         processor_alias_table.
801         * doc/invoke.texi (-march): Document "z990" processor type.
802
803         * config/s390/s390.c (s390_tune_flags, s390_arch_flags): New variables.
804         * config/s390/s390.h (s390_tune_flags, s390_arch_flags): Declare.
805         (enum processor_flags, TARGET_CPU_IEEE_FLOAT, TARGET_CPU_ZARCH,
806         TARGET_CPU_LONG_DISPLACEMENT, TARGET_LONG_DISPLACEMENT): New.
807         * config/s390/s390.c (override_options): Replace enum pta_flags by
808         enum processor_flags.  Fill in s390_tune_flags and s390_arch_flags.
809
810         * config/s390/s390.c (s390_cpu): Rename to ...
811         (s390_tune): ... this.
812         * config/s390/s390.h (s390_cpu, s390_tune): Likewise.
813         * config/s390/s390.c (s390_issue_rate, override_options): Likewise.
814         * config/s390/s390.md (attr "cpu"): Likewise.
815
816 2003-06-30  Neil Booth  <neil@daikokuya.co.uk>
817
818         * c-common.c (enum c_language_kind, flag_objc): Remove.
819         (fix_string_type, check_case_value, c_common_nodes_and_builtins,
820         c_add_case_label, finish_label_addr_expr, boolean_increment):
821         Use c_dialect_ macros.
822         * c-common.h (enum c_language_kind): Extend.
823         (c_dialect_cxx, c_dialect_objc): New.
824         (flag_objc): Remove.
825         (c_common_init_options): Update prototype.
826         * c-cppbuiltin.c (define__GNUC__, c_cpp_builtins): Use c_dialect_
827         macros.
828         * c-decl.c (finsih_decl, grokfield, finish_struct): Use c_dialect_
829         macros.
830         * c-format.c (C_STD_VER, C_STD_NAME): Similarly.
831         * c-lang.c (c_init_options): Remove.
832         (c_language): Define.
833         (LANG_HOOKS_INIT_OPTIONS): Use common hook.
834         * c-lex.c (lex_charconst): Use c_dialect_ macros.
835         * c-opts.c (lang_flags): Make function-local.
836         (c_common_init_options): Use c_dialect_ macros.  Handle
837         C++ diagnostic requirements.
838         (c_common_handle_option, c_common_post_options): Use flag_cxx.
839         * c-parse.in (init_reswords): Use c_dialect_objc ().
840         * c-pch.c (get_ident): Use c_language.
841         * c-pretty-print.c (pp_c_bool_literal): Use c_dialect_ macros.
842         * c-typeck.c (comptypes, build_c_cast): Similarly.
843         * objc/objc-lang.c (c_language): Define.
844         (LANG_HOOKS_INIT_OPTIONS): Use common hook.
845         (objc_init_options): Remove.
846
847 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
848
849         * config/alpha/alpha.h (FUNCTION_ARG_PADDING): Remove.
850         * config/alpha/unicosmk.h: Don't #undef FUNCTION_ARG_PADDING.
851
852 2003-06-30  Wolfgang Bangerth  <bangerth@dealii.org>
853
854         * doc/sourcebuild.texi: Don't reference gnats.html any more.
855
856 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
857
858         * config/h8300/h8300.c (compute_mov_length): Fix length of
859         mov:SF on H8/300.
860
861 2003-06-30  Nick Clifton  <nickc@redhat.com>
862
863         * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Make defintion
864         constant.
865
866 Mon Jun 30 15:36:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
867
868         (fyl2x_sfxf3, fyl2x_dfxf3, fscale_sfxf3, fscale_dfxf3): Fix condition.
869
870 2003-06-30 Hartmut Penner  <hpenner@de.ibm.com>
871
872         * config/rs6000/rs6000.c (rs6000_split_altivec_in_gprs): New function.
873         (altivec_in_gprs_p): New function.
874
875         * config/rs6000/rs6000-protos (rs6000_split_altivec_in_gprs): New
876         prototype.
877         (altivec_in_gprs_p): New prototype.
878
879         * config/rs6000/altivec.md (*movv4si_internal): Change
880         multi-assembler alternative to '#'. Add postreload splitter to
881         handle this cases.
882         (*movv4hi_internal): Likewise.
883         (*movv4qi_internal): Likewise.
884         (*movv4sf_internal): Likewise.
885
886 2003-06-30  Jason Merrill  <jason@redhat.com>
887
888         * defaults.h (PUSH_ARGS_REVERSED): Define default here.
889         * calls.c: Not here.
890
891 2003-06-30  Ben Elliston  <bje@wasabisystems.com>
892
893         * config/arm/arm.c (arm_rtx_costs): Remove #if 0 block.
894         (bad_signed_byte_operand): Likewise.
895         (arm_output_epilogue): Likewise.
896         (arm_final_prescan_insn): Likewise.
897
898 2003-06-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
899
900         * cfgrtl.c (mark_killed_regs): Cast HARD_REGNO_NREGS to int.
901
902 2003-06-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
903
904         * c-pch.c (c_common_write_pch): Flush asm_out_file to allow for
905         subsequent writes.
906
907 Mon Jun 30 10:03:02 CEST 2003  Jan Hubicka  <jh@suse.cz>
908
909         * cfgrtl.c (verify_flow_info): Accept degenerated condjumps
910         in cfglayout mode.
911
912 Mon Jun 30 09:52:39 CEST 2003  Jan Hubicka  <jh@suse.cz>
913
914         * i386.c (standard_80387_constant_p): Accept TFmode constants too.
915         (init_ext_80387_constants): Likewise.
916         (standard_80387_constant_rtx): Likewise.
917         * i386.md (atanxf): Disable for TARGET_128BIT_LONG_LONG
918         (atantf): Disable for !TARGET_128BIT_LONG_LONG
919         (fyl2x_sfxf3, fyl2x_dfxf3): Accept TFmode operands.
920         (fyl2x_xfxf3, fyl2x_tfxf3): Enable/disable as needed.
921         (fscale_sfxf3, fscale_dfxf3): Accept TFmode operands.
922         (fscale_xfxf3, fscale_tfxf3): Enable/disable as needed.
923         (frndinttf2): New.
924         (f2xm1tf2): New.
925         (exp?f2): Use expsf2_tf when needed.
926         (exp?f2_tf): New.
927         (exptf): New.
928
929 2003-06-29 Uwe Stieber <uwe@kaos-group.de>
930
931         * config.gcc (sh*-*-kaos*): Put tm_file setting in separate case
932         statement from tmake_file set.
933
934 2003-06-29  James E Wilson  <wilson@tuliptree.org>
935
936         * reload.c (find_reloads): Change push_reloads to push_reload in
937         comment.
938         * reload1.c (eliminate_regs): Likewise.
939         (dump_needs): Delete prototype for deleted function.
940
941 2003-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
942
943         * builtin-attrs.def (gcc_diag, gcc_cdiag, gcc_cxxdiag): New
944         format attributes.
945         * c-format.c (enum format_type): Add gcc_diag_format_type,
946         gcc_cdiag_format_type, and gcc_cxxdiag_format_type.
947         (gcc_diag_length_specs, gcc_cdiag_length_specs,
948         gcc_cxxdiag_length_specs, gcc_diag_flag_pairs,
949         gcc_cdiag_flag_pairs, gcc_cxxdiag_flag_pairs, gcc_diag_flag_specs,
950         gcc_cdiag_flag_specs, gcc_cxxdiag_flag_specs, gcc_diag_char_table,
951         gcc_cdiag_char_table, gcc_cxxdiag_char_table): New.
952         (format_types_orig): Add new data.
953         (find_char_info_specifier_index, init_dynamic_diag_info): New
954         functions.
955         (handle_format_attribute): Update to handle new format attributes.
956
957 2003-06-29  Aaron W. LaFramboise  <awlaframboise@aol.com>
958
959         * config/i386/gthr-win32.h (__GTHREAD_HIDE_WIN32API): Define to 1.
960
961 2003-06-29  Dara Hazeghi  <dhazeghi@yahoo.com>
962
963         * doc/install.texi: Remove install documentation for obsoleted targets
964         i?86-*-sco, i?86-*-sco3.2v4, powerpcle-*-pe, powerpcle-*-winnt,
965         arm-*-aof.
966         Update information about IA64 toolchain, AIX make requirements,
967         and binutils for m68k-*-hpux and *-*-linuxaout targets.
968
969 Mon Jun 30 00:50:43 CEST 2003  Jan Hubicka  <jh@suse.cz>
970
971         * regmove.c (regmove_optimize): Don't try to make src and dst match
972         when they are in different modes.
973
974 Sun Jun 29 23:06:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
975
976         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2): Avoid
977         busy work when builtin is not supported by the backend.
978
979 2003-06-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
980
981         * loop.c (count_one_set): Fix detection of registers set in more
982         than one basic block.
983
984 2003-06-29  Andreas Jaeger  <aj@suse.de>
985
986         * target-def.h: Remove usage of OBJECT_FORMAT_ROSE.
987         * system.h: Poison OBJ_FORMAT_ROSE.
988         * doc/tm.texi (Macros for Initialization): Remove documentatin of
989         OBJECT_FORMAT_ROSE.
990         * config/rs6000/lynx.h: Remove undef of OBJECT_FORMAT_ROSE.
991         * collect2.c: Remove usage of OBJECT_FORMAT_ROSE.
992
993 2003-06-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
994
995         * pa.c (update_total_code_bytes): New function.
996         (last_address): Number of bytes output for a function and its
997         associated thunks.
998         (compute_frame_size): Use BITS_PER_UNIT.
999         (pa_output_function_epilogue): Compute last_address.  Use
1000         update_total_code_bytes.
1001         (output_lbranch): Handle long branch on portable runtime.
1002         (attr_length_millicode_call, attr_length_call,
1003         attr_length_indirect_call): Only use total_code_bytes for calls in
1004         the text section.
1005         (output_call): Only use an indirect call sequence when the target is
1006         not local.
1007         (pa_asm_output_mi_thunk): Handle updating of total_code_bytes.  Improve
1008         test to determine when an IA-relative branch can be used.  Add various
1009         long branch sequences.  Avoid using an indirect branch on all ports
1010         except SOM.
1011
1012 2003-06-29  Ulrich Weigand  <uweigand@de.ibm.com>
1013
1014         * expr.c (clear_by_pieces): Fix prototype.
1015
1016 2003-06-29  Andreas Jaeger  <aj@suse.de>
1017
1018         * cse.c: Convert prototypes to ISO C90.
1019         * cselib.c: Likewise.
1020         * cselib.h: Likewise.
1021         * dbxout.c: Likewise.
1022         * debug.c: Likewise.
1023         * df.c: Likewise.
1024         * df.h: Likewise.
1025         * dojump.c: Likewise.
1026         * doloop.c: Likewise.
1027         * dominance.c: Likewise.
1028         * dwarf2asm.c: Likewise.
1029         * dwarf2out.c: Likewise.
1030         * dwarf2out.h: Likewise.
1031         * dwarfout.c: Likewise.
1032         * except.c: Likewise.
1033         * except.h: Likewise.
1034         * emit-rtl.c: Likewise.
1035         * et-forest.c: Likewise.
1036         * et-forest.h: Likewise.
1037         * except.c: Likewise.
1038         * explow.c: Likewise.
1039         * expmed.c: Likewise.
1040         * expr.c: Likewise.
1041         * expr.h: Likewise.
1042
1043 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
1044
1045         * alloc-pool.c: Fix comment formatting.
1046         * bitmap.c: Likewise.
1047         * bitmap.h: Likewise.
1048         * bt-load.c: Likewise.
1049         * builtins.c: Likewise.
1050         * caller-save.c: Likewise.
1051         * cfganal.c: Likewise.
1052         * cfgrtl.c: Likewise.
1053         * collect2.c: Likewise.
1054         * cse.c: Likewise.
1055         * df.c: Likewise.
1056         * diagnostic.c: Likewise.
1057         * dwarf2out.c: Likewise.
1058         * dwarfout.c: Likewise.
1059         * expmed.c: Likewise.
1060         * final.c: Likewise.
1061         * flags.h: Likewise.
1062         * fold-const.c: Likewise.
1063         * gcc.c: Likewise.
1064         * gcov-io.h: Likewise.
1065         * gcov.c: Likewise.
1066         * genattrtab.c: Likewise.
1067         * genautomata.c: Likewise.
1068         * libgcov.c: Likewise.
1069         * mips-tfile.c: Likewise.
1070         * optabs.c: Likewise.
1071         * prefix.c: Likewise.
1072         * rtlanal.c: Likewise.
1073         * stmt.c: Likewise.
1074         * stor-layout.c: Likewise.
1075         * toplev.c: Likewise.
1076         * varasm.c: Likewise.
1077         * vmsdbgout.c: Likewise.
1078
1079 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
1080
1081         * expr.c (emit_single_push_insn): If padding is needed
1082         downward, adjust the stack pointer first, and then store the
1083         data into the stack location using an offset.
1084
1085 2003-06-29  Andreas Jaeger  <aj@suse.de>
1086
1087         * collect2.h: Convert prototypes to ISO C90.
1088         * collect2.c: Likewise.
1089         * conflict.c: Likewise.
1090         * coverage.c: Likewise.
1091         * convert.h: Likewise.
1092         * convert.c: Likewise.
1093
1094 2003-06-29  Nathan Sidwell  <nathan@codesourcery.com>
1095
1096         * c-decl.c (c_init_decl_processing): Use a location_t. Set input
1097         filename to <internal>.
1098         * tree.c (make_node): Just copy the current location.
1099
1100 2003-06-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
1101
1102         PR optimization/11210
1103         * fold-const (decode_field_reference): Revert 2003-06-26 patch.
1104
1105 2003-06-29  Neil Booth  <neil@daikokuya.co.uk>
1106
1107         * toplev.c (flag_dummy): Remove.
1108         (f_options): Restore flag pointers.
1109
1110 2003-06-29  David Edelsohn  <edelsohn@gnu.org>
1111
1112         * config/rs6000/rs6000.c (processor_target_table): Add 970.
1113         * config.gcc: Add 970.
1114
1115 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
1116
1117         * dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X,
1118         -1) with ggc_strdup.
1119         * stmt.c (expand_asm_operands): Likewise.
1120         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
1121
1122 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
1123
1124         * config/ip2k/ip2k.c (ip2k_reorg): Use INSN_P instead of its
1125         definition.
1126
1127 2003-06-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1128
1129         * opts.c: Include insn-attr.h.
1130         * Makefile.in (opts.o): Depend on INSN_ATTR_H.
1131
1132 2003-06-27  J"orn Rennecke <joern.rennecke@superh.com>
1133
1134         * flow.c (propagate_one_insn): Use proper test for a register
1135         being part of the return value.
1136
1137 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
1138
1139         * config/avr/avr.c: Fix a comment typo.
1140
1141 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
1142
1143         * config/avr/avr-protos.h: Replace avr_simplify_comparision_p
1144         with avr_simplify_comparison_p.
1145         * config/avr/avr.c: Likewise.
1146
1147 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
1148
1149         * builtins.c: Follow spelling conventions.
1150         * cgraph.c: Likewise.
1151         * cpplex.c: Likewise.
1152         * config/arm/arm.c: Likewise.
1153         * config/arm/iwmmxt.md: Likewise.
1154         * config/c4x/c4x-modes.def: Likewise.
1155         * config/c4x/c4x.c: Likewise.
1156         * config/c4x/c4x.h: Likewise.
1157         * config/c4x/c4x.md: Likewise.
1158         * config/i386/i386-interix.h: Likewise.
1159         * config/mips/mips.h: Likewise.
1160
1161 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
1162
1163         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Predicate
1164         __mc68020__ on TARGET_68020.
1165
1166 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
1167
1168         * config/h8300/h8300.c: Fix a comment typo.
1169
1170 2003-06-28  Nathan Sidwell  <nathan@codesourcery.com>
1171
1172         * c-parse.in (yylexstring): Use a location_t.
1173
1174         * diagnostic.h (diagnostic_set_info): Replace file and lineno
1175         parameters with a location_t.
1176         * diagnostic.c (diagnostic_set_info): Replace file and lineno
1177         parameters with a location_t.
1178         (inform, warning, pedwarn, error, sorry, fatal_error,
1179         internal_error, warning_with_decl, pedwarn_with_decl,
1180         error_with_decl): Adjust.
1181         * c-error.c (pedwarn_c99): Adjust.
1182         * c-format.c (status_warning): Adjust.
1183         * rtl-error.c (file_and_line_for_asm): Rename to ...
1184         (location_for_asm): Return a location_t.
1185         (diagnostic_for_asm): Adjust.
1186
1187 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
1188
1189         * cpptrad.c (skip_macro_block_comment): New.
1190         (copy_comment): Use it if appropriate.
1191
1192 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
1193
1194         * gcse.c (compute_ld_motion_mems): Use INSN_P instead of its
1195         definition.
1196         (store_killed_in_insn): Likewise.
1197         * print-rtl.c (print_rtx): Likewise.
1198         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
1199         * config/m68hc11/m68hc11.c (dead_register_here): Likewise.
1200         (m68hc11_reassign_regs): Likewise.
1201         (m68hc11_reorg): Likewise.
1202
1203 2003-06-28  Gabriel Dos Reis <gdr@integrable-solutions.net>
1204
1205         * diagnostic.c (output_integer_with_precision): New macro.
1206         (output_format): Use it.  Handle more format specifiers.
1207         (output_long_decimal): Remove.
1208         (output_unsigned_decimal): Likewise.
1209         (output_long_unsigned_decimal): Likewise.
1210         (output_octal): Likewise.
1211         (output_long_octal): Likewise.
1212         (output_hexadecimal): Likewise.
1213         (output_long_hexadecimal): Likewise.
1214         (output_long_long_decimal): Likewise.
1215
1216 2003-06-28  Andreas Schwab  <schwab@suse.de>
1217
1218         * config/ia64/ia64.md: Follow recent emit_note API change.
1219
1220 2003-06-28  Nathan Sidwell  <nathan@codesourcery.com>
1221
1222         * c-parse.in (%union): Replace filename & lineno with location.
1223         (save_filename, save_lineno): Remove.
1224         (save_location): New.
1225         (fndef, old_style_parm_decls_1, lineno_datadecl, lineno_decl,
1226         nested_function, notype_nested_function, if_prefix, lineno_stmt,
1227         lineno_label, label): Adjust.
1228
1229 2003-06-28  Jakub Jelinek  <jakub@redhat.com>
1230
1231         * builtins.c (c_strlen): Add only_value argument.
1232         Handle COND_EXPR and COMPOUND_EXPR.
1233         (expand_builtin_strlen): Optimize also strlen (i++ ? "foo" : "bar").
1234         Adjust c_strlen callers.
1235         (expand_builtin_strcpy, expand_builtin_strncpy,
1236         expand_builtin_strcmp, expand_builtin_strncmp,
1237         expand_builtin_fputs, expand_builtin_sprintf,
1238         fold_builtin): Adjust c_strlen callers.
1239
1240 2003-06-28  Josef Zlomek  <zlomekj@suse.cz>
1241
1242         * bb-reorder.c (find_traces_1_round): Do not send basic block
1243         to next round when we are in the last round.
1244
1245 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
1246
1247         * Makefile.in: Update.
1248         * opts.c: Include tm_p.h.
1249         (handle_options): Make static.
1250         (decode_options): Copied from toplev.c.
1251         * opts.h (decode_options): New.
1252         * toplev.c (parse_options_and_default_flags): Move most to opts.c,
1253         some to...
1254         (general_init): ...here.
1255         (toplev_main): Use decode_options instead.
1256         * toplev.h (save_argc, save_argv): New.
1257
1258 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
1259
1260         * explow.c (find_next_ref): Remove.
1261         * rtl.h: Remove the prototype for find_next_ref.
1262
1263 2003-06-27  Roger Sayle  <roger@eyesopen.com>
1264
1265         * config/alpha/alpha.md (anonymous define_split): Adjust emit_note
1266         call to match recent API change.
1267
1268 2003-06-27  Zack Weinberg  <zack@codesourcery.com>
1269
1270         * dbxout.c (flag_debug_only_used_symbols): Delete redundant
1271         declaration.
1272
1273         * c-format.c (check_format_string, get_constant)
1274         * cfgrtl.c (rtl_split_edge):
1275         Mark the definition static, matching the forward declaration.
1276
1277 2003-06-27  Gunther Nikl <gni@gecko.de>
1278
1279         * unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.
1280
1281         PR target/11014
1282         * config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly
1283         syntax for MIT / MOTOROLA.
1284
1285         PR other/10240
1286         * configure.in: Removed $(XCFLAGS) from BUILD_CFLAGS for build != host.
1287         * configure: Rebuilt.
1288
1289 2003-06-27  Chris Demetriou  <cgd@broadcom.com>
1290
1291         * config/mips/mips.c (mips_build_va_list): Make padding in
1292         va_list structure explicit to avoid -Wpadded warnings.
1293
1294 2003-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
1295
1296         * config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
1297         * config/s390/s390.c (s390_secondary_output_reload_class): New function.
1298         * config/s390/s390-protos.h (s390_secondary_output_reload_class):
1299         Declare it.
1300         * config/s390/s390.md ("reload_outti", "reload_outdi",
1301         "reload_outdf"): New expanders.
1302
1303         * config/s390/s390.md ("movti" + splitters): Handle non-offsettable
1304         memory operands as source.
1305         ("movdi" + splitters): Likewise.
1306         ("movdf" + splitters): Likewise.
1307         * config/s390/s390.c (s390_split_ok_p): New function.
1308         * config/s390/s390-protos.h (s390_split_ok_p): Declare it.
1309
1310 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1311
1312         * combine.c (force_to_mode): Replace the equality comparison
1313         of INTVALs with a pointer equality comparison.
1314         (simplify_comparison): Likewise.
1315
1316 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1317
1318         * jump.c (rtx_renumbered_equal_p): Replace an expression that
1319         is known to be 0 with 0.
1320
1321 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1322
1323         * gcse.c (expr_equiv_p): Replace expressions that are known to
1324         be 0 with 0.
1325
1326 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1327
1328         * cse.c (fold_rtx): Replace the equality comparison of INTVALs
1329         with a pointer equality comparison.
1330
1331 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1332
1333         * rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN
1334         are known to be not equivalent.
1335
1336 2003-06-27  Richard Henderson  <rth@redhat.com>
1337
1338         * config/alpha/alpha.c (function_arg): Don't pass small aggregates
1339         in floating point registers.  Validate that we don't receive complex
1340         values here.  Use #elif.
1341         (return_in_memory, function_value): New.
1342         (alpha_va_arg): Handle complex values as two arguments.
1343         * config/alpha/alpha.h (RETURN_IN_MEMORY): Use return_in_memory.
1344         (FUNCTION_VALUE, LIBCALL_VALUE): Use function_value.
1345         (SPLIT_COMPLEX_ARGS): New.
1346         * config/alpha/alpha-protos.h: Update.
1347
1348 2003-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
1349
1350         * ggc-page.c (inverse_table): Change type of mult to size_t.
1351         (compute_inverse): Compute inverse using size_t, not unsigned int.
1352         Compute inverse also for sizes larger than half a machine page.
1353
1354 Fri Jun 27 18:36:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
1355
1356         * toplev.c (rest_of_decl_compilation):  Only varpoolize argument
1357         when called before cgraph_optimize.
1358
1359 2003-06-27  Zack Weinberg  <zack@codesourcery.com>
1360
1361         * config/darwin.h, config/elfos.h, config/i960/i960-coff.h
1362         * config/m68k/coff.h: ASM_FILE_START_FILE_DIRECTIVE should
1363         be TARGET_ASM_FILE_START_FILE_DIRECTIVE.
1364
1365 Fri Jun 27 17:41:16 CEST 2003  Jan Hubicka  <jh@suse.cz>
1366
1367         * cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
1368         of known_decls.
1369
1370 2003-06-27  Hans-Peter Nilsson  <hp@axis.com>
1371
1372         * defaults.h (REGISTER_MOVE_COST): Define default here.
1373         * regclass.c: Don't define default REGISTER_MOVE_COST here.
1374         * reload.c, reload1.c: Ditto.
1375
1376 2003-06-27  Richard Earnshaw <rearnsha@arm.com>
1377
1378         * flags.h: Really install previous change.
1379
1380 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
1381
1382         * rtl.h (emit_note): Remove FILE parameter.
1383         * emit-rtl.c (emit_line_note): Adjust emit_note call.
1384         (emit_note): Remove FILE parameter. Adjust.
1385         * builtins.c (expand_builtin_expect): Adjust emit_note call.
1386         * c-semantics.c (genrtl_scope_stmt): Likewise.
1387         (expand_stmt): Likewise.
1388         * cfglayout.c (reemit_insn_block_notes): Likewise.
1389         (duplicate_insn_chain): Likewise.
1390         * except.c (expand_eh_region_start, expand_eh_region_end,
1391         sjlj_emit_function_enter): Likewise.
1392         * explow.c (probe_stack_range): Likewise.
1393         * expr.c (emit_block_move_via_loop): Likewise.
1394         * function.c (init_function_start, expand_function_start,
1395         expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
1396         * integrate.c (expand_inline_function, copy_insn_list): Likewise.
1397         * reg-stack.c (compensate_edge): Likewise.
1398         * reload1.c (reload): Likewise.
1399         * rtlanal.c (hoist_insn_to_edge): Likewise.
1400         * stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
1401         expand_loop_continue_here, expand_end_loop, expand_continue_loop,
1402         expand_exit_loop_top_cond, expand_value_return,
1403         expand_start_bindings_and_block, expand_end_bindings,
1404         expand_decl_cleanup, expand_start_case): Likewise.
1405         * unroll.c (copy_loop_body
1406         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
1407         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1408         * config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
1409         rs6000_emit_allocate_stack, rs6000_output_function_prologue,
1410         rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
1411         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1412         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1413
1414 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
1415
1416         * c-tree.h (grokfield): Remove unused filename and line parameters.
1417         * c-decl.c (grokfield): Remove unused filename and line parameters.
1418         * c-parse.in (component_decl): Adjust field grokking rules, adjust
1419         grokfield calls.
1420         (component_declarator): Likewise.
1421         (component_notype_declarator): Likewise.
1422         * objc/objc-act.c (build_module_descriptor): Adjust grokfield
1423         calls.
1424         (build_protocol_template, build_method_prototype_list_template,
1425         build_method_prototype_template, build_category_template,
1426         build_selector_template, build_class_template,
1427         build_super_template, build_ivar_template,
1428         build_ivar_list_template, build_method_list_template,
1429         build_method_template, add_instance_variable): Likewise.
1430
1431 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1432
1433         * stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and
1434         OP2 are known to be not equivalent.
1435
1436 2003-06-26  Devang Patel <dpatel@apple.com>
1437
1438         * final.c (debug_flush_symbol_queue): New function.
1439         (debug_queue_symbol): New function.
1440         (debug_free_queue): New function.
1441         (debug_nesting): New variable.
1442         (symbol_queue): New variable.
1443         (symbol_queue_index): Same.
1444         (symbol_queue_size): Same.
1445         * debug.h (debug_flush_symbol_queue): New.
1446         (debug_queue_symbol): New.
1447         (debug_free_queue): New.
1448         (debug_nesting): New.
1449         (symbol_queue_index): New.
1450         * dbxout.c (DBXOUT_DECR_NESTING): New macro.
1451         (DBXOUT_DECR_NESTING_AND_RETURN): New macro.
1452         (dbxout_init): Delay symbol output.
1453         (dbxout_global_decl): Save, set and reset TREE_USED bit around
1454         dbxout_symbol() call.
1455         (dbxout_begin_function): Same.
1456         (dbxout_finish): Free symbol queue.
1457         (dbxout_type): Put appropriate symbols in queue.
1458         (dbxout_symbol): Put info for symbol's type in queue.
1459         Decrement/Increment nesting counts flush symbol queue appropriately.
1460         (dbxout_parms): Increment dbxout nesting.
1461         (dbxout_reg_parms): Same.
1462         * flags.h (flag_debug_only_used_symbols): New.
1463         * toplev.c (flag_debug_only_used_symbols): New variable.
1464         (lang_independent_options): Add entries for new option
1465         -feliminate-unused-debug-symbols.
1466         * common.opt: Add entry for -feliminate-unused-debug-symbols.
1467         * opts.c (common_handle_options): Same.
1468         * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as
1469         -feliminate-unused-debug-symbols.
1470         * doc/invoke.texi (Debugging Options): Document
1471         -feliminate-unused-debug-symbols.
1472
1473 2003-06-26  Roger Sayle  <roger@eyesopen.com>
1474             Jakub Jelinek  <jakub@redhat.com>
1475
1476         * builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to
1477         obtain the format string instead of using TREE_STRING_POINTER and
1478         TREE_STRING_LENGTH.  Only optimize sprintf(dst,"%s",src) when the
1479         return value is unused or the length of src is a known constant.
1480
1481 2003-06-26  Richard Henderson  <rth@redhat.com>
1482
1483         * config/ia64/ia64.h (REGISTER_NAMES): R0 is really AP.
1484
1485 2003-06-26  Richard Henderson  <rth@redhat.com>
1486
1487         * config/ia64/ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.
1488         (ia64_split_call): Only load descriptor for GP register inputs.
1489         (ia64_expand_epilogue): Check current_frame_info.mask not
1490         current_function_is_leaf to restore ar.pfs.
1491
1492 2003-06-26  Richard Henderson  <rth@redhat.com>
1493
1494         * emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE
1495         instead of replacing it.
1496
1497 2003-06-26  Richard Henderson  <rth@redhat.com>
1498
1499         * flow.c (propagate_one_insn): Kill function return value
1500         registers across tail calls.
1501
1502         * flow.c (propagate_one_insn): Preserve live-at-end registers
1503         across tail calls.
1504
1505 2003-06-26  J"orn Rennecke <joern.rennecke@superh.com>
1506
1507         * reload.c (can_reload_into): New function.
1508         (push_reload): Use it.
1509
1510 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
1511
1512         * config/h8300/h8300.c (compute_a_rotate_length): Fix the
1513         references to the amount of a rotation.
1514
1515 2003-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
1516
1517         * config/sh/coff.h: Don't include dbxcoff.h.
1518         * config.gcc: List it here.
1519
1520 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
1521
1522         * postreload.c (reload_cse_simplify_set): Call cselib_lookup
1523         earlier.  Don't check if SRC is a constant.
1524
1525 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
1526
1527         * Makefile.in (OBJS): Add postreload.o.
1528         Remove cselib.h from the dependency list for reload1.o.
1529         Add a dependency list for postreload.o.
1530         * reload.h: Change the comment for the prototype of
1531         reload_cse_regs.
1532         * reload1.c: Don't include cselib.h.
1533         (reload_cse_regs): Move to postreload.c
1534         (reload_cse_regs_1): Likewise.
1535         (reload_cse_noop_set_p): Likewise.
1536         (reload_cse_simplify_set): Likewise.
1537         (reload_cse_simplify_operands): Likewise.
1538         (RELOAD_COMBINE_MAX_USES): Likewise.
1539         (reload_combine_ruid): Likewise.
1540         (LABEL_LIVE): Likewise.
1541         (reload_combine): Likewise.
1542         (reload_combine_note_use): Likewise.
1543         (reload_combine_note_store): Likewise.
1544         (reg_set_luid): Likewise.
1545         (reg_offset): Likewise.
1546         (reg_base_reg): Likewise.
1547         (reg_mode): Likewise.
1548         (move2add_luid): Likewise.
1549         (move2add_last_label_luid): Likewise.
1550         (MODES_OK_FOR_MOVE2ADD): Likewise.
1551         (reload_cse_move2add): Likewise.
1552         (move2add_note_store): Likewise.
1553         (reload_cse_simplify): Likewise.
1554         * postreload.c: New.
1555
1556 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
1557
1558         * config/avr/avr.c (final_prescan_insn): Remove support for
1559         -mrtl.
1560         * config/avr/avr.h (MASK_RTL_DUMP): Remove.
1561         (TARGET_RTL_DUMP): Likewise.
1562         (TARGET_SWITCHES): Remove -mrtl.
1563
1564 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
1565
1566         * config/h8300/h8300-protos.h: Change emit_a_rotate to
1567         output_a_rotate.  Add a prototype for compute_a_rotate_length.
1568         * config/h8300/h8300.c (emit_a_rotate): Change to
1569         output_a_rotate.
1570         (compute_a_rotate_length): New.
1571         (h8300_adjust_insn_length): Remove.
1572         * config/h8300/h8300.h (ADJUST_INSN_LENGTH): Remove.
1573         * config/h8300/h8300.md (adjust_length): Remove.
1574         (*rotlqi3_1): Use output_a_rotate and compute_a_rotate_length.
1575         (*rotlhi3_1): Likewise.
1576         (*rotlsi3_1): Likewise.
1577
1578 2003-06-26  Roger Sayle  <roger@eyesopen.com>
1579             Richard Henderson  <rth@redhat.com>
1580
1581         * builtins.c (expand_builtin_mathfn): Always stabilize the argument
1582         list against re-evaluation.  If expand_unop fails, call expand_call
1583         with the stabilized argument list rather than return NULL_RTX.
1584         (expand_builtin_mathfn2): Likewise, always stabilize the argument
1585         list, and call expand_call ourselves if expand_binop fails.
1586
1587 2003-06-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
1588
1589         PR optimization/11210
1590         * fold-const (decode_field_reference): Strip only NOPs that
1591         don't affect the sign.
1592
1593 2003-06-26  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
1594
1595         * gcc/config/sh/sh.md (push_fpscr): Enable for TARGET_SH2E.
1596         (pop_fpscr, fpu_switch): Likewise.
1597
1598 2003-06-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1599
1600         * value-prof.c: New.
1601         * value-prof.h: New.
1602         * Makefile.in (value-prof.o): New.
1603         (LIBGCOV): Add _gcov_merge_single and _gcov_merge_delta
1604         (profile.o): Add value-prof.h and tree.h dependency.
1605         * flags.h (flag_profile_values): Declare.
1606         * gcov-io.h (GCOV_COUNTERS, GCOV_COUNTER_NAMES, GCOV_MERGE_FUNCTIONS):
1607         Add new counters.
1608         (GCOV_COUNTER_V_INTERVAL, GCOV_COUNTER_V_POW2, GCOV_COUNTER_V_SINGLE,
1609         GCOV_COUNTER_V_DELTA): New counter sections.
1610         (__gcov_merge_single, __gcov_merge_delta): Declare.
1611         * flow.c (mark_used_regs): Set subregs_of_mode only when the
1612         structure is initialized.
1613         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): New functions.
1614         * profile.c: Include value-prof.h and tree.h.
1615         (gen_interval_profiler, gen_pow2_profiler, gen_one_value_profiler,
1616         gen_const_delta_profiler, instrument_values): New static functions.
1617         (get_exec_counts): Fix comment.
1618         (branch_prob): Invoke instrument_values.
1619         * toplev.c (flag_profile_values): New flag.
1620         * doc/invoke.texi (-fprofile-values): Document.
1621
1622 2003-06-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1623
1624         * Makefile.in (cfgrtl.o): Add expr.h dependency.
1625         * cfgrtl.c: Include expr.h.
1626         (mark_killed_regs, safe_insert_insn_on_edge): New
1627         functions.
1628         * config/i386/i386.h (AVOID_CCMODE_COPIES): Define.
1629         * basic-block.h (safe_insert_insn_on_edge): Declare.
1630
1631 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
1632
1633         * c-opts.c (missing_arg): Make non-static.
1634         (c_common_handle_option): Don't check for missing arguments.
1635         * opts.c (handle_option): Check for missing arguments.
1636
1637 2003-06-26  David Edelsohn  <edelsohn@gnu.org>
1638
1639         * config/rs6000/power4.md (power4-veccomplex): Correct latency.
1640
1641 2003-06-25  Loren James Rittle  <ljrittle@acm.org>
1642
1643         * configure.in (ld_vers): Portability [sed].
1644         * configure: Regenerate with autoconf213.
1645
1646 2003-06-25  H.J. Lu <hongjiu.lu@intel.com>
1647
1648         * doc/extend.texi: Document new builtin functions for Intel
1649         Prescott New Intrunctions.
1650
1651         * doc/invoke.texi: Document new command-line options, -mpni and
1652         -mno-pni, for Intel Prescott New Intrunctions.
1653
1654         * config.gcc (extra_headers): Add pmmintrin.h for i[34567]86-*-*.
1655
1656         * config/i386/i386.c (override_options): Turn on MASK_SSE2
1657         for -mpni. Turn on MASK_SSE for -msse2.
1658         (bdesc_2arg): Add PNI builtins with 2 args.
1659         (bdesc_1arg): Add PNI builtins with 1 arg.
1660         (ix86_init_mmx_sse_builtins): Handle PNI builtins.
1661         (ix86_expand_builtin): Likewise.
1662
1663         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A,
1664         MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT,
1665         MASK_TLS_DIRECT_SEG_REFS): Renumbered.
1666         (TARGET_PNI): New.
1667         (TARGET_SWITCHES): Don't enable MASK_SSE for -msse2 here. Add
1668         -mpni and -mno-pni.
1669         (TARGET_CPU_CPP_BUILTINS): Defined __PNI__ for PNI.
1670         (ix86_builtins): Add PNI builtins.
1671         (config/i386/i386.md): Add PNI patterns.
1672
1673         * config/i386/pmmintrin.h: New file.
1674
1675 2003-06-25  Kazu Hirata  <kazu@cs.umass.edu>
1676
1677         * config/h8300/h8300.md (call): Fix the insn lengths.
1678         (call_value): Likewise.
1679
1680 Thu Jun 26 00:13:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
1681
1682         * c-common.c (handle_used_attribute): Use mark_referenced.
1683         * varasm.c (mark_referenced): Break out from ...
1684         (assemble_name): ... here.
1685         * tree.h (mark_referenced): Declare.
1686
1687 2003-06-25  Wolfgang Bangerth  <bangerth@dealii.org>
1688
1689         * gccbug.in: Add PCH to list of categories.
1690
1691 2003-06-25 Martin Schaffner <schaffner@gmx.li>
1692
1693         * cppfiles.c: Clarify comments.
1694         * cpphash.h: Likewise.
1695         * cpplib.h: Likewise.
1696         * cppmacro.c: Likewise.
1697         * mkdeps.h: Likewise.
1698
1699 2003-06-25  Neil Booth  <neil@daikokuya.co.uk>
1700
1701         * c-opts.c (complain_wrong_lang, write_langs): Remove.
1702         (c_common_handle_option): Complaints about wrong language are
1703         handled in opts.c now.
1704         * opts.c (complain_wrong_lang, write_langs, handle_options): New.
1705         (find_opt): Fix thinko.
1706         (handle_option): Update prototype.  Complain about switches for
1707         a different front end.
1708         * opts.h (lang_names, handle_options): New.
1709         (handle_option): Remove.
1710         * opts.sh: Write out language names array.
1711         * toplev.c (parse_options_and_default_flags): Use handle_options.
1712
1713 2003-06-25  H.J. Lu <hongjiu.lu@intel.com>
1714
1715         * config/i386/i386.c (MASK_SSE1): Removed.
1716         (MASK_SSE164): Removed.
1717         (MASK_SSE264): Removed.
1718         (bdesc_2arg): Replace MASK_SSE1 with MASK_SSE. Replace
1719         MASK_SSE164 with MASK_SSE | MASK_64BIT. Replace MASK_SSE264
1720         with MASK_SSE2 | MASK_64BIT.
1721         (bdesc_1arg): Likewise.
1722         (ix86_init_mmx_sse_builtins): Likewise.
1723
1724         * config/i386/i386.h (TARGET_SSE): Remove MASK_SSE2.
1725         (TARGET_SWITCHES): Enable both MASK_SSE and MASK_SSE2 for
1726         -msse2.
1727
1728 2003-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1729
1730         * hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros.
1731         (HOST_WIDE_INT_PRINT_DEC_SPACE,
1732         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
1733         HOST_WIDEST_INT_PRINT_DEC_SPACE,
1734         HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete.
1735         (HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C,
1736         HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in
1737         terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C.
1738
1739         * final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT.
1740         * ra-debug.c (dump_static_insn_cost): Likewise.
1741
1742 2003-06-26  Nick Clifton  <nickc@redhat.com>
1743
1744         * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead
1745         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
1746         Replace occurances of '???' with 'XXX' incase they are
1747         mistaken for trigraphs.
1748         (THUMB_PRINT_OPERAND_ADDRESS): abort if a compound address
1749         does not have a register for the first operand.
1750
1751 2003-06-25      Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1752
1753         * config/sh/sh.c (sh_register_move_cost):
1754         Add case for moving between MAC_REGS.
1755
1756 2003-06-25  Zack Weinberg  <zack@codesourcery.com>
1757
1758         PR 10178
1759         * langhooks.h (struct lang_hooks): Add no_body_blocks bool.
1760         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): New; default false.
1761         * c-lang.c, objc/objc-lang.c: Override LANG_HOOKS_NO_BODY_BLOCKS
1762         to true.
1763         * stmt.c (is_body_block): If lang_hooks.no_body_blocks, always
1764         return 0.
1765
1766 2003-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1767
1768         * Makefile.in (bt-load.o): Depend on $(TM_P_H).
1769         * bt-load.c: Include "tm_p.h".
1770
1771 2003-06-25  Kazu Hirata  <kazu@cs.umass.edu>
1772
1773         * config/h8300/h8300.c (compute_mov_length): Adjust for the
1774         new optimization.
1775         * config/h8300/h8300.md (*movsi_h8300): Optimize the load of
1776         an SImode constant whose upper and lower are the same.
1777
1778 Wed Jun 25 11:31:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
1779
1780         * varasm.c (assemble_name): Mark needed variables even when
1781         global info is ready.
1782
1783 2003-06-24  Jerry Quinn  <jlquinn@optonline.net>
1784
1785         PR other/11280
1786         * gcc/doc/invoke.texi (Optimization Options): Remove -Os from
1787         -freorder-functions description.
1788
1789 2003-06-25  Josef Zlomek  <zlomekj@suse.cz>
1790
1791         * dwarf2out.c (gen_field_die): Return if type of decl is error mark.
1792
1793 2003-06-25  Neil Booth  <neil@daikokuya.co.uk>
1794
1795         * opts.c (common_handle_option): Add missing break;s.
1796
1797 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
1798
1799         * config/h8300/h8300-protos.h: Add a prototype for
1800         compute_mov_length.
1801         * config/h8300/h8300.c (compute_mov_length): New.
1802         * config/h8300/h8300.md (*movqi_h8300): Use it.
1803         (*movqi_h8300hs): Likewise.
1804         (movstrictqi): Likewise.
1805         (*movhi_h8300): Likewise.
1806         (*movhi_h8300hs): Likewise.
1807         (movstricthi): Likewise.
1808         (*movsi_h8300): Likewise.
1809         (*movsf_h8300): Likewise.
1810         (*movsi_h8300hs): Likewise.
1811         (*movsf_h8300hs): Likewise.
1812
1813 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
1814
1815         * jump.c (next_nondeleted_insn): Remove.
1816         * rtl.h: Remove the prototype for next_nondeleted_insn.
1817
1818 2003-06-24  Roger Sayle  <roger@eyesopen.com>
1819
1820         PR optimization/11311
1821         * builtins.c (powi_cost): Fix typo.  The number of multiplications
1822         required is the number to reduce the argument, result, plus the
1823         cost of calculating the residual, val [not n, the original value].
1824
1825 2003-06-24  Roger Sayle  <roger@eyesopen.com>
1826
1827         * config/alpha/osf5.h (TARGET_C99_FUNCTIONS): Define.
1828
1829 2003-06-24  Richard Henderson  <rth@redhat.com>
1830             (blame to: Loren James Rittle  <ljrittle@acm.org>)
1831
1832         * real.h (ieee_extended_intel_96_round_53_format): New.
1833         * real.c (ieee_extended_intel_96_round_53_format): New.
1834         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Use it
1835         for XFmode and TFmode.
1836
1837 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
1838
1839         * config/h8300/h8300.md (4 anonymous patterns): Give internal
1840         names.
1841         (movsi_h8300): Change the name to *movsi_h8300.
1842         (movsi_h8300hs): Change the name to *movsi_h8300hs.
1843         (movsf_h8300): Change the name to *movsf_h8300.
1844         (movsf_h8300hs): Change the name to *movsf_h8300hs.
1845
1846 2003-06-24  Jakub Jelinek  <jakub@redhat.com>
1847
1848         * builtins.c (expand_builtin_strcpy): Don't evaluate side-effects in
1849         src twice.
1850
1851 2003-06-24  J"orn Rennecke <joern.rennecke@superh.com>
1852
1853         Back out these patches:
1854          2003-06-02  J"orn Rennecke <joern.rennecke@superh.com>
1855           * sh.h (OLD_ARG_MODE): New macro.
1856           (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
1857           (FUNCTION_ARG_1): Break out of:
1858           (FUNCTION_ARG).  Use OLD_ARG_MODE.
1859          2003-06-06  J"orn Rennecke <joern.rennecke@superh.com>
1860           * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
1861           of the generated register.
1862
1863         * sh.h (FUNCTION_ARG_SCmode_WART): Define.
1864         (FUNCTION_ARG): Unless FUNCTION_ARG_SCmode_WART is defined and
1865         an even number of floating point regs are in use, use the same
1866         sequence of argument passing registers for SCmode as would be
1867         used for two SFmode values.
1868         * sh.c (sh_va_arg): If FUNCTION_ARG_SCmode_WART is defined,
1869         swap real / imaginary parts in incoming SCmode values passed
1870         in registers.
1871
1872 2003-06-24  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
1873
1874         PR target/11260
1875         * config/alpha/alpha.md (sqrtdf2): Fix operand substitution.
1876
1877 Tue Jun 24 18:49:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
1878
1879         * Makefile.in (cgraph.o): Depend on output.h, not depend on
1880         tree-inline.h
1881         * cgraph.c: Do not include tree-inline.h; include output.h
1882         (known_fns): Rename to ...
1883         (known_decls): ... this one; update all uses.
1884         (cgraph_varpool_hash): New static variable.
1885         (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): New global
1886         variables.
1887         (cgraph_varpool_hash_node, eq_cgraph_varpool_node, cgraph_varpool_node,
1888         cgraph_varpool_node_for_identifier, cgraph_varpool_mark_needed_node,
1889         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
1890         New functions.
1891         * cgraph.h (cgraph_varpool_node): New structure.
1892         (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): Declare.
1893         (cgraph_varpool_node, cgraph_varpool_node_for_identifier,
1894         cgraph_varpool_finalize_decl, cgraph_varpool_mark_needed_node,
1895         cgraph_varpool_asemble_pending_decls): Declare.
1896         * cgraphunit.c (record_call_1): Notice variable references.
1897         (cgraph_finalize_compilation_unit): Assemble pending variables.
1898         * toplev.c (wrapup_global_declarations): Use varpool.
1899         (compile_file): Assemble pending declarations.
1900         (rest_of_decl_compilation): Use varpool in unit-at-a-time mode.
1901         * varasm.c (assemble_name): Notice varpool references.
1902
1903 Tue Jun 24 13:52:11 CEST 2003  Jan Hubicka  <jh@suse.cz>
1904
1905         * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro.
1906         * langhooks.h (lang_hooks_for_decls): Add prepare_assemble_variable.
1907         * varasm.c (assemble_variable): Call prepare_assemble_variable.
1908
1909 2003-06-23  Roger Sayle  <roger@eyesopen.com>
1910
1911         * builtins.c (expand_builtin): Use expand_builtin_pow to expand
1912         calls for pow, powf, powl and their __builtin_ variants.
1913         (expand_builtin_pow): If the second argument is a constant
1914         integer and compiling with -ffast-math, use expand_powi to
1915         generate RTL if powi_cost is less than POWI_MAX_MULTS.
1916         (powi_cost): New function to return the number of multiplications
1917         necessary to evaluate an Nth power, for integer constant N.
1918         (expand_powi): New function to expand the RTL for evaluating
1919         the Nth power of a floating point value, for integer constant N.
1920
1921         * doc/tm.texi (POWI_MAX_MULTS): Document new target macro.
1922
1923 Mon Jun 23 23:07:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
1924
1925         * cgraph.c (cgraph_nodes_queue): Declare.
1926         (eq_node): Take identifier as p2.
1927         (cgraph_node): Update htab_find_slot_with_hash call.
1928         (cgraph_node_for_identifier): New.
1929         (cgraph_mark_needed_node): Move here from cgraphunit.c.
1930         * cgraph.h (cgraph_nodes_queue): Declare.
1931         (cgraph_node_for_identifier): Declare.
1932         * cgraphunit.c (cgraph_finalize_function): Collect entry points here
1933         instead of in cgraph_finalize_compilation_unit; constructors and
1934         destructors are entry points.
1935         (cgraph_finalize_compilation_unit): Reorganize debug outout;
1936         examine nested functions after lowerng; call collect_functions hook.
1937         (cgraph_mark_local_functions): DECL_COMDAT functions are not local.
1938         (cgraph_finalize_compilation_unit): Do not collect entry points.
1939         * varasm.c: Include cgraph.h
1940         (assemble_name): Mark referenced identifier as needed.
1941
1942         * cgraphunit.c (record_call_1): Use get_callee_fndecl.
1943
1944 2003-06-23  Jakub Jelinek  <jakub@redhat.com>
1945
1946         * config/i386/i386.c (x86_output_mi_thunk): Don't pass MEM to %P0,
1947         just SYMBOL_REF.
1948         * config/s390/s390.c (s390_output_mi_thunk): Avoid .plt in -m31
1949         mode, as it requires pic register loaded.
1950
1951         * varasm.c (resolve_unique_section): Remove prototype.  No longer
1952         static.
1953         * tree.h (resolve_unique_section): New prototype.
1954
1955 2003-06-23  Andreas Schwab  <schwab@suse.de>
1956
1957         PR debug/9905
1958         * dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by
1959         recursing through first argument.
1960
1961 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
1962
1963         * ChangeLog.1: Fix a typo.
1964         * cfgrtl.c: Fix comment typos.
1965         * dwarf2out.c: Likewise.
1966         * expmed.c: Likewise.
1967         * genrecog.c: Likewise.
1968         * jump.c: Likewise.
1969         * rtlanal.c: Likewise.
1970         * ssa-dce.c: Likewise.
1971         * toplev.c: Likewise.
1972
1973 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
1974
1975         * doc/extend.texi: Fix typos.
1976         * doc/md.texi: Likewise.
1977         * doc/tm.texi: Likewise.
1978
1979 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
1980
1981         * basic-block.h: Fix comment formatting.
1982         * bt-load.c: Likewise.
1983         * builtins.c: Likewise.
1984         * c-common.c: Likewise.
1985         * c-common.h: Likewise.
1986         * c-format.c: Likewise.
1987         * coverage.c: Likewise.
1988         * cpplib.h: Likewise.
1989         * cpppch.c: Likewise.
1990         * dbxout.c: Likewise.
1991         * diagnostic.c: Likewise.
1992         * dwarf2out.c: Likewise.
1993         * expr.c: Likewise.
1994         * fold-const.c: Likewise.
1995         * function.c: Likewise.
1996         * gcc.c: Likewise.
1997         * gcov-io.c: Likewise.
1998         * gcov-io.h: Likewise.
1999         * gcov.c: Likewise.
2000         * profile.c: Likewise.
2001         * real.h: Likewise.
2002         * sched-deps.c: Likewise.
2003
2004 2003-06-23  Roger Sayle  <roger@eyesopen.com>
2005             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2006
2007         * doc/contrib.texi (Contributors): Add a note on testing and
2008         remove duplicates from testers list.
2009
2010 2003-06-23  Nick Clifton  <nickc@redhat.com>
2011
2012         * read-rtl.c (read_braced_string): Check for EOF.  If
2013         encountered issue an error message.
2014
2015 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
2016
2017         * doc/invoke.texi: Document dump options, dT and dW.
2018
2019 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
2020
2021         * genrecog.c (pred_table): Remove the entry for
2022         mode_independent_operand.
2023         * recog.c (next_insns_test_no_inequality): Remove.
2024         (mode_independent_operand): Likewise.
2025         * recog.h: Remove the prototype for mode_independent_operand.
2026
2027 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
2028
2029         * config/h8300/h8300.c (output_simode_bld): Use rotxl.l to
2030         store into bit 0.
2031         * config/h8300/h8300.md (*extzv_1_r_h8300hs): Change cc of the
2032         second alternative to set_znv.
2033         (*extzv_1_r_inv_h8300hs): Likewise.
2034
2035 2003-06-23  Hans-Peter Nilsson  <hp@bitrange.com>
2036
2037         * configure.in (in_tree_gas): Find out here whether GAS is ELF,
2038         set in_tree_gas_is_elf accordingly.
2039         (in_tree_ld): Find out whether LD emulation is ELF, set
2040         in_tree_ld_is_elf accordingly.
2041         (gcc_cv_as_subsections, gcc_cv_as_hidden, gcc_cv_as_leb128)
2042         (gcc_cv_as_eh_frame, gcc_cv_as_shf_merge)
2043         (gcc_cv_as_dwarf2_debug_line, gcc_cv_as_gdwarf2_flag)
2044         (gcc_cv_as_gstabs_flag): Use $in_tree_gas_is_elf instead of
2045         grepping gas/Makefile.
2046         (gcc_cv_ld_ro_rw_mix, gcc_cv_ld_eh_frame_hdr, gcc_cv_ld_pie): Use
2047         $in_tree_ld_is_elf instead of grepping ld/Makefile.
2048         * configure: Regenerate.
2049
2050 2003-06-22  Roger Sayle  <roger@eyesopen.com>
2051
2052         * builtins.c (expand_builtin_mathfn_2): Use tree_cons to build
2053         up the stabilized argument list, not build_tree_list.
2054         (expand_builtin_strcpy): Construct new argument list manually
2055         instead of using chainon to modify the original argument list.
2056         (expand_builtin_stpcpy): Construct new argument list manually
2057         instead of using copy_list and chainon.
2058         (expand_builtin_sprintf): New function.  Optimize calls to
2059         sprintf when the format is "%s" or doesn't contain a '%'.
2060         (expand_builtin): Expand BUILT_IN_SPRINTF using the new function
2061         expand_builtin_sprintf.
2062
2063 2003-06-22  Andreas Schwab  <schwab@suse.de>
2064
2065         * function.c (set_insn_locators): Mark as unused.
2066
2067 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
2068
2069         * common.opt: Add -finline-limit.
2070         * opts.c (common_handle_options): Handle it.
2071         * opts.sh: Temporary kludge for -finline-limit.
2072         * toplev.c (decode_f_option, independent_decode_option): Die.
2073         (parse_options_and_default_flags): No independent_decode_option.
2074
2075 2003-06-22  Andreas Jaeger  <aj@suse.de>
2076
2077         * calls.c (emit_call_1): Readd lost ATTRIBUTE_UNUSED.
2078
2079 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
2080
2081         * doc/invoke.texi: Document dumps, .btl, .cfg, and .bypass.
2082
2083 2003-06-22  Andreas Schwab  <schwab@suse.de>
2084
2085         * doc/invoke.texi: Remove leading `-' from options in index.
2086
2087 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
2088
2089         * bt-load.c: Follow spelling conventions.
2090
2091 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
2092
2093         * expr.c (emit_move_insn_1): Fix a comment typo.
2094
2095 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
2096
2097         * doc/invoke.texi: Alphabetize dump options.
2098
2099 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
2100
2101         * doc/invoke.texi: Remove a duplicate -dk.
2102
2103 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
2104
2105         * doc/invoke.texi: Update dump file names.
2106
2107 2003-06-22  Zack Weinberg  <zack@codesourcery.com>
2108
2109         * config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
2110         and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
2111
2112 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
2113
2114         * doc/rtl.texi: Fix the @findex for pre_modify.
2115
2116 2003-06-22  Andreas Jaeger  <aj@suse.de>
2117
2118         * caller-save.c: Convert to ISO C90.
2119         * calls.c: Likewise.
2120         * cfg.c: Likewise.
2121         * cfganal.c: Likewise.
2122         * cfgbuild.c: Likewise.
2123         * cfgcleanup.c: Likewise.
2124         * cfghooks.c: Likewise.
2125         * cfglayout.c: Likewise.
2126         * cfglayout.h: Likewise.
2127         * cfgloop.c: Likewise.
2128         * cfgloop.h: Likewise.
2129         * cfgloopanal.c: Likewise.
2130         * cfgloopmainip.c: Likewise.
2131         * cfgrtl.c: Likewise.
2132
2133 2003-06-22  Richard Earnshaw  <rearnsha@arm.com>
2134
2135         * arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting
2136         64-bit alignment.
2137
2138 2003-06-22  Richard Earnshaw  <rearnsha@arm.com>
2139
2140         * arm.md (all call_value patterns): Remove register constraints on
2141         value operand.
2142
2143 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
2144
2145         * common.opt: More -f switches.
2146         * opts.c (common_handle_options): Handle them.
2147         * toplev.c (time_report): Make extern.
2148         (f_options): USe flag_dummy.
2149         (decode_f_option): No need to use f_options now.
2150         * toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
2151         flag_ssa_dce, time_report, flag_new_regalloc): Make extern.
2152
2153 2003-06-22  Andreas Jaeger  <aj@suse.de>
2154
2155         * c-lex.c: Convert to ISO C90.
2156         * c-objc-common.c: Likewise.
2157         * c-opts.c: Likewise.
2158         * c-pch.c: Likewise.
2159         * c-ppoutput.c: Likewise.
2160         * c-pragma.h: Likewise.
2161         * c-pretty-print.c: Likewise.
2162         * c-pretty-print.h: Likewise.
2163         * c-semantics.c: Likewise.
2164         * c-tree.h: Likewise.
2165         * c-typeck.c: Likewise.
2166
2167         * c-lang.c: Convert to ISO C90.
2168
2169 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
2170
2171         * opts.c (find_opt): Fix to always guarantee a find of a
2172         switch with joined parameter.
2173         * opts.h (struct cl_option): New member back_chain.
2174         * opts.sh: Update to calculate and add back_chain member.
2175
2176 2003-06-22  Gabriel Dos Reis <gdr@integrable-solutions.net>
2177
2178         * diagnostic.h (output_host_wide_integer): Declare.
2179         * diagnostic.c (output_long_long_decicaml): New function.
2180         (output_host_wide_integer): Likewise.
2181         (output_format): Use them.  Handle "%ll" and "%w".
2182
2183 2003-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
2184
2185         * config.gcc (*-*-netbsd*): Add t-libgcc-pic to tmake_file.
2186
2187 2003-06-21  Zack Weinberg  <zack@codesourcery.com>
2188
2189         * aclocal.m4 (gcc_AC_C_CHARSET): Delete.
2190         * configure.in: Don't use gcc_AC_C_CHARSET.
2191         * configure, config.in: Regenerate.
2192         * config/i370/i370.c, config/i370/i370.h: Use
2193         (HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
2194         instead of HOST_EBCDIC or !HOST_EBCDIC.  Clarify comments a tad.
2195
2196 2003-06-21  Neil Booth  <neil@daikokuya.co.uk>
2197
2198         * Makefile.in: Update.
2199         * common.opt: New switches.
2200         * opts.c: Include diagnostic.h.
2201         (common_handle_option): Handle new switches.
2202         * toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
2203         flag_if_conversion2, flag_delete_null_pointer_checks,
2204         flag_rerun_cse_after_loop): Make extern.
2205         (flag_dummy): New.
2206         (f_options): Update to use flag_dummy for moved options.
2207         (decode_f_option): Some switches moved to opts.c.
2208         * toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
2209         flag_if_conversion2, flag_delete_null_pointer_checks,
2210         flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
2211         flag_tracer, flag_thread_jumps, flag_unroll_loops,
2212         flag_unroll_all_loops, flag_unswitch_loops): New.
2213
2214 Sat Jun 21 13:41:00 CEST 2003  Jan Hubicka  <jh@suse.cz>
2215
2216         * i386.c (ix86_va_arg): Fix allocation of temporary slot.
2217
2218 2003-06-20  Kazu Hirata  <kazu@cs.umass.edu>
2219
2220         * config/h8300/h8300-protos.h: Add a prototype for
2221         same_cmp_preceding_p.
2222         * config/h8300/h8300.c (same_cmp_preceding): New.
2223         * config/h8300/h8300.md: Extend peephole2's that transform
2224         compare:SI into shorter sequences so that they can deal with
2225         signed comparisons.
2226
2227 2003-06-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2228
2229         * doc/contrib.texi (Contributors): Use Windows instead of Win32.
2230
2231         Update Andreas Jaeger's entry.
2232
2233         Merge the two entries of Kaveh Ghazi, David Edelsohn, and
2234         Loren J. Rittle.
2235
2236 2003-06-21  Nathanael Nerode  <neroden@gcc.gnu.org>
2237
2238         * mkconfig.sh: Add multiple inclusion guards to generated headers.
2239
2240 2003-06-20  Neil Booth  <neil@daikokuya.co.uk>
2241
2242         * c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
2243         * common.opt: Add remaining -W options and -g.
2244         * diagnostic.c (warnings_are_errors): Remove.
2245         * flags.h: Make most warning flags boolean.
2246         * opts.c (common_handle_option): Handle remaining -W options, and -g.
2247         Move many warning flags from toplev.c, making them boolean.
2248         * toplev.c: Remove many warning flags.
2249         (decode_W_option): Remove.
2250         (decode_g_option): Make extern.  Error on unknown switch.
2251         (lang_independent_W_options): Use warn_dummy.
2252         (independent_decode_option): Just handle -f switches now.
2253         * toplev.h (decode_g_option): New.
2254
2255 2003-06-20  Aldy Hernandez  <aldyh@redhat.com>
2256
2257         PR/11092
2258         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
2259         vectors.
2260
2261 2003-06-20  Kelley Cook  <kelleycook@wideopenwest.com>
2262
2263         * opts.sh: Tweak awk script for portability.
2264
2265 2003-06-20  Mark Mitchell  <mark@codesourcery.com>
2266
2267         PR c++/10888
2268         * tree-inline.c (expand_call_inline): Do not warn about failing to
2269         inline functions declared in system headers.
2270         * doc/invoke.texi (-Winline): Expand on documentation.
2271
2272 2003-06-20  Richard Henderson  <rth@redhat.com>
2273
2274         * config/alpha/alpha.c (alpha_file_start): Disable
2275         file_start_file_directive for ELF and not MDEBUG.
2276
2277 2003-06-20  J"orn Rennecke <joern.rennecke@superh.com>
2278
2279         * sh.h (ROUND_TYPE_ALIGN): Remove.
2280
2281 2003-06-20  Richard Henderson  <rth@redhat.com>
2282
2283         * hooks.c (hook_int_void_no_regs): Rename from
2284         hook_reg_class_void_no_regs; change return type.
2285         * hooks.h: Update.
2286         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
2287         * target.h (branch_target_register_class): Change return type to int.
2288         Add documentation.
2289         * config/sh/sh.c (sh_target_reg_class): Change return type.
2290         * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
2291
2292 2003-06-20  Andreas Tobler <toa@pop.agri.ch>
2293
2294         * c-format.c: Change _Bool to bool reverting part of the last
2295         patch.
2296
2297 2003-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2298
2299         * som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to
2300         strip name encoding.
2301
2302 2003-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2303
2304         * configure.in (gcc_cv_as_gstabs_flag): Disable if assembler warns.
2305         * configure: Regenerate.
2306         Fixes PR driver/9362.
2307
2308 2003-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2309
2310         * config/alpha/alpha.c (alpha_file_start): Fix typo.
2311
2312 2003-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2313
2314         * config/mips/mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg
2315         to ASM_OUTPUT_SOURCE_LINE.
2316
2317 2003-06-20  Daniel Egger  <degger@fhm.edu>
2318             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2319
2320         * doc/install.texi (Building): Correct and improve statement
2321         about parallel builds.
2322
2323 2003-06-20  Andreas Jaeger  <aj@suse.de>
2324
2325         * c-common.c: Change _Bool to bool reverting part of the last
2326         patch.
2327
2328 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
2329
2330         * tree.h (expand_function_end): Remove all parameters.
2331         * function.c (expand_function_end): Remove all parameters.
2332         Use input_location. Never expand_end_bindings.
2333         * c-decl.c (c_expand_body_1): Adjust expand_function_end call.
2334         * coverage.c (create_coverage): Likewise.
2335
2336 2003-06-20  Nick Clifton  <nickc@redhat.com>
2337
2338         * doc/extend.texi (ARM Built-in Functions): New node.  Document
2339         ARM builtin functions for iWMMXt support.
2340
2341 2003-06-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
2342
2343         * doc/install.texi (--with-gnu-as): Mention SPARC/Solaris and
2344         SPARC64/Solaris as platforms where --with-gnu-as makes a difference.
2345         (--with-as): Add @anchor.
2346         (--with-gnu-ld): Fix typo.
2347         (--with-ld): Add @uref to --with-as.
2348
2349 2003-06-19  Zack Weinberg  <zack@codesourcery.com>
2350
2351         * doc/tm.texi: Uniformly use @defmac for macros, rather than
2352         @table items.  Minor formatting and editorial corrections.
2353
2354 2003-06-20  Neil Booth  <neil@daikokuya.co.uk>
2355
2356         * line-map.c, line-map.h: Convert to ISO prototypes.
2357
2358 2003-06-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2359
2360         * gcse.c (store_killed_in_insn): Fix.
2361
2362 2003-06-19  Zack Weinberg  <zack@codesourcery.com>
2363
2364         * target.h (asm_out.file_start, file_start_app_off,
2365         file_start_file_directive): New hooks.
2366         * target-def.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2367         TARGET_ASM_FILE_START_APP_OFF, TARGET_ASM_FILE_START):
2368         New hook-definition macros.
2369         * doc/tm.texi: Document new hooks; remove docs of ASM_FILE_START.
2370         * varasm.c (default_file_start): New.
2371         * output.h: Prototype it.
2372         * toplev.c (init_asm_output): Use targetm.asm_out.file_start.
2373         * system.h: Poison ASM_FILE_START.
2374
2375         * config/alpha/alpha.c (alpha_write_verstamp): Delete.
2376         (alpha_file_start): New, define if !TARGET_ABI_UNICOSMK.
2377         (unicosmk_asm_file_start): Rename unicosmk_file_start,
2378         make static, take no arguments.
2379         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END,
2380         TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set as appropriate.
2381         * config/alpha/unicosmk.h: Don't define ASM_FILE_START nor
2382         TARGET_ASM_FILE_END.  Remove reference to ASM_FILE_START in
2383         comment.
2384         * config/arc/arc.c (arc_asm_file_start): Rename
2385         arc_file_start, take no arguments, make static.
2386         (TARGET_ASM_FILE_START): Set it.
2387         * config/arm/arm.c (aof_file_start): New static function.
2388         (TARGET_ASM_FILE_START): Set it, when appropriate.
2389         * config/arm/coff.h, config/arm/elf.h:
2390         Set TARGET_ASM_FILE_START_APP_OFF to true.
2391         * config/avr/avr.c (asm_file_start): Rename avr_file_start,
2392         take no arguments, make static.
2393         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
2394         Set them.
2395         * config/c4x/c4x.c (c4x_file_start): New static function.
2396         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
2397         Set them.
2398         * config/cris/cris.c (cris_file_start): New static function.
2399         (TARGET_ASM_FILE_START): Set it.
2400         * config/dsp16xx/dsp16xx.c (coff_dsp16xx_file_start): Rename
2401         dsp16xx_file_start, make static.
2402         (luxworks_dsp16xx_file_start): Delete.
2403         (TARGET_ASM_FILE_START): Set it.
2404         * config/h8300/h8300.c (asm_file_start): Rename
2405         h8300_file_start, make static, take no arguments.
2406         (TARGET_ASM_FILE_START): Set it.
2407         * config/i370/i370.c (i370_file_start): New static function.
2408         (TARGET_ASM_FILE_START): Set it.
2409         * config/i386/i386.c (x86_file_start): New static function.
2410         (TARGET_ASM_FILE_START): Set it.
2411         * config/i386/i386.h (X86_FILE_START_VERSION_DIRECTIVE,
2412         X86_FILE_START_FLTUSED): New macros, default to false.
2413         * config/i386/i386-interix.h: Override X86_FILE_START_FLTUSED to 1.
2414         * config/i386/sysv4.h, config/i386/sco5.h: Override
2415         X86_FILE_START_VERSION_DIRECTIVE to true.
2416         * config/ia64/ia64.c (ia64_file_start): New static function.
2417         (TARGET_ASM_FILE_START): Set it.
2418         (emit_safe_across_calls): Take no arguments.
2419         * config/ia64/ia64.md: Update to match.
2420         * config/m32r/m32r.c (m32r_asm_file_start): Rename
2421         m32r_file_start, make static, take no arguments.
2422         (TARGET_ASM_FILE_START): Set it.
2423         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Rename
2424         m68hc11_file_start, make static, take no arguments.
2425         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2426         (print_options): Delete.
2427         * config/m68k/m68k.c (m68k_hp320_file_start): New static function.
2428         (TARGET_ASM_FILE_START_APP_OFF): Set.
2429         * config/m68k/hp320.h: Set TARGET_ASM_FILE_START to
2430         m68k_hp320_file_start.
2431         * config/mips/mips.c (iris6_asm_file_start, mips_asm_file_start):
2432         Make static, take no arguments.
2433         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2434         * config/mmix/mmix.c (mmix_asm_file_start): Rename
2435         mmix_file_start, make static, take no arguments.
2436         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2437         * config/mn10300/mn10300.c (asm_file_start): Rename
2438         mn10300_file_start, make static, take no arguments.
2439         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2440         * config/ns32k/ns32k.c (TARGET_ASM_FILE_START_APP_OFF): Set.
2441         * config/pa/pa.c (pa_file_start_level, pa_file_start_space,
2442         pa_file_start_file, pa_file_start_mcount, pa_elf_file_start,
2443         pa_som_file_start, pa_linux_file_start, pa_hpux64_gas_file_start,
2444         pa_hpux64_hpas_file_start): New static functions.
2445         * config/pa/elf.h: Set TARGET_ASM_FILE_START to pa_elf_file_start.
2446         * config/pa/pa-linux.h: Set TARGET_ASM_FILE_START to
2447         pa_linux_file_start.
2448         * config/pa/pa64-hpux.h: Set TARGET_ASM_FILE_START to
2449         pa_hpux64_gas_file_start or pa_hpux64_hpas_file_start, as
2450         appropriate.
2451         * config/pa/som.h: Set TARGET_ASM_FILE_START to pa_som_file_start.
2452         * config/rs6000/rs6000.c: Include xcoffout.h when TARGET_XCOFF.
2453         (rs6000_file_start): Make static, take no arguments.  Reset
2454         default_cpu under certain conditions.
2455         (rs6000_xcoff_file_start): New function.
2456         * config/rs6000/rs6000.h (TARGET_ASM_FILE_START): Set.
2457         * config/rs6000/xcoff.h (TARGET_ASM_FILE_START,
2458         TARGET_ASM_FILE_START_FILE_DIRECTIVE): Override.
2459         * config/sh/sh.c (output_file_start): Rename
2460         sh_file_start, make static, take no arguments.  Merge in old
2461         code from sh/elf.h's ASM_FILE_START, conditioned on TARGET_ELF.
2462         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2463         * config/sh/sh.c (TARGET_ELF): Define to 0.
2464         * config/sh/elf.h (TARGET_ELF): Redefine to 1.
2465         * config/v850/v850.c (asm_file_start): Delete.
2466         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2467         * config/vax/vax.c (vax_file_start): New static function.
2468         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_APP_OFF): Set.
2469
2470         * config/darwin.h: Override ASM_FILE_START_FILE_DIRECTIVE to false.
2471         * config/elfos.h, config/svr3.h, config/arm/elf.h, config/arm/pe.h
2472         * config/i386/att.h, config/i386/gas.h, config/i386/linux.h
2473         * config/i386/sysv4.h, config/i386/sco5.h, config/i960/i960-coff.h
2474         * config/m68k/coff.h, config/m68k/hp320.h, config/mcore/mcore-pe.h
2475         * config/vax/vaxv.h: Set ASM_FILE_START_FILE_DIRECTIVE to true.
2476
2477         * config/darwin.h, config/elfos.h, config/alpha/elf.h
2478         * config/alpha/openbsd.h, config/alpha/osf.h, config/alpha/vms.h
2479         * config/arc/arc.h, config/arm/aof.h, config/arm/aout.h
2480         * config/arm/coff.h, config/arm/elf.h, config/arm/pe.h
2481         * config/avr/avr.h, config/c4x/c4x.h, config/cris/cris.h
2482         * config/dsp16xx/dsp16xx.h, config/h8300/elf.h, config/h8300/h8300.h
2483         * config/i370/i370.h, config/i386/att.h, config/i386/gas.h
2484         * config/i386/i386-interix.h, config/i386/linux.h, config/i386/sysv4.h
2485         * config/i386/sco5.h, config/i960/i960-coff.h, config/i960/i960.h
2486         * config/ia64/ia64.h, config/ia64/sysv4.h, config/m32r/m32r.h
2487         * config/m68hc11/m68hc11.h, config/m68k/coff.h, config/m68k/m68k.h
2488         * config/mcore/mcore-pe.h, config/mips/iris6.h, config/mips/mips.h
2489         * config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h
2490         * config/pa/elf.h, config/pa/pa-linux.h, config/pa/pa64-hpux.h
2491         * config/pa/som.h, config/pdp11/pdp11.h, config/rs6000/linux64.h
2492         * config/rs6000/lynx.h, config/rs6000/xcoff.h, config/sh/elf.h
2493         * config/sh/sh.h, config/sparc/sparc.h, config/v850/v850.h
2494         * config/vax/vax.h, config/vax/vaxv.h: Don't (re)define ASM_FILE_START.
2495
2496         * config/alpha/alpha-protos.h, config/arc/arc-protos.h
2497         * config/avr/avr-protos.h, config/dsp16xx/dsp16xx-protos.h
2498         * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
2499         * config/m32r/m32r-protos.h, config/m68hc11/m68hc11-protos.h
2500         * config/mips/mips-protos.h, config/mmix/mmix-protos.h
2501         * config/mn10300/mn10300-protos.h, config/rs6000/rs6000-protos.h
2502         * config/sh/sh-protos.h, config/v850/v850-protos.h: Update.
2503
2504         * xcoffout.h, config/rs6000/aix.h, config/rs6000/xcoff.h:
2505         Remove reference to ASM_FILE_START in comment.
2506         * config/arm/aof.h, config/arm/aout.h, config/arm/freebsd.h
2507         * config/arm/linux-gas.h, config/arm/netbsd-elf.h
2508         * config/arm/netbsd.h: Delete definition of ARM_OS_NAME.
2509
2510 2003-06-19  Graeme Peterson <gp@qnx.com>
2511
2512         * gcc.c (target_sysroot_suffix, target_sysroot_hdrs_suffix,
2513         SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC, sysroot_suffix_spec,
2514         sysroot_hdrs_suffix_spec): New.
2515         (static_specs): Initialize new variables.
2516         (add_sysroot_suffix_prefix, do_spec_1, main): Use new variables.
2517         * doc/tm.texi (SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC):
2518         New macros.
2519
2520 2003-06-19  Andreas Jaeger  <aj@suse.de>
2521
2522         * c-aux-info.c: Convert to ISO C90.
2523         * c-pragma.c: Likewise.
2524         * c-common.c: Likewise.
2525         * c-common.h: Likewise.
2526         * c-convert.c: Likewise.
2527         * c-cppbuiltin.c: Likewise.
2528         * c-dump.c: Likewise.
2529         * c-decl.c: Likewise
2530         * c-format.c: Likewise.
2531         * c-incpath.c: Likewise.
2532         * c-incpath.h: Likewise.
2533
2534 2003-06-19  Roger Sayle  <roger@eyesopen.com>
2535
2536         * builtins.c (expand_errno_check): Assume that flag_errno_math
2537         and HONOR_NANS have been tested before calling here.  Only try
2538         to set errno ourselves if the decl can't throw an exception.
2539         (expand_builtin_mathfn): Move the code to stabilize the arg
2540         after the main switch, so that that its only done when needed.
2541         BUILT_IN_SQRT{,F,L} doesn't set errno if its arg is nonnegative.
2542         Don't modify the original expr when stabilizing the argument.
2543         (expand_builtin_mathfn_2): Likewise, move the code to stabilize
2544         the args after the main switch, and don't modify the orginal exp.
2545
2546 2003-06-19  Aldy Hernandez  <aldyh@redhat.com>
2547
2548         * expr.c (const_vector_from_tree): Initialize remaining elements
2549         to 0.
2550
2551 2003-06-19  Aldy Hernandez  <aldyh@redhat.com>
2552
2553         * config/rs6000/spe.md ("spe_evfscfsi"): Change operand types.
2554         Change "fix" to "float".
2555
2556 2003-06-19  Andreas Jaeger  <aj@suse.de>
2557
2558         * c-tree.h: Remove declaration of poplevel.
2559
2560         * tree.h: Remove declaration of approx_sqrt.
2561
2562         * c-lex.c: Remove redundant declaration of asm_out_file.
2563
2564         * flags.h: Remove declaration of warn_unknown_pragma and
2565         main_input_filename.
2566
2567         * rtl.h: Remove functions from fold-const.c since they're already
2568         declared in tree.h.
2569
2570         * regs.h: Remove redundant declaration of reg_names.
2571
2572         * bt-load.c (migrate_btr_defs): Correct printf arguments.
2573
2574         * protoize.c: Fix breakage from last patch.
2575
2576 2003-06-19  J"orn Rennecke <joern.rennecke@superh.com>
2577
2578         * hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h
2579         has been included.
2580
2581 2003-06-18  James A Morrison <ja2morri@student.math.uwaterloo.ca>
2582
2583         * config/sparc/sparc.c: Update copyright year.
2584
2585 2003-06-19  David Edelsohn  <edelsohn@gnu.org>
2586
2587         * config/rs6000/rs6000.c (init_cumulative_args): Limit CALL_LIBCALL
2588         to ABI_V4.
2589
2590 2003-06-18  Joseph S. Myers  <jsm@polyomino.org.uk>
2591
2592         PR bootstrap/4068
2593         * config/i386/liunx.h: Don't include sys/ucontext.h for glibc 2.0.
2594
2595 2003-06-19  Kazu Hirata  <kazu@cs.umass.edu>
2596
2597         * config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move
2598         to the end of the file.  Remove unnecessary prototypes.
2599
2600 2003-06-19  Hans-Peter Nilsson  <hp@axis.com>
2601
2602         * bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize
2603         calls to insn_default_latency and result_ready_cost.  Initialize
2604         def_latency to 1.
2605
2606 2003-06-18  Richard Henderson  <rth@redhat.com>
2607
2608         * config/ia64/unwind-ia64.c (_Unwind_GetCFA): New.
2609         (_Unwind_FindEnclosingFunction): Implement.
2610
2611 2003-06-18  Kazu Hirata  <kazu@cs.umass.edu>
2612
2613         * toplev.c (rest_of_handle_sched): Hide the entire function if
2614         INSN_SCHEDULING is not defined.
2615         (rest_of_compilation): Call rest_of_handle_sched() only when
2616         INSN_SCHEDULING is defined.
2617
2618 2003-06-18  Stephen Clarke <stephen.clarke@superh.com>
2619             J"orn Rennecke <joern.rennecke@superh.com>
2620
2621         * bt-load.c: New file.
2622         * Makefile.in (OBJS): Include bt-load.o
2623         (bt-load.o): Add dependencies.
2624         * flags.h (flag_branch_target_load_optimize): Declare.
2625         (flag_branch_target_load_optimize2): Likewise.
2626         * hooks.c (hook_reg_class_void_no_regs): New function.
2627         (hook_bool_bool_false): Likewise.
2628         * hooks.h (hook_reg_class_void_no_regs, hook_bool_bool_false): Declare.
2629         * rtl.h (branch_target_load_optimize): Declare.
2630         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define.
2631         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2632         (TARGET_INITIALIZER): Include these.
2633         * target.h (struct gcc_target): Add branch_target_register_class
2634         and branch_target_register_callee_saved members.
2635         * toplev.c (enum dump_file_index): Add DFI_branch_target_load
2636         (dump_file) Add "tars" entry.
2637         (flag_branch_target_load_optimize): New variable.
2638         (flag_branch_target_load_optimize2): Likewise.
2639         (lang_independent_options): Add entries for new options.
2640         (rest_of_compilation): Call branch_target_load_optimize.
2641         * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Document.
2642         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2643         * doc/invoke.texi: Document -fbranch-target-load-optimize and
2644         -fbranch-target-load-optimize2.
2645         * rtl.h (epilogue_completed): Declare.
2646         * recog.c (epilogue_completed): New variable.
2647         * toplev.c (rest_of_compilation): Set it.
2648         * flow.c (mark_regs_live_at_end): Use it.
2649         * config/ia64/ia64.c (ia64_output_mi_thunk): Set it.
2650         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2651         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2652         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2653
2654         * sh.c (shmedia_space_reserved_for_target_registers): New variable.
2655         (sh_target_reg_class): New function.
2656         (sh_optimize_target_register_callee_saved): Likwise.
2657         (shmedia_target_regs_stack_space): Likewise.
2658         (shmedia_reserve_space_for_target_registers_p): Likewise.
2659         (shmedia_target_regs_stack_adjust): Likewise.
2660         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Override.
2661         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2662         (calc_live_regs): If flag_branch_target_load_optimize2 and
2663         TARGET_SAVE_ALL_TARGET_REGS is enabled, and we have space reserved
2664         for target registers, make sure that we save all target registers.
2665         (sh_expand_prologue, sh_expand_epilogue): Take target register
2666         optimizations into account.  Collapse stack adjustments if that
2667         is beneficial.
2668         (initial_elimination_offset): Reserve space for target registers
2669         if necessary.
2670         * sh.h (SAVE_ALL_TR_BIT, TARGET_SAVE_ALL_TARGET_REGS): Define.
2671         (OPTIMIZATION_OPTIONS): Enable flag_branch_target_load_optimize.
2672
2673 2003-06-18  Nick Clifton  <nickc@redhat.com>
2674
2675         * config.gcc: Add an extra_header for ARM targets.
2676         Support configuring with --with-cpu=iwmmxt.
2677         * doc/invoke.texi: Document new value for -mcpu= ARM switch.
2678         * config/arm/aof.h (REGISTER_NAMES): Add iwmmxt register
2679         names.  Fix formatting.
2680         * config/arm/aout.h (REGISTER_NAMES): Add iwmmxt register
2681         names.
2682         * config/arm/arm-protos.h (arm_emit_vector_const): New
2683         prototype.
2684         (arm_output_load_gr): New prototype.
2685         * config/arm/arm.c (extra_reg_names1): Delete.
2686         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN, FL_IWMMXT,
2687         * arch_is_iwmmxt): Define.
2688         (all_cores, all_architecture): Add entry for iwmmxt.
2689         (arm_override_options): Add support for iwmmxt.
2690         (use_return_insn, arm_function_arg, arm_legitimate_index_p,
2691         arm_print_value, arm_rtx_costs_1, output_move_double,
2692         arm_compute_save_reg_mask, arm_output_epilogue,
2693         arm_get_frame_size, arm_expand_prologue, arm_print_operand,
2694         arm_assemble_integer, arm_hard_regno_ok, arm_regno_class):
2695         Likewise.
2696         (arm_init_cumulative_args): Count iwmmxt registers.
2697         (arm_function_ok_for_sibcall): Return false of sibcall_blocked
2698         has been set.
2699         (struct minipool_node): Add fix_size field.
2700         (add_minipool_forward_ref): Add support for 8-byte aligning of
2701         the pool.
2702         (add_minipool_backward_ref, add_minipool_offsets,
2703         dump_minipool, push_minipool_fix): Likewise.
2704         (struct builtin_description): New struct.
2705         (builtin_description): New array of iwmmxt builtin functions.
2706         (arm_init_iwmmxt_builtins): New function.
2707         (arm_init_builtins): New function.
2708         (safe_vector_operand): New function.
2709         (arm_expand_binop_builtin): New function.
2710         (arm_expand_unop_builtin): New function.
2711         (arm_expand_builtin): New function.
2712         (arm_emit_vector_const): New function.
2713         (arm_output_load_gr): New function.
2714         * config/arm/arm.h (TARGET_CPU_iwmmxt, TARGET_IWMMXT,
2715         TARGET_REALLY_IWMMXT, arm_arch_iwmmxt, IWMMXT_ALIGNMENT,
2716         TYPE_NEEDS_IWMMXT_ALIGNMENT, ADJUST_FIELD_ALIGN,
2717         DATA_ALIGNMENT, LOCAL_ALIGNMENT, VECTOR_MODE_SUPPORTED_P): Define.
2718         (BIGGEST_ALIGNMENT): Set to 64 if ATPCS support is enabled.
2719         (CPP_CPU_ARCH_SPEC): Add entries for iwmmxt.
2720         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
2721         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
2722         REG_CLASS_FOR_LETTER): Add iwmmxt registers.
2723         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Disable iwmmxt
2724         registers unless the iwmmxt target is selected.
2725         (FIRST_IWMMXT_GR_REGNUM, LAST_IWMMXT_GR_REGNUM,
2726         FIRST_IWMMXT_REGNUM, LAST_IWMMXT_REGNUM, IS_IWMMXT_REGNUM,
2727         IS_IWMMXT_GR_REGNUM): Define.
2728         (FIRST_PSEUDO_REGISTER): Bump to 63.
2729         (struct machine_function): Add sibcall_blocked field.
2730         (Struct CUMULATIVE_ARGS): Add iwmmxt_nregs, named_count and
2731         nargs fields.
2732         (enum arm_builtins): New enum list.
2733         * config/arm/arm.md (UNSPEC_WSHUFH, UNSPEC_WACC,
2734         UNSPEC_TMOVMSK, UNSPEC_WSAD, UNSPEC_WSADZ, UNSPEC_WMACS,
2735         UNSPEC_WMACU, UNSPEC_WMACSZ, UNSPEC_WMACUZ, UNSPEC_CLRDI,
2736         UNSPEC_WMADDS, UNSPEC_WMADDU): New unspecs.
2737         (VUNSPEC_TMRC, VUNSPEC_TMCR, VUNSPEC_ALIGN8, VUNSPEC_WCMP_EQ,
2738         VUNSPEC_WCMP_GTU, VUNSPEC_WCMP_GT): New vunspecs.
2739         (movv2si, movv4hi, movv8qi): New expands for vector moves.
2740         Include iwmmxt.md.
2741         * config/arm/t-xscale-elf (MULTILIB_OPITONS): Add iwmmxt
2742         multilib.
2743         (MULTILIB_DIRNAMES, MULTILIB_REDUNDANT_DIRS): Likewise.
2744         * config/arm/mmintrin.h: New ARM specific header file.
2745         * config/arm/iwmmx.md: New iWMMXt specific machine patterns.
2746
2747 2003-06-18  J"orn Rennecke <joern.rennecke@superh.com>
2748
2749         * toplev.c (Remaining -d letters summary): Update.
2750
2751 2003-06-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2752
2753         * config/rs6000/rs6000.c (init_cumulative_args): Add and handle LIBCALL
2754         argument.
2755         (function_arg): Handle CALL_LIBCALL flag.
2756         * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
2757         prototype.
2758         * config/rs6000/rs6000.h (CALL_LIBCALL): New macro.
2759         (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
2760         (INIT_CUMULATIVE_ARGS): Add LIBCALL argument.
2761         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
2762
2763 2003-06-18  Neil Booth  <neil@daikokuya.co.uk>
2764
2765         * Makefile.in: Update.
2766         * common.opt: New options.
2767         * opts.c (maybe_warn_unused_parameter, set_Wextra, handle_param,
2768         set_Wunused): New.
2769         (common_handle_option): Handle new options.
2770         * toplev.c (set_target_switch): Export.
2771         (set_Wextra, set_Wunused, maybe_warn_unused_parameter): Move to opts.c.
2772         (decode_W_option): -Wunused and -Wextra handled in opts.c now.
2773         (independent_decode_option): More options handled in opts.c now.
2774         Change prototype.
2775         * toplev.h (set_target_switch): New.
2776
2777 2003-06-17  Robert Abeles  <rabeles@archaelogic.com>
2778
2779         PR debug/4252
2780         * c-opts.c (c_common_handle_option): Pass -fdump argument suffix
2781         to dump_switch_p().
2782         * tree-dump.c (dump_switch_p): Remove redundant 'dump-' prefix
2783         from static strings in dump_files.
2784
2785 2003-06-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2786
2787         * system.h (ANSI_PROTOTYPES, PTR_CONST, LONG_DOUBLE, VPARAMS,
2788         VA_OPEN, VA_FIXEDARG, VA_CLOSE, VA_START): undef and poison these
2789         libiberty macros.
2790
2791 2003-06-17  Jason Merrill  <jason@redhat.com>
2792
2793         PR c++/10929
2794         * tree-inline.c (expand_call_inline): Don't warn about failing to
2795         inline a function which was made inline by -finline-functions.
2796
2797 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
2798
2799         * config/h8300/h8300-protos.h: Update to ISO C.
2800         * config/h8300/h8300.c: Likewise.
2801         * config/h8300/h8300.h: Likewise.
2802         * config/h8300/h8300.md: Likewise.
2803
2804 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
2805
2806         * configure.in: Replace BUILD_CC references with CC_FOR_BUILD.
2807         * configure: Regenerate.
2808         * Makefile.in: Replace BUILD_CC references with CC_FOR_BUILD.
2809
2810 2003-06-17  Ranjit Mathew  <rmathew@hotmail.com>
2811
2812         * install.texi (Testing): Add information on how to run Java
2813         runtime tests separately.
2814
2815 2003-06-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2816
2817         * config/mips/mips.md (trap): Use break 0 when !TARGET_GAS.
2818
2819         * config/mips/iris6-o32.h (MIPS_ISA_DEFAULT): Remove.
2820         (MIPS_CPU_STRING_DEFAULT): Redefine to mips2.
2821
2822 2003-06-17  Christopher Faylor  <cgf@redhat.com>
2823
2824         * doc/install.texi: Add msvc rebuild caveat.
2825
2826 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
2827
2828         * config/sh/coff.h: Replace Hitachi with Renesas.
2829         * config/sh/elf.h: Likewise.
2830         * config/sh/embed-elf.h: Likewise.
2831         * config/sh/lib1funcs.asm: Likewise.
2832         * config/sh/sh-protos.h: Likewise.
2833         * config/sh/sh.c: Likewise.
2834         * config/sh/sh.h: Likewise.
2835         * config/sh/sh.md: Likewise.
2836
2837 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
2838
2839         * ChangeLog.3: Fix comment typos.
2840         * ChangeLog.6: Likewise.
2841         * config/d30v/d30v.c: Likewise.
2842         * config/h8300/h8300.md: Likewise.
2843         * config/m32r/m32r.md: Likewise.
2844         * config/mips/mips.c: Likewise.
2845         * config/mips/mips.md: Likewise.
2846         * config/ns32k/NOTES: Likewise.
2847
2848 2003-06-17  Ranjit Mathew  <rmathew@hotmail.com>
2849             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2850
2851         * doc/sourcebuild.texi (libgcj Tests): Simplify instructions on how
2852         to run Java runtime tests separately.
2853
2854 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
2855
2856         * config/h8300/h8300-protos.h: Update a comment.
2857
2858 2003-06-17  J"orn Rennecke <joern.rennecke@superh.com>
2859
2860         * sh.h (ROUND_TYPE_ALIGN, LOCAL_ALIGNMENT): Complex modes
2861         are aligned like integral modes.
2862         (SH5_WOULD_BE_PARTIAL_NREGS): Also test for CDImode and DCmode.
2863
2864         * sh.h (EXTRA_CONSTRAINT_Csy): Allow PIC_DIRECT_ADDR_P.
2865         (LEGITIMATE_PIC_OPERAND_P): Allow LABEL_REF.
2866         * sh.md (*pt): Remove.
2867
2868         * sh.h (REG_ALLOC_ORDER): Avoid squandering call-saved registers.
2869
2870         * sh.md (return_media_rte): New pattern.
2871         (return_media): Use it.
2872
2873 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
2874
2875         * doc/contrib.texi: Replace Hitachi with Renesas.
2876         * doc/install.texi: Likewise.
2877         * doc/invoke.texi: Likewise.
2878
2879 2003-06-17  J"orn Rennecke <joern.rennecke@superh.com>
2880
2881         * sh.h (CONST_OK_FOR_J16): Fix HOST_BITS_PER_WIDE_INT >= 64
2882         behaviour.
2883
2884 2003-06-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2885
2886         * doc/tm.texi (MD_FALLBACK_FRAME_STATE_FOR): Mention MAKE_THROW_FRAME.
2887
2888         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Partly revert
2889         2003-01-23 patch. Corrected to handle kernels with changed ucontext.
2890
2891         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Error on invalid
2892         -msdata=eabi usages.
2893
2894         * gcc/config/rs6000/sysv4.h (USE_LIBC_1): Delete all uses.
2895
2896 2003-06-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2897
2898         * alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
2899         * fixinc/gnu-regex.c: Don't define `volatile'.
2900         * ggc-page.c: Don't check HAVE_LONG_DOUBLE.
2901         * ggc-simple.c: Likewise.
2902         * system.h: Don't define `volatile'.
2903
2904         * aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete.
2905         * configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't
2906         call these macros.
2907         * config.in, configure: Regenerated.
2908
2909 2003-06-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2910
2911         * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP):
2912         Handle POINTERS_EXTEND_UNSIGNED.
2913
2914 2003-06-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2915
2916         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
2917         !TARGET_IRIX6]: Define as NULL.
2918
2919 2003-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
2920
2921         * config/sparc/sparc.c (sparc_va_arg): Don't align 16-byte+ structures.
2922
2923 2003-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
2924
2925         * dbxout.c (dbxout_source_line_counter): New global variable.
2926         Mark it with GTY(()).
2927         (dbxout_source_line): Increment dbxout_source_line_counter
2928         and pass it to ASM_OUTPUT_SOURCE_LINE.
2929         * sdbout.c (sdbout_source_line_counter): New global variable.
2930         Mark it with GTY(()).
2931         (unnamed_struct_number): Mark it with GTY(()).
2932         (sdbout_source_line): Increment sdbout_source_line_counter
2933         and pass it to ASM_OUTPUT_SOURCE_LINE.
2934         * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Add third parameter
2935         (xcoffout_source_line): Pass 0 as third argument to
2936         ASM_OUTPUT_SOURCE_LINE.
2937         (xcoffout_begin_prologue): Likewise.
2938         * config/dbxout.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2939         Use it instead of 'sym_lineno' but without incrementing it.
2940         * config/dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2941         * config/lynx.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2942         * config/ptx4.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2943         * config/alpha/alpha.c (alpha_start_function): Pass 0 as third
2944         argument to ASM_OUTPUT_SOURCE_LINE.
2945         * config/alpha/alpha.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2946         * config/arm/aout.h: Remove useless comment.
2947         * config/avr/avr.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2948         * config/i960/i960.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2949         * config/m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2950         Use it instead of 'sym_lineno' but without incrementing it.
2951         * config/m68k/hp320.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2952         * config/mcore/mcore-pe.h (ASM_OUTPUT_SOURCE_LINE): Add third
2953         parameter. Use it instead of 'sym_lineno' but without incrementing it.
2954         * config/mips/mips.c (mips_output_function_prologue): Pass 0 as third
2955         argument to ASM_OUTPUT_SOURCE_LINE.
2956         * config/mips/mips.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2957         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2958         * config/pa/som.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2959         Use it instead of 'sym_lineno' but without incrementing it.
2960         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2961         * config/sh/elf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2962         * config/sparc/aout.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2963         * config/sparc/pbd.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2964         * doc/tm.texi (ASM_OUTPUT_SOURCE_LINE): Document third parameter.
2965
2966 2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
2967
2968         * config/mips/mips-protos.h (mips_expand_block_move): Declare.
2969         (expand_block_move, output_block_move): Remove.
2970         * config/mips/mips.h (enum block_move_type): Remove.
2971         * config/mips/mips.c (block_move_call, output_block_move): Remove.
2972         (mips_block_move_straight, mips_adjust_block_mem): New function.
2973         (mips_block_move_loop): Renamed and reworked from block_move_loop.
2974         (mips_expand_block_move): Likewise expand_block_move.  Return false
2975         to fall back on the target-independent code.
2976         * config/mips/mips.md (movstrsi): Use mips_expand_block_move.
2977         (movstrsi_internal*): Remove.
2978
2979 2003-06-16  Zack Weinberg  <zack@codesourcery.com>
2980
2981         * cpplib.h, cpphash.h, cppcharset.c, cpperror.c, cppexp.c
2982         * cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c
2983         * cppmacro.c, cpppch.c, cpptrad.c, cppspec.c: Convert to
2984         ISO C: new-style function declarations, no need for PARAMS,
2985         no special punctuation on indirect function calls, use string
2986         constant concatenation where convenient.
2987
2988 2003-06-17  Andreas Jaeger  <aj@suse.de>
2989
2990         * rtl.h: Remove declarations from coverage.h.
2991         * toplev.c: Include coverage.h.
2992         * Makefile.in (toplev.o): Depend on coverage.h.
2993
2994         * toplev.h: Remove extra declaration of print_time.
2995
2996         * gengtype.c (close_output_files): Remove duplicated declaration.
2997
2998 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
2999
3000         * config/sparc/sysv4.h: Remove target-independent comment;
3001         replace "GNU CC" with "GCC".
3002         * config/vxworks.h: Replace "GNU compiler" with "GCC".
3003         * config/sparc/aout.h, config/sparc/biarch64.h, config/sparc/elf.h,
3004         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3005         config/sparc/lite.h, config/sparc/litecoff.h, config/sparc/liteelf.h,
3006         config/sparc/netbsd-elf.h, config/sparc/openbsd.h,
3007         config/sparc/rtemself.h, config/sparc/sol2-64.h,
3008         config/sparc/sol2-bi.h, config/sparc/sol2-gas-bi.h,
3009         config/sparc/sol2-gld-bi.h, config/sparc/sol2-gld.h,
3010         config/sparc/sol2.h, config/sparc/sp64-aout.h,
3011         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h,
3012         config/sparc/sparc-protos.h, config/sparc/sysv4-only.h: Replace
3013         "GNU compiler", "GNU CC" with "GCC".
3014         * config/sparc/cypress.md, config/sparc/hypersparc.md,
3015         config/sparc/sparc-modes.def, config/sparc/sparc.c,
3016         config/sparc/sparc.md, config/sparc/sparclet.md,
3017         config/sparc/supersparc.md, config/sparc/ultra1_2.md,
3018         config/sparc/ultra3.md: Replace "GNU CC", "GNU Compiler", and
3019         "GNU C Compiler" with "GCC".
3020         * config/ip2k/ip2k.h: Replace "GNU CC" and "GNU compiler" with "GCC".
3021
3022 2003-06-16  Aldy Hernandez  <aldyh@redhat.com>
3023
3024         * simplify-rtx.c (simplify_subreg): Do not over-extend vector
3025         constants.
3026
3027         * testsuite/gcc.c-torture/execute/simd-4.c: New.
3028
3029 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
3030
3031         * config/ip2k/ip2k.h: Remove target-independent comments.
3032
3033         * config.gcc: Explicitly mention elfos.h in ip2k entry.
3034         * config/ip2k/ip2k.h: Don't #include it here.
3035
3036 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3037
3038         * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
3039         config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
3040         dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
3041         function.c, gcc.c, genoutput.c, gensupport.c, global.c,
3042         haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
3043         loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
3044         read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
3045         stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
3046         the PTR macro.
3047
3048         * gengtype.c: Don't use UNION_INIT_ZERO.
3049         * system.h (UNION_INIT_ZERO): Delete.
3050
3051 2003-06-16  Richard Henderson  <rth@redhat.com>
3052
3053         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
3054         GET_MODE_UNIT_SIZE when simplifying constant vectors.
3055
3056 2003-06-16  Andreas Jaeger  <aj@suse.de>
3057
3058         * timevar.c (get_run_time): Remove function provided also by
3059         libiberty.
3060         * timevar.h: Remove get_run_time declaration.
3061
3062 2003-06-16  Kazu Hirata  <kazu@cs.umass.edu>
3063
3064         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
3065         unreachable code.
3066
3067 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3068
3069         * builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
3070         cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
3071         use macros from "symcat.h", instead rely on ISO C.
3072
3073         * system.h: Don't include "symcat.h".
3074         * configure.in (AC_C_STRINGIZE): Delete.
3075         * config.in, configure: Regenerate.
3076
3077 2003-06-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3078
3079         * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
3080
3081         * tree.h (STMT_CHECK): New macro.
3082         Also upper-case argument names on all checking macros and
3083         fix some whitespace problems; assume CODE argument does not
3084         have side-effects.
3085
3086 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3087
3088         * scan.h: Convert to ISO C.
3089         * system.h: Likewise.
3090
3091         * c-format.c (dynamic_format_types): New pointer for dynamic data.
3092         (find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
3093         New functions split out of...
3094         (handle_format_attribute): ...here.
3095
3096 2003-06-16  J"orn Rennecke <joern.rennecke@superh.com>
3097
3098         * sh.h (REG_CLASS_FROM_LETTER): Change to:
3099         (REG_CLASS_FROM_CONSTRAINT).
3100         (CONST_OK_FOR_I): Rename to:
3101         (CONST_OK_FOR_I08).  Changed all users.
3102         (CONST_OK_FOR_J): Rename to:
3103         (CONST_OK_FOR_I16).  Changed all users.
3104         (CONST_OK_FOR_K): Rename to:
3105         (CONST_OK_FOR_P27).  Changed all users.
3106         (CONST_OK_FOR_L): Rename to:
3107         (CONST_OK_FOR_K08).  Changed all users.
3108         (CONST_OK_FOR_O): Rename to:
3109         (CONST_OK_FOR_I06).  Changed all users.
3110         (CONST_OK_FOR_P): Rename to:
3111         (CONST_OK_FOR_I10).  Changed all users.
3112         (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
3113         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
3114         (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
3115         (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
3116         (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
3117         (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
3118         (CONST_OK_FOR_LETTER_P): Replace with
3119         (CONST_OK_FOR_CONSTRAINT_P).
3120         (EXTRA_CONSTRAINT_S): Rename to:
3121         (EXTRA_CONSTRAINT_C16).  Changed all users.
3122         (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
3123         (EXTRA_CONSTRAINT_T): Rename to:
3124         (EXTRA_CONSTRAINT_Csy).  Changed all users.
3125         (EXTRA_CONSTRAINT_Z): Remove.
3126         (EXTRA_CONSTRAINT): Replace with:
3127         (EXTRA_CONSTRAINT_STR).
3128         (EXTRA_CONSTRAINT_U): Rename to:
3129          (EXTRA_CONSTRAINT_Z).  Changed all users.
3130         * sh.c (and_operand): Use CONST_OK_FOR_J16.
3131         * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
3132         (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
3133         (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
3134         (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
3135         (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
3136         (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
3137         (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
3138         (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
3139         (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
3140         (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
3141         (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
3142         (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
3143         (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
3144         (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
3145         (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
3146         (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
3147         (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
3148         (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
3149         (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
3150         (sssubv4hi3): Likewise.
3151         (movsf_i): Change I[08]/r to G/r.
3152         (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.
3153
3154         * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.
3155
3156 2003-06-16  Vladimir Makarov  <vmakarov@redhat.com>
3157
3158         * config/i386/i386.c (ix86_memory_move_cost): Fix typo.
3159
3160 2003-06-16  Andreas Jaeger  <aj@suse.de>
3161
3162         * basic-block.h: Remove duplicate prototype of
3163         note_prediction_to_br_prob.
3164
3165         * tree.h: Remove duplicate prototype of strip_float_extensions.
3166
3167 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3168
3169         * config/c4x/c4x.c: Don't include "c-tree.h".
3170         * config/pa/pa.c: Likewise.
3171         * langhooks.c: Likewise.
3172         * tree.h (poplevel): Declare.
3173
3174 2003-06-16  Kazu Hirata  <kazu@cs.umass.edu>
3175
3176         * config/h8300/h8300.c (const_costs): Move this to ...
3177         (h8300_rtx_costs): ... here.
3178
3179 2003-06-16  Roger Sayle  <roger@eyesopen.com>
3180
3181         * optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
3182         (tan_optab, atan_optab): Define corresponding macros.
3183         * optabs.c (init_optabs): Initialize tan_optab and atan_optab.
3184         * genopinit.c (optabs): Implement tan_optab and atan_optab
3185         using tan?f2 and atan?f2 patterns.
3186         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
3187         using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
3188         Change the default value of errno_set to false.
3189         (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
3190         using expand_builtin_mathfn.
3191
3192         * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
3193         expander patterns implemented using existing atan2?f3 patterns.
3194
3195 2003-06-16  Roger Sayle  <roger@eyesopen.com>
3196
3197         * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
3198         both operands of the addition equal, reuse the expanded RTL.
3199         (expand_expr <MULT_EXPR>): Likewise for multiplication.
3200
3201 2003-06-16  Roger Sayle  <roger@eyesopen.com>
3202             Jeff Law  <law@redhat.com>
3203
3204         * fold-const.c (operand_equal_p): Consider two calls to "const"
3205         functions with identical non-volatile arguments to be equal.
3206         Consider the FUNCTION_DECL for the "__builtin_foo" form of a
3207         built-in function to be equal to the "foo" form.
3208
3209 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
3210
3211         * config/rs6000/sysv4le.h: Remove target-independent comment.
3212         Replace "GNU compiler" with "GCC" in comment.
3213
3214 2003-06-16  Andreas Jaeger  <aj@suse.de>
3215
3216         * tracer.c: Remove duplicate declaration.
3217
3218         * toplev.c: Remove extra declaration of decode_d_option.
3219
3220         * ssa.c: Remove duplicate declaration.
3221
3222         * sreal.c: Remove extra declaration of dump_sreal.
3223
3224         * reload1.c: Remove duplicate declarations.
3225
3226         * integrate.c: Remove extra declaration of
3227         set_decl_abstract_flags.
3228
3229         * flow.c: Remove extra declaration of dump_flow_info.
3230
3231         * alias.c: Remove extra declaration of get_addr.
3232
3233 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
3234
3235         * config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
3236         config/vxworks.h: GNU CC -> GCC.
3237
3238         * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
3239         lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
3240         stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
3241         ssa.h, tree.def: Replace overly specific references to "GNU C"
3242         and "GNU C Compiler" with references to "GCC".
3243
3244 2003-06-16  J"orn Rennecke <joern.rennecke@superh.com>
3245
3246         * sh.c (prepare_move_operand): Check if operand 0 is an invalid
3247         memory reference.  Fix test that checks if operand 1 is using r0.
3248         * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .
3249
3250         * defaults.h (REG_CLASS_FROM_CONSTRAINT): Only define if not already
3251         defined.
3252
3253 2003-06-15  Nathan Sidwell  <nathan@codesourcery.com>
3254
3255         * function.h (struct emit_status): Remove x_last_linenum,
3256         x_last_filename. Add x_last_location.
3257         * rtl.h: #include "input.h".
3258         (NOTE_DATA): New.
3259         * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
3260         number notes.
3261         * emit-rtl.c (last_linenum, last_filename): Remove.
3262         (last_location): New.
3263         (emit_line_note_after): LINE must always be >= 0.
3264         (emit_line_note): Likewise. Check not duplicate here...
3265         (emit_note): ... rather than here.
3266         (emit_line_note_force, force_next_line_note, init_emit): Adjust.
3267         * integrate.c (expand_inline_function): Use emit_line_note for
3268         line number notes.
3269         (copy_insn_list): Likewise.
3270         * unroll.c (copy_loop_body): Likewise.
3271         * Makefile.in (RTL_H): Add input.h.
3272
3273 2003-06-16  Richard Sandiford  <rsandifo@redhat.com>
3274
3275         * optabs.c (emit_libcall_block): Don't hoist insns past a label.
3276
3277 2003-06-16  Richard Henderson  <rth@redhat.com>
3278
3279         * config/alpha/alpha-protos.h, config/alpha/elf.h,
3280         config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
3281         config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
3282         * config/alpha/alpha.c: Likewise.  Move targetm init to end of file.
3283         Remove unneeded static function decls.
3284
3285 2003-06-16  Neil Booth  <neil@daikokuya.co.uk>
3286
3287         * c-opts.c (c_common_handle_option): s/on/value/.
3288         (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
3289         directly rather than converting the argument.
3290         * c.opt: Update docs.  Use UInteger where appropriate.
3291         * common.opt: Use UInteger where appropriate.
3292         * opts.c (integral_argument): New.
3293         (handle_argument): Handle integral arguments, and optional
3294         joined arguments.
3295         (common_handle_option): Update.
3296         * opts.h (CL_MISSING_OK, CL_UINTEGER): New.
3297         * opts.sh: Handle JoinedOrMissing and UInteger flags.
3298
3299 2003-06-16  Neil Booth  <neil@daikokuya.co.uk>
3300
3301         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
3302         unnecessary extern declaration.
3303
3304 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
3305
3306         * config/gofast.h, config/interix.h, config/interix3.h,
3307         config/libgloss.h, config/linux-aout.h, config/linux.h,
3308         config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
3309         * config/kaos.h: "GNU compiler" -> GCC.
3310         * config/linux-aout.h, config/lynx.h: Clarify comment describing file.
3311
3312         * config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
3313         config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
3314         GNU CC -> GCC.
3315
3316         * config/svr3.h: Remove #if 0 code, misleading comments.
3317         GNU CC -> GCC.
3318
3319 2003-06-15  Zack Weinberg  <zack@codesourcery.com>
3320
3321         * vmsdbgout.c (vmsdbgout_finish): Rename parameter to
3322         main_input_filename to avoid conflict with input_filename macro.
3323
3324 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3325
3326         * config/mips/mips.h (asm_file_name, g_switch_set,
3327         g_switch_value): Remove.
3328         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
3329         unnecessary extern declarations.
3330
3331 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3332
3333         * config/frv/frv.h: Remove declaration of g_switch_value.
3334         * config/m32r/m32r.h: Remove declaration of g_switch_value.
3335         * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
3336
3337 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3338
3339         * opts.sh: Quote '+' in regex.
3340
3341 2003-06-15  Andrew Pinski <pinskia@physics.uc.edu>
3342
3343         * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
3344         * config/rs6000/rs6000.c: Include cfglayout.h.
3345         * config/alpha/alpha.c: Likewise.
3346         * config/ia64/ia64.c: Likewise.
3347         * config/sparc/sparc.c: Likewise.
3348         * config/sh/sh.c: Likewise.
3349
3350 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3351
3352         * opts.sh: Quote '+' in regex.
3353
3354 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3355
3356         * c-opts.c (lang_flags): Update for new spelling of flags.
3357         (write_langs): Similarly.
3358         * c.opt: Specify languages.
3359         * opts.h: Remove languages.
3360         * opts.sh: Recognise front-end defined languages.
3361         * doc/sourcebuild.texi: Update.
3362
3363 2003-06-15  Andreas Jaeger  <aj@suse.de>
3364
3365         * alloc-pool.c: Convert to ISO C90 prototypes.
3366         * alloc-pool.h: Likewise.
3367         * alias.c: Likewise.
3368         * attribs.c: Likewise.
3369         * bb-reorder.c: Likewise.
3370         * bitmap.h: Likewise.
3371         * bitmap.c: Likewise.
3372         * builtins.c: Likewise.
3373
3374         * tree.h: Convert prototypes of attribs.c to ISO C90.
3375         * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
3376         * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
3377         * expr.h: Convert prototypes of builtins.c to ISO C90.
3378
3379 2003-06-15  Roger Sayle  <roger@eyesopen.com>
3380
3381         * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to
3382         implement exp, expf and expl built-ins as inline x87 intrinsics.
3383         (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to
3384         represent x87's fscale, frndint and f2xm1 insns respectively.
3385         (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns
3386         to encode x87's "fscale" instruction followed by a pop.
3387         (*frndintxf2): New insn pattern for "frndint".
3388         (*f2xm1xf2): New insn pattern for "f2xm1".
3389
3390         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and
3391         UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like
3392         UNSPEC_FPATAN.
3393
3394 2003-06-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3395
3396         * gencheck.c (main): Avoid generating duplicate macros.
3397
3398         * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of
3399         knowing names of language subdirectories.
3400
3401 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3402
3403         * c-pch.c (asm_file_name): Remove.
3404         * common.opt: Add more switches.
3405         * flags.h (g_switch_set): Boolify.
3406         * opts.c (g_switch_value, g_switch_set, exit_after_options,
3407         version_flag): Move from toplev.c.
3408         (common_handle_option): Handle more switches from toplev.c.
3409         * toplev.c (display_help, display_target_options, decode_d_option,
3410         print_version): Make non-static, remove prototypes.
3411         (aux_base_name, asm_file_name, aux_info_file_name): Constify.
3412         (version_flag, g_switch_value, g_switch_set, exit_after_options):
3413         Remove.
3414         (independent_decode_option): Move some handlers to opts.c.
3415         * toplev.h (aux_info_file_name, aux_base_name, asm_file_name,
3416         exit_after_options, version_flag, display_help, display_target_options,
3417         print_version, decode_d_option): New.
3418
3419 2003-06-15  Kazu Hirata  <kazu@cs.umass.edu>
3420
3421         * config/alpha/alpha.md: Follow spelling conventions.
3422         * config/arm/arm.c: Likewise.
3423         * config/arm/arm.h: Likewise.
3424         * config/arm/arm.md: Likewise.
3425         * config/arm/crtn.asm: Likewise.
3426         * config/m32r/m32r.c: Likewise.
3427         * config/m32r/m32r.md: Likewise.
3428         * config/rs6000/rs6000.c: Likewise.
3429
3430 2003-06-15  Richard Henderson  <rth@redhat.com>
3431
3432         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
3433         insn_locators_initialize.
3434         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
3435         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3436         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3437         * config/sh/sh.c (sh_output_mi_thunk): Do it later.
3438
3439 2003-06-15  Kazu Hirata  <kazu@cs.umass.edu>
3440
3441         * builtins.c (expand_builtin_expect_jump): Remove redundant
3442         tests that are also in any_condjump_p().
3443
3444 2003-06-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3445
3446         * libgcc2.c: Delete sysV68 L_trampoline section.
3447         * config/m68k/mot3300-crt0.S: Delete file.
3448         * config/m68k/mot3300Mcrt0.S: Likewise.
3449
3450 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
3451
3452         * config/aoutos.h: Remove.
3453         * config.gcc: Remove reference to aoutos.h.
3454         * config/m68k/m68k-aout.h: Remove reference to aoutos.h.
3455
3456 2003-06-14  Kazu Hirata  <kazu@cs.umass.edu>
3457
3458         * doc/install.texi: Follow spelling conventions.
3459         * doc/tm.texi: Likewise.
3460         * config/fp-bit.c: Likewise.
3461         * config/arm/arm.c: Likewise.
3462         * config/frv/frv.c: Likewise.
3463         * config/ns32k/NOTES: Likewise.
3464         * config/ns32k/STATUS: Likewise.
3465
3466 2003-06-14  Roger Sayle  <roger@eyesopen.com>
3467             Zack Weinberg  <zack@codesourcery.com>
3468
3469         * rtl.h (STORE_FLAG_VALUE): Remove default definition from here.
3470         * defaults.h (STORE_FLAG_VALUE): Move default definition to here.
3471         * doc/tm.texi (STORE_FLAG_VALUE): Document the default value.
3472
3473         * config/alpha/alpha.h (STORE_FLAG_VALUE): Remove definition.
3474         * config/arc/arc.h (STORE_FLAG_VALUE): Likewise.
3475         * config/arm/arm.h (STORE_FLAG_VALUE): Likewise.
3476         * config/cris/cris.h (STORE_FLAG_VALUE): Likewise.
3477         * config/i370/i370.h (STORE_FLAG_VALUE): Likewise.
3478         * config/i386/i386.h (STORE_FLAG_VALUE): Likewise.
3479         * config/i960/i960.h (STORE_FLAG_VALUE): Likewise.
3480         * config/ia64/ia64.h (STORE_FLAG_VALUE): Likewise.
3481         * config/ip2k/ip2k.h (STORE_FLAG_VALUE): Likewise.
3482         * config/m32r/m32r.h (STORE_FLAG_VALUE): Likewise.
3483         * config/mcore/mcore.h (STORE_FLAG_VALUE): Likewise.
3484         * config/mips/mips.h (STORE_FLAG_VALUE): Likewise.
3485         * config/mmix/mmix.h (STORE_FLAG_VALUE): Likewise.
3486         * config/ns32k/ns32k.h (STORE_FLAG_VALUE): Likewise.
3487         * config/pa/pa.h (STORE_FLAG_VALUE): Likewise.
3488         * config/pdp11/pdp11.h (STORE_FLAG_VALUE): Likewise.
3489         * config/sh/sh.h (STORE_FLAG_VALUE): Likewise.
3490         * config/sparc/sparc.h (STORE_FLAG_VALUE): Likewise.
3491         * config/v850/v850.h (STORE_FLAG_VALUE): Likewise.
3492         * config/xtensa/xtensa.h (STORE_FLAG_VALUE): Likewise.
3493
3494 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
3495
3496         * opts.sh (POSIXLY_CORRECT): Unset it.
3497
3498         * tree.h (init_function_start): Remove filename and line paramters.
3499         * function.c (init_function_start): Remove filename and line
3500         parameters. Use DECL_SOURCE_LOCATION.
3501         * c-decl.c (store_parm_decls): Adjust init_function_start call.
3502         (c_expand_body_1): Likewise.
3503         * coverage.c (create_coverage): Likewise.
3504         * objc/objc-act.c (build_tmp_function_decl): Set line number to
3505         zero.
3506         (hack_method_prototype): Adjust init_function_start call.
3507
3508 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
3509
3510         PR target/3724
3511         * arm/linux-elf.h (PROFILE_HOOK): Define.
3512
3513 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
3514
3515         PR target/11183
3516         * arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
3517
3518 2003-06-14  Roger Sayle  <roger@eyesopen.com>
3519
3520         * opts.sh: Work around a mysterious feature in cygwin's gawk
3521         where specifying the input files explicitly has a different
3522         behavior to piping them via stdin.
3523
3524 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
3525
3526         * doc/sourcebuild.texi: Update.
3527
3528 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
3529
3530         PR target/11183
3531         * arm.c (output_move_double): Pass SImode to adjust_address.
3532
3533 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
3534
3535         * Makefile.in: Update to use common.opt and lang_opt_files.
3536         (c-options.c, c-options.h): Remove.
3537         (options.c, options.h): Add.
3538         * c-opts.c: Include options.h not c-options.h.
3539         * common.opt: New file.
3540         * configure, configure.in: Add lang_opt_files.
3541         * opts.c: Include flags.h and diagnostic.h.
3542         (common_handle_option): New.
3543         (handle_option): Update to recognize common options and all
3544         language-dependent options.
3545         * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
3546         (struct cl_option): Make flags of type int.
3547         * opts.h: Flag option with front ends to which it applies.
3548         Handle duplicate options.
3549         * toplev.c (filename): Remove.
3550         (independent_decode_option): Don't handle filenames and -quiet.
3551         (process_options, do_compile): Update.
3552
3553 2003-06-14  Nick Clifton  <nickc@redhat.com>
3554
3555         * doc/install.texi (Specific): Add description of different
3556         ARM supported file format targets.
3557
3558 Sat Jun 14 11:12:04 CEST 2003  Jan Hubicka  <jh@suse.cz>
3559
3560         * reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
3561         inside delay slots.
3562
3563 2003-06-13  Matt Kraai  <kraai@alumni.cmu.edu>
3564
3565         * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE.
3566         * unwind-pe.h (size_of_encoded_value): Do not define if
3567         NO_SIZE_OF_ENCODED_VALUE is defined.
3568
3569 2003-06-13  Roger Sayle  <roger@eyesopen.com>
3570
3571         * expr.c (expand_expr <COMPLEX_CST>): Handle the case of
3572         expanding a complex constant into a CONCAT target.
3573
3574 2003-06-13  Zack Weinberg  <zack@codesourcery.com>
3575
3576         * config/svr3.h (ASM_FILE_START): Don't use ASM_FILE_START_1.
3577         (ASM_FILE_START_1): Delete.
3578         * config/i386/att.h, config/i386/sco5.h,
3579         config/i386/sysv3.h
3580         (ASM_FILE_START_1): Delete.
3581
3582 2003-06-13  Kelley Cook  <kelleycook@wideopenwest.com>
3583
3584         * config/i386/bsd.h: Remove ASM_FILE_START.
3585         * config/i386/djgpp.h: Likewise.
3586         * config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.
3587
3588         * config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
3589         * config.gcc (i[34567]86-pc-msdosdjgpp): ... here.
3590
3591 2003-06-13  Vladimir Makarov  <vmakarov@redhat.com>
3592
3593         PR bootstrap/10835
3594         * haifa-sched.c (max_lookahead_tries,
3595         cached_first_cycle_multipass_dfa_lookahead,
3596         cached_issue_rate): New variables.
3597         (max_issue): Check the number of tries.
3598         (choose_ready): Calculate max_lookahead_tries.
3599         (sched_init): Check cached_issue_rate.
3600
3601 2003-06-13  Richard Henderson  <rth@redhat.com>
3602
3603         * cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
3604         * cfgrtl.c (purge_dead_edges): Expect it too.
3605
3606 2003-06-13  Jim Wilson  <wilson@tuliptree.org>
3607             Eric Botcazou  <ebotcazou@libertysurf.fr>
3608
3609         PR bootstrap/10983
3610         * combine.c (make_extraction): Use gen_lowpart_for_combine
3611         when extracting from a REG and not in the destination of a SET.
3612
3613 2003-06-13  Doug Evans  <dje@sebabeach.org>
3614
3615         * tsystem.h (abort): Declare in inhibit_libc case to remove build
3616         warnings for addvsi3, et.al.
3617
3618 2003-06-13  Aldy Hernandez  <aldyh@redhat.com>
3619
3620         * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
3621
3622         * simplify-rtx.c (simplify_subreg): Same.
3623
3624         * emit-rtl.c (gen_lowpart_common): Same.
3625
3626 2003-06-13  Kazu Hirata  <kazu@cs.umass.edu>
3627
3628         * builtins.c: Fix comment typos.
3629         * fold-const.c: Likewise.
3630
3631 2003-06-13  Doug Evans  <dje@sebabeach.org>
3632             Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3633
3634         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
3635         * config/m32r/m32r.c (m32r_pass_by_reference): New fn.
3636         (m32r_va_arg): Use it.
3637         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
3638         (RETURN_IN_MEMORY): Ditto.
3639
3640 2003-06-13  Nathanael Nerode  <neroden@gcc.gnu.org>
3641
3642         * c-typeck.c: Remove #if 0 clauses.
3643
3644         PR other/1494
3645         * config/alpha/openbsd.h, config/i386/openbsd.h,
3646         config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
3647         residual reference to EGCS.
3648
3649 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
3650
3651         * arm.c (output_call_mem): If the address references the link-register
3652         use an instruction sequence that avoids early-clobbering IP.
3653         (eliminate_lr2ip): Delete.
3654
3655 2003-06-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3656
3657         * c-format.c (format_types_orig): Disallow '*' width/precision in
3658         asm_fprintf format checks.
3659
3660 2003-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
3661
3662         * config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
3663         non-integral types from integer register save area slots.
3664
3665 2003-06-13  Nathanael Nerode  <neroden@gcc.gnu.org>
3666
3667         * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
3668
3669 2003-06-13  Florian Weimer  <fw@deneb.enyo.de>
3670
3671         * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
3672
3673 2003-06-13  Kaz Kojima  <kkojima@gcc.gnu.org>
3674
3675         * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
3676         to file_end_indicate_exec_stack.
3677
3678 2003-06-12  Richard Henderson  <rth@redhat.com>
3679
3680         PR target/11089
3681         * config/i386/i386.md (sse_movaps): Use an expander to force
3682         one operand to be a register.
3683         (sse_movups): Likewise.
3684
3685 2003-06-13  Doug Evans  <dje@sebabeach.org>
3686
3687         Remove some build warnings.
3688         * config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
3689         (__do_global_ctors,__do_global_dtors): Ditto.
3690
3691 2003-06-12  Richard Henderson  <rth@redhat.com>
3692
3693         PR middle-end/10557
3694         * rtlanal.c (subreg_offset_representable_p): Relax subreg check.
3695
3696 2003-06-13  Kazu Hirata  <kazu@cs.umass.edu>
3697
3698         * config/m32r/m32r.md: Fix a comment typo.
3699
3700 2003-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
3701             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
3702
3703         PR target/10142
3704         * config/sparc/sparc.c (function_arg_record_value_parms): Add
3705         new 'stack' field.
3706         (function_arg_record_value_1): Set 'stack' to 1 if we run out of
3707         integer slots for an integer field.
3708         (function_arg_record_value_3): Shift vector index.
3709         (function_arg_record_value_2): Likewise.
3710         (function_arg_record_value): Initialize 'stack' to 0.
3711         Set 'stack' to 1 if we run out of integer slots for an integer field.
3712         Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.
3713
3714 2003-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
3715
3716         PR optimization/10955
3717         * unroll.c (unroll_loop): Fix off-by-one bug.
3718
3719 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
3720
3721         * config/rs6000/rs6000.c (function_arg): Remove typo.
3722
3723 2003-06-12  Richard Henderson  <rth@redhat.com>
3724
3725         * config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
3726         and UNSPEC_DTPOFF.
3727
3728 2003-06-12  Richard Henderson  <rth@redhat.com>
3729
3730         PR middle-end/10475
3731         * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
3732         for extracting sub-words.
3733
3734 2003-06-12  Richard Henderson  <rth@redhat.com>
3735
3736         PR target/7594
3737         * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
3738         (zero_extendqihi2, zero_extendqisi2): Likewise.
3739
3740 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
3741
3742         * config/rs6000/rs6000.c (function_arg): Always split vectors for
3743         e500 if it's a stdarg function.
3744         (function_arg_advance): Advance 2 registers for vectors in a
3745         stdarg function.
3746         (init_cumulative_args): Initialize stdarg.
3747         (rs6000_spe_function_arg): New.
3748
3749         * config/rs6000/rs6000.h (rs6000_args): Add stdarg.
3750
3751 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
3752
3753         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
3754
3755 2003-06-12  Roger Sayle  <roger@eyesopen.com>
3756
3757         PR middle-end/168
3758         * fold-const.c (tree_expr_nonnegative_p):  Handle addition
3759         and multiplication of zero extensions, floating point division,
3760         and integer<->fp, fp<->fp and zero extension conversions.
3761         The built-in ceil and floor functions preserve signedness.
3762
3763 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
3764
3765         * ChangeLog: Follow spelling conventions.
3766         * ChangeLog.2: Likewise.
3767         * c-decl.c: Likewise.
3768         * cfgloop.h: Likewise.
3769         * cgraph.c: Likewise.
3770         * coverage.c: Likewise.
3771         * cppcharset.c: Likewise.
3772         * cpphash.h: Likewise.
3773         * cpplex.c: Likewise.
3774         * cpplib.c: Likewise.
3775         * dbxout.c: Likewise.
3776         * df.c: Likewise.
3777         * dwarf2out.c: Likewise.
3778         * dwarfout.c: Likewise.
3779         * emit-rtl.c: Likewise.
3780         * explow.c: Likewise.
3781         * gcov-io.c: Likewise.
3782         * gcov-io.h: Likewise.
3783         * gcov.c: Likewise.
3784         * gengtype.c: Likewise.
3785         * ggc.h: Likewise.
3786         * opts.c: Likewise.
3787         * real.c: Likewise.
3788         * reload.c: Likewise.
3789         * stmt.c: Likewise.
3790
3791 2003-06-12  Janis Johnson  <janis187@us.ibm.com>
3792
3793         * doc/install.texi (m32r-*-elf): Change company to Renesas.
3794
3795 Thu Jun 12 20:00:55 CEST 2003  Jan Hubicka  <jh@suse.cz>
3796
3797         * basic-block.h (flow_delete_block_noexpunge): Kill.
3798         * cfgrtl.c (flow_delete_block_noexpunge): Merge to
3799         rtl_delete_block.
3800
3801 2003-06-10  Richard Henderson  <rth@redhat.com>
3802
3803         PR inline-asm/4823
3804         * reg-stack.c (any_malformed_asm): New.
3805         (check_asm_stack_operands): Set it.
3806         (convert_regs_1): Check it before aborting.
3807
3808 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
3809
3810         * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
3811
3812 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
3813
3814         * c-opts.c (complain_wrong_lang): Add on argument.
3815         Print no- switch if on is false.
3816         (c_common_decode_option): Adjust caller.
3817
3818 2003-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
3819
3820         * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
3821         to initialize GOT register.
3822
3823 2003-06-12  Roger Sayle  <roger@eyesopen.com>
3824
3825         * fold-const.c (tree_expr_nonnegative_p): Add support for
3826         floating point constants, addition and multiplication.
3827
3828 2003-06-12  J"orn Rennecke <joern.rennecke@superh.com>
3829
3830         * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
3831         constraint modifier for operand 0.
3832
3833 2003-06-12  Hans-Peter Nilsson  <hp@axis.com>
3834
3835         Don't warn on dollars in builtin macro definitions,
3836         e.g. __REGISTER_PREFIX__.
3837         * cpphash.h (struct cpp_reader): Move member warn_dollars...
3838         * cpplib.h (struct cpp_options): ...to here.  Change type to
3839         unsigned char.
3840         * cppinit.c (cpp_create_reader): Set it to 1 here.
3841         (post_options): Don't set it here.
3842         * c-opts.c (c_common_init_options): Reset it to 0 here.
3843         (finish_options): Set it here.
3844         * cpplex.c (forms_identifier_p): Tweak for new location of
3845         warn_dollars.
3846
3847         * configure.in (assembler dwarf2 debug_line support): Define insn
3848         for cris-*-* and mmix-*-*.
3849         * configure: Regenerate.
3850
3851 2003-06-11  Uwe Stieber  <uwe@kaos-group.de>
3852
3853         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
3854         powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
3855         (sh-*-elf*): Add sh*-*-kaos* support.
3856         * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
3857         config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
3858         config/sh/kaos-sh.h: New files.
3859
3860 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
3861
3862         * gcse.c (fis_get_condition): Make it a global function.
3863         * reload1.c (reload_cse_move2add): Detect implicit sets.
3864         * rtl.h: Add a prototype for fis_get_condition.
3865
3866 2003-06-11  Richard Henderson  <rth@redhat.com>
3867
3868         * stmt.c (expand_asm_operands): Don't warn for memories with
3869         queued addresses.
3870
3871 2003-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
3872
3873         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
3874         brackets.
3875
3876 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
3877
3878         * hooks.c (hook_int_size_t_constcharptr_int_0): New.
3879         * hooks.h (hook_int_size_t_constcharptr_int_0): New.
3880         * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
3881         (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
3882         * langhooks.c (lhd_decode_option): Remove.
3883         * langhooks.h (struct lang_hooks): Remove decode_option.
3884         * opts.c (handle_option): No longer use decode_option.
3885
3886 2003-06-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3887
3888         * cfgloopanal.c (variable_initial_value): Update the set of altered
3889         registers correctly.
3890
3891 2003-06-11  Roger Sayle  <roger@eyesopen.com>
3892             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3893
3894         * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
3895         * config/i386/netbsd-elf.h: Likewise.
3896         * config/m32r/m32r.h: Likewise.
3897         * config/mn10300/mn10300.h: Likewise.
3898         * config/stormy16/stormy16.h: Likewise.
3899         * config/v850/v850.h: Likewise.
3900         * config/vax/netbsd-elf.h: Likewise.
3901         * config/xtensa/elf.h: Likewise.
3902         * config/xtensa/linux.h: Likewise.
3903
3904 2003-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3905
3906         * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
3907         DWARF 2 default.
3908
3909         * config/mips/dbxmdebug.h: New file.
3910         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
3911         gas and --with-stabs.
3912
3913 2003-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
3914
3915         * expr.c (can_move_by_pieces): align argument may be unused.
3916
3917 2003-06-11  J"orn Rennecke <joern.rennecke@superh.com>
3918
3919         * expr.c (convert_move): Handle moves between two CONCATs.
3920
3921 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
3922
3923         * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
3924         !TARGET_H8300.
3925
3926 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
3927
3928         * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
3929         * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
3930         (TARGET_RTL_DUMP): Likewise.
3931         (TARGET_SWITHCES): Remove -mrtl-dump.
3932
3933 2003-06-10  Richard Henderson  <rth@redhat.com>
3934
3935         * optabs.c (gen_cond_trap): Fix prepare_operand typo.
3936
3937 2003-06-10  Richard Henderson  <rth@redhat.com>
3938
3939         * config/ia64/ia64.md (call_gp): Fix memory mode.
3940
3941 2003-06-10  James E Wilson  <wilson@tuliptree.org>
3942
3943         PR target/8812
3944         * reload1.c (choose_reload_regs): For equiv reg, add loop over all
3945         hard regs for reload_reg_used_at_all and reg_class_contents checks.
3946
3947 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
3948
3949         * config/h8300/h8300.c (print_operand): Remove support for
3950         operand character 'b'.
3951         Add the AND case to operand character 'c'.
3952         * config/h8300/h8300.md (two anonymous patterns): Replace
3953         operand character 'b' with 'c'.
3954
3955 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
3956
3957         * config/h8300/h8300.c (print_operand): Remove support for
3958         operand character 'u'.
3959
3960 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
3961
3962         * configure.in: Fix typo.
3963         * configure: Regenerate.
3964
3965 2003-06-10  Loren James Rittle  <ljrittle@acm.org>
3966
3967         * config/alpha/alpha.c (unicosmk_file_end): Add conditional
3968         compilation guard.
3969
3970 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
3971
3972         * sh-protos.h (function_symbol): Declare.
3973         * sh.c (expand_block_move, expand_ashiftrt): Use it.
3974         (sh_expand_prologue, sh_expand_epilogue): Likewise.
3975         (sh_initialize_trampoline): Likewise.
3976         (function_symbol): New function.
3977         * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
3978         (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
3979         (call_value_pop, shcompact_return_tramp): Likewise.
3980
3981         * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
3982
3983         * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
3984         target register.
3985
3986 2003-06-10  DJ Delorie  <dj@redhat.com>
3987
3988         * doc/md.texi (Machine Constraints): Document stormy's Z
3989         constraint.
3990
3991 2003-06-10  Geoffrey Keating  <geoffk@apple.com>
3992
3993         * except.c (call_site_base): Mark with GTY.
3994
3995 2003-06-10  Richard Earnshaw  <rearnsha@arm.com>
3996
3997         * arm-proto.h: Convert to ISO C90 prototypes.
3998         * arm.c: Likewise.
3999
4000 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
4001
4002         * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
4003
4004 2003-06-10  Steve Ellcey  <sje@cup.hp.com>
4005
4006         * calls.c (expand_call): Convert structure_value_addr to Pmode if
4007         necessary.
4008
4009 2003-06-10  Andrew Haley  <aph@redhat.com>
4010
4011         * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
4012         (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
4013         (lhd_decl_ok_for_sibcall): New.
4014         * langhooks.c (lhd_decl_ok_for_sibcall): New.
4015         * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
4016         * calls.c (expand_call): Check lang_hook before generating a
4017         sibcall.
4018
4019 2003-06-10  DJ Delorie  <dj@redhat.com>
4020
4021         * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
4022         which matches (const_int 0) for addhi3.
4023         * config/stormy16/stormy16.md: Document known constraints.
4024         (addhi3): Handle adding zero.
4025
4026 2003-06-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4027
4028         * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
4029         * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
4030         * config/m32r/m32r-protos.h: Prototype it.
4031
4032 2003-06-10  Janis Johnson  <janis187@us.ibm.com>
4033
4034         * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
4035         common to rs6000 sysv targets.
4036         * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
4037         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
4038
4039 2003-06-10  Nick Clifton  <nickc@redhat.com>
4040
4041         * config.gcc: Add arm-wince-pe target.
4042         * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
4043         Add comment about default apcs26 support.
4044         * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
4045         multilib.
4046         (MULTILIB_DIRNAMES): Add 'apcs32'.
4047         * config/arm/t-wince-pe: New makefile fragment.
4048         * config/arm/wince-pe.h: New file.  Overrides a few definitions
4049         in arm/pe.h
4050
4051 2003-06-10  Roger Sayle  <roger@eyesopen.com>
4052
4053         * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
4054         * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
4055         when x is easily negated and f is sin, tan or atan.
4056         (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
4057         sin(x) with flag_unsafe_math_optimizations.
4058         (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
4059         sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
4060
4061 2003-06-10  Roger Sayle  <roger@eyesopen.com>
4062
4063         * fold-const.c (fold <EQ_EXPR>):  Don't fold x == x only if x
4064         is a floating point type *and* we currently honor NaNs.
4065         (fold <NE_EXPR>): Likewise.
4066
4067 2003-06-10  Mark Mitchell  <mark@codesourcery.com>
4068
4069         PR c++/11131
4070         * tree-inline.c (inlinable_function_p): Call the language-specific
4071         hook early.
4072
4073 2003-06-09  David Taylor  <dtaylor@emc.com>
4074
4075         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg):  Skip over
4076         the f_res field.
4077
4078 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
4079
4080         * configure.in: Remove references to host_truncate_target.
4081         * configure: Regenerate.
4082         * config.gcc: Remove references to truncate_target,
4083         host_truncate_target.
4084
4085         * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
4086         Replace "build_canonical" with build, "host_canonical" with host.
4087         * configure.in: Use GCC_TOPLEV_SUBDIRS.
4088         * aclocal.m4: Include ../config/acx.m4.
4089         * configure: Regenerate.
4090
4091 2003-06-09  David Taylor  <dtaylor@emc.com>
4092
4093         * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
4094         bytes of padding in the __va_list_tag structure a name (reserved).
4095
4096 2003-06-09  Jason Merrill  <jason@redhat.com>
4097
4098         * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
4099
4100 2003-06-09  Osku Salerma  <osku@iki.fi>
4101
4102         * c-format.c (check_format_string, get_constant): New.
4103         (handle_format_attribute, handle_format_arg_attribute,
4104         decode_format_attr): Change to use above functions.
4105
4106 2003-06-09  Richard Henderson  <rth@redhat.com>
4107
4108         * stmt.c (expand_asm_operands): Re-word warning.
4109
4110 2003-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
4111
4112         PR target/8787
4113         * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
4114         if -masm=intel.
4115
4116 2003-06-09  James E Wilson  <wilson@tuliptree.org>
4117
4118         * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
4119         config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
4120         Add libgcc exception.
4121
4122 2003-06-09  David Edelsohn  <edelsohn@gnu.org>
4123             Ayal Zaks  <gcchaifa@us.ibm.com>
4124
4125         * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
4126         (insvsi*): Add insert_word attribute.
4127         * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
4128         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
4129         power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
4130
4131 2003-06-09  Kazu Hirata  <kazu@cs.umass.edu>
4132
4133         * fold-const.c (fold): Fix a comment typo.
4134
4135 2003-06-09  Nathan Sidwell  <nathan@codesourcery.com>
4136
4137         * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
4138         removed.
4139
4140 2003-06-09  J"orn Rennecke <joern.rennecke@superh.com>
4141
4142         * sh.c (gen_block_redirect): Use locators.
4143
4144 2003-06-09  Richard Earnshaw  <rearnsha@arm.com>
4145
4146         * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
4147         cast to int.
4148
4149 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
4150
4151         * configure.in: Assume gas 2.14 and above can handle MIPS relocation
4152         operators.
4153         * configure: Regenerated.
4154
4155 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
4156             Alexandre Oliva  <aoliva@redhat.com>
4157
4158         * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
4159         (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
4160         (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
4161         n32/64 PIC.
4162         (MUST_SAVE_REGISTERS): Delete.
4163         * config/mips/mips.c (mips_frame_info): Remove extra_size field.
4164         (machine_function): Add global_pointer field.
4165         (mips_classify_constant): Check for (const $gp) using pointer equality
4166         with pic_offset_table_rtx.
4167         (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
4168         (mips_restore_gp): Use current_function_outgoing_args_size.
4169         (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
4170         GP_REG_FIRST + 28.  Handle relocation strings that have
4171         more than one '('.
4172         (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
4173         (mips_global_pointer): New function.
4174         (mips_save_reg_p): New function, mostly split out from...
4175         (compute_frame_size): ...here.  Remove handling of extra_size.
4176         Reclaim args_size if no variables depend on it.  Don't treat gp
4177         as a special case: handle it in the main GPR loop.
4178         (mips_initial_elimination_offset): Fix comment.
4179         (save_restore_insns): Save every register in the GPR mask,
4180         removing distinction between mask and real_mask.
4181         (mips_output_function_prologue): Update .frame psuedo-op after
4182         the removal of extra_size.  Move the SVR4 PIC stack allocation
4183         and cprestore instructions to mips_expand_prologue.
4184         (mips_gp_insn): New function.
4185         (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
4186         the chosen global pointer.  Handle SVR4 PIC stack allocation
4187         in the same way as other ABIs.  Adjust varargs code accordingly.
4188         Emit a cprestore insn after allocating the stack.  Use mips_gp_insn
4189         to emit the loadgp sequence.  Follow it with a loadgp_blockage
4190         if not using explicit relocs.
4191         (mips_output_function_epilogue): Reinstate the default gp register.
4192         (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
4193         (mips16_optimize_gp): Likewise.
4194         * config/mips/mips.md (UNSPEC_LOADGP): Remove.
4195         (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
4196         (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
4197         (loadgp): Remove.
4198         (loadgp_blockage, cprestore): New instructions.
4199         (builtin_setjmp_setup): Implement using emit_move_insn.  Use
4200         pic_offset_table_rtx.
4201         (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
4202         (builtin_longjmp): Use gen_raw_REG to force use of $28.
4203
4204 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
4205
4206         * config/mips/mips-protos.h (mips_output_division): Declare.
4207         * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
4208         (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
4209         (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
4210         (TARGET_CHECK_ZERO_DIV): New macro.
4211         (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
4212         * config/mips/mips.c (mips_output_division): New function.
4213         * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
4214         account when calculating the default length of a division.
4215         (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
4216         Enable regardless of optimization level.  Use mips_output_division.
4217         (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
4218         udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
4219         divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
4220         modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
4221         udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
4222         umoddi3_internal): Remove.
4223
4224 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
4225
4226         * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
4227         (mips_sw_reg_names): Likewise.
4228         (mips_regno_to_class): Change hilo entry to NO_REGS.
4229         (hilo_operand): Use MD_REG_P.
4230         (extend_operator): New predicate.
4231         (override_options): Remove 'a' constraint.
4232         (mips_secondary_reload_class): Remove hilo handling.  Also remove
4233         handling of (plus sp reg) reloads for mips16.
4234         (mips_register_move_cost): Remove hilo handling.
4235         * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
4236         (MD_REG_LAST): Remove hilo from range.
4237         (HILO_REGNUM): Delete.
4238         (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
4239         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4240         (PREDICATE_CODES): Add entry for extend_operator.
4241         (DEBUG_REGISTER_NAMES): Change hilo entry to "".
4242         * config/mips/mips.md: Remove hilo clobbers wherever they occur.
4243         Remove constraints from multiplication define_expands.  Remove
4244         clobbers from "decorative" define_expand patterns.
4245         (UNSPEC_HILO_DELAY): Delete.
4246         (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
4247         (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
4248         Adjust C code to just emit insns for !TARGET_64BIT.
4249         (mulsidi3_internal): Rename to mulsidi3_32bit.
4250         (mulsidi3_64bit): Use a "d" constraint for the destination.
4251         Use extend_operator so that the pattern can handle umulsidi3 as well.
4252         Split the instruction after reload.
4253         (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
4254         (umulsidi3_internal): Rename to umulsidi3_32bit.
4255         (umulsidi3_64bit): Remove.
4256         (*smsac_di, *umsac_di): Line-wrap fixes.
4257         (udivsi3_internal): Don't allow operand 2 to be constant.
4258         (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
4259         (movdi_internal2, movsi_internal): Remove hilo alternatives.
4260         (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
4261
4262 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
4263
4264         PR target/10913
4265         * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
4266         PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
4267         PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
4268         PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
4269         SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
4270         (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
4271         PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
4272         asm_out_text_file with asm_out_file.
4273         * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
4274         * config/mips/elf.h (TEXT_SECTION): Undefine.
4275         * config/mips/elf64.h (TEXT_SECION): Undefine.
4276         * config/mips/openbsd.h (TEXT_SECION): Undefine.
4277         * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
4278         (override_options): Disable small-data optimizations unless using
4279         gas or explicit relocations.
4280         (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
4281         iris6_asm_named_section, iris6_asm_file_start): Remove code for
4282         handling TARGET_FILE_SWITCHING.
4283         (copy_file_data): Move into TARGET_IRIX6 block.
4284
4285 2003-06-08  Richard Henderson  <rth@redhat.com>
4286
4287         * expr.h (EXPAND_MEMORY): New.
4288         * expr.c (expand_expr): Check it.
4289         * stmt.c (expand_asm_operands): Provide it when the constraint
4290         requires a memory.  Warn for memory input constraints without
4291         a memory operand.
4292
4293 2003-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4294
4295         * varasm.c: Don't include c-tree.h.
4296
4297 2003-06-08  Andreas Jaeger  <aj@suse.de>
4298
4299         * predict.h: Convert to ISO C90 prototypes.
4300         * predict.c: Likewise.
4301         * tree-dump.h: Likewise.
4302         * tree-dump.c: Likewise.
4303         * diagnostic.h: Likewise.
4304         * diagnostic.c: Likewise.
4305         * combine.c: Likewise.
4306
4307         * rtl.h: Convert prototypes of combine.c to ISO C90.
4308
4309 Sun Jun  8 21:27:41 CEST 2003  Jan Hubicka  <jh@suse.cz>
4310
4311         * cfglayout.c (insn_scope): New static function
4312         (block_locators_*, line_locators*, file_locators*): New static varrays.
4313         (scope_to_insns_initialize): Use them.
4314         (insn_line, insn_file): New functions.
4315         (scope_to_insns_finalize): Use insn_scope.
4316         (prologue_locator, epilogue_locator): New global variables.
4317         * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
4318         make_call_insn_raw, emit_copy_of_insn_after): Use locators.
4319         (emit_insn_after_scope, emit_insn_before_scope
4320         emit_jump_insn_after_scope, emit_jump_insn_before_scope
4321         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
4322         (emit_insn_after_setloc, emit_insn_before_setloc
4323         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
4324         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
4325         use locators.
4326         * final.c (notice_source_line): Use locators.
4327         (final_start_function): Set initial source file and line.
4328         (final_scan_insn): Use locators.
4329         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4330         noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
4331         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
4332         noce_process_if_block, find_cond_trap): Likewise.
4333         * integrate.c (copy_insn_list): Likewise.
4334         * jump.c (duplicate_loop_exit_test): LIkewise.
4335         * print-rtl.c (print_rtx): Print locators.
4336         * recog.c (peephole2_optimize): Likewise.
4337         * rtl.h (INSN_SCOPE): Remove.
4338         (emit_insn_after_scope, emit_insn_before_scope
4339         emit_jump_insn_after_scope, emit_jump_insn_before_scope
4340         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
4341         (emit_insn_after_setloc, emit_insn_before_setloc
4342         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
4343         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
4344         (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
4345         * unroll.c (copy_loop_body): Use locators.
4346         * function.c (set_insn_locators): New function.
4347         (thread_prologue_and_epilogue_insns): Set the locators accordingly.
4348
4349 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
4350
4351         * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
4352         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
4353         _fixsfdi _fixunssfdi.
4354         (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
4355         popcounthi2.
4356         (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
4357         * config/h8300/clzhi2.c: New.
4358         * config/h8300/ctzhi2.c: Likewise.
4359         * config/h8300/parityhi2.c: Likewise.
4360         * config/h8300/popcounthi2.c: Likewise.
4361
4362 Sun Jun  8 15:52:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
4363
4364         * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
4365         * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
4366
4367         * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
4368         (dump_bb): New based on old dump_bb in cfgrtl.c
4369         (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
4370         * cfghooks.h (cfgh_verify_flow_info): Return status.
4371         * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
4372         * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
4373         (dump_bb): Remove generic parts.
4374         (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
4375         (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
4376
4377 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
4378
4379         * Makefile.in: Rename options.c and options.h to c-options.c and
4380         c-options.h.
4381         (OBJS): Remove options.o.
4382         * c-opts.c: Don'tInclude c-options.h instead of options.h.
4383         * opts.c: Don't include options.h.
4384         (find_opt): Can't use enum opt_code or N_OPTS.
4385         * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
4386         * opts.sh: ... here.
4387
4388 2003-06-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
4389             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4390
4391         PR pch/9830
4392         * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
4393         if HAVE_MINCORE is defined.
4394         (MAP_FAILED): Define if not defined.
4395         (gt_pch_save): Test against MAP_FAILED.
4396         (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
4397         the mapping address to the preferred base after checking it
4398         is possible to do so. Test against MAP_FAILED.
4399         * configure.in: Test for the presence of mincore in libc.
4400         * config.in: Regenerate.
4401         * configure: Regenerate.
4402
4403 2003-06-07  Richard Henderson  <rth@redhat.com>
4404
4405         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
4406         conditional compilation guard.
4407
4408 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
4409
4410         * optabs.c (expand_abs): Set result_unsignedp to 1 if
4411         flag_trav is zero.
4412
4413 2003-06-07  Richard Henderson  <rth@redhat.com>
4414
4415         * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
4416
4417 2003-06-07  Richard Henderson  <rth@redhat.com>
4418
4419         * basic-block.h (EDGE_SIBCALL): New.
4420         (EDGE_ALL_FLAGS): Update.
4421         * cfg.c (dump_edge_info): Add sibcall name.
4422         * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
4423         * cfgrtl.c (purge_dead_edges): Handle sibcalls.
4424
4425 2003-06-07  Andreas Jaeger  <aj@suse.de>
4426
4427         * mklibgcc.in (lib2funcs): Remove _exit.
4428         * libgcc2.c: Remove L_exit.
4429         * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
4430
4431         * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
4432
4433         * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
4434
4435         * ggc.h: Convert to ISO C90 prototypes.
4436         * ggc-none.c: Likewise.
4437         * ggc-common.c: Likewise.
4438         * ggc-page.c: Likewise.
4439         * ggc-simple.c: Likewise.
4440
4441         * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
4442
4443         * system.h: Poison INIT_SECTION_PREAMBLE.
4444
4445 2003-06-07  Zack Weinberg  <zack@codesourcery.com>
4446
4447         * config.gcc (with_cpu handling): Translate sparc64 in
4448         $machine to --with-cpu=v9.
4449         * config/alpha/alpha.c
4450         (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
4451         (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
4452
4453         * target.h: New hook asm_out.file_end.
4454         * target.h: Update to match.  New hook macro TARGET_ASM_FILE_END.
4455         * toplev.c (compile_file): Use targetm.asm_out.file_end.
4456         * system.h: Poison ASM_FILE_END.
4457         * varasm.c (file_end_indicate_exec_stack): New.
4458         * output.h: Prototype it.
4459         * doc/tm.texi: Document TARGET_ASM_FILE_END and
4460         file_end_indicate_exec_stack.  Delete references to attasm.h.
4461
4462         * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
4463         (ASM_FILE_END): Delete; move code...
4464         * config/darwin.c (darwin_file_end): Here; new function.
4465         * config/darwin-protos.h: Prototype it.
4466         * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
4467         rename unicosmk_file_end.
4468         * config/arm/aof.h (ASM_FILE_END): Delete; move code...
4469         * config/arm/arm.c (aof_file_end): ... here; new static function.
4470         Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
4471         Make aof_dump_imports and aof_dump_pic_table static.
4472         * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
4473         Set TARGET_ASM_FILE_END to avr_file_end.
4474         * config/c4x/c4x.c (c4x_file_end): Make static.  Take no arguments.
4475         Set TARGET_ASM_FILE_END to c4x_file_end.
4476         * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
4477         make static. Take no arguments.  Set TARGET_ASM_FILE_END to
4478         h8300_file_end.
4479         * config/i370/i370.h (ASM_FILE_END): Delete; move code...
4480         * config/i370/i370.c (i370_file_end): ... here; new static function.
4481         Set TARGET_ASM_FILE_END to i370_file_end.
4482          * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
4483          Take no arguments.  Call file_end_indicate_exec_stack if
4484          NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
4485         * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
4486         Define NEED_INDICATE_EXEC_STACK to 0.
4487         * config/i386/linux.h, config/i386/linux64.h: Redefine
4488         NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
4489         * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
4490         i386_pe_file_end.  Take no arguments.  Use ix86_file_end.
4491         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
4492         ia64_hpux_file_end, make static.  Take no arguments.
4493         * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
4494         commands_in_prologues, commands_in_epilogues): Delete.
4495         (function_epilogue): Update to match.
4496         * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
4497         make static.  Take no arguments.
4498         (iris6_asm_file_end): Rename iris6_file_end, make static, use
4499         mips_file_end, take no arguments.
4500         Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
4501         appropriate.
4502         * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
4503         make static, take no arguments. Set TARGET_ASM_FILE_END to
4504         mmix_file_end.
4505         * config/pa/pa.c (output_deferred_plabels): Make static, take
4506         no arguments.  Set TARGET_ASM_FILE_END to output_deferred_plabels.
4507         * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
4508         (ASM_FILE_END): Delete; move code...
4509         * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
4510         new static function.
4511
4512         * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
4513         * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
4514         Don't set ASM_FILE_END.
4515         * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
4516         * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
4517         * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
4518         file_end_indicate_exec_stack; don't set ASM_FILE_END.
4519         * config/alpha/unicosmk.h, config/i386/cygming.h
4520         * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
4521         * config/arm/arm-protos.h, config/alpha/alpha-protos.h
4522         * config/avr/avr-protos.h, config/c4x/c4x-protos.h
4523         * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
4524         * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
4525         * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
4526
4527 Sat Jun  7 18:32:13 CEST 2003  Jan Hubicka  <jh@suse.cz>
4528
4529         * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
4530         specified.
4531
4532 Sat Jun  7 15:20:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
4533
4534         * Makefile.in (stageprofile_build): Kill redundant target.
4535         * i386.c (mdep_reorg): Don't pad jumps for Athlon.
4536
4537 2003-06-07  Andreas Jaeger  <aj@suse.de>
4538
4539         * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
4540
4541         * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
4542         * config/dsp16xx/dsp16xx.h: Likewise.
4543         * config/i386/i386.h: Likewise.
4544         * config/ip2k/ip2k.h: Likewise.
4545
4546 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
4547
4548         * Makefile.in (OJBS, c-opts.o): Update.
4549         (c-options.c, c-options.h): Rename options.h and options.c.
4550         (options.h): Rename options_.h.
4551         (opts.o): New.
4552         * c-common.h (c_common_handle_option): Replace c_common_decode_option.
4553         (c_common_init_options): Update prototype.
4554         * c-lang.c (c_init_options): Update prototype.
4555         (LANG_HOOKS_HANDLE_OPTION): Override.
4556         (LANG_HOOKS_DECODE_OPTION): Drop.
4557         * c-opts.c: Include opts.h and options.h instead of c-options.h
4558         and c-options.c.
4559         (lang_flags): Move to file scope.
4560         (find_opt, c_common_decode_option): Remove.
4561         (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
4562         CL_REJECT_NEGATIVE): Move to opts.h.
4563         (missing_arg): Update prototype.
4564         (c_common_init_options): Update for new prototype.
4565         (c_common_handle_options): Filenames are passed as N_OPTS.
4566         * hooks.c (hook_int_void_0): New.
4567         * hooks.h (hook_int_void_0): New.
4568         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
4569         (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
4570         (LANG_HOOKS_INITIALIZER): Update.
4571         * langhooks.h (init_options): Update.
4572         (handle_option): New.
4573         * opts.c, opts.h: New files.
4574         * opts.sh: Update c file to include opts.h and options.h.
4575         * toplev.c: Include opts.h; change options.h to options_.h.
4576         (parse_options_and_default_flags): Get lang_mask, use
4577         handle_option for language-specific handling.
4578         * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
4579         (LANG_HOOKS_HANDLE_OPTION): Override.
4580         (objc_init_options): Update.
4581
4582 2003-06-07  Magnus Kreth <magnus.kreth@gmx.de>
4583             Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
4584
4585         PR other/7031
4586         * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
4587         gcov.
4588
4589 2003-06-07  Kelley Cook  <kelleycook@wideopenwest.com>
4590
4591         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
4592         section names.
4593         * configure: Regenerate.
4594
4595 2003-06-07  Alan Modra  <amodra@bigpond.net.au>
4596
4597         * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
4598
4599 2003-06-06  James E Wilson  <wilson@tuliptree.org>
4600
4601         PR inline-asm/10890
4602         * reload1.c (merge_assigned_reloads): Abort only if two reloads have
4603         different in fields.
4604
4605 2003-06-06  Nathanael Nerode  <neroden@gcc.gnu.org>
4606
4607         * configure.in: Make $(target_subdir) correspond with top level usage.
4608         * Makefile.in: Likewise.
4609         * configure: Regenerate.
4610
4611 2003-06-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4612
4613         * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
4614         ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
4615         unsigned HOST_WIDE_INT.
4616         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
4617         Likewise.
4618         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
4619         Likewise.
4620
4621 2003-06-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4622
4623         * doc/install.texi (Prerequisites): New section documenting
4624         tools and packages necessary prior to building and/or
4625         modifying GCC.
4626         * doc/install.texi2html: Also generate prerequisites.html.
4627
4628 2003-06-06  Richard Earnshaw  <rearnsha@arm.com>
4629
4630         PR target/11052
4631         * ifcvt.c (noce_process_if_block): Fail if the destination has
4632         side-effects.
4633
4634 2003-06-06  Jason Merrill  <jason@redhat.com>
4635
4636         * stmt.c (resolve_asm_operand_names): Rename from
4637         resolve_operand_names.  No longer static.  Avoid needless copying.
4638         Don't build array of constraints.
4639         (expand_asm_operands): Build it here.
4640         * tree.h: Declare resolve_asm_operand_names.
4641
4642         * stmt.c (expand_decl): Put artificial vars into registers even
4643         when not optimizing, and don't mark the regs as user vars.
4644
4645 2003-06-06  J"orn Rennecke <joern.rennecke@superh.com>
4646
4647         * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
4648         of the generated register.
4649
4650 2003-06-06  Daniel Jacobowitz  <drow@mvista.com>
4651
4652         * config.gcc: Add a missing sparc64 case.
4653
4654 2003-06-06  Jakub Jelinek  <jakub@redhat.com>
4655
4656         * mklibgcc.in: Propagate .note.GNU-stack section if needed into
4657         the .hidden assembly stubs.
4658
4659 2003-06-06  H.J. Lu <hongjiu.lu@intel.com>
4660
4661         * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
4662         and x86_64-*-*.
4663
4664         * config/i386/mmintrin.h: Update version and add alternate
4665         intrinsic names.
4666         * config/i386/xmmintrin.h: Likewise.
4667
4668         * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
4669         intrinsics to ...
4670         * config/i386/emmintrin.h: Here. New file.
4671
4672 2003-06-06  Roger Sayle  <roger@eyesopen.com>
4673
4674         * fold-const.c (fold <ABS_EXPR>):  Re-fold the result of folding
4675         fabs(-x) into fabs(x).  Use tree_expr_nonnegative_p to determine
4676         when the ABS_EXPR (fabs or abs) is not required.
4677         (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
4678         always nonnegative from fold to here.  Additionally, cabs and fabs
4679         are always non-negative, and pow and atan are non-negative if
4680         their first argument is non-negative.
4681
4682         * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
4683         Evaluate cabs of a constant at compile-time.  Convert cabs of a
4684         non-complex argument into fabs.  Convert cabs(z) into
4685         sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
4686         -funsafe-math-optimizations or -ffast-math.
4687         (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
4688         Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
4689
4690 Thu Jun  5 20:51:09 CEST 2003  Jan Hubicka  <jh@suse.cz>
4691
4692         * sourcebuild.texi (Front End Directory): Document new hooks.
4693
4694 Fri Jun  6 11:02:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
4695
4696         * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
4697         * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
4698         stack frames.
4699         (pro_epilogue_adjust_stack_rex64_2): New pattern
4700
4701 Fri Jun  6 11:03:14 CEST 2003  Jan Hubicka  <jh@suse.cz>
4702                                Pop Sebastian
4703                                Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4704
4705         * cfghooks.h, cfghooks.c: New files.
4706         * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
4707         (OBJS): Add cfghooks.o.
4708         (cfghooks.o): New rule.
4709         * basic-block.h (split_edge): Rename to rtl_split_edge.
4710         (verify_flow_info): Rename to rtl_verify_flow_info.
4711         (cfghooks.h): Included here.
4712         * cfgrtl.c (split_edge): Renamed rtl_split_edge.
4713         (verify_flow_info): Renamed rtl_verify_flow_info.
4714         * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
4715
4716         * basic-block.h (split_block, split_edge, flow_delete_block,
4717         redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
4718         (flow_delete_block_noexpunge):  Return void.
4719         * cfg.c (verify_flow_info): New function.
4720         * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
4721         try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
4722         Use delete_block.
4723         * cfglayout.c (function_footer): Rename to...
4724         (cfg_layout_function_footer): ... this variable
4725         (unlink_insn_chain): Make global.
4726         (fixup_reorder_chain, record_effective_endpoints): Update.
4727         (cleanup_unconditional_jumps): Use delete_block.
4728         (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
4729         (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
4730         (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
4731         * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block):  Delete.
4732         (cfg_layout_function_footer): Declare.
4733         * cfgloopmanip (split_loop_bb): Do not update RBI.
4734         (remove_bbs): Use delete_block.
4735         (loop_reidrect_edge, loop_delete_branch_edge): Use
4736         redirect_edge_and_branch.
4737         (create_preheader): Use split_block and redirect_edge_and_branch_force.
4738         (split_edge_with): Likewise.
4739         * cfgrtl.c: Include cfglayout.h
4740         (split_edge): Rename to ...
4741         (rtl_split_edge) ... this one; make local.
4742         (redirect_edge_and_branch): Rename to ...
4743         (rtl_redirect_edge_and_branch) ... this one; make local.
4744         (redirect_edge_and_branch_force): Rename to ...
4745         (rtl_redirect_edge_and_branch_force) ... this one; make local.
4746         (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
4747         (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
4748         cfglayout.c; update to directly call RTL counterparts.
4749         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
4750         * ifcvt.c (find_cond_trap): Use delete_block.
4751         (find_if_case_1): Use delete_block.
4752         (find_if_case_2): Use delete_block.
4753         * rtl.h (unlink_insn_chain): Declare.
4754         * toplev.c (rtl_reigster_cfg_hooks): New.
4755
4756 2003-06-05  Richard Henderson  <rth@redhat.com>
4757
4758         * recog.c (peephole2_optimize): Revert last change.
4759
4760 2003-06-05  Richard Henderson  <rth@redhat.com>
4761
4762         * recog.c (peephole2_optimize): Don't split block unless
4763         can_throw_internal.
4764
4765 2003-06-06  Kazu Hirata  <kazu@cs.umass.edu>
4766
4767         * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
4768         * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
4769
4770 2003-06-05  Kelley Cook  <kelleycook@wideopenwest.com>
4771
4772         PR optimization/4490
4773         * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
4774         * doc/invoke.texi (m96bit-long-double, m128bit-long-double):  Reword
4775         documentation to accurately reflect what these options do.
4776
4777 2003-06-06  Kaz Kojima  <kkojima@gcc.gnu.org>
4778
4779         * config/sh/linux.h (STARTFILE_SPEC): Handle -pie.  Simplify.
4780         (ENDFILE_SPEC): Redefine to handle -pie.
4781
4782 2003-06-05  Phil Edwards <phil@jaj.com>
4783
4784         * Makefile.in (qmtest-g++): Use target_alias, not target.
4785
4786 2003-06-05  Per Bothner  <pbothner@apple.com>
4787
4788         * toplev.c (push_srcloc):  Simplify behavior to save current location
4789         and set current location to parameters.
4790         (pop_srcloc):  Simplify semantics.
4791         (lang_dependent_init):  Remove now-useless initial push_srcloc.
4792
4793 2003-05-06  Richard Henderson  <rth@redhat.com>
4794
4795         * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
4796         language-specific tree codes.
4797
4798 2003-06-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4799
4800         PR middle-end/9986
4801         * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
4802         BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
4803
4804 Thu Jun  5 18:32:46 CEST 2003  Jan Hubicka  <jh@suse.cz>
4805
4806         * install.tex: Document profiledbootstrap.
4807
4808         * configure.in:  Add support for lang.stageprofile and
4809         lang.stagefeedback
4810         * Makefile.in (clean, distclean): Kill new stages
4811         (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
4812         (STAGE2_FLAGS_TO_PASS): ... this one.
4813         (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
4814         (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
4815         (stageprofile_build, stageprofile_copy, stagefeedback_build,
4816         stagefeedback_copy): New.
4817         (restageprofile, restagefeedback, stageprofile-start,
4818         stageprofile, stagefeedback-start): Likewise.
4819
4820 2003-06-05  David Miller  <davem@redhat.com>
4821             Richard Henderson  <rth@redhat.com>
4822
4823         * optabs.c (HAVE_conditional_trap): Provide default.
4824         (gen_conditional_trap): Likewise.
4825         (init_optabs): Merge init_traps.
4826         (gen_cond_trap): Use prepare_operand.  Restructure and avoid ifdef.
4827
4828 Thu Jun  5 14:59:44 CEST 2003  Jan Hubicka  <jh@suse.cz>
4829
4830         * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
4831         is REG for nonzero_bits (REG) == 8.
4832
4833 Thu Jun  5 13:23:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
4834
4835         * i386.md (align): Fix warning; clarify what to do when no p2align
4836         is available.
4837
4838 2003-06-05  Nick Clifton  <nickc@redhat.com>
4839
4840         * config.gcc (m32r-elf): Revert previous delta.
4841         * config/m32r/t-m32r (crtinit.o): Fix rule to work with
4842         multilibs.  Remove m32rx specific version.
4843         (crtfini.o): Likewise.
4844         (EXTRA_MULTILIB_PARTS): Define.
4845
4846 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
4847
4848         * doc/md.texi (Machine Constraints): Correct the meaning of
4849         constraints related to floating-point registers on SPARC.
4850
4851 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
4852             Paolo Bonzini  <bonzini@gnu.org>
4853
4854         PR target/10663
4855         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
4856         assembler and linker output to /dev/null.
4857         Use a 'sed' construct instead of 'grep -A1'.
4858         * configure: Regenerate.
4859
4860 2003-06-04  Richard Henderson  <rth@redhat.com>
4861
4862         * config/i386/i386.c (struct ix86_address): Add seg.
4863         (no_seg_address_operand): New.
4864         (ix86_decompose_address): Restructure PLUS loop.  Accept one
4865         UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS.  Adjust ESP swap test
4866         to test for a regnum, not stack_pointer_rtx.
4867         (ix86_address_cost): Reduce cost if non-default segment.
4868         (legitimate_address_p): Remove UNSPEC_TP check.
4869         (get_thread_pointer): Add to_reg argument.  Don't represent
4870         the thread pointer as a memory load.
4871         (legitimize_tls_address): Split out of ...
4872         (legitimize_address): ... here.
4873         (print_operand_address): Handle parts.seg.
4874         (ix86_expand_move): Use legitimize_tls_address.
4875         (ix86_rtx_costs): Handle UNSPEC_TP.
4876         * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
4877         (TARGET_TLS_DIRECT_SEG_REFS): New.
4878         (TARGET_SWITCHES): Add tls-direct-seg-refs.
4879         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
4880         (PREDICATE_CODES): Add no_seg_address_operand.
4881         * config/i386/i386.md (lea_1): Use it.
4882         (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
4883         (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
4884         * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
4885         * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
4886         * doc/invoke.texi: Add -mtls-direct-seg-refs.
4887
4888 2003-06-04  Mark Mitchell  <mark@codesourcery.com>
4889
4890         * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
4891         (QMTEST_GPP_TESTS): Use "g++" by default.
4892         (stamp-qmtest): Tweak database creation.
4893         (QMTEST_DIR/context): Update context file format.
4894         (qmtest-g++): Tweak command-line.
4895
4896 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4897
4898         * Makefile.in (varasm.o): Don't set -Wno-error.
4899         * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
4900
4901 2003-06-04  Zack Weinberg  <zack@codesourcery.com>
4902
4903         PR bootstrap/3163
4904         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
4905         (gcc_AC_FUNC_MMAP_BLACKLIST): New.
4906         * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
4907         and AC_CHECK_FUNCS lists, respectively.  Use
4908         gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
4909         AC_FUNC_MMAP_FILE.
4910         * configure, config.in: Regenerate.
4911
4912 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4913
4914         * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
4915         * arm.c (arm_output_function_prologue): Fix format specifiers.
4916         * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
4917         * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
4918         HOST_WIDE_INT_PRINT_DEC.
4919         * vax.c (vax_output_function_prologue): Fix format specifiers.
4920
4921 2003-06-04  Richard Henderson  <rth@redhat.com>
4922
4923         * cse.c (find_best_addr): Consider binary operators even if second
4924         argument is not CONST_INT.
4925
4926 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4927
4928         * doc/invoke.texi (max-cse-path-length): Document.
4929
4930 2003-06-04  Richard Henderson  <rth@redhat.com>
4931
4932         * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
4933
4934 2003-06-04  Andrew Pinski <pinskia@physics.uc.edu>
4935
4936         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
4937         Remove semi-colon at the end of the expression.
4938
4939 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4940
4941         * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
4942         * i370.h (mvs_function_name_length): Likewise.
4943         * i960.h (CONSTANT_ALIGNMENT): Likewise.
4944         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4945         * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4946         * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4947         * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
4948         variable.
4949
4950 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
4951
4952         * config.gcc: Reorganize --with-cpu logic.  Set
4953         configure_default_options according to the default CPU, --with-cpu,
4954         --with-arch, --with-tune, --with-schedule, --with-abi, and
4955         --with-float.  Check for legal values of various options.
4956         * configure.in: Define configure_default_options in configargs.h.
4957         * configure: Regenerated.
4958         * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
4959         (TARGET_DEFAULT_FLOAT_P): New macros.
4960         * gcc.c (do_option_spec): New function.
4961         (struct default_spec, option_default_specs): New.
4962         (main): Call do_option_spec.
4963         * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
4964         config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
4965         config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
4966
4967         * doc/install.texi: Update --with-cpu documentation.  Mention
4968         --with-arch, --with-schedule, --with-tune, --with-abi, and
4969         --with-float.
4970         * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
4971
4972 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
4973
4974         * config.gcc: Only process --with-cpu logic in the third pass.
4975
4976 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
4977
4978         * config.gcc: Reorganize --with-cpu section.  Remove an
4979         obsolete comment about the default CPU for x86-64.  Fix
4980         a typo for the ep9312.  Update the list of supported PowerPC
4981         CPUs.  Support a limited set of new --with-cpu options
4982         for i386.
4983
4984 2003-06-04  Aldy Hernandez  <aldyh@redhat.com>
4985
4986         * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
4987         complex numbers <= 32 bits into two registers.
4988
4989 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4990
4991         * alpha.c (print_operand_address): Fix format specifier warnings.
4992         * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4993         * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4994         * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
4995         * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
4996         * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
4997         ASM_OUTPUT_SKIP): Likewise.
4998         * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4999         * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5000         * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
5001         Likewise.
5002         * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5003         * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
5004         * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
5005         * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5006         * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
5007         * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5008         * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5009         * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5010         * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5011         * svr3.h (ASM_OUTPUT_COMMON): Likewise.
5012
5013 2003-06-04  J"orn Rennecke <joern.rennecke@superh.com>
5014
5015         * c-decl.c (c_init_decl_processing): Clear input_file_name
5016         while building common nodes.
5017         * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
5018         Don't add working directory for strings like <built-in> .
5019
5020 2003-06-04  David Edelsohn  <edelsohn@gnu.org>
5021
5022         * doc/install.texi (*-ibm-aix*): Native as and ld required
5023         to bootstrap on AIX 5L.
5024
5025 2003-06-04  Richard Henderson  <rth@redhat.com>
5026
5027         * c-common.c (handle_cleanup_attribute): New.
5028         (c_common_attributes): Add it.
5029         * c-decl.c (finish_decl): Honor the cleanup attribute.
5030         * doc/extend.texi (Variable Attributes): Document it.
5031
5032         * unwind-c.c: New file.
5033         * Makefile.in (LIB2ADDEH): Add it.
5034         * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
5035         config/ia64/t-ia64: Likewise.
5036
5037 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
5038
5039         * function.c (trampolines_created): New variable.
5040         (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
5041         * function.h (trampolines_created): Add.
5042         * config/s390/linux.h (ASM_FILE_END): Define.
5043         * config/alpha/linux-elf.h (ASM_FILE_END): Define.
5044         * config/m68k/linux.h (ASM_FILE_END): Define.
5045         * config/rs6000/linux.h (ASM_FILE_END): Define.
5046         * config/rs6000/linux64.h (ASM_FILE_END): Define.
5047         * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
5048         * config/sparc/linux.h (ASM_FILE_END): Define.
5049         * config/sparc/linux64.h (ASM_FILE_END): Define.
5050         * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
5051         * config/i386/linux.h (SUBTARGET_FILE_END): Define.
5052         * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
5053
5054 Wed Jun  4 18:39:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
5055
5056         * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
5057         (ix86_reorg): Use it.
5058         * i386.md (align): New insn pattern.
5059
5060 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5061
5062         * toplev.c (rest_of_type_compilation): Fix typo.
5063
5064 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
5065             Alan Modra  <amodra@bigpond.net.au>
5066
5067         * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
5068         * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
5069         * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
5070         * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
5071         * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
5072         * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
5073         (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
5074         * config/rs6000/rs6000.c (output_profile_hook): Likewise.
5075
5076         * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
5077         Pass it to $gcc_cv_as.
5078         * configure: Rebuilt.
5079
5080         * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
5081         (print_operand): Allow TARGET_AIX to be non-constant.
5082         (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
5083         Define unconditionally.
5084         (rs6000_elf_declare_function_name): New function.
5085         * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
5086         non-constant.
5087         * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
5088         to 1.
5089         (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
5090         [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
5091         is defined.
5092         (TARGET_AIX): Define to 1 if TARGET_64BIT.
5093         (PROCESSOR_DEFAULT): Remove.
5094         (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
5095         INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
5096         [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
5097         (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
5098         -m32 and -m64.
5099         (MULTILIB_DEFAULTS): Define.
5100         (SUBSUBTARGET_EXTRA_SPECS): Define.
5101         (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
5102         (TARGET_TOC): Define only if !RS6000_BI_ARCH.
5103         (TARGET_NO_TOC): Remove.
5104         [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
5105         TARGET_PROTOTYPE): Define to 0.
5106         (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
5107         (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
5108         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
5109         if !TARGET_64BIT.
5110         (USER_LABEL_PREFIX): Remove.
5111         (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
5112         (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
5113         if TARGET_64BIT.
5114         (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
5115         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
5116         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
5117         (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
5118         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5119         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
5120         TARGET_64BIT.
5121         (RS6000_CALL_GLUE): Likewise.
5122         (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
5123         RESTORE_FP_SUFFIX): Likewise.
5124         (ASM_DECLARE_FUNCTION_NAME): Remove.
5125         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
5126         DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
5127         name if TARGET_64BIT.
5128         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
5129         !TARGET_64BIT.
5130         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
5131         (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
5132         (DRAFT_V4_STRUCT_RET): Define.
5133         (SIGNAL_FRAMESIZE): New enum value.
5134         (MD_FALLBACK_FRAME_STATE_FOR): Define.
5135         * config/rs6000/default64.h: New file.
5136         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
5137         options.
5138         (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
5139         to RS6000_ABI_NAME.  Only disallow mixing of -fPIC with -mcall-aixdesc
5140         if !TARGET_64BIT.
5141         [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
5142         (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
5143         function.
5144         (TARGET_OS_SYSV_CPP_BUILTINS): Define.
5145         (TARGET_OS_CPP_BUILTINS): Use it.
5146         (CPP_SYSV_SPEC): Remove.
5147         (CPP_SPEC): Remove cpp_sysv.
5148         (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
5149         Add SUBSUBTARGET_EXTRA_SPECS.
5150         (SUBSUBTARGET_EXTRA_SPECS): Define.
5151         * config/rs6000/biarch64.h: New file.
5152         * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
5153         New prototype.
5154         * config/rs6000/x-linux64: New file.
5155         * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
5156         multilibs.
5157         * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
5158         * config/rs6000/eabi-cn.asm: Likewise.
5159         * config/rs6000/tramp.asm: Likewise.
5160         * config/rs6000/sol-ci.asm: Likewise.
5161         * config/rs6000/sol-cn.asm: Likewise.
5162         * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
5163         (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
5164         * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
5165         _CALL_AIXDESC section.
5166         * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
5167         defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
5168         or default32.
5169
5170 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
5171
5172         * config.gcc: Revert accidentally committed ARM changes.
5173
5174 2003-06-04  Roger Sayle  <roger@eyesopen.com>
5175
5176         * builtins.c (dconstpi, dconste): New mathematical constants.
5177         (init_builtin_dconsts): New function to initialize dconstpi
5178         and dconste.
5179         (fold_builtin): Optimize exp(1.0) = e.  Evaluate exp(x) at
5180         compile time with -ffast-math when x is an integer constant.
5181         Optimize tan(0.0) = 0.0.  Optimize atan(0.0) = 0.0,
5182         atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
5183
5184 2003-06-04  Roger Sayle  <roger@eyesopen.com>
5185
5186         * calls.c (expand_call): Avoid calling pure or const functions
5187         when the result is ignored (or void) and none of the arguments
5188         are volatile.  Move warning diagnostic earlier in function.
5189
5190 2003-06-04  Andreas Jaeger  <aj@suse.de>
5191
5192         * system.h: Do not poison TDESC_SECTION_ASM_OP,
5193         RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
5194
5195 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5196
5197         * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
5198         optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
5199         handle %ll, optimize regular character case.
5200
5201 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5202
5203         * Makefile.in (cse.o): Add params.h dependency.
5204         * cse.c: Include params.h.
5205         (PATHLENGTH): Removed.
5206         (struct cse_basic_block_data): Make path array dynamic.
5207         (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
5208         of PATHLENGTH.
5209         (cse_main, cse_basic_block): Allocate path array.
5210         * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
5211
5212 Wed Jun  4 09:49:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
5213
5214         * i386.c (ix86_reorg): Replace the jump instead of adding nop.
5215         * i386.md (UNSPEC_REP): New constant.
5216         (return_internal_long): New pattern.
5217
5218 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
5219
5220         PR optimization/11018
5221         * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
5222         consistently to decide whether the scratch register is really
5223         required.
5224
5225 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
5226
5227         PR optimization/10876
5228         * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
5229         new 'O' constraint for constant 4096.
5230         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
5231         * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
5232         Do not transform into MINUS insn for constant 4096.
5233         (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
5234         for constant 4096 as third operand.
5235         (addsi3 expander): Remove.
5236         (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
5237         new alternative for constant 4096 as third operand.
5238         (subdi3 expander): Do not transform into PLUS insn for constant 4096.
5239         (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
5240         operand.
5241         (subsi3 expander): Remove.
5242         (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
5243         constant 4096 as third operand.
5244         * doc/md.texi (Machine Constraints): Document new 'O' constraint for
5245         the SPARC port.
5246
5247 2003-06-03  Chris Demetriou  <cgd@broadcom.com>
5248
5249         * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
5250
5251 2003-06-04  Andreas Jaeger  <aj@suse.de>
5252
5253         * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
5254
5255         * config/i386/i386.c (ix86_expand_prologue): Do not use
5256         SUBTARGET_PROLOGUE.
5257
5258         * system.h: Poision SUBTARGET_PROLOGUE.
5259
5260         * config/arm/arm-protos.h: Remove unused rdate_section prototype.
5261
5262         * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
5263         dependend code.
5264
5265         * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
5266
5267         * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
5268         INSN_CACHE_LINE_WIDTH.
5269
5270         * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
5271         (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
5272         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
5273
5274         * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
5275         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
5276
5277         * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
5278         (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
5279         (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
5280         (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
5281         (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
5282         (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
5283
5284         * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
5285         DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
5286         DBX_WORKING_DIRECTORY.
5287
5288         * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
5289         DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
5290
5291         * config/frv/frv-protos.h: Remove unused const_section
5292         declaration.
5293         * config/vax/vax-protos.h: Likewise.
5294
5295         * output.h: Remove CONST_SECTION_ASM_OP usage.
5296
5297         * system.h: Poison CONST_SECTION_ASM_OP.
5298
5299         * crtstuff.c (__do_global_dtors_aux): Remove usage of
5300         CRT_GET_RFIB_TEXT.
5301         (frame_dummy): Likewise.
5302         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
5303         * system.h: Poison CRT_GET_RFIB_TEXT.
5304
5305         * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
5306
5307         * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
5308         (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
5309         (recognized_function): Likewise.
5310         (read_scan_file): Likewise.
5311
5312 2003-06-03  Roger Sayle  <roger@eyesopen.com>
5313
5314         * optabs.c (expand_binop): Optimize complex multiplication for
5315         the case of squaring a complex argument.
5316
5317 2003-06-03  Roger Sayle  <roger@eyesopen.com>
5318
5319         * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
5320         non-volatile operands of binary operations.
5321         (prepare_cmp_insn): Likewise.
5322
5323 2003-06-03  Roger Sayle  <roger@eyesopen.com>
5324
5325         * varasm.c (force_const_mem): Handle alignment of constants not
5326         representable as a type in the front-end language.
5327
5328 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
5329
5330         * flow.c (initialize_uninitialized_subregs): Use
5331         emit_move_insn instead of emitting a hardcoded move.
5332
5333 2003-06-03  Richard Henderson  <rth@redhat.com>
5334
5335         * optabs.c (expand_abs_nojump): Split out from ...
5336         (expand_abs): ... here.
5337         * optabs.h (expand_abs_nojump): Declare.
5338         * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
5339         * Makefile.in (ifcvt.o): Depend on optabs.h.
5340
5341 2003-06-03  Alan Modra  <amodra@bigpond.net.au>
5342
5343         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
5344
5345 2003-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
5346
5347         * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
5348         (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
5349         to yes.
5350         * configure.in: Allow default_use_cxa_atexit to determine the
5351         value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
5352         disabled.
5353         * configure: Regenerate.
5354
5355 2003-06-03  Douglas B Rupp  <rupp@gnat.com>
5356
5357         * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
5358         * doc/gcc.texi: Remove vms.texi section.
5359         * doc/vms.texi: Remove obsolete file.
5360
5361 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
5362
5363         * configure.in (inhibit_libc): Don't define when configuring
5364         with --with-newlib --with-headers.
5365         * configure: Regenerate.
5366
5367         * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
5368
5369 2003-06-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5370
5371         * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
5372         IRIX 6 without GNU ld.
5373         * configure: Regenerate.
5374
5375 2003-06-03  Roger Sayle  <roger@eyesopen.com>
5376
5377         * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
5378         of a complex number rather than invoke mov_optab directly.
5379
5380 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
5381
5382         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
5383         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
5384
5385 2003-06-03  Nathanael Nerode  <neroden@gcc.gnu.org>
5386
5387         * config/i386/x86-64.h: Remove two target-independent comments;
5388          replace "GNU CC" with "GCC".
5389
5390 2003-06-03  Anthony Green  <green@redhat.com>
5391
5392         * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
5393
5394 2003-06-03  Roger Sayle  <roger@eyesopen.com>
5395
5396         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
5397         New builtins representing ISO C99's cabs, cabsf and cabsl.
5398         * builtins.c (expand_builtin_fabs): New function.
5399         (expand_builtin_cabs): New function.
5400         (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
5401         using expand_builtin_fabs and expand_builtin_cabs respectively.
5402
5403         * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
5404
5405 2003-06-03  Aldy Hernandez  <aldyh@redhat.com>
5406
5407         * function.c (assign_parms): Split complex arguments.
5408
5409         * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
5410
5411         * expr.h (SPLIT_COMPLEX_ARGS): Define.
5412         (split_complex_types): Protoize.
5413         (split_complex_values): Protoize.
5414
5415         * calls.c (expand_call): Split complex arguments on architectures
5416         that require it.
5417         (split_complex_values): New.
5418         (split_complex_types): New.
5419
5420         * config/rs6000/rs6000.c (rs6000_libcall_value): New.
5421         (rs6000_function_value): Handle complex values on AIX.
5422         (rs6000_complex_function_value): New.
5423
5424         * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
5425
5426         * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
5427         (SPLIT_COMPLEX_ARGS): New.
5428
5429 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
5430
5431         * configure.in (HAVE_LD_PIE): Check for ld -pie.
5432         * config.in: Rebuilt.
5433         * configure: Rebuilt.
5434         * toplev.c (flag_pie, flag_shlib): New variables.
5435         (f_options): Add -fpie and -fPIE.
5436         (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
5437         Set flag_shlib if flag_pic and not -fpie/-fPIE.
5438         * flags.h (flag_pic, flag_shlib): Add.
5439         * varasm.c (default_binds_local_p): Use flag_shlib instead of
5440         flag_pic.
5441         * gcc.c (LINK_PIE_SPEC): Define.
5442         (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
5443         (option_map): Add --pie -> -pie mapping.
5444         * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
5445         and -fPIE the same way as -fPIC.
5446         * config/openbsd.h (ASM_SPEC): Likewise.
5447         * config/frv/frv.h (ASM_SPEC): Likewise.
5448         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
5449         * config/arm/semi.h (ASM_SPEC): Likewise.
5450         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5451         * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
5452         * config/i386/beos-elf.h (CC1_SPEC): Likewise.
5453         * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
5454         * config/m68k/linux.h (CPP_SPEC): Likewise.
5455         * config/m68k/netbsd.h (ASM_SPEC): Likewise.
5456         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
5457         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
5458         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
5459         * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
5460         * config/pa/pa-linux.h (CPP_SPEC): Likewise.
5461         * config/netbsd-aout.h (ASM_SPEC): Likewise.
5462         * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
5463         * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
5464         * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
5465         * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
5466         * config/sparc/sparc.h (ASM_SPEC): Likewise.
5467         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
5468         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
5469         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
5470         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
5471         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
5472         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
5473         Simplify.
5474         * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5475         * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5476         * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5477         * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5478         * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5479         * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5480         * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5481         * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
5482
5483 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
5484
5485         * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
5486         != 0 handling.  Pass 0 to store_by_pieces.
5487         (expand_builtin_mempcpy): Add endp argument.  Don't call
5488         expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
5489         directly.  If ignoring result, only do expand_call.
5490         (expand_builtin_stpcpy): Likewise.  Call expand_builtin_mempcpy
5491         otherwise.
5492         (expand_builtin_strncpy, expand_builtin_memset): Adjust
5493         store_by_pices callers.
5494         (expand_builtin): Adjust expand_builtin_memcpy and
5495         expand_builtin_mempcpy callers.
5496         * expr.c (can_move_by_pieces): New function.
5497         (move_by_pieces): Add endp argument, return to resp. memory at end
5498         or one byte earlier depending on endp.
5499         (store_by_pieces): Likewise.
5500         (emit_block_move): Adjust call to move_by_pieces.
5501         (emit_push_insn): Adjust move_by_pieces caller.
5502         * expr.h (can_move_by_pieces): New prototype.
5503         (store_by_pieces): Adjust prototypes.
5504         * rtl.h (move_by_pieces): Adjust prototype.
5505         * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
5506         caller.
5507
5508 2003-06-03  Ben Elliston  <bje@wasabisystems.com>
5509
5510         * doc/md.texi (Processor pipeline description): Improve wording.
5511
5512 2003-06-03  Neil Booth  <neil@daikokuya.co.uk>
5513
5514         * c-opts.c (c_common_handle_option): New, pulled out of
5515         c_common_decode_option.  Substitute uses of argv.
5516         (c_common_decode_option): Broken into two.
5517
5518 2003-06-02  Roger Sayle  <roger@eyesopen.com>
5519             Zack Weinberg  <zack@codesourcery.com>
5520
5521         * emit-rtl.c (gen_complex_constant_part):  Remove unnecessary
5522         test of TREE_CONSTANT_POOL_ADDRESS_P.
5523
5524 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5525
5526         * mips.c: Don't include output.h twice.
5527         * stormy16.c: Likewise.
5528         * xtensa.c: Likewise.
5529         * output.h: Protect against multiple inclusion.
5530
5531 2003-06-02  J"orn Rennecke <joern.rennecke@superh.com>
5532
5533         * sh.h (OLD_ARG_MODE): New macro.
5534         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
5535         (FUNCTION_ARG_1): Break out of:
5536         (FUNCTION_ARG).  Use OLD_ARG_MODE.
5537
5538 2003-06-02  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
5539
5540         * gcc/config.gcc Add support multilib parts for m32rx processor.
5541
5542 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5543
5544         * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
5545         (mostlyclean): Delete c-options.c and c-options.h.
5546
5547 2003-06-02  Neil Booth  <neil@daikokuya.co.uk>
5548
5549         * c-opts.c (CL_REJECT_NEGATIVE): New.
5550         (c_common_decode_option): Update to use it.
5551         * c.opt: Update documentation; use RejectNegative.
5552         * opts.sh: Handle RejectNegative.
5553
5554 2003-06-01  Zack Weinberg  <zack@codesourcery.com>
5555
5556         * ggc-page.c (init_ggc): Give better diagnostics on failure to
5557         open /dev/zero.
5558         * toplev.c (crash_signal): Reset handling for received signal
5559         to SIG_DFL.
5560
5561 2003-06-02  Ben Elliston  <bje@wasabisystems.com>
5562
5563         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
5564         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
5565         (arm_use_dfa_pipeline_interface): Implement.
5566         * config/arm/arm.md (arm): New automaton.
5567         (write_buf): Remove function units; new cpu unit.
5568         (write_blockage): Remove function units; new cpu unit.
5569         (core): Remove function units; new cpu unit.
5570         (r_mem_f_wbuf): New instruction reservation.
5571         (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
5572         (store1_ldsched, store2, store3, store4): Likewise.
5573         (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
5574         (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
5575         (multi_cycle, single_cycle): Likewise.
5576         * config/arm/fpa.md (armfp): New automaton.
5577         (fpa): Remove function units; new cpu unit.
5578         (fpa_mem): Remove function unit; new cpu unit.
5579         (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
5580         (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
5581
5582 2003-06-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5583
5584         * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
5585         * c-format.c (enum format_type): Add asm_fprintf_format_type.
5586         (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
5587         asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
5588         (format_types_orig): Renamed from format_types.  Add new data.
5589         (format_types): Declare as pointer.
5590         (handle_format_attribute): Move later in file so we have all
5591         necessary declarations.  Add section to capture HOST_WIDE_INT.
5592         * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
5593         (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
5594
5595 2003-06-01  Andreas Jaeger  <aj@suse.de>
5596
5597         * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
5598         ROUND_TYPE_SIZE_UNIT.
5599
5600         * stor-layout.c (finalize_record_size): Remove usages of
5601         ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
5602         (finalize_type_size): Likewise.
5603         (layout_type): Likewise.
5604
5605         * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
5606
5607         * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
5608
5609         * config/d30v/d30v.h: Remove text copied from the manual.
5610
5611 2003-06-01  Roger Sayle  <roger@eyesopen.com>
5612             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5613             Geoffrey Keating  <geoffk@apple.com>
5614
5615         * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
5616         constants as condition code values.
5617
5618 2003-06-01  DJ Delorie  <dj@redhat.com>
5619
5620         * cppmacro.c (warn_of_redefinition): Handle cases where the two
5621         definitions have different numbers of tokens.
5622
5623 2003-06-01  Andreas Jaeger  <aj@suse.de>
5624
5625         * gen-protos.c (main): Readd unused attribute for argc.
5626
5627 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
5628
5629         * Makefile.in (c-options.c, c-options.h): Parallel make safe.
5630         * c.opt: End in blank line.
5631         * opts.sh: Take AWK from environment if available; use C locale.
5632
5633 2003-06-01  Andreas Schwab  <schwab@suse.de>
5634
5635         * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
5636
5637 2003-06-01  Andreas Jaeger  <aj@suse.de>
5638
5639         * gen-protos.c (main): Revert patch to check for argument.
5640
5641 2003-06-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
5642
5643         PR target/11044
5644         * config/i386/i386.md (length attribute): Set length to 4
5645         for instructions of type "fcmp".
5646
5647 2003-06-01  Andreas Jaeger  <aj@suse.de>
5648
5649         * toplev.c: Use ISO C90 prototypes.
5650
5651         * toplev.h: Use ISO C90 prototypes.
5652
5653         * genrecog.c: Use ISO C90 prototypes.
5654         (nodes_identical): Correct declaration to match prototype.
5655         (maybe_both_true): Likewise.
5656         (merge_trees): Likewise.
5657
5658         * genpeep.c (gen_peephole): Remove #if 0 code.
5659         Use ISO C90 prototypes.
5660
5661         * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
5662         Remove #if 0'ed function simplify_by_alternatives.
5663         (optimize_attrs): Remove #if 0'ed code.
5664         Remove ^L.
5665         Use ISO C90 prototypes.
5666         (make_canonical): Remove #if 0'ed code.
5667         (convert_const_symbol_ref): Remove #if 0'ed function.
5668
5669         * gen-protos.c (main): Check for argument.
5670
5671         * rtl.h: Use ISO C90 prototypes for functions from lists.c.
5672
5673         * params.h: Use ISO C90 prototypes.
5674         * params.c: Likewise.
5675         * intl.c: Likewise.
5676         * intl.h: Likewise.
5677         * lists.c: Likewise.
5678         * errors.c: Likewise.
5679         * errors.h: Likewise.
5680         * gencodes.c: Likewise.
5681         * genpreds.c: Likewise.
5682         * genattr.c: Likewise.
5683         * gen-protos.c: Likewise.
5684         * genflags.c: Likewise
5685         * genconditions.c: Likewise.
5686         * genautomata.c: Likewise.
5687         * gencheck.c: Likewise.
5688         * genconfig.c: Likewise.
5689         * genconstants.c: Likewise.
5690         * genemit.c: Likewise.
5691         * genextract.c: Likewise.
5692         * gengenrtl.c: Likewise.
5693         * gengtype.c: Likewise.
5694         * gengtype.h: Likewise.
5695         * genopinit.c: Likewise.
5696         * genoutput.c: Likewise.
5697         * gensupport.c: Likewise.
5698         * gensupport.h: Likewise.
5699
5700         * sdbout.h: Use ISO C90 prototypes.
5701
5702         * sdbout.c (CONTIN): Removed empty macro.
5703         (sdbout_one_type): Remove CONTIN usages.
5704         Remove ^Ls.
5705         (tag_of_ru_type): Remove #if 0'ed function.
5706         (sdbout_symbol): Remove #if 0'ed code.
5707         (sdbout_one_type): Remove a #if 1.
5708         (sdbout_one_type): Remove #if 0'ed code.
5709         (sdbout_init): Remove RMS_QUICK_HACK_1 code.
5710         Remove PARAMS, use ISO C90 prototypes for all functions.
5711
5712 2003-06-01  Josef Zlomek  <zlomekj@suse.cz>
5713
5714         * rtl.def (CONST_DOUBLE): Update comment.
5715
5716 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
5717
5718         * opts.sh: Remove path from sort.
5719
5720 2003-06-01  Aldy Hernandez  <aldyh@redhat.com>
5721
5722         PR/9680
5723         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
5724         TARGET_SPE for SPE_VECTOR_MODE.
5725
5726 2003-05-31  Aldy Hernandez  <aldyh@redhat.com>
5727
5728         * toplev.c (botch): Remove.
5729         (do_abort): Remove.
5730         (set_Wunused): Comment.
5731         (set_Wextra): Comment.
5732         Remove ^L's.
5733         (rest_of_compilation): Factor out common code into functions.
5734         (rest_of_handle_inlining): New.
5735         (rest_of_handle_ssa): New.
5736         (rest_of_handle_cse): New.
5737         (rest_of_handle_gcse): New.
5738         (rest_of_handle_loop_optimize): New.
5739         (rest_of_handle_jump_bypass): New.
5740         (rest_of_handle_sibling_calls): New.
5741         (rest_of_handle_null_pointer): New.
5742         (rest_of_handle_addresof): New.
5743         (rest_of_handle_flow): New.
5744         (rest_of_handle_branch_prob): New.
5745         (rest_of_handle_if_conversion): New.
5746         (rest_of_handle_tracer): New.
5747         (rest_of_handle_loop2): New.
5748         (rest_of_handle_cse2): New.
5749         (rest_of_handle_life): New.
5750         (rest_of_handle_combine): New.
5751         (rest_of_handle_if_after_combine): New.
5752         (rest_of_handle_regmove): New.
5753         (rest_of_handle_sched): New.
5754         (rest_of_handle_old_regalloc): New.
5755         (rest_of_handle_new_regalloc): New.
5756         (rest_of_handle_regrename): New.
5757         (rest_of_handle_reorder_blocks): New.
5758         (rest_of_handle_sched2): New.
5759         (rest_of_handle_new_regalloc): New.
5760         (rest_of_handle_old_regalloc): New.
5761         (rest_of_handle_regrename): New.
5762         (rest_of_handle_reorder_blocks): New.
5763         (rest_of_handle_stack_regs): New.
5764         (rest_of_handle_machine_reorg): New.
5765         (rest_of_handle_delay_slots): New.
5766         (rest_of_handle_final): New.
5767
5768         * toplev.h (botch): Remove prototype.
5769         (do_abort): Same.
5770
5771 2003-05-31  Neil Booth  <neil@daikokuya.co.uk>
5772
5773         * Makefile.in (c-opts.o, c-options.h): Update dependencies.
5774         * c-opts.c: Include c-options.h and c-options.c.
5775         (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
5776         Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
5777         (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
5778         OPT, opt_comp): Remove.
5779         (missing_arg, c_common_init_options, c_common_decode_option,
5780         write_langs): Update for macro redefinitions and enumeration
5781         name changes.
5782         * c.opt, opts.sh: New files.
5783         * doc/passes.texi: Update.
5784
5785 2003-05-31  Andreas Jaeger  <aj@suse.de>
5786
5787         * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
5788         usage.
5789
5790         * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
5791
5792         * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
5793
5794         * system.h: Poison ALLOCATE_TRAMPOLINE.
5795
5796         * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
5797         * system.h: Poison HANDLE_PRAGMA.
5798
5799 2003-05-31  Kazu Hirata  <kazu@cs.umass.edu>
5800
5801         * doc/invoke.texi: Update dump file names.
5802
5803 2003-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5804
5805         * c-format.c (format_length_info, format_char_info,
5806         format_flag_spec, format_flag_pair, format_kind_info):
5807         De-const-ify structure members.
5808
5809 2003-05-31  Roger Sayle  <roger@eyesopen.com>
5810
5811         * flags.h (flag_wrapv): New flag controlling overflow semantics.
5812         * toplev.c (flag_wrapv): Declare the variable with default false.
5813         (lang_independent_options): New option "-fwrapv" to set the above.
5814
5815         * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
5816         as x, when signed arithmetic overflow wraps around.
5817         (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
5818         * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
5819         overflow when flag_wrapv is true.
5820
5821         * doc/invoke.texi: Document new -fwrapv command line option.
5822         * doc/c-tree.texi: Mention that the overflow semantics of
5823         NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
5824         upon both flag_wrapv and flag_trapv.
5825
5826 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
5827
5828         * doc/install.texi (mips-sgi-irix5): Add missing
5829         HTML <hr> marker.
5830
5831 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
5832
5833         * doc/md.texi (Machine Constraints): Document
5834         missing SPARC constraints.
5835
5836 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
5837
5838         * doc/md.texi (Automaton pipeline description): Use
5839         "type" instead of "cpu" as the attribute in the examples.
5840
5841 2003-05-30  Stan Shebs  <shebs@apple.com>
5842
5843         * system.h: Poison OBJC_PROLOGUE.
5844
5845 2003-05-30  Roger Sayle  <roger@eyesopen.com>
5846
5847         * emit-rtl.c (gen_complex_constant_part): New function for getting
5848         the constant real or imaginary part of a complex constant.
5849         (gen_realpart): Use it.
5850         (gen_imagpart): Likewise.
5851
5852 2003-05-30  Kazu Hirata  <kazu@cs.umass.edu>
5853
5854         * doc/invoke.texi: Fix typos.
5855         * doc/rtl.texi: Likewise.
5856
5857 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
5858
5859         * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
5860         mode.
5861         * config/h8300/crtn.asm: Likewise.
5862         * config/h8300/lib1funcs.asm: Likewise.
5863         * config/h8300/h8300.c (asm_file_start): Likewise.
5864         * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
5865         h8300snelf emulations for normal mode.
5866         * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
5867         emulations for normal mode.
5868
5869 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
5870
5871         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
5872         true if TARGET_NORMAL_MODE.
5873
5874 2003-05-30  Roger Sayle  <roger@eyesopen.com>
5875
5876         * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
5877         making a substitution.
5878         (dead_libcall_p): If directly replacing a libcall with a
5879         constant value produces an invalid instruction, also try forcing
5880         the constant into the constant pool.
5881         * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
5882         obvious that the source is a constant.
5883         (compress_float_constant): Use set_unique_reg_note to place
5884         REG_EQUAL notes on instructions.
5885
5886 2003-05-30  Eric Christopher  <echristo@redhat.com>
5887
5888         * config/mips/mips.c (extern_list): Add GTY marker.
5889         (extern_head): Separate out definition. Add marker.
5890         (mips_output_external): Use ggc_alloc for extern_list
5891         allocation.
5892         (mips_output_external_libcall): Ditto.
5893
5894 2003-05-30  Florian Weimer  <fw@deneb.enyo.de>
5895
5896         * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
5897         later.
5898
5899 2003-05-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5900
5901         * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
5902         warnings.
5903         (PRINT_OPERAND): Likewise.
5904
5905 2003-05-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5906
5907         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
5908         -mdebug/-no-mdebug switches ...
5909         (MDEBUG_ASM_SPEC): ... here.
5910         Use only with gas.
5911         (EXTRA_SPECS): Initialize mdebug_asm_spec.
5912
5913 2003-05-29  Matt Kraai  <kraai@alumni.cmu.edu>
5914
5915         * gthr-gnat.c: Remove #undef UNUSED.
5916         (__gnat_default_lock, __gnat_default_unlock): Prototype.
5917         (__gnat_task_lock, __gnat_task_unlock): Make declarations
5918         prototypes.
5919         (__gnat_install_locks): Convert declaration to ISO C90, make
5920         parameter declarations prototypes, and remove blank line.
5921         * gthr-gnat.h (__gnat_install_locks): Make parameter
5922         declarations prototypes.
5923
5924 2003-05-29  Jason Merrill  <jason@redhat.com>
5925
5926         * Makefile.in (unstrap): Remove stage_last after make unstage1.
5927
5928 2003-05-29  Roger Sayle  <roger@eyesopen.com>
5929
5930         * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
5931
5932 2003-05-29  Roger Sayle  <roger@eyesopen.com>
5933             Kaveh Ghazi  <ghazi@caip.rutgers.edu>
5934
5935         PR bootstrap/10169
5936         * mips-tfile.c (main): Use getopt_long instead of getopt.
5937         Add new command line option --version to display version.
5938         Treat --verbose like -v to report a single line version.
5939         (options): New global variable for getopt_long.
5940         * mips-tdump.c (main): Use getopt_long instead of getopt.
5941         New command line options -v, --version and -verbose to display
5942         the program version number (to match mips-tfile's behavior).
5943         (options): New global variable for getopt_long.
5944
5945         * gcov.c (options): Zero-terminate getopt_long array.
5946         * gcov-dump.c (options): Likewise.
5947
5948         * Makefile.in (mips-tdump.o): Add dependency on version.h.
5949
5950 2003-05-29  Stan Shebs  <shebs@apple.com>
5951
5952         Remove OBJC_PROLOGUE everywhere.
5953         * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
5954         * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
5955         * config/d30v/d30v.h: Similarly.
5956         * config/ip2k/ip2k.h: Similarly.
5957         * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
5958
5959 2003-05-29  Roger Sayle  <roger@eyesopen.com>
5960
5961         * c-semantics.c (genrtl_do_stmt_1): New function split out from...
5962         (gen_rtl_do_stmt): ... here.  Call genrtl_do_stmt_1.
5963         (expand_unreachable_stmt): Expand unreachable while statements
5964         using genrtl_do_stmt_1.
5965
5966 2003-05-29  Richard Sandiford  <rsandifo@redhat.com>
5967
5968         * config/mips/mips-protos.h (mips_output_load_label): Declare.
5969         * config/mips/mips.c (mips_output_load_label): New function.
5970         (mips_output_conditional_branch): Use it.
5971         * config/mips/mips.md (jump): And here.
5972
5973 2003-05-28  Bob Wilson  <bob.wilson@acm.org>
5974
5975         * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
5976         (xtensa_split_operand_pair): New proto.
5977         * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
5978         (smalloffset_double_mem_p): Delete.
5979         (gen_float_relational, printx, print_operand, xtensa_va_arg):
5980         Fix whitespace.
5981         (xtensa_split_operand_pair): New.
5982         (xtensa_dbx_register_number): Fix formatting.
5983         * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
5984         * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
5985         instead of splitting them into single-word moves.  Remove unnecessary
5986         checks for reload_in_progress and reload_completed.
5987         (movdi_internal, movdf_internal): Change to post-reload split patterns.
5988         Add constraints to allow constant operands.
5989         (movsf_internal): Allow CONST_INT operands.
5990
5991 2003-05-27  Danny Smith   <dannysmith@users.sourceforge.net>
5992
5993         * config.gcc (i[34567]86-*-mingw32*): Add host makefile
5994         fragment i386/x-mingw32.
5995         * config/i386/x-mingw32: New file. Make local_includedir
5996         relative to EXEC_PREFIX.
5997
5998 2003-05-27  Aaron W. LaFramboise  <awlaframboise@aol.com>
5999
6000         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
6001         (MD_STARTFILE_PREFIX): Define.
6002
6003 2003-05-27  Denis Chertykov  <denisc@overta.ru>
6004
6005         * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
6006         VOIDmode.
6007         * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
6008         call of cselib_invalidate_regno.
6009
6010 2003-05-28  Daniel Jacobowitz  <drow@mvista.com>
6011
6012         * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
6013         -lthread to -lpthread.
6014
6015 2003-05-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
6016             Bruce Korb  <bkorb@gnu.org>
6017             Arno Klaassen  <arno@heho.snv.jussieu.fr>
6018
6019         * fixinc/inclhack.def: Add missing declaration of getpagesize()
6020         to unistd.h on Solaris 2.5.1.
6021         Fix prototype of recv() and send() in sys/socket.h on
6022         Solaris 2.5.1 and 2.6.
6023         * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
6024         * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
6025         * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
6026         * fixinc/fixincl.x: Regenerate.
6027
6028 2003-05-27  Jason Merrill  <jason@redhat.com>
6029
6030         * tree.c (expr_first, expr_length): New fns.
6031         * tree.h: Declare them.
6032
6033         * tree.c (iterative_hash_expr): Hash commutative expressions
6034         consistently.
6035
6036 2003-05-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6037
6038         * tree.h (contains_placeholder_p): Now returns bool.
6039         (CONTAINS_PLACEHOLDER_P): New macro.
6040         (type_contains_placeholder_p): New function.
6041         * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
6042         (contains_placeholder_p): Now returns bool.
6043         Rework to use CONTAINS_PLACEHOLDER_P macro.
6044         (type_contains_placeholder_p): New function.
6045         * fold-const.c (fold, case COMPONENT_REF): Don't fold if
6046         type_contains_placeholder_p.
6047         (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
6048         Use CONTAINS_PLACEHOLDER_P macro.
6049         * builtins.c (fold_builtin): Likewise.
6050         * calls.c (initialize_argument_information): Likewise.
6051         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6052         * explow.c (expr_size): Likewise.
6053         * expr.c (store_constructor, get_inner_reference): Likewise.
6054         * function.c (assign_parms): Likewise.
6055         * stor-layout.c (variable_size): Likewise.
6056
6057 2003-05-25  Gabriel Dos Reis <gdr@integrable-solutions.net>
6058
6059         * diagnostic.h (output_verbatim, verbatim):  Remove  printf
6060         attribute.
6061
6062 2003-05-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6063
6064         * doc/contrib.texi (Contributors): Update Kean Johnston.
6065
6066 2003-05-24  David Edelsohn  <edelsohn@gnu.org>
6067
6068         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
6069
6070 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
6071
6072         * config/rs6000/440.md, config/stormy16/stormy16protos.h,
6073         config/stormy16/stormy16.c, config/stormy16/stormy16.md:
6074         Replace "GNU CC" with "GCC".
6075
6076 2003-05-24  Matt Kraai  <kraai@alumni.cmu.edu>
6077
6078         * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
6079         intermediate computation.
6080
6081 2003-05-23  Eric Christopher  <echristo@redhat.com>
6082
6083         * config/mips/mips.md (clzsi, clzdi): New patterns.
6084
6085 2003-05-23  Geoffrey Keating  <geoffk@apple.com>
6086
6087         * gcc.c (default_compilers): Use -o to specify preprocessor's output
6088         file.  Make -no-integrated-cpp work when building PCH files.
6089         * objc/lang-specs.h: Likewise.
6090
6091 2003-05-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6092
6093         * fixinc/Makefile.in: Correct description.
6094         * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
6095         fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
6096         fixinc/genfixes: Replace "GNU CC" with "GCC".
6097
6098 2003-05-23  Roger Sayle  <roger@eyesopen.com>
6099
6100         * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
6101         builtin functions (and their __builtin_* variants).
6102         * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
6103         (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
6104         optimizing.
6105
6106         * doc/extend.texi: Document new tan and atan builtins, and
6107         their float and long double variants.
6108
6109 2003-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
6110
6111         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
6112         __sparcv9 in the TARGET_ARCH64 case.
6113
6114 Fri May 23 22:17:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
6115
6116         * i386.c (ix86_reorg): Calls are also jumps.
6117
6118 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
6119
6120         * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
6121         note containing an EXPR_LIST, process all the arguments.
6122
6123 Fri May 23 21:19:31 CEST 2003  Jan Hubicka  <jh@suse.cz>
6124                                Andreas Jaeger  <aj@suse.de>
6125
6126         * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
6127         do not use assertion.
6128
6129 2003-05-23  Mike Stump  <mrs@apple.com>
6130
6131         * tlink.c (scan_linker_output): Add support for darwin linker, as it
6132         emits unresolved symbols one per line, consuming the entire line.
6133
6134 2003-05-23  Larin Hennessy <larin@science.oregonstate.edu>
6135             Zack Weinberg <zack@codesourcery.com>
6136
6137         * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
6138         * config/m68k/m68k.c (m68k_output_function_prologue):
6139         Remove code under #if NEED_PROBE.
6140         * config/m68k/m68k.h: Don't define NEED_PROBE.
6141         * config/m68k/m68k.md: Remove "probe" insn.
6142         * doc/md.texi: Remove documentation of "probe" pattern.
6143
6144 2003-05-23  Dorit Naishlos  <gcchaifa@il.ibm.com>
6145
6146         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
6147
6148 2003-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
6149
6150         * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
6151         Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
6152
6153 2003-05-22  Roger Sayle  <roger@eyesopen.com>
6154
6155         * real.c (real_maxval): New function to return the largest finite
6156         value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
6157         * real.h (real_maxval): Prototype here.
6158         * fold-const.c (fold_inf_compare): Transform comparisons against
6159         +-Infinity into comparisons against DBL_MAX (or equivalent).
6160
6161 2003-05-22  Mike Stump  <mrs@apple.com>
6162
6163         * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
6164         default.
6165
6166 2003-05-22  DJ Delorie  <dj@redhat.com>
6167
6168         * calls.c (expand_call): If the arg block is going to grow
6169         downward, we need argblock to point to the top of the block,
6170         not the bottom.
6171
6172 2003-05-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6173
6174         * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
6175
6176         * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
6177         constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
6178
6179 2003-05-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6180
6181         * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
6182         * m68k.c: Likewise.
6183         * m68k.h: Likewise.
6184
6185 2003-05-22  Zack Weinberg  <zack@codesourcery.com>
6186
6187         PR other/2873
6188         * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
6189         expressions to prevent triggering on recent curses.h,
6190         linux/nls.h, or X11/Xlib.h.
6191         (stdio_va_list): Add _G_va_list to bypass pattern.
6192         (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
6193         * fixinc/fixincl.x: Regenerate.
6194
6195 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
6196
6197         * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
6198         switches when --target-help option is specified.
6199
6200 2003-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
6201
6202         PR bootstrap/10805
6203         * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
6204         failure with Sun assembler 5.0 Alpha 03/27/98.
6205
6206 2003-05-21  Loren James Rittle  <ljrittle@acm.org>
6207
6208         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
6209         to match system compiler convention.
6210
6211 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
6212
6213         * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for nonzero
6214         value, not just if defined.
6215         Update copyright year.
6216
6217 2003-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6218
6219         PR target/6428
6220         * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
6221         directories from LIB_SPEC to LINK_SPEC.  Emit warning if `-p' or `-pg'
6222         option is used without `-static'.
6223         * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
6224         * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
6225
6226 2003-05-21  Bob Wilson  <bob.wilson@acm.org>
6227
6228         * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
6229         TARGET_SERIALIZE_VOLATILE): Delete.
6230         (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
6231         (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
6232         (TARGET_SWITCHES): Remove "-mserialize-volatile" and
6233         "-mno-serialize-volatile".
6234         * config/xtensa/xtensa.c (print_operand): Remove checks of
6235         TARGET_SERIALIZE_VOLATILE.
6236         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
6237         * doc/invoke.texi (Option Summary, Xtensa Options): Remove
6238         "-mserialize-volatile" and "-mno-serialize-volatile" options.
6239
6240 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
6241
6242         * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
6243         (nested_function): Likewise.
6244         (notype_nested_function): Likewise.
6245
6246 2003-05-21  Nick Clifton  <nickc@redhat.com>
6247
6248         * config/stormy16/stormy-abi: Update overflow type for
6249         R_XSTORMY16_16 reloc.
6250
6251 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
6252
6253         * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
6254         * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
6255         (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
6256         * print-tree.c (print_node): Remove ambient-boundedness.
6257         * tree.h (tree_common): Remove bounded_flag.
6258         (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
6259         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
6260         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
6261         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
6262         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
6263         Remove.
6264         (TYPE_QUALS): Remove BOUNDED.
6265         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
6266         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
6267         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
6268         TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
6269         VA_LIST_POINTER_DEPTH): Remove.
6270         (struct tree_type): Remove pointer_depth.
6271
6272 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6273
6274         * c-pretty-print.c (pp_c_integer_literal): Use
6275         HOST_WIDE_INT_PRINT_DOUBLE_HEX.
6276
6277 2003-05-20  Roger Sayle  <roger@eyesopen.com>
6278             Kazu Hirata  <kazu@cs.umass.edu>
6279             Joern Rennecke  <joern.rennecke@superh.com>
6280
6281         * gcse.c (cprop_jump):  Make use of REG_EQUAL notes on both
6282         setcc and jump, if they exist.  If substituted instruction
6283         fails to validate, store current effort in a REG_EQUAL note.
6284         (cprop_insn): Don't attempt further substitutions if the
6285         current instruction has been deleted.
6286         (local_cprop_pass): Likewise.
6287
6288         * jump.c (redirect_jump):  Also update REG_EQUAL note, if
6289         one is attached to the jump instruction.
6290         (invert_jump): Delete REG_EQUAL note on jump, if one exists.
6291
6292 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
6293
6294         PR c++/9738
6295         * config/i386/winnt.c (i386_pe_encode_section_info): Enable
6296         even if not first.
6297
6298 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6299
6300         * genautomata.c (output_description, output_automaton_units,
6301         output_state_arcs): Add missing specifiers.
6302
6303 2003-05-20  Bob Wilson  <bob.wilson@acm.org>
6304
6305         * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
6306         (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
6307         (__mulsi3): Use do_addx* instead of ADDX* instructions.  Formatting.
6308         (nsau): Rename to do_nsau.  Provide alternate version for use when
6309         the NSAU instruction is available.
6310         (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
6311         (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
6312         * config/xtensa/xtensa-config.h: Update comments to match binutils.
6313         (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
6314         * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
6315         (TARGET_ABS, TARGET_ADDX): Define.
6316         (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
6317         (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
6318         * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
6319         *subx8): Set predicate condition to TARGET_ADDX.
6320         (abssi2): Set predicate condition to TARGET_ABS.
6321         * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
6322         "-maddx", and "-mno-addx" options.
6323         (Xtensa Options): Likewise.  Also tag some opcode names with @code.
6324
6325 2003-05-20  Kevin Ryde <user42@zip.com.au>
6326             Wolfgang Bangerth <bangerth@dealii.org>
6327
6328         PR/10355
6329         * doc/extend.texi: Put a warning into the documentation
6330         of attribute regparm.
6331
6332 2003-05-20  Jason Merrill  <jason@redhat.com>
6333
6334         * tree.c (expr_last): New fn.
6335         * tree.h: Declare it.
6336         * objc/objc-act (expr_last): Rename to objc_expr_last.
6337
6338 2003-05-20  J"orn Rennecke <joern.rennecke@superh.com>
6339
6340         * sh.c (sh_register_move_cost): Add clase for moving between
6341         FP registers and MAC registers.
6342
6343 2003-05-19  John David Anglin  <dave.anglin@nrc-gnrc.gc.ca>
6344
6345         * pa/milli64.S ($$mulI): Fix typo.
6346
6347 2003-05-19  Matt Kraai  <kraai@alumni.cmu.edu>
6348
6349         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
6350         (nonlocal_set_p): Remove initial blank line.
6351         * dwarf2out.c (simple_type_size_in_bits): Likewise.
6352         * et-forest.c (et_forest_create): Likewise.
6353         * explow.c (stabilize): Likewise.
6354         * fix-header.c (write_lbrac): Likewise.
6355         * graph.c (start_fct, node_data): Likewise.
6356         * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
6357         * rtlanal.c (global_reg_mentioned_p): Likewise.
6358         * tree.c (bit_position): Likewise.
6359
6360 2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
6361
6362         * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
6363         -lthread to -lpthread.
6364
6365 2003-05-19  Neil Booth  <neil@daikokuya.co.uk>
6366
6367         * c-opts.c (c_common_decode_option): Don't accept dollars
6368         as identifier characters in assembly.
6369         * doc/cpp.texi: Document this.
6370
6371 2003-05-19  Seth Arnold  <sarnold@wirex.com>
6372             Aldy Hernandez  <aldyh@redhat.com>
6373
6374         * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
6375         vrsave_size twice.
6376
6377 2003-05-19  Aldy Hernandez  <aldyh@redhat.com>
6378
6379         * doc/tm.texi (function_arg): Fix typo.
6380
6381 2003-05-19  Matt Austern  <austern@apple.com>
6382
6383         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
6384         * c-common.h (warn_invalid_offsetof): Declare.
6385         * c-common.c (warn_invalid_offsetof): Define.
6386         * doc/invoke.texi: Document -Winvalid-offsetof.
6387         * testsuite/g++.dg/other/offsetof3.C: New.
6388         * testsuite/g++.dg/other/offsetof4.C: New.
6389
6390 2003-05-19  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
6391             David Edelsohn  <edelsohn@gnu.org>
6392
6393         * config/rs6000/rs6000.c (rs6000_alignment_string,
6394         rs6000_alignment_flags): New variables.
6395         (rs6000_parse_alignment_option): New function.
6396         (rs6000_override_options): Call it.
6397         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
6398         (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
6399         macros.
6400         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
6401         natural alignment if TARGET_NATURAL_ALIGNMENT
6402         (ROUND_TYPE_ALIGN): Always use default record alignment if
6403         TAGET_NATURAL_ALIGNMENT.
6404         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
6405         (ROUND_TYPE_ALIGN): Same.
6406         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
6407         (ROUND_TYPE_ALIGN): Same.
6408         * doc/invoke.texi (Option Summary, PowerPC Options): Document
6409         new options.
6410
6411 2003-05-19  J"orn Rennecke <joern.rennecke@superh.com>
6412
6413         * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
6414         of a function using ASMSPEC, prepend a star.
6415
6416 2003-05-19  Jason Merrill  <jason@redhat.com>
6417
6418         * tree-inline.c (copy_body_r): Avoid generating &* during inline
6419         substitution.
6420
6421 2003-05-19  Andrew Macleod  <amacleod@redhat.com>
6422
6423         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
6424         not mark assignments to the hard frame pointer as being stack
6425         frame related.
6426         (xstormy16_expand_epilogue): Mark adjustments to the stack
6427         pointer as being stack frame related.
6428
6429 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
6430
6431         * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
6432         ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
6433         (PREDICATE_CODES): Add hilo_operand.
6434         * config/mips/mips.c (hilo_operand): New predicate.
6435         (mips_adjust_insn_length): Account for the number nops that might
6436         be needed to avoid hardware hazards.
6437         * config/mips/mips.md (dslot): Remove attribute.
6438         (hazard): New attribute.
6439         (can_delay): Use it.  Check for calls, branches & jumps.
6440         (muldi3): Use the standard dmult pattern for mips16 code.
6441         (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
6442
6443 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
6444
6445         * config/mips/mips-protos.h (final_prescan_insn,
6446         mips_count_memory_refs, mips_fill_delay_slot): Remove.
6447         * config/mips/mips.h (delay_type, dslots_load_total,
6448         dslots_load_filled, dslots_jump_total, dslots_jump_filled,
6449         dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
6450         mips_load_reg3, mips_load_reg4): Remove.
6451         (MASK_STATS): Remove.
6452         (MASK_EXPLICIT_RELOCS): Reuse its value.
6453         (TARGET_STATS): Remove.
6454         (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
6455         Warn that -mstats is now ignored.
6456         (FINAL_PRESCAN_INSN): Undefine.
6457         (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
6458         (ASM_OUTPUT_REG_POP): Likewise.
6459         * config/mips/mips.c (dslots_load_total, dslots_load_filled,
6460         dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
6461         mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
6462         mips_fill_delay_slot, mips_count_memory_refs,
6463         final_prescan_insn): Remove.
6464         (output_block_move): Remove calls to mips_count_memory_refs.
6465         (print_operand): Remove printing of #nop for TARGET_STATS.
6466         (mips_output_function_epilogue): Remove TARGET_STATS code.
6467         Reorganize setting of fnnmae.
6468         * config/mips/mips.md: Remove handling of dslot statistics
6469         throughout file.  Change all fcmp patterns into normal asm
6470         templates, removing calls to mips_fill_delay_slot.
6471         * doc/invoke.texi: Remove documentation of -mstats.
6472
6473 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
6474
6475         * config/mips/mips.c (mips_class_max_nregs): Return the number of
6476         words in the mode.
6477
6478 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
6479
6480         * config/mips/mips.c (override_options): Disable explicit
6481         relocs for old ABIs unless using gas.
6482
6483 2003-05-18  Eric Christopher  <echristo@redhat.com>
6484
6485         * config/mips/mips.h: Remove definition of g_switch_value.
6486
6487 2003-05-18  Matt Kraai  <kraai@alumni.cmu.edu>
6488
6489         * flags.h (g_switch_value): Change to an unsigned
6490         HOST_WIDE_INT.
6491         * toplev.c (g_switch_value): Likewise.
6492
6493         * config/alpha/alpha.c (small_symbolic_operand): Remove
6494         g_switch_value cast.
6495         (alpha_in_small_data_p): Cast size to an unsigned
6496         HOST_WIDE_INT.
6497
6498         * config/frv/frv.c (frv_in_small_data_p): Cast size to an
6499         unsigned HOST_WIDE_INT.
6500         * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
6501         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
6502
6503         * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
6504         unsigned HOST_WIDE_INT.
6505         (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
6506         * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
6507         (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
6508
6509         * config/rs6000/rs6000.c (rs6000_file_start): Use
6510         HOST_WIDE_INT_PRINT_UNSIGNED.
6511         (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
6512         (rs6000_elf_in_small_data_p): Cast size to unsigned
6513         HOST_WIDE_INT.
6514         * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
6515         Remove.
6516         (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
6517         g_switch_set.
6518         (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
6519         g_switch_value cast.
6520
6521 2003-05-18  Roger Sayle  <roger@eyesopen.com>
6522             Zack Weinberg  <zack@codesourcery.com>
6523
6524         PR middle-end/10472
6525         * builtins.c (expand_builtin_memcpy):  Call force_operand on
6526         expressions and use simplify_gen_binary to create the addition.
6527
6528 2003-05-18  Andreas Schwab  <schwab@suse.de>
6529
6530         * config/m68k/m68k.md: Use define_constants for unspec numbers.
6531
6532 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
6533
6534         * config/sparc/sparc.h: Define sparc for now.
6535
6536 2003-05-18  Nathanael Nerode  <neroden@gcc.gnu.org>
6537
6538         * config.gcc: Clear xm_file, md_file at the beginning of each pass.
6539
6540         * config/stormy16/stormy16.h: Remove about 3000 lines of
6541         target-independent comments.  Update copyright notice.
6542
6543         * doc/collect2.texi: GNU CC -> GCC.
6544         * doc/headerdirs.texi: GNU CC -> GCC.
6545
6546 2003-05-18  Gabriel Dos Reis <gdr@integrable-solutions.net>
6547
6548         * hashtable.h (struct ht_identifier): Add data member "hash_value".
6549         * hashtable.c (ht_lookup): Use it when searching, remember.
6550         (ht_expand): Do not recompute.
6551         * tree.h (IDENTIFIER_HASH_VALUE): New macro.
6552
6553 2003-05-18  Nathan Sidwell  <nathan@codesourcery.com>
6554
6555         * gcov-io.c (gcov_read_bytes): Fix fread thinko.
6556
6557 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
6558
6559         * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
6560         Default here.
6561         (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
6562         * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
6563         * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
6564         * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
6565         config/arm/linux-elf.h, config/arm/rtems-elf.h,
6566         config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
6567         config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
6568         config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
6569         config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
6570         config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
6571         config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
6572         config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
6573         config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
6574         config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
6575         config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
6576         config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
6577         Don't define __ELF__.
6578         * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
6579         Define __ELF__.
6580         * doc/cpp.texi: Document __ELF__.
6581         * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS.     *
6582
6583 2003-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6584
6585         * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
6586         always use stdarg.
6587         * c-errors.c (pedwarn_c99): Likewise.
6588         * c-format.c (status_warning): Likewise.
6589         * c-semantics.c (build_stmt): Likewise.
6590         * calls.c (emit_library_call, emit_library_call_value): Likewise.
6591         * collect2.c (notice, fatal_perror, fatal, error): Likewise.
6592         * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
6593         * diagnostic.c (build_message_string, output_printf,
6594         output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
6595         fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
6596         error_with_decl, fnotice): Likewise.
6597         * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
6598         dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
6599         dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
6600         dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
6601         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
6602         dw2_asm_output_encoded_addr_rtx): Likewise.
6603         * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
6604         * errors.c (warning, error, fatal, internal_error): Likewise.
6605         * final.c (output_operand_lossage, asm_fprintf): Likewise.
6606         * fix-header.c (fatal): Likewise.
6607         * gcc.c (fatal, error, notice): Likewise.
6608         * gcov.c (fnotice): Likewise.
6609         * genattrtab.c (attr_rtx, attr_printf): Likewise.
6610         * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
6611         * gensupport.c (message_with_line): Likewise.
6612         * mips-tfile.c (fatal, error): Likewise.
6613         * protoize.c (notice): Likewise.
6614         * ra-debug.c (ra_debug_msg): Likewise.
6615         * read-rtl.c (fatal_with_file_and_line): Likewise.
6616         * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
6617         * tree.c (build, build_nt, build_function_type_list): Likewise.
6618
6619 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6620
6621         * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
6622         * gcc.c (cpp_predefines): Remove.
6623         (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
6624         (static_specs): Remove predefines.
6625         * system.h: Poison CPP_PREDEFINES.
6626         * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
6627         config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
6628
6629 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6630
6631         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
6632         config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
6633         config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
6634         use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
6635
6636 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6637
6638         PR c/9209
6639         * c-common.c, c-common.h (dollars_in_ident): Remove.
6640         * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
6641         (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
6642         * cpphash.h (warned_dollar): Rename warn_dollars.
6643         * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
6644         Permit dollars regardless of -std=.
6645         (post_options): Set warn_dollars.
6646         * cpplex.c (forms_identifier_p): Use warn_dollars.
6647         * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
6648         Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
6649         * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
6650         Update documentation.
6651
6652 2003-05-17  Andreas Schwab  <schwab@suse.de>
6653
6654         * config/m68k/m68k.c (m68k_output_function_prologue): Use
6655         HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
6656         formatting a HOST_WIDE_INT.
6657         (m68k_output_function_epilogue): Likewise.
6658
6659 2003-05-17  Zack Weinberg  <zack@codesourcery.com>
6660
6661         * doc/install.texi: Remove information about desupported targets.
6662
6663 2003-05-17  Andreas Schwab  <schwab@suse.de>
6664
6665         * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
6666         * config/m68k/linux.h: Likewise.
6667         * config/m68k/m68k-none.h: Likewise.
6668         * config/m68k/netbsd-elf.h: Likewise.
6669         * config/m68k/sgs.h: Likewise.
6670         * config/m68k/m68k.h: Likewise.
6671         * config/m68k/m68k.md: Likewise.
6672         * config/m68k/m68k.c: Likewise.
6673         * doc/md.texi (Machine Constraints): Remove Sun FPA specific
6674         constraints.
6675         * doc/invoke.texi (Option Summary): Remove -mfpa.
6676         (M680x0 Options): Likewise.
6677
6678 2003-05-17  David Edelsohn  <edelsohn@gnu.org>
6679
6680         * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
6681
6682 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6683
6684         * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
6685         * config/sparc/liteelf.h, config/sparc/openbsd64.h,
6686         config/sparc/rtemself.h, config/sparc/sol2-64.h,
6687         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
6688         Update for use of TARGET_SUB_OS_CPP_BUILTINS.
6689
6690 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6691
6692         * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
6693         TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
6694
6695 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6696
6697         * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
6698         * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
6699         sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
6700         sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
6701         sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
6702         sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
6703         sparc/sysv4.h,
6704         * sparc/sysv4-only.h: New.
6705
6706 2003-05-17  Alan Modra  <amodra@bigpond.net.au>
6707
6708         * function.c (assign_parms): Check for zero size args.
6709
6710 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6711
6712         * cfgloopanal.c (test_for_iteration): Use string concatentation on
6713         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
6714         function calls into one.
6715         * dbxout.c (dbxout_symbol): Likewise.
6716         * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
6717         * dwarf2asm.c (dw2_asm_output_data_uleb128,
6718         dw2_asm_output_data_sleb128): Likewise.
6719         * genrecog.c (debug_decision_2): Likewise.
6720         * loop.c (emit_prefetch_instructions): Likewise.
6721         * print-rtl.c (print_rtx): Likewise.
6722         * print-tree.c (print_node_brief, print_node): Likewise.
6723         * ra-debug.c (dump_igraph, dump_graph_cost,
6724         dump_static_insn_cost): Likewise.
6725         * ra-rewrite.c (dump_cost): Likewise.
6726         * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
6727         * sreal.c (dump_sreal): Likewise.
6728         * unroll.c (unroll_loop, precondition_loop_p): Likewise.
6729         * varasm.c (assemble_vtable_entry): Likewise.
6730
6731         * avr.c (avr_output_function_prologue,
6732         avr_output_function_epilogue, print_operand): Fix format specifier
6733         warnings.
6734         (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
6735         * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
6736
6737 2003-05-16  Geoffrey Keating  <geoffk@apple.com>
6738
6739         * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
6740         and ! TARGET_STRING cases.
6741
6742         * doc/cppopts.texi (-undef): Fix texinfo warning.
6743
6744         * doc/cppopts.texi (-H): Document that -H works for PCH files too.
6745         * cppfiles.c (validate_pch): When -H is used, print some information
6746         about PCH files found.
6747
6748 2003-05-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6749
6750         * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
6751         * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
6752         * config/mips/t-sr71k: Likewise.
6753
6754 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6755
6756         * arc.c (arc_output_function_prologue,
6757         arc_output_function_epilogue): Fix format specifier warnings.
6758         * arc.h (LARGE_INT): Fix signed/unsigned warnings.
6759
6760         * v850.c (print_operand): Fix format specifier warnings.
6761
6762         * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
6763         specifier warnings.
6764
6765         * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
6766         format specifier warnings.
6767
6768         * ip2k.c (function_prologue, function_epilogue, print_operand):
6769         Fix format specifier warnings.
6770         * ip2k.md: Likewise.
6771
6772         * i960.c (i960_output_function_prologue, i960_print_operand,
6773         i960_print_operand_addr): Fix format specifier warnings.
6774
6775         * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
6776         (i370_output_function_prologue): Fix format specifier warnings.
6777         * i370.h (PRINT_OPERAND): Likewise.
6778
6779         * fr30.c (fr30_print_operand): Fix format specifier warnings.
6780
6781         * dsp16xx.c (print_operand_address): Fix format specifier warning.
6782         * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
6783
6784         * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
6785         specifier warnings.
6786
6787         * alpha.c (print_operand_address, alpha_start_function,
6788         unicosmk_output_ssib): Use string concatentation on
6789         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
6790         function calls into one.
6791         * arm.c (arm_print_operand): Likewise.
6792         * cris.c (cris_asm_output_mi_thunk): Likewise.
6793         * frv.c (frv_asm_output_mi_thunk): Likewise.
6794         * ia64.c (ia64_print_operand, process_set): Likewise.
6795         * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
6796         Likewise.
6797         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
6798         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
6799         * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
6800         * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
6801         * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
6802         * s390.c (s390_assemble_integer): Likewise.
6803         * sparc.c (sparc_flat_function_prologue,
6804         sparc_flat_function_epilogue): Likewise.
6805         * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
6806         * vax.c (vax_output_mi_thunk): Likewise.
6807
6808         * frv.c (frv_print_operand_memory_reference): Fix format specifier
6809         warning.
6810         (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
6811
6812         * m68k.c (m68k_output_function_epilogue): Fix format specifier
6813         warnings.
6814
6815         * stormy16-protos.h (xs_hi_general_operand,
6816         xs_hi_nonmemory_operand): Prototype.
6817         * stormy16.c (xstormy16_output_shift): Fix format specifier
6818         warnings.
6819
6820         * cris.c: Fix format specifier warnings.
6821
6822 2003-05-16  Nick Clifton  <nickc@redhat.com>
6823
6824         * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
6825
6826 2003-05-16  Wolfgang Bangerth <bangerth@dealii.org>
6827
6828         * doc/bugreport.texi: Remove most of the of the preface of the
6829         bugs section.
6830
6831 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
6832
6833         * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
6834         .save XX, r0.
6835
6836 2003-05-15  Roger Sayle  <roger@eyesopen.com>
6837
6838         * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
6839
6840 2003-05-15  Eric Christopher  <echristo@redhat.com>
6841
6842         * cfgcleanup.c (merge_blocks): Fix return value.
6843
6844 2003-05-15 Eric Christopher <echristo@redhat.com>
6845
6846         * combine.c (expand_compound_operation): Make sure
6847         that zero_extend operation is profitable.
6848
6849 2003-05-15  Richard Henderson  <rth@redhat.com>
6850
6851         * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
6852         code protected by USE_GNULIBC_1.
6853
6854 2003-05-15  Zack Weinberg  <zack@codesourcery.com>
6855
6856         * config.gcc: Purge all targets obsoleted in GCC 3.3.  Also
6857         remove hppa*-*-mpeix* which could not be built, and prune
6858         files from tmake_file= or tm_file= lists that don't exist.
6859
6860         * config/alpha/alpha-interix.h, config/alpha/alpha32.h
6861         * config/alpha/t-interix, config/arm/conix-elf.h
6862         * config/arm/t-arm-aout, config/arm/t-strongarm-coff
6863         * config/arm/unknown-elf-oabi.h, config/i386/win32.h
6864         * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
6865         * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
6866         * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
6867         * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
6868         * config/m68k/m68k-psos.h, config/m68k/mot3300.h
6869         * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
6870         * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
6871         * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
6872         * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
6873         * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
6874         * config/m68k/tower-as.h, config/m68k/tower.h
6875         * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
6876         * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
6877         * config/m88k/m88k-protos.h, config/m88k/m88k.c
6878         * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
6879         * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
6880         * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
6881         * config/mips/rtems64.h, config/mips/sni-gas.h
6882         * config/mips/sni-svr4.h, config/mips/t-ecoff
6883         * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
6884         * config/mn10200/mn10200.c, config/mn10200/mn10200.h
6885         * config/mn10200/mn10200.md, config/mn10200/t-mn10200
6886         * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
6887         * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
6888         * config/romp/romp-protos.h, config/romp/romp.c
6889         * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
6890         * config/rs6000/aix3newas.h, config/rs6000/mach.h
6891         * config/sparc/bsd.h, config/sparc/hal.h
6892         * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
6893         * config/sparc/lynx.h, config/sparc/netbsd.h
6894         * config/sparc/sp86x-aout.h, config/sparc/splet.h
6895         * config/sparc/sun4gas.h, config/sparc/sun4o3.h
6896         * config/sparc/sunos4.h, config/sparc/t-chorus-elf
6897         * config/sparc/t-halos, config/sparc/t-sparcbare
6898         * config/sparc/t-splet, config/sparc/t-sunos41
6899         * config/v850/rtems.h: Delete file.
6900
6901 2003-05-15  Aldy Hernandez  <aldyh@redhat.com>
6902
6903         * config/rs6000/rs6000-protos.h (function_value): Protoize.
6904
6905         * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
6906
6907         * config/rs6000/rs6000.c (rs6000_function_value): New.
6908
6909 2003-05-15  Philip Blundell  <philb@gnu.org>
6910
6911         * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
6912         All uses updated.
6913         (arm_tune_xscale): New variable.
6914         (arm_override_options): Set it.
6915         (arm_adjust_cost): Use it in place of arm_arch_xscale.
6916         (arm_gen_load_multiple): Likewise.
6917         (arm_gen_store_multiple): Likewise.
6918         * config/arm/arm.md (is_xscale): Likewise.
6919         * config/arm/arm.h (arm_tune_xscale): Declare.
6920
6921 2003-05-15  Philip Blundell  <philb@gnu.org>
6922
6923         PR target/10730
6924         * config/arm/arm.c (adjacent_mem_locations): Reject offsets
6925         involving invalid constants.
6926
6927 2003-05-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6928
6929         * pa.c (hppa_expand_prologue): Remove blockage.
6930
6931 2003-05-15  Wolfgang Bangerth <bangerth@dealii.org>
6932
6933         * doc/bugreport.texi: Remove most of the bug reporting
6934         instructions and merge them into bugs.html.
6935
6936 2003-05-14  Matt Kraai  <kraai@alumni.cmu.edu>
6937
6938         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
6939         g_switch_value to unsigned HOST_WIDE_INT.
6940
6941 2003-05-14  Eric Christopher  <echristo@redhat.com>
6942
6943         * combine.c: Fix header comments.
6944         (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
6945         to all calls and prototype.
6946
6947 2003-05-14  Roger Sayle  <roger@eyesopen.com>
6948
6949         PR optimization/10764
6950         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
6951         Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
6952         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3):  Likewise,
6953         add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
6954         (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
6955         the corresponding *fyl2x_?fxf3 instructions.
6956
6957 2003-05-14  Bob Wilson  <bob.wilson@acm.org>
6958
6959         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
6960         * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
6961         XCHAL_HAVE_L32R): New.
6962         * config/xtensa/xtensa-protos.h (non_const_move_operand,
6963         xtensa_load_constant, xtensa_function_prologue,
6964         xtensa_function_epilogue): Delete prototypes.
6965         (xtensa_expand_prologue): New.
6966         * config/xtensa/xtensa.c (frame_size_const,
6967         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
6968         non_const_move_operand, xtensa_load_constant, xtensa_reorg,
6969         xtensa_function_prologue): Delete.
6970         (add_operand, xtensa_mem_offset): Formatting.
6971         (move_operand): If the const16 option is available, allow any SFmode
6972         and SImode constants.
6973         (xtensa_emit_move_sequence): Inline the former contents of
6974         xtensa_load_constant with modifications to handle the const16 option.
6975         (override_options): Add xtensa_char_to_class['W'] and set it to
6976         the general register class only if the const16 option is enabled.
6977         Fix formatting.  Disallow PIC when using the const16 option.
6978         (print_operand): Reorganize to switch on "letter" instead of the
6979         RTL code.  Add output_operand_lossage calls for invalid cases.
6980         Add support for 't' and 'b' letters.
6981         (xtensa_expand_prologue): New function to replace
6982         xtensa_function_prologue and xtensa_reorg.
6983         (xtensa_function_epilogue): Declare this as static.  Delete code
6984         to print the retw.n or retw instruction.
6985         (xtensa_return_addr): Use A0_REG instead of 0.
6986         (xtensa_rtx_costs): Add costs for using the const16 option.
6987         * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
6988         (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
6989         (TARGET_SWITCHES): Add "const16" and "no-const16".
6990         (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
6991         (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
6992         using the const16 option.
6993         (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
6994         (TRAMPOLINE_SIZE): Change from 49 to 59.
6995         (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
6996         (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
6997         when using the const16 option.
6998         (PREDICATE_CODES): Delete non_const_move_operand.
6999         * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
7000         UNSPECV_ENTRY.
7001         (movdi, movdf): If the source is a constant, always expand to a
7002         sequence of movsi insns.
7003         (movdi_internal, movdf_internal): Remove alternative using l32r insns.
7004         (movsi_internal, movsf_internal): Add alternative using const16 insns.
7005         (movsf): Add const16 support.
7006         (entry, prologue, epilogue): New.
7007         (set_frame_ptr): Add missing mode for unspec_volatile operation.
7008         Likewise for subsequent split pattern.
7009         * doc/invoke.texi (Option Summary, Xtensa Options): Document new
7010         "-mconst16" and "-mno-const16" options.
7011
7012 2003-05-14  Richard Henderson  <rth@redhat.com>
7013
7014         * config/ia64/ia64.c (ia64_expand_load_address): Force destination
7015         to be DImode register.  Merge load_symptr.
7016         * config/ia64/ia64.md (load_symptr): Remove.
7017
7018 2003-05-14  Richard Henderson  <rth@redhat.com>
7019
7020         * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
7021         DEFERRED_CONSTANT_P.
7022         * integrate.c (copy_rtx_and_substitute): Update use.
7023         * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
7024         to the copy generated.
7025         (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
7026         of the constant to see if we should emit.
7027         (mark_constant): Similarly.
7028         (output_constant_def_contents): Set TREE_ASM_WRITTEN.
7029
7030 2003-05-14  David Edelsohn  <edelsohn@gnu.org>
7031
7032         * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
7033         move record condition.
7034         (movdi_internal2): Same.
7035
7036 2003-05-14  Nathan Sidwell  <nathan@codesourcery.com>
7037
7038         * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
7039         (GCOV_TAG_*) Force type to gcov_unsigned_t.
7040         (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
7041         (struct gcov_var): Remove modified. Add start, length, offset,
7042         overread. Have buffer array for libgcov.
7043         (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
7044         (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
7045         * gcov-io.c (gcov_open): Set mode, do not read anything.
7046         (gcov_close): Write final block.
7047          (gcov_write_block, gcov_allocate): New.
7048         (gcov_write_bytes): Make static. Write or allocate buffer.
7049         (gcov_write_unsigned, gcov_write_counter): Buffer can never be
7050         null.
7051         (gcov_write_string): Adjust.
7052         (gcov_write_tag)
7053         (gcov_write_length): Adjust. Flush the block.
7054         (gcov_write_tag_length): Buffer can never be null.
7055         (gcov_read_bytes): Make static. Read in block.
7056         (gcov_sync): Moved here. Adjust.
7057         (gcov_seek): Moved here. Adjust.
7058         * coverage.c (read_counts_file): Adjust.
7059         * gcov-dump.c (print_prefix): Add position parameter.
7060         (flag_dump_positions): New flag.
7061         (options, main, print_usage): Add it.
7062         (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
7063         tag_summary): Adjust.
7064         * gcov.c (read_graph_file, read_count_file): Adjust.
7065         * libgcov.c (gcov_exit): Adjust.
7066
7067         * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
7068         (libgcov.a): Depend on libgcc.a.
7069         (gcov.o, gcov-dump.o): Add gcov-io.c.
7070         * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
7071
7072         * loop.c (check_dbra_loop): Factor common test.
7073
7074 2003-05-14  Ben Elliston  <bje@wasabisystems.com>
7075
7076         * doc/md.texi (Automaton pipeline description): Grammar fixes.
7077
7078 2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
7079
7080         * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
7081         (TARGET_INITIALIZER): Include it.
7082         * target.h (struct gcc_target): Add machine_dependent_reorg field.
7083         * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
7084         * system.h: Poison MACHINE_DEPENDENT_REORG.
7085
7086         * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
7087         * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
7088         * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7089         (alpha_handle_trap_shadows): Remove "first insn" parameter.
7090         (alpha_align_insns): Likewise.
7091         (alpha_reorg): Likewise.  Make static.  Update calls to above
7092         functions.
7093
7094         * config/arm/arm-protos.h (arm_reorg): Remove declaration.
7095         * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
7096         * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7097         (arm_reorg): Remove parameter.  Make static.
7098
7099         * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
7100         * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
7101         * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7102         (avr_reorg): Renamed from machine_dependent_reorg.  Make static.
7103         Remove parameter.
7104
7105         * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
7106         * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
7107         * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7108         (c4x_reorg): Renamed from c4x_process_after_reload.  Make static.
7109         Remove parameter.
7110
7111         * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
7112         * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
7113         * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
7114
7115         * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
7116         * config/frv/frv.c: Remove orphaned comment.
7117
7118         * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
7119         * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
7120         * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7121         (ix86_reorg): Renamed from x86_machine_dependent_reorg.  Make static.
7122         Remove parameter.
7123
7124         * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
7125         * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
7126         * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7127         (emit_insn_group_barriers): Remove "first insn" parameter.
7128         (emit_all_insn_group_barriers): Likewise.
7129         (ia64_reorg): Likewise.  Make static.  Update calls to above functions.
7130         (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
7131
7132         * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
7133         * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
7134         * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7135         (ip2k_reorg): Renamed from machine_dependent_reorg.  Make static.
7136         Remove parameter.
7137
7138         * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
7139         * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
7140         * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7141         (m68hc11_reorg): Make static.  Remove parameter.
7142
7143         * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
7144         * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
7145         * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7146         (conditionalize_optimization): Remove parameter.
7147         (mcore_reorg): Renamed from mcore_dependent_reorg.  Remove parameter.
7148         Make static.  Update call to conditionalize_optimization.
7149
7150         * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
7151         * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
7152         * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7153         (mips_reorg): Renamed from machine_dependent_reorg.  Remove parameter.
7154         Make static.
7155
7156         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
7157         * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
7158         * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7159         (mmix_reorg): Renamed from mmix_machine_dependent_reorg.  Make static.
7160         Remove parameter.
7161
7162         * config/pa/pa-protos.h (pa_reorg): Remove declaration.
7163         * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
7164         * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7165         (pa_combine_instructions): Remove "first insn" parameter.
7166         (remove_useless_addtr_insns): Likewise.
7167         (pa_reorg): Likewise.  Make static.  Update calls to above functions.
7168
7169         * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
7170         commented-out definition.
7171
7172         * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
7173         * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
7174         * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7175         (s390_reorg): Renamed from s390_machine_dependent_reorg.  Make static.
7176         Remove parameter.
7177
7178         * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
7179         * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
7180         * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7181         (sh_reorg): Renamed from machine_dependent_reorg.  Make static.
7182         Remove parameter.
7183         (sh_output_mi_thunk): Call sh_reorg directly.
7184         * config/sh/sh.md: Update comment.
7185
7186         * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
7187         commented-out definition.
7188
7189         * config/v850/v850-protos.h (v850_reorg): Remove declaration.
7190         * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
7191         * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7192         (v850_reorg): Make static.  Remove parameter.
7193
7194         * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
7195         * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
7196         * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7197         (xtensa_reorg): Make static.  Remove parameter.
7198
7199         * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
7200         (TARGET_MACHINE_DEPENDENT_REORG): Document.
7201
7202 2003-05-13  Richard Henderson  <rth@redhat.com>
7203
7204         * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
7205         the old decl had instantiated DECL_RTL.
7206
7207 2003-05-13  Mike Stump  <mrs@apple.com>
7208
7209         * doc/invoke.texi (Option Summary): Kill off documentation for -$.
7210
7211 2003-05-13  Janis Johnson  <janis187@us.ibm.com>
7212
7213         * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
7214         HOST_WIDE_INT argument.
7215
7216 2003-05-13  Jason Merrill  <jason@redhat.com>
7217
7218         * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
7219
7220         * tree.c (iterative_hash_expr): New fn.
7221
7222         * c-semantics.c (emit_local_var): Don't mess with temp slots if
7223         there's no initializer.
7224
7225 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
7226
7227         * final.c (final_scan_insn): Apply the effects of frame-related
7228         delay slot insns before emitting a delayed branch.
7229
7230 2003-05-13  Nick Clifton  <nickc@redhat.com>
7231
7232         * config/mcore/mcore.md (jump): Use emit_jump_insn.
7233
7234 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
7235
7236         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
7237         parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
7238
7239 2003-05-12  DJ Delorie  <dj@redhat.com>
7240
7241         * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
7242         (emit_push_insn): Don't use push when the source alignment is less
7243         than the stack's push rounding.
7244
7245 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
7246
7247         * diagnostic.c (output_format): Add support for %m.
7248         (output_printf, output_verbatim, diagnostic_set_info,
7249         verbatim): Set err_no field of the text_info structure being
7250         initialized.
7251         (fatal_io_error): Delete function.
7252         * diagnostic.h (text_info): Add err_no field.
7253         * toplev.h (fatal_io_error): Delete prototype.
7254
7255         * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
7256         * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
7257         * objc/objc-act.c: Replace all calls to fatal_io_error with
7258         calls to fatal_error; add ": %m" to the end of all the affected
7259         error messages.
7260
7261 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
7262
7263         * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
7264         * rtl.h: Prototype it.
7265         * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
7266         when appropriate.
7267
7268 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
7269
7270         * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
7271         ("*iorsi3_oi"): Likewise.
7272
7273 2003-05-13  Richard Earnshaw  <rearnsha@arm.com>
7274
7275         * arm.md (compare_scc): Use shorter sequence for EQ case.
7276         (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
7277         (and_scc_scc): Ensure split only applies when there is a dominance
7278         of the comparisons.
7279         (and_scc_scc_nodom): New insn-and-split pattern.
7280
7281 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
7282
7283         * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
7284         to _Unwind_SetGRPtr().
7285
7286 2003-05-13  Michael Eager <eager@mvista.com>
7287
7288         * Makefile.in: Initialize program_transform_cross_name from
7289         @program_transform_name@ instead of target_alias.
7290
7291 2003-05-12  Janis Johnson  <janis187@us.ibm.com>
7292             Alan Modra  <amodra@bigpond.net.au>
7293             Jakub Jelinek  <jakub@redhat.com>
7294
7295         * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
7296         * configure: Rebuild.
7297         * config/rs6000/rs6000-protos.h: Update.
7298         * config/rs6000/rs6000.c (rs6000_tls_size): New.
7299         (rs6000_tls_size_string): New.
7300         (rs6000_parse_tls_size_option): New.
7301         (rs6000_legitimize_tls_address): New.
7302         (rs6000_tls_get_addr): New.
7303         (rs6000_got_sym): New.
7304         (rs6000_tls_symbol_ref): New.
7305         (rs6000_tls_symbol_ref_1): New.
7306         (rs6000_get_some_local_dynamic_name): New.
7307         (rs6000_get_some_local_dynamic_name_1): New.
7308         (TARGET_HAVE_TLS): New.
7309         (TARGET_CANNOT_FORCE_CONST_MEM): New.
7310         (rs6000_override_options): Handle -mtls-size option.
7311         (constant_pool_expr_1): Handle TLS symbols.
7312         (rs6000_legitimize_address): Handle TLS symbols.
7313         (rs6000_tls_referenced_p): New.
7314         (rs6000_legitimate_address): Handle TLS symbols.
7315         (rs6000_emit_move): Handle TLS symbols.
7316         (print_operand): Handle TLS symbols.
7317         (uses_TOC): Handle TLS symbols.
7318         (rs6000_emit_prologue): Use symbol for unspec constant.
7319         * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
7320         (some_ld_name): New.
7321         (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
7322         (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
7323         (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
7324         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
7325         Support TLS.
7326         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
7327         tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
7328         tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
7329         tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
7330         tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
7331         tls_tls_64): New.
7332         * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
7333
7334 2003-05-12  Neil Booth  <neil@cat.daikokuya.co.uk>
7335
7336         * Makefile.in (stage2_build, stage3_build, stage4_build):
7337         Set BUILD_CC to the same as CC.
7338
7339 2003-05-12  Neil Booth  <neil@daikokuya.co.uk>
7340
7341         * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
7342
7343 2003-05-12  Andreas Schwab  <schwab@suse.de>
7344
7345         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
7346         as unused.
7347         (bundling): Initialize 'pos'.
7348         (ia64_expand_builtin): Initialize 'rmode'.
7349
7350 2003-05-12  David Edelsohn  <edelsohn@gnu.org>
7351
7352         * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
7353         (ASM_OUTPUT_ALIGNED_COMMON): Same.
7354         (ASM_OUTPUT_LOCAL): Same.
7355
7356 Mon May 12 21:53:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
7357
7358         * varasm.c (output_constant):  Fix underflow.
7359
7360 2003-05-12  Mark Mitchell  <mark@codesourcery.com>
7361
7362         PR other/10745
7363         * configure.in: Correct detection of GNU ld version number.
7364         * configure: Regenerated.
7365
7366 2003-05-12  Zack Weinberg  <zack@codesourcery.com>
7367
7368         * diagnostic.c (diagnostic_for_decl): Take a
7369         diagnostic_context argument.  Restructure to be consistent
7370         with diagnostic_report_diagnostic.
7371         (diagnostic_count_diagnostic): Now static.  Take a
7372         diagnostic_info argument, not just a diagnostic_t.  Some code
7373         moved here from internal_error.  Move a case label for
7374         clarity.
7375         (diagnostic_action_after_output): New function.  Code moved
7376         here from internal_error and fatal_error.
7377         (bug_report_request): New #define so that this text appears in
7378         only one place.
7379         (diagnostic_report_diagnostic): Update to match changes to
7380         diagnostic_count_diagnostic.  Call diagnostic_action_after_output.
7381         (diagnostic_set_info): Call gettext here.
7382
7383         (pedwarn): Update comment.  Don't call gettext here.
7384         (sorry): Use report_diagnostic.  Don't call gettext here.
7385         (fatal_error): Remove final fnotice and exit, but call
7386         real_abort to prevent warnings about noreturn function returning.
7387         (internal_error): Likewise.  Don't do ICE suppression here nor
7388         call context->internal_error.
7389         (warning_with_decl): Suppress for decls in system headers.
7390         Adjust call to diagnostic_for_decl.
7391         (pedwarn_with_decl): Likewise.
7392         (error_with_decl): Adjust call to diagnostic_for_decl.
7393         (error_recursion): Use bug_report_request.
7394
7395         * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
7396         * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
7397         diagnostic_count_diagnostic.
7398
7399 2003-05-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7400
7401         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
7402
7403 Mon May 12 15:57:54 CEST 2003  Jan Hubicka  <jh@suse.cz>
7404
7405         * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
7406         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
7407         * mips/mips.h (ASM_OUTPUT_SKIP):  Fix typo in the previous patch.
7408
7409 2003-05-12  Roger Sayle  <roger@eyesopen.com>
7410
7411         * doc/rtl.texi: Document zero_extract as a valid destination
7412         of a set insn.
7413
7414 2003-05-12  Richard Earnshaw  <rearnsha@arm.com>
7415
7416         * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
7417         '.'.  Change all local symbol definitions and references to use LSYM.
7418
7419 Mon May 12 11:32:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
7420
7421         * expr.h (assemble_static_space): Update prototype.
7422         * output.h (assemble_zeros, output_constant): Likewise.
7423         * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
7424         * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
7425         it 64bit clean.
7426         * elf.h (ASM_OTUPUT_SKIP): Likewise.
7427         * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
7428         * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7429         Expect HOST_WIDE_INT operand.
7430         * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7431         Expect HOST_WIDE_INT operand.
7432         * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7433         Expect HOST_WIDE_INT operand.
7434         * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
7435         HOST_WIDE_INT operand.
7436         * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
7437         ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
7438         * aout.h (ASM_OTUPUT_SKIP): Likewise.
7439         * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
7440         * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
7441         * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
7442         * frv.h (ASM_OTUPUT_SKIP): Likewise.
7443         * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
7444         * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7445         Make it 64bit
7446         clean.
7447         * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
7448         * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7449         Make it 64bit clean.
7450         * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
7451         * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
7452         HOST_WIDE_INT operand
7453         * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7454         Expect HOST_WIDE_INT operand
7455         * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
7456         * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
7457         ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
7458         * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7459         Likewise.
7460         * m32r.h (ASM_OUTPUT_COMMON): Likewise.
7461         * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7462         Likewise.
7463         * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7464         * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7465         * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7466         ASM_OUTPUT_SKIP): Likewise.
7467         * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7468         Likewise.
7469         * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7470         ASM_OUTPUT_SKIP): Likewise.
7471         * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7472         ASM_OUTPUT_SKIP): Likewise.
7473         * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
7474         * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
7475         ASM_OUTPUT_SKIP): Likewise.
7476         * sgs.h (ASM_OUTPUT_SKIP): Likewise.
7477         * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
7478         ASM_OUTPUT_SKIP): Likewise.
7479         * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
7480         Likewise.
7481         * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
7482         * iris.h (ASM_OUTPUT_LOCAL): Likewise.
7483         * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
7484         * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7485         ASM_OUTPUT_SKIP): Make it 64bit clean.
7486         * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
7487         Make it 64bit clean.
7488         * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
7489         ASM_OUTPUT_SKIP): Make it 64bit clean.
7490         * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
7491         64bit clean.
7492         * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
7493         HOST_WIDE_INT argument
7494         * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
7495         * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
7496         HOST_WIDE_INT argument
7497         * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
7498         * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
7499         * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
7500         * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7501         HOST_WIDE_INT argument
7502         * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
7503         * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
7504         * varasm.c (asm_output_bss, asm_output_aligned_bss,
7505         asm_emit_uninitialized, assemble_zeros, assemble_static_space):
7506         HOST_WIDE_INT argument
7507
7508 2003-05-10  Steven Bosscher  <steven@gcc.gnu.org>
7509
7510         * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
7511         favor of walk_tree_without_duplicates.  Add comments.
7512
7513 2003-05-12  Josef Zlomek  <zlomekj@suse.cz>
7514
7515         * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
7516         (struct alloc_pool_def): New element 'id'.
7517         * alloc-pool.c (fancy_abort): Extern function prototype.
7518         (abort): Macro which uses fancy_abort.
7519         (struct allocation_object_def): New structure.
7520         (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
7521         (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
7522         (last_id): New variable.
7523         (create_alloc_pool): Add the offset of u.data to size of element,
7524         increase and use last_id.
7525         (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
7526         (pool_alloc): Likewise. Set ID for elements.
7527         (pool_free): Check whether the PTR was allocated from POOL.
7528
7529 2003-05-11  Richard Henderson  <rth@redhat.com>
7530
7531         PR c/10675
7532         * c-decl.c: Include hashtab.h.
7533         (detect_field_duplicates): New.
7534         (finish_struct): Use it.
7535         * Makefile.in (c-decl.o): Update.
7536         * c-parse.in (structsp_attr): Nreverse component_decl_list results.
7537         (component_decl_list, component_decl_list2,
7538         components, components_notype): Build list in reverse order.
7539         (enumlist): Clarify docs.  Use TREE_CHAIN not chainon.
7540
7541         * tree.c (chainon): Special case op2 null as well.
7542         Reorg for clarity.
7543
7544 2003-05-11  Roger Sayle  <roger@eyesopen.com>
7545
7546         * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
7547         to implement log, logf and logl built-ins as inline x87 intrinsics.
7548         (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
7549         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
7550         patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
7551
7552         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
7553         UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
7554
7555 2003-05-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7556
7557         * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
7558
7559         * sparc.c (print_operand): Fix uninitialized warning.
7560
7561 2003-05-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7562
7563         * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
7564         real insns.
7565         * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
7566         condition.
7567
7568 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
7569
7570         * doc/cpp.texi: Fix typos.
7571
7572 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
7573
7574         * config/s390/s390.c (s390_function_arg_float): New function.
7575         (s390_function_arg_pass_by_reference): Use it.
7576         (s390_function_arg_advance): Likewise.
7577         (s390_function_arg): Likewise.
7578         (s390_va_arg): Likewise
7579
7580 2003-05-11  Nathan Sidwell  <nathan@codesourcery.com>
7581
7582         * coverage.h (coverage_counter_alloc): New function.
7583         * function.h (struct function): Remove arc_profile flag.
7584         * coverage.c (fn_ident): Remove.
7585         (fn_b_ctrs, no_coverage): New.
7586         (get_coverage_counts): Use current_function_funcdef_no.
7587         (coverage_counter_alloc): New.
7588         (coverage_counter_ref): Adjust.
7589         (coverage_begin_output): Check no_coverage. Use
7590         current_function_funcdef_no.
7591         (coverage_end_function): Likewise.
7592         (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
7593         than clearing flag_inline_functions. Do not clear arc_profile
7594         flag.
7595         * function.c (prepare_function_start): Do not set arc_profile
7596         flag.
7597         * profile.c (instrument_edges): Return number of instrumented
7598         edges. Use a for loop.
7599         (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
7600         local to here and simplify. Use profile_arc_flag not arc_profile
7601         flag.
7602         (find_spanning_tree): Reformat.
7603         * toplev.c (rest_of_compilation): Use profile_arc_flags and
7604         flag_test_coverage rather than arc_profile flag.
7605
7606 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
7607
7608         * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
7609
7610 2003-05-11  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7611
7612         * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
7613
7614 2003-05-11  Bruno Haible  <bruno@clisp.org>
7615
7616         * cppfiles.c (find_or_create_entry): Preserve errno.
7617
7618 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
7619
7620         * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
7621         cpplib as it's a Standard Predefined Macro.
7622         * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
7623         * cppinit.c (_cpp_init_builtins): Take HOSTED.  Define
7624         __STDC_HOSTED__ appropriately.
7625         * cpplib.h (_cpp_init_builtins): Update.
7626         * fix-header.c (read_scan_file): Update.
7627         * doc/cpp.texi, doc/cppopts.texi: Update documentation.
7628
7629 2003-05-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7630
7631         PR C++/689
7632         PR C++/9257
7633         * c-opts.c (c_common_decode_option): Don't set
7634         warn_ctor_dtor_privacy wen -Wall.
7635         * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
7636
7637 2003-05-10  Alexandre Oliva  <aoliva@redhat.com>
7638
7639         * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
7640         patch.
7641
7642 2003-05-10  Zack Weinberg  <zack@codesourcery.com>
7643
7644         * diagnostic.c: Reorder functions for clarity, putting all the
7645         functions in the "error" family next to each other, and
7646         likewise all the functions in the "error_with_decl" family.
7647         Some other routines were moved too.  Add comments.
7648         (vbuild_message_string): Fold into sole caller.
7649
7650
7651 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
7652
7653         * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
7654         (EH_RETURN_HANDLER_RTX): Likewise.
7655         (expand_builtin_eh_return): Do not copy stack adjustment
7656         if EH_RETURN_STACKADJ_RTX is not defined.
7657         (expand_eh_return): Likewise.  Also, do not pass stack
7658         adjustment as argument to the eh_return pattern.
7659         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
7660         because EH_RETURN_STACKADJ_RTX is not defined.
7661         * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
7662         is not defined, treat stack pointer like a regular register.
7663         (uw_init_context_1): Set up fake initial stack pointer register.
7664         (uw_install_context_1): Do not compute stack adjustment if
7665         EH_RETURN_STACKADJ_RTX is not defined.
7666
7667         * config/i386/i386.md ("eh_return"): Remove first argument.
7668         * config/mips/mips.md ("eh_return"): Likewise.
7669         * config/rs6000/rs6000.md ("eh_return"): Likewise.
7670         * config/sh/sh.md ("eh_return"): Likewise.
7671
7672         * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
7673
7674 2003-05-10  Alexander Aganichev  <aaganichev@yandex.ru>
7675
7676         * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
7677
7678 2003-05-10  Nathan Sidwell  <nathan@codesourcery.com>
7679
7680         * defaults.h (GCOV_TYPE_SIZE): Remove.
7681         * gcov-io.h (gcov_type): Set to specific mode int on target.
7682         (gcov_unsigned_t, gcov_position_t): New.
7683         (GCOV_TYPE_NODE): New.
7684         (GCOV_TAG_SUMMARY_LENGTH): Adjust.
7685         (GCOV_COUNTERS_SUMMABLE): New.
7686         (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
7687         gcov_ctr_info, gcov_info): Adjust types.
7688         (gcov_var): Adjust types.
7689         (gcov_write_unsigned, gcov_write_tag,
7690         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
7691         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
7692         (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
7693         * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
7694         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
7695         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
7696         * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
7697         __gcov_init, __gcov_merge_add): Adjust gcov types.
7698         * coverage.c (ctr_merge_functions): Constify.
7699         (ctr_names): New.
7700         (read_counts_file): Adjust gcov types. Only summarize & merge
7701         summable counters.
7702         (coverage_counter_ref): Use GCOV_TYPE_NODE.
7703         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
7704         build_ctr_info_value, build_gcov_info): Adjust types.
7705         * profile.c (branch_prob): Adjust gcov types.
7706         * gcov_dump (dump_file): Adjust gcov types.
7707
7708 2003-05-10  Richard Earnshaw  <rearnsha@arm.com>
7709
7710         * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
7711         constants.
7712         (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
7713         * arm.c (arm_select_dominance_cc_mode): Renamed from
7714         select_dominance_cc_mode, no-longer static.  Use DOM_CC... constants.
7715         Callers updated.
7716         * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
7717
7718 2003-05-09  Roger Sayle  <roger@eyesopen.com>
7719
7720         * config/alpha/alpha.c (alpha_start_function): Declare frame_size
7721         as unsigned to avoid signed/unsigned comparison warnings.
7722
7723 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
7724
7725         * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
7726         instruction if the Xtensa density option is enabled.
7727
7728 2003-05-09  Matt Kraai <kraai@alumni.cmu.edu>
7729
7730        * mklibgcc.in: Remove extra quotes.
7731
7732 2003-05-09  Mark Mitchell  <mark@codesourcery.com>
7733
7734         * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
7735         of int_ftype_void.
7736
7737 2003-05-09  Alexandre Oliva  <aoliva@redhat.com>
7738
7739         * reload1.c (reload_cse_move2add): Don't turn an implicit
7740         truncation into a self-set in the narrow mode.
7741
7742 2003-05-09  Richard Earnshaw  <rearnsha@arm.com>
7743
7744         * arm.md (clzsi2): The CLZ instruction is predicable.
7745
7746 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
7747
7748         * config/xtensa/xtensa.c: Formatting.
7749
7750 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
7751
7752         * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
7753         instead of TREE_OPERAND to access the operand of a
7754         CONSTRUCTOR node.
7755
7756 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
7757
7758         * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
7759         one operand.
7760
7761 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
7762
7763         * toplev.h (warning_with_file_and_line): Don't declare.
7764         (error_with_file_and_line): Likewise.
7765         * diagnostic.c (error_with_file_and_line): Remove.
7766         (warning_with_file_and_line): Likewise.
7767
7768 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
7769
7770         * c-parse.in (if_stmt_locus): New object.
7771         (if_prefix rule): Use it.  Don't use warning_with_file_and_line.
7772         (select_or_iter_stmt rule): Likewise.
7773         (if_stmt_file): Remove.
7774         (if_stmt_line): Likewise.
7775         * jump.c: include "diagnostic.h"
7776         (never_reached_warning): Don't use warning_with_file_and_line.
7777         * Makefile.in (jump.o): Add dependce on diagnostic.h
7778
7779 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
7780
7781         * expr.c (move_block_from_reg): Remove "size" parm.  Localize vars.
7782         Move code handling pieces not larger than a word to..
7783         * function.c (assign_parms): ..here, but use change_address instead
7784         of adjust_address and operand_subword, and expand_binop instead of
7785         expand_shift.  Adjust calls to move_block_from_reg.
7786         * expr.h (move_block_from_reg): Update declaration.
7787         (copy_blkmode_from_reg): Formatting.
7788         * Makefile.in (function.o): Add $(OPTABS_H) to deps.
7789         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
7790         move_block_from_reg calls.
7791         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
7792         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
7793         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7794         * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
7795         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
7796         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
7797         * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
7798         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
7799         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
7800
7801 2003-05-08  DJ Delorie  <dj@redhat.com>
7802
7803         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
7804         to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
7805         variable-sized types).
7806         (xstormy16_function_arg): New.  Pass them that way too.
7807         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
7808         * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
7809
7810 2003-05-08  Aldy Hernandez  <aldyh@redhat.com>
7811
7812         * mklibgcc.in: Use mkinstalldirs when installing multilib
7813         directories.
7814
7815 2003-05-08  J"orn Rennecke <joern.rennecke@superh.com>
7816
7817         * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
7818         instead of CODE_FOR_jump
7819
7820 2003-05-08  Gabriel Dos Reis <gdr@integrable-solutions.net>
7821
7822         * objc/objc-act.c (error_with_ivar): Don't use
7823         error_with_file_and_line.
7824         (warn_with_method): Don't use warning_with_file_and_line.
7825
7826 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7827
7828         * stmt.c (emit_locus): New macro.
7829         (emit_filename): Remove.
7830         (emit_lineno): Likewise.
7831         (struct stmt_status): Replace members x_emit_filename and
7832         x_emit_lineno with x_emit_locus.
7833         (set_file_and_line_for_stmt): Adjust.
7834         (expand_expr_stmt_value): Don't use warning_with_file_and_line.
7835         (warn_if_unused_value): Likewise.
7836         (check_seenlabel): Likewise.
7837
7838 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7839
7840         * c-decl.c (define_label): Tidy.  Don't use any of
7841         error_with_file_and_line or warning_with_file_and_file.
7842         (pending_xref_error): Likewise.
7843         (store_parm_decls): Likewise.
7844         (current_function_prototype_locus): New object.  Package from
7845         current_function_prototype_file and current_function_prototype_line.
7846         (start_function): Use it.
7847         (current_function_prototype_file): Remove.
7848         (current_function_prototype_line): Remove;
7849
7850 2003-05-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7851
7852         * builtins.c (readonly_data_expr): New function.
7853         (expand_builtin_memmove): Optimize any rodata source, not just
7854         strings.
7855
7856 2003-05-07  David Mosberger <davidm@hpl.hp.com>
7857
7858         * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
7859
7860 2003-05-07  Richard Henderson  <rth@redhat.com>
7861
7862         * config/i386/i386.c (ix86_split_long_move): Fix base register
7863         mode for XFmode splits for TARGET_64BIT.
7864
7865 2003-05-07  Richard Henderson  <rth@redhat.com>
7866
7867         * sched-ebb.c (schedule_ebb): Supply the correct starting
7868         block number to save_line_notes.
7869
7870 2003-05-07  Richard Henderson  <rth@redhat.com>
7871
7872         * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
7873         (dump_file): Likewise.
7874
7875 2003-05-07  David Mosberger <davidm@hpl.hp.com>
7876
7877         * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
7878         forget to preserve gp.
7879         * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
7880
7881         * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
7882         .prologue directive.
7883         Use .skip instead of data8 for .bss section to make Intel
7884         Assembler (ias) happy.  Minor whitespace fixups.  Make "nop 0"
7885         explicit in the .mib bundles and remove the unnecessary stop
7886         bits.  Replace local labels with normal labels, to make ias
7887         happy.  Don't register __do_global_ctors_aux here, do it in
7888         crtend.asm instead.
7889
7890         * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
7891         __do_global_ctors_aux in .init_array section instead of
7892         declaring it as a hidden global.  Replace local labels with
7893         ordinary labels to make ias happy.
7894
7895 2003-05-07  Richard Henderson  <rth@redhat.com>
7896
7897         PR c++/10570
7898         * except.c: Revert 04-01 and 04-02 forced-unwind changes.
7899         * flags.h, toplev.c, doc/invoke.texi: Likewise.
7900
7901         * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
7902         * unwind.inc (_Unwind_DeleteException): Check for null
7903         exception_cleanup.
7904
7905         * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
7906         * unwind.inc (_Unwind_Resume_or_Rethrow): New.
7907         * unwind.h: Declare them.
7908         * libgcc-std.ver (GCC_3.3): Export them.
7909
7910 2003-05-07  Richard Henderson  <rth@redhat.com>
7911
7912         * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
7913         not _Unwind_Word.
7914
7915 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
7916
7917         * stmt.c (force_label_rtx): New function, based on logic
7918         formerly found in expand_expr.
7919         * expr.h: Prototype it.
7920         * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
7921         appropriate.
7922         * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
7923
7924         * print-tree.c (debug_tree): Free the table after we're done
7925         with it.  Use putc.
7926
7927 2003-05-07  Aldy Hernandez  <aldyh@redhat.com>
7928
7929         * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
7930         Unreverse arguments for __ev_subw.
7931
7932         * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
7933
7934 2003-05-07  Nick Clifton  <nickc@redhat.com>
7935
7936         * config/stormy16/stormy-abi: Update to include
7937         R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
7938         R_XSTORMY16_12 relocs.
7939
7940 2003-05-07  Alan Modra  <amodra@bigpond.net.au>
7941
7942         * function.c (assign_parms): Correct reversed reg_parm_stack_space
7943         test.  Add partial in-regs size to stack_args_size.
7944
7945 2003-05-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7946
7947         * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
7948         as a C only option.
7949
7950 2003-05-07  Nathan Sidwell  <nathan@codesourcery.com>
7951
7952         * gcov-io.h (GCOV_LOCKED): New #define.
7953         (GCOV_LINKAGE): Make sure it is #defined.
7954         (gcov_write_string, gcov_write_tag, gcov_write_length,
7955         gcov_read_string, gcov_time): Poison in libgcov.
7956         (gcov_seek_end): Remove.
7957         (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
7958         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
7959         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
7960         GCOV_TAG_SUMMARY_LENGTH): New #defines.
7961         (gcov_write_tag, gcov_write_length): Not in libgcov.
7962         * gcov-io.c (gcov_open): Use GCOV_LOCKED.
7963         (gcov_write_tag, gcov_write_length): Not in libgcov.
7964         (gcov_write_tag_length): New.
7965         (gcov_write_summary): Use gcov_write_tag_length.
7966         * libgcov.c: Always #include gcov-io.h.
7967         (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
7968         (GCOV_LINKAGE): Define to nothing for L_gcov.
7969         (gcov_exit): Replace gcov_write_tag, gcov_write_length with
7970         gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
7971         * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
7972         (read_count_file): Likewise.
7973         * gcov-dump.c (dump_file): Likewise.
7974         * coverag.c (read_counts_file): Likewise.
7975
7976 2003-05-06  Mark Mitchell  <mark@codesourcery.com>
7977
7978         PR other/10658
7979         * gcc.c (process_command): Update copyright date.
7980
7981 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
7982
7983         * doc/install.texi (mips-*-*):  Add note about libstdc++.
7984
7985 2003-05-06  DJ Delorie  <dj@redhat.com>
7986
7987         * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
7988         * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
7989         * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
7990
7991 2003-05-06    <neil@cat.daikokuya.co.uk>
7992
7993         * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
7994         and -Wstrict-prototypes if C++.
7995
7996 2003-05-06  Aldy Hernandez  <aldyh@redhat.com>
7997
7998         * config/rs6000/linuxspe.h: New file.
7999
8000         * config.gcc: Add powerpc-*-linux-gnuspe* target.
8001
8002 2003-05-06  Richard Henderson  <rth@redhat.com>
8003
8004         * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
8005         previous frame didn't save sp.  Clear sp for next frame.
8006         (uw_install_context_1): Honor saved sp from frame.
8007
8008 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
8009
8010         * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
8011         (mips_move_1word, mips_move_2words): Remove declaration.
8012         (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
8013         (mips_restore_gp): Remove insn argument.
8014         * config/mips/mips.h (FP_REG_RTX_P): New macro.
8015         * config/mips/mips.c (volatile_buffer): Remove.
8016         (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
8017         (mips_move_1word, mips_move_2words): Remove, replacing with...
8018         (mips_output_move): ...this new function.
8019         (mips_restore_gp): Remove insn argument.  Adjust for above changes.
8020         (print_operand): Make '%h' print %hi(op) for HIGH operands.  Remove
8021         handling of floating-point constants.  Handle zero CONST_DOUBLE
8022         arguments.
8023         (mips_annotate_frame_insn): Replace with...
8024         (mips_set_frame_expr): ...this, which just takes one argument.
8025         (mips_frame_set): Change the register argument to an rtx.
8026         (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
8027         check whether moves should be split.  Use mips_split_64bit_move
8028         to split them.  Use mips_subword to generate the high and low
8029         parts of a paired FPR.  Adjust calls to frame_set and
8030         mips_set_frame_expr.
8031         (mips_expand_prologue): Simplify due to above changes.
8032         * config/mips/mips.md:  Add splitters for 64-bit moves on 32-bit
8033         targets, replacing xisting register-only versions.
8034         (UNSPEC_STORE_DF_HIGH): New unspec.
8035         (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
8036         (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
8037         (*paradoxical_extendhidi2): Remove.
8038         (movdi_internal, movdi_internal2): Use mips_output_move.
8039         (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
8040         (movsf_internal1, movsf_internal2): Likewise.
8041         (movdf_internal1a): Likewise.  Fix length and type of f <- G case.
8042         (movdf_internal1b): Use mips_output_move.  Fix type of f <- G case.
8043         (movdf_internal2): Use mips_output_move.  Fix lengths of FPR moves.
8044         Add m <- G alternative.
8045         (load_df_low, load_df_high, store_df_low): New patterns.
8046         (movhi_internal): Use @ template instead of calling a function.
8047         Remove unnecessary 'z' alternatives.
8048         (movqi_internal): Likewise.
8049         (exception_receiver): Update call to mips_restore_gp.
8050
8051 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
8052
8053         * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
8054         (mips_delegitimize_address): Declare.
8055         * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
8056         (FIND_BASE_TERM): Define.
8057         * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8058         (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
8059         Handle small-data addresses.
8060
8061 2003-05-05  Roger Sayle  <roger@eyesopen.com>
8062
8063         * real.c (real_powi): New function to calculate the value of
8064         a real raised to an integer power, i.e. pow(x,n) for int n.
8065         (real_sqrt): Convert to using the faster do_add, do_multiply
8066         and do_divide API for consistency with the rest of real.c.
8067         * real.h (real_powi): Prototype here.
8068         * builtins.c (fold_builtin):  Avoid local variable mode when
8069         evaluating sqrt at compile time.  Attempt to evaluate pow at
8070         compile-time, by checking for an integral exponent.
8071
8072 2003-05-05  Richard Henderson  <rth@redhat.com>
8073
8074         * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
8075
8076 2003-05-05  David O'Brien  <obrien@FreeBSD.org>
8077
8078         * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
8079         other FreeBSD ports.
8080         (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
8081         (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
8082
8083 2003-05-05  Janis Johnson  <janis187@us.ibm.com>
8084
8085         * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
8086         expanded variables.
8087         * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
8088
8089 2003-05-05  Zack Weinberg  <zack@codesourcery.com>
8090
8091         * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
8092         * varasm.c (struct varasm_status): Add deferred_constants field.
8093         (n_deferred_strings): Delete variable.
8094         (n_deferred_constants): New #define.
8095         (struct constant_descriptor_tree): Kill next and label fields.
8096         (const_hash_table, MAX_HASH_TABLE): Delete.
8097         (const_desc_htab): New static variable.
8098         (const_hash): Rename const_desc_hash, and make it fit the
8099         hashtab.h interface.
8100         (const_desc_eq): New.
8101         (const_hash_1, compare_constant): Const-ify arguments.
8102         (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
8103         SYMBOL_REFs.  Clarify comments.  Don't set desc->label.
8104         (output_constant_def): Do the lookup/insert using the
8105         hashtab.h interface.  Don't muck with n_deferred_constants or
8106         DEFERRED_CONSTANT_P here.
8107         Always call maybe_output_constant_def_contents.
8108         (maybe_output_constant_def_contents): Take a pointer to the
8109         descriptor, not the EXP and RTL separately.  Return
8110         immediately if this constant is not deferred.  Defer output of
8111         everything, except writable string constants.  Update
8112         n_deferred_constants here.
8113         (output_constant_def_contents): Now takes just one argument,
8114         an rtx.  Clear DEFERRED_CONSTANT_P here.
8115         (mark_constant_pool): Update for rename of n_deferred_strings.
8116         (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
8117
8118         (init_varasm_status): Clear p->deferred_constants.
8119         (init_varasm_once): Call htab_create_ggc for const_desc_htab.
8120
8121 2003-05-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8122
8123         * builtins.c (expand_builtin_stpcpy): Only expand when the length
8124         of the source string can be evaluated at compile-time.
8125
8126 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
8127
8128         * testsuite/gcc.c-torture/compile/simd-6.c: New.
8129
8130         * c-typeck.c (digest_init): Handle arrays of vector constants.
8131
8132 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
8133
8134         * builtins.c (expand_builtin_mempcpy): New function.
8135         (expand_builtin_stpcpy): Optimize stpcpy whose return value is
8136         ignored into strcpy no matter what arguments it has.
8137         (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
8138         expand_builtin_mempcpy.
8139
8140 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
8141
8142         * testsuite/gcc.dg/20030505.c: New.
8143
8144         * c-typeck.c (convert_for_assignment): Opaque pointers can
8145         interconvert.
8146
8147         * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
8148         (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
8149         (spe_init_builtins): Rename all pv2si_type_node to
8150         opaque_p_V2SI_type_node.
8151         Remove declaration of pv2si_type_node.
8152         (is_ev64_opaque_type): Accept opaque pointers.
8153
8154 2003-05-05  Geoffrey Keating  <geoffk@apple.com>
8155
8156         * config/rs6000/rs6000.c (validate_condition_mode): Use
8157         flag_finite_math_only.
8158         (rs6000_reverse_condition): Never return UNKNOWN; use
8159         flag_finite_math_only.
8160         (rs6000_generate_compare): Use flag_finite_math_only.
8161         (rs6000_emit_cmove): Handle UNLE.  Support UNEQ under -ffast-math.
8162         Use HONOR_* rather than flag_unsafe_math_optimizations.  Correct
8163         UNGE and GT cases.  Handle UNEQ and LTGT when ! HONOR_NANS.
8164
8165         * toplev.c (check_global_declarations): Suppress not-used warning
8166         for volatile variables.
8167
8168 2003-05-05  Olivier Hainque  <hainque@act-europe.fr>
8169
8170         * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
8171         usage of bitfield instructions for mode1 != BLKmode, only ignoring
8172         SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
8173         (store_field): Likewise.
8174
8175 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
8176
8177         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
8178         evsubifw to builtins accepting 5-bit unsigned constants.
8179         (easy_vector_constant): Return if V1DImode.  Fix typo.
8180
8181 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
8182
8183         * config/rs6000/spe.h: Revert licensing change from last patch.
8184
8185 2003-05-05  DJ Delorie  <dj@redhat.com>
8186
8187         * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
8188         before reload, but defer the split until after.
8189         * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
8190         to match.
8191
8192 2003-05-05  David Edelsohn  <edelsohn@gnu.org>
8193
8194         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
8195         * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
8196
8197 2003-05-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8198
8199         * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
8200         is defined.
8201
8202 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8203
8204         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
8205         ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
8206         ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
8207
8208         (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
8209         ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
8210         ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
8211         New.
8212
8213         * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
8214         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
8215
8216         (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
8217         BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
8218         BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
8219         BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
8220         BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
8221         BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
8222         BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
8223         BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
8224         BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
8225         BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
8226         BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
8227         BUILT_IN_STRDUP): Add "nonnull" attribute.
8228
8229 2003-05-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8230
8231         * expr.c (store_field): Don't clobber TEMP in shift: it might be
8232         a variable.
8233         (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
8234         whose purpose is to step up the alignment.
8235         (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
8236
8237         * stor-layout.c (compute_record_mode): Relax restriction
8238         on fields crossing word boundaries forcing BLKmode.
8239
8240 2003-05-04  Neil Booth  <neil@daikokuya.co.uk>
8241
8242         * cppinit.c (cpp_create_reader, post_options): Warn about
8243         trigraphs unless explicity set or -trigraphs.
8244         * cpplex.c (warn_in_comment): New.
8245         (_cpp_process_line_notes): Better handling of -Wtrigraphs.
8246         (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
8247         * doc/cppopts.texi, doc/cpp.texi: Update.
8248
8249 2003-05-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8250
8251         * Makefile.in (LIBGCOV): Add _gcov_merge_add.
8252         * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
8253         namespace clash.
8254         (GCOV_MERGE_FUNCTIONS): New.
8255         (gcov_merge_fn): Declare.
8256         (struct gcov_ctr_info): New field "merge".
8257         (__gcov_merge_add): Declare.
8258         * coverage.c (ctr_merge_functions): New.
8259         (build_ctr_info_type, build_ctr_info_value): Initialize merge field
8260         of gcov_ctr_info type.
8261         * libgcov.c (__gcov_merge_add): New.
8262         (gcov_exit): Call a hook to merge values of counters.
8263
8264 2003-05-04  Gabriel Dos Reis <gdr@integrable-solutions.net>
8265
8266         * toplev.h (pedwarn_with_file_and_line): Don't declare.
8267         * diagnostic.c (pedwarn_with_file_and_line): Remove.
8268
8269 2003-05-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8270
8271         * varasm.c (assemble_variable): Don't use error_with_file_and_line.
8272
8273 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8274
8275         * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
8276         expand_builtin_frame_address): Update prototypes.
8277         (expand_builtin_constant_p, expand_builtin_strlen,
8278         expand_builtin_strcpy, expand_builtin_memset,
8279         expand_builtin_bzero, expand_builtin_args_info,
8280         expand_builtin_frame_address): Pass in just the argument(s)
8281         needed, not the entire expression `exp'.
8282         (expand_builtin): Update all calls to these functions.
8283
8284 2003-05-03  Richard Henderson  <rth@redhat.com>
8285
8286         * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
8287         <BUILT_IN_DWARF_SP_COLUMN>: New.
8288         * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
8289         (BUILT_IN_DWARF_SP_COLUMN): New.
8290         * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
8291         (expand_builtin_dwarf_sp_column): New.
8292         * except.h: Update to match.
8293         * unwind-dw2.c (execute_stack_op): Correct stack push typo.
8294         (execute_cfa_program): Record location expression address
8295         before extracting length.
8296         (uw_update_context_1): Install old CFA into stack pointer column.
8297         (uw_init_context_1): Set cfa_reg to stack pointer column.
8298
8299 2003-05-03  Richard Henderson  <rth@redhat.com>
8300
8301         * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
8302         return bool.
8303         (toc_relative_expr_p): Likewise.
8304         (SPE_CONST_OFFSET_OK): Move from rs6000.h.
8305         (legitimate_constant_pool_address_p): Move from rs6000.h, change
8306         into a function, downcase all users.
8307         (legitimate_small_data_p): Likewise.
8308         (legitimate_offset_address_p): Likewise.
8309         (legitimate_indexed_address_p): Likewise.
8310         (legitimate_indirect_address_p): Likewise.
8311         (legitimate_lo_sum_address_p): Likewise.
8312         (rs6000_mode_dependent_address): Likewise.
8313         * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
8314         (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
8315         LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
8316         LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
8317         LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
8318         (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
8319         (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
8320         * config/rs6000/rs6000-protos.h: Update.
8321
8322 2003-05-03  Geoffrey Keating  <geoffk@apple.com>
8323
8324         * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
8325         (REVERSE_CONDITION): Define.
8326
8327         * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
8328         to branch_positive_comparison_operator.
8329         (ccr_bit): Check that sCOND conditions are actually a positive bit.
8330         (print_operand): Remove %D substitution.
8331         (rs6000_emit_sCOND): Generate complement operation to ensure that
8332         sCOND input is a positive bit.
8333         * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
8334         same order as bCOND, and add the missing ones.  Remove the %D
8335         substitutions from the scc patterns.
8336
8337         * simplify-rtx.c (simplify_relational_operation): Add case for
8338         ! (fabs(x) < 0.0).
8339
8340 2003-05-03  Bruce Korb  <bkorb@gnu.org>
8341
8342         * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
8343         in fixincl.x
8344         * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
8345
8346 2003-05-03  Aldy Hernandez  <aldyh@redhat.com>
8347
8348         * config/rs6000/spe.h: Remove unecessary casts.  Misc cleanups.
8349
8350 2003-05-03  Zack Weinberg  <zack@codesourcery.com>
8351
8352         PR c/10604
8353         * c-common.c (warn_sign_compare): Initialize to -1.
8354         * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
8355         (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
8356         for C++ only.
8357         (c_common_post_options): Set warn_sign_compare from extra_warnings
8358         if it's still -1 at this point.
8359
8360         * toplev.c (maybe_warn_unused_parameter): New static variable.
8361         (set_Wextra): New static function.
8362         (W_options): Remove "extra".
8363         (decode_W_option): Call set_Wextra.
8364         (independent_decode_option): Likewise.
8365         (set_Wunused): Cooperate with set_Wextra in setting
8366         warn_unused_parameter.
8367         (rest_of_compilation): No need to check extra_warnings as
8368         well as warn_uninitialized.
8369
8370         * c-typeck.c (build_binary_op, build_conditional_expr):
8371         No need to check extra_warnings as well as warn_sign_compare.
8372         (internal_build_compound_expr): No need to check extra_warnings
8373         as well as warn_unused_value.
8374         * function.c (expand_function_end): No need to check extra_warnings
8375         as well as warn_unused_parameter.
8376         * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
8377         as well as warn_unused_value.
8378
8379         * doc/invoke.texi: Clarify documentation of -Wsign-compare.
8380
8381         * Makefile.in: Disable -Werror for gengtype-lex.o.
8382
8383 2003-05-03  Olivier Hainque  <hainque@act-europe.fr>
8384
8385         * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
8386         * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
8387         * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
8388         * calls.c (emit_call_1): Likewise.
8389         (expand_call): For calls initializing constant memory, replace
8390         emission of standalone mem /u clobber with function usage entry.
8391         * expr.c (emit_block_move_via_libcall): Likewise.
8392         * cse.c (count_reg_usage, case EXPR_LIST): New case.
8393         * flow.c (propagate_one_insn): Pass entire operand of
8394         CALL_INSN_FUNCTION_USAGE to mark_used_regs.
8395         * integrate.c (try_constants): For CALL_INSNs, substitute constants
8396         within the FUNCTION_USAGE also.
8397         * loop.c (prescan_loop): Note clobbers of const mem mentioned in
8398         FUNCTION_USAGE lists.
8399         * reload1.c (replace_pseudos_in): Renamed.
8400         (reload): Use it for clobbers surviving until the end of the reload.
8401
8402 2003-05-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8403
8404         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
8405         gen_lowpart on non-integer modes.
8406
8407         * stor-layout.c (place_field): When adjusting offset_align, use
8408         desired_align, not DECL_ALIGN.
8409
8410 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
8411
8412         * c-decl.c (pending_invalid_xref_file): Remove.
8413         (pending_invalid_xref_line): Remove.
8414         (pending_invalid_xref_location): New.
8415         (lookup_label): Use location_t and input_location directly.
8416         (lookup_tag): Likewise.
8417         (pending_xref_error): Likewise.
8418         (c_expand_body_1): Likewise.
8419         * c-common.c (x_expand_start_cond): Likewise.
8420         * c-semantics.c (genrtl_for_stmt): Likewise.
8421         (find_reachable_label): Likewise.
8422         * expr.c (expand_expr): Likewise.
8423         * integrate.c (output_inline_function): Likewise.
8424         * tree-inline.c (find_alloca_call): Likewise.
8425         (find_builtin_longjmp_call): Likewise.
8426         * gcc.c (input_filename): Make static.
8427
8428 2003-05-03  Richard Sandiford  <rsandifo@redhat.com>
8429
8430         * config/mips/mips.md: Fix comment typo.
8431
8432         * config/mips/mips.c (mips_integer_op): New structure.
8433         (MIPS_MAX_INTEGER_OPS): Define.
8434         (mips_const_insns): Use mips_build_integer to determine the number
8435         of instructions needed to load a CONST_INT.
8436         (move_operand): Reject compound CONST_INTs.
8437         (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
8438         (mips_move_integer): New fn.
8439         (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
8440         (mips_legitimize_move): Only legitimize constants when moving
8441         word or subword values.
8442
8443 2003-05-02  Matt Kraai  <kraai@alumni.cmu.edu>
8444
8445         * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
8446
8447 2003-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8448
8449         * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
8450         modifying it.
8451
8452 2003-05-03  Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
8453             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8454
8455         * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
8456         Hernandez, and Kazu Hirata.  Update Richard Henderson.
8457
8458 2003-05-02  Geoffrey Keating  <geoffk@apple.com>
8459
8460         * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
8461         to tentative declaration.
8462
8463         * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
8464         (SYMBOL_FLAG_SMALL_V4): Delete.
8465         * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
8466         (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
8467         (rs6000_elf_in_small_data_p): Add extra section names.  Add
8468         comment about TREE_PUBLIC test.
8469
8470         * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
8471         expand_stmt on result of expand_unreachable_stmt.
8472
8473 2003-05-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8474
8475         * doc/contrib.texi (Contributors): Add Daniel Berlin.
8476
8477 2003-05-02  David Edelsohn  <edelsohn@gnu.org>
8478
8479         * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
8480         number of automata.
8481
8482         * config/rs6000/rs6000.c (symbol_ref_operand): Check
8483         SYMBOL_REF_FUNCTION_P on AIX.
8484         (current_file_function_operand): Same.
8485         * config/rs6000/rs6000.md (call,call_value): Force non-function
8486         symbol_ref into register on AIX.
8487
8488 2003-05-02  Alan Modra  <amodra@bigpond.net.au>
8489
8490         * calls.c (struct arg_data): Move offset, slot_offset, size and
8491         alignment_pad to struct locate_and_pad_arg_data.  Update all refs.
8492         (initialize_argument_information): Adjust call to locate_and_pad_parm.
8493         Delete alignment_pad var.  Don't calculate slot_offset here.
8494         (emit_library_call_value_1): Delete alignment_pad, offset and size
8495         vars.  Use struct locate_and_pad_arg_data instead.  Adjust refs.
8496         Adjust call to locate_and_pad_parm.  Don't tweak arg size for
8497         partial in-regs here.  Formatting fixes.
8498         * expr.h (struct locate_and_pad_arg_data): New struct.
8499         (locate_and_pad_parm): Adjust declaration.
8500         * function.c (assign_parms): Localize vars.  Use "locate" instead of
8501         other arg location vars.  Don't invoke FUNCTION_ARG or
8502         FUNCTION_INCOMING_ARG unless pretend_named is different from
8503         named_arg.  Heed MUST_PASS_IN_STACK and set up "partial" before
8504         calling locate_and_pad_parm.  Adjust locate_and_pad_parm call.
8505         Use slot_offset for stack home of reg parms.  Correct test for
8506         parm passed in memory.  Formatting fixes.
8507         (locate_and_pad_parm): Add "partial" to params.  Replace offset_ptr
8508         arg_size_ptr and alignment pad with "locate".  Set slot_offset here.
8509         Correct initial_offset_ptr handling.  Localize vars.  Always pad
8510         locate->offset even when in_regs.
8511
8512 2003-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8513
8514         * Makefile.in (TREE_H): Replace location.h with input.h.
8515         (GTFILES) Remove location.h
8516         (gt-lists.h): Replace gt-location.h with gt-input.h
8517         * input.h (input_filename, input_line): Remove variables.
8518         (location_s, location_t): Move from location.h.
8519         (input_location): New.
8520         (input_filename, input_line): New #defines.
8521         * location.h: Remove.
8522         * tree.h: Replace location.h with input.h.
8523         (input_filename, input_line): Remove.
8524         * diagnostic.h: Replace location.h with input.h.
8525         * gcc.h (input_filename, input_filename_length): Remove declarations.
8526         * toplev.c (input_filename, input_line): Remove.
8527         (input_location): Define.
8528         (push_srcloc, pop_srcloc): Adjust.
8529         * diagnostic.c (diagnostic_report_current_module): Adjust.
8530
8531 2003-05-02  Nick Clifton  <nickc@redhat.com>
8532
8533         * configure.in: Add xstormy16 to list of targets that has a nop
8534         instruction and hence which can be tested to see if the
8535         assembler supports the --gdwarf2 switch.
8536         * configure: Regenerate.
8537
8538 2003-05-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
8539
8540         PR target/8257
8541         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
8542         alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
8543         Avoid undefined shifts by making the shift operand unsigned.
8544
8545 2003-05-01  DJ Delorie  <dj@redhat.com>
8546
8547         * reload.c (find_reloads): Also check that all of a multi-reg
8548         value is in the class.
8549
8550 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
8551
8552         * scan.h (lineno): Revert the rename here.
8553
8554 2003-05-01  Stan Shebs  <shebs@apple.com>
8555
8556         * config/darwin.c (darwin_encode_section_info): Call
8557         default_encode_section_info.
8558
8559 2003-05-01  David Edelsohn  <edelsohn@gnu.org>
8560
8561         * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
8562         (movsi_internal1): Use new mfjmpr attribute.
8563         (movhi_internal): Same.
8564         (movqi_internal): Same.
8565         (movcc_internal1): Same.
8566         (movdi_internal64): Same.
8567         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
8568         power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
8569         * config/rs6000/40x.md: Add fpu_405.
8570         * config/rs6000/power4.md: Merge power4lsu and power4disp automata
8571         into power4misc automata.  Remove extraneous parentheses.
8572         * config/rs6000/440.md: New file.
8573         * config/rs6000/rs6000.c (processor_target_table): Add 440,
8574         440fp.  Rename 405f to 405fp.
8575         (function_arg_padding): Correct formatting.
8576         (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
8577
8578 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
8579
8580         * input.h (lineno): Rename to ...
8581         (input_line): ... here.
8582         * tree.h (lineno): Rename to ...
8583         (input_line): ... here.
8584         * scan.h (lineno): Rename to ...
8585         (input_line): ... here.
8586         * toplev.c (lineno): Rename to ...
8587         (input_line): ... here.
8588         (push_srcloc, pop_srcloc):  Rename lineno to input_line.
8589         * c-common.c (c_expand_start_cond, fname_decl): Likewise.
8590         * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
8591         store_parm_decls, c_expand_body_1): Likewise.
8592         * c-errors.c (pedwarn_c99): Likewise.
8593         * c-format.c (status_warning): Likewise.
8594         * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
8595         * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
8596         * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
8597         * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
8598         gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
8599         genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
8600         genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
8601         build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
8602         prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
8603         * coverage.c (create_coverage): Likewise.
8604         * diagnostic.c (pedwarn, sorry, error, fatal_error,
8605         internal_error, warning, diagnostic_report_current_module,
8606         inform): Likewise.
8607         * expr.c (expand_expr): Likewise.
8608         * integrate.c (expand_inline_function,
8609         output_inline_function): Likewise.
8610         * rtl-error.c (file_and_line_for_asm): Likewise.
8611         * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
8612         walk_tree): Likewise.
8613         * tree.c (make_node): Likewise.
8614         * ada, cp, f, java, objc, treelang: Likewise.
8615         * objc/objc-act.c (objc_init): Rename lineno to input_line.
8616         (build_module_descriptor, build_selector_translation_table,
8617         build_protocol_template, build_method_prototype_list_template,
8618         build_category_template, build_selector_table,
8619         build_class_template, build_super_template, build_ivar_template,
8620         build_ivar_list_template, build_method_list_template,
8621         build_method_template, add_instance_variable): Likewise.
8622
8623         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
8624         name from input_filename.
8625
8626 2003-04-30  Eric Christopher  <echristo@redhat.com>
8627             Richard Sandiford <rsandifo@redhat.com>
8628
8629         * configure: Regenerate from patches below.
8630         * combine.c (gen_lowpart_for_combine): Fix comment and add tests
8631         for all symbolic operands.
8632         * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
8633         to function.
8634         * config/mips/linux.h: Fix typo.
8635         * Merge from mips-3_4-rewrite branch:
8636
8637         2003-04-07  Richard Sandiford  <rsandifo@redhat.com>
8638
8639                 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
8640                 handling local labels when TARGET_ABICALLS.
8641
8642         2003-04-04  Richard Sandiford  <rsandifo@redhat.com>
8643
8644                 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
8645                 integer argument.
8646                 (mips_expand_call): Likewise.
8647                 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
8648                 (FIXED_REGISTERS): Clear $31 entry.
8649                 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
8650                 (EPILOGUE_USES): Define.
8651                 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
8652                 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
8653                 (override_options): Add a 'j' register class.
8654                 (mips_expand_call): Handle sibcalls
8655                 (mips_expand_epilogue): Handle epilogues for sibcalls.
8656                 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
8657                 (sibcall_epilogue): New pattern.
8658                 (call, call_value): Adjust calls to mips_expand_call.
8659                 (sibcall, sibcall_value): New expanders.
8660                 (sibcall_internal, sibcall_value_internal): New patterns.
8661                 (sibcall_value_multiple_internal): New pattern.
8662
8663         2003-03-25  Richard Sandiford  <rsandifo@redhat.com>
8664
8665                 * config/mips/mips.md (extended_mips16): New attribute.
8666                 (define_attr length): Default to 8 if extended_mips16 == yes.
8667                 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
8668                 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
8669                 (call_internal): Set extended_mips16 to yes for direct jumps.
8670                 Remove redundant mode attribute.
8671                 (call_value_internal, call_value_multiple_internal): Likewise.
8672                 (call_split): Remove redundant mode attribute.
8673                 (call_value_split, call_value_multiple_split): Likewise.
8674
8675                 * config/mips/mips.c (mips_symbol_insns): Rework.  Fix handling
8676                 of unaligned offsets.
8677
8678                 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
8679                 of SYMBOL_GENERAL.
8680
8681         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
8682
8683                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
8684                 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
8685                 for mips16 code.
8686
8687         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
8688
8689                 * config/mips/mips.h (ADDRESS_COST): Define.
8690
8691         2003-03-20  Richard Sandiford  <rsandifo@redhat.com>
8692
8693                 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
8694                 'R' to 'U'.  Make 'R' mean a single-instruction memory reference.
8695                 * config/mips/mips.md: Replace 'R' constraints with 'U'.
8696
8697         2003-03-18  Richard Sandiford  <rsandifo@redhat.com>
8698
8699                 * config/mips/mips.md (truncdisi2): Add commentary.  Use sll instead
8700                 of a two-instruction sequence.  Add register->memory alternative.
8701                 (truncdihi2, truncdiqi2): Likewise.
8702                 Rework shift/truncate instructions so that they only handle right
8703                 shifts of 32 (or more, in the case of arithmetic shifts).
8704                 Add patterns for truncate/sign-extend.
8705
8706         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
8707
8708                 * configure.in (mips*-*-*): Check for explicit relocation support.
8709                 * configure: Regenerate.
8710
8711         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
8712
8713                 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
8714                 and -mno-explicit-relocs.
8715                 (MASK_EXPLICIT_RELOCS): Define.
8716                 (TARGET_EXPLICIT_RELOCS): Use it.
8717                 (mips_split_addresses): Remove declaration.
8718                 * config/mips/mips.c (override_options): Update comment for
8719                 mips_split_addresses.  Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
8720
8721         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
8722
8723                 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
8724                 a CONST as identity.  Check the return value of gen_lowpart_common.
8725
8726         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
8727
8728                 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
8729                 references for TARGET_EXPLICIT_RELOCS.
8730                 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
8731                 !TARGET_MIPS16.
8732
8733         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
8734
8735                 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
8736                 (addsi3): Remove redundant constraints.
8737                 (addsi3_internal): Use separate register & constant alternatives.
8738                 Use a 'Q' constraint and "addiu" insn for the latter.
8739                 (adddi3_internal_3, addsi3_internal_2): Likewise.
8740
8741         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
8742
8743                 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
8744                 (mips_expand_unaligned_store): Declare.
8745                 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
8746                 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
8747                 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
8748                 (UNSPEC_ULD, UNSPEC_USD): Remove.
8749                 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
8750                 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
8751                 (extv, extzv): Use mips_expand_unaligned_load.
8752                 (insv): Use mips_expand_unaligned_store.  Use a reg_or_0_operand
8753                 predicate for operand 3.
8754                 (movsi_ulw, movsi_usw): Replace with...
8755                 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
8756                 (movdi_uld, movdi_usd): Likewise replace with...
8757                 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
8758
8759         2003-02-26  Richard Sandiford  <rsandifo@redhat.com>
8760
8761                 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
8762                 * config/mips/mips.h (LEA_REGS): New register class.
8763                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
8764                 (GR_REG_CLASS_P): Include LEA_REGS.
8765                 (DANGEROUS_FOR_LA25_P): New macro.
8766                 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
8767                 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
8768                 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
8769                 entries to LEA_REGS.
8770                 (mips_global_pic_constant_p): New function.
8771                 (override_options): Add 'e' register constraint.
8772                 (mips_secondary_reload_class): Return LEA_REGS when reloading
8773                 a dangerous constant into a class containing $25.
8774                 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
8775                 (movsi_internal): Likewise.
8776
8777         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
8778
8779                 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
8780                 * config/mips/mips.md (call_split): New insn.
8781                 (call_value_split, call_value_multiple_split): New insns.
8782                 (call_internal): Turn into a define_insn_and_split.  Split the
8783                 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
8784                 (call_value_internal, call_value_multiple_internal): Likewise.
8785
8786         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
8787
8788                 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
8789                 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
8790                 (mips_encode_section_info): Don't take symbol visibility into
8791                 account if TARGET_ABICALLS.  Add more commentary.
8792                 * config/mips/mips.md: Add commentary above reloc constants.
8793
8794         2003-02-12  Richard Sandiford  <rsandifo@redhat.com>
8795
8796                 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
8797                 from mips_legitimize_move.  Legitimize constant pool references.
8798                 (mips_legitimize_move): Call mips_legitimize_const_move.  Attach
8799                 a REG_EQUAL note to the last instruction.
8800
8801         2003-02-11  Richard Sandiford  <rsandifo@redhat.com>
8802
8803                 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
8804                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
8805                 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
8806                 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
8807                 * config/mips/mips.md (UNSPEC_HIGH): New constant.
8808                 (UNSPEC_RELOC_GPREL16): Rename to...
8809                 (RELOC_GPREL16): ...this.
8810                 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
8811                 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
8812                 (macro_calls): New attribute.
8813                 (length): Use it to set the default length of calls.  Don't allow
8814                 calls to have delay slots if macro_calls is "yes".
8815                 (luisi, luidi): New patterns.
8816                 (lowsi, lowdi): Use '%R' to print the relocation.
8817                 (lowdi_extend): Remove.
8818                 (loadgp): Remove mode from operand 0.  Use '%0' instead of '%a0'.
8819                 (call_internal): Merge alternatives.  Always use "jal".
8820                 (call_value_internal, call_value_multiple_internal): Likewise.
8821                 (reloc_gprel16): Remove.
8822                 * config/mips/mips.c (mips_got_alias_set): New variable.
8823                 (mips_classify_constant): Handle the new relocation constants.
8824                 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
8825                 (mips_symbolic_address_p): Return false if generating explicit relocs.
8826                 Otherwise allow local PIC symbols to have an offset.
8827                 (mips_splittable_symbol_p): New function.
8828                 (mips_classify_address): Use it to check whether a LO_SUM is valid.
8829                 (mips_const_insns): Always accept HIGH.
8830                 (call_insn_operand): Don't accept global symbols if using explicit
8831                 relocs.
8832                 (move_operand): Don't accept HIGH when generating PIC.
8833                 (mips_reloc, mips_lui_reloc): New functions.
8834                 (mips_force_temporary): Remove MODE argument.  Expect VALUE to
8835                 be a valid right-hand-side for a SET pattern.
8836                 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
8837                 (mips_emit_high): New function.
8838                 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
8839                 case.  Use mips_splittable_symbol_p to check whether a LO_SUM
8840                 address should be used.  Use mips_emit_high to generate the
8841                 high part of such an address.  Adjust the global symbol + offset
8842                 case to match the change to mips_force_temprorary.
8843                 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
8844                 If generating explicit-reloc PIC, load the address of global
8845                 symbols from the GOT.  Use mips_emit_high to emit the high part
8846                 of an address.
8847                 (mips_simplify_dwarf_addr): New function.
8848                 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
8849                 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
8850                 (mips_expand_call): Load the addresses of global functions using
8851                 %call* relocs if generating explicit-reloc PIC.  Don't generate
8852                 an exception_receiver pattern.
8853                 (override_options): Initialize mips_got_alias_set.
8854                 (print_relocation): Remove in favor of...
8855                 (mips_reloc_string): ...this new function.
8856                 (print_operand): Handle '%R'.  Use mips_reloc_string.
8857                 (print_operand_address): Use print_operand to print the symbolic
8858                 part of a LO_SUM address.
8859                 (mips_output_function_prologue): Use .cprestore, reverting last patch.
8860                 (mips_encode_section_info): Factor out DECL_RTL accesses.  Reverse
8861                 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
8862                 for local symbols.
8863
8864         2003-02-02  Eric Christopher  <echristo@redhat.com>
8865
8866                 * config/mips/mips.c (mips_sign_extend): Remove.
8867                 * config/mips/mips-protos.h: Ditto.
8868                 * config/mips/mips.md (movdi_internal2_extend): Remove.
8869                 (extendsidi2): Fix mode of convert_memory_address.
8870
8871         2003-01-24  Eric Christopher  <echristo@redhat.com>
8872
8873                 * config/mips/mips.md: Rewrite zero_extend* and extend*
8874                 patterns. Use explicit instructions and split after reload
8875                 for register extensions.
8876                 (ashlsi3_internal1_extend): New combiner pattern for
8877                 shift and extend combinations.
8878                 * config/mips/mips.h: Change Pmode back to ptr_mode
8879                 for performance enhancement.
8880                 * combine.c (expand_compound_operation): Make sure
8881                 that zero_extend operation is profitable.
8882
8883         2003-01-14  Richard Sandiford  <rsandifo@redhat.com>
8884
8885                 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
8886                 addresses depend on ptr_mode rather than Pmode.
8887                 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
8888                 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
8889                 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
8890                 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
8891                 * config/mips/mips.md (tablejump): Likewise.  Remove Pmode
8892                 condition for selecting cpaddsi or cpadddi: use cpadd instead.
8893                 (tablejump_internal1): Remove condition.
8894                 (tablejump_internal2): Change condition to TARGET_64BIT.
8895                 (cpaddsi): Rename to...
8896                 (cpadd): ...this.
8897                 (cpadddi): Remove.
8898
8899         2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
8900
8901                 * config/mips/mips-protos.h (mips16_constant_after_function_p,
8902                 mips_address_cost, mips_check_split, double_memory_operand,
8903                 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
8904                 pic_address_needs_scratch, symbolic_operand): Remove declarations.
8905                 (mips_legitimate_address_p): Return bool.
8906                 (mips_address_insns, mips_fetch_insns, mips_const_insns,
8907                 mips_legitimize_address, mips_legitimize_move,
8908                 mips_expand_call): Declare.
8909                 (mips_return_addr): Move outside #ifdef RTX_CODE.
8910
8911                 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
8912                 (PIC_FN_ADDR_REG): New reg_class.
8913                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
8914                 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
8915                 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
8916                 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
8917                 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
8918                 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
8919                 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
8920                 (LEGITIMATE_PIC_OPERAND): Undefine.
8921                 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
8922                 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
8923                 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
8924                 (FUNCTION_MODE): Change to SImode.
8925                 (CONST_COSTS): Use mips_const_insns to calculate the cost of
8926                 most constants.  Treat const_artih_operands specially if they
8927                 occur in a PLUS or MINUS.
8928                 (CONSTANT_POOL_COST): New macro.
8929                 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
8930                 Add LO_SUM handling.
8931                 (ADDRESS_COST): Undefine.
8932                 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
8933                 Add CONST to the list of codes for arith_operand.  Add LABEL_REF
8934                 to call_insn_operand and remove CONST_INT.
8935
8936                 * config/mips/mips.c: Include integrate.h.
8937                 (SINGLE_WORD_MODE_P): New macro.
8938                 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
8939                 (mips_constant_info, mips_address_info): New structs.
8940                 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
8941                 (mips_classify_constant, mips_classify_symbol,
8942                 mips_valid_base_register_p, mips_symbolic_address_p,
8943                 mips_classify_address, mips_symbol_insns,
8944                 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
8945                 mips_fetch_insns, mips_force_temporary, mips_add_offset,
8946                 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
8947                 mips_print_relocation): New functions.
8948                 (const_arith_operand): New operand predicate.
8949                 (arith_operand): Use it.
8950                 (mips_const_double_ok, mips16_simple_memory_operand,
8951                 simple_memory_operand, double_memory_operand, mips_check_split,
8952                 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
8953                 mips16_gp_offset_p, mips16_output_gp_offset,
8954                 mips16_constant_after_function_p, mips16_constant): Remove.
8955                 (call_insn_operand): Be more fussy about symbolic constants.
8956                 Use register_operand.
8957                 (move_operand): Use mips_symbolic_address_p to check symbolic
8958                 operands and general_operand to check the rest.
8959                 (symbolic_operand): Use mips_classify_constant.
8960                 (mips_legitimate_address_p): Use mips_classify_address.
8961                 (mips_move_1word): Combine handling of symbolic addresses.
8962                 Remove special treatment of gp-relative loads for TARGET_MIPS16.
8963                 (move_move_2words): Likewise.  Assume addresses are offsettable
8964                 if they need to refer to more than one word.  Add HIGH handling.
8965                 (mips_restore_gp): Use ptr_mode for the GP save slot.
8966                 (mips_expand_call): New function, combining the old mips.md
8967                 call and call_internal define_expands.  If the address isn't
8968                 a call_insn_operand, force it into a register.  For SVR4 PIC,
8969                 emit an exception_receiver instruction after the call.
8970                 (override_options): Only override flag_pic for TARGET_ABICALLS
8971                 if it is currently zero.  Allow mips_split_addresses when
8972                 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
8973                 Add new register class letter, 'c'.
8974                 (print_operand): Use mips_classify_constant for constant operands.
8975                 (print_operand_address): Use mips_classify_address.
8976                 (mips_output_function_prologue): Don't use .cprestore.
8977                 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
8978                 via the frame pointer if current_function_calls_eh_return.
8979                 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
8980                 to mark whether a symbol is local or global.
8981                 (build_mips16_call_stub): Expect the address of the function rather
8982                 than a MEM reference to it.  Update call generation sequences.
8983                 (mips16_optimize_gp): Remove Pmode checks.  Temporarily disable
8984                 small-data adjustments.
8985
8986                 * config/mips/mips.md: Remove 'R'/'m' memory distinction.  Use default
8987                 length for loads and stores.
8988                 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
8989                 (define_attr type): Add const and prefetch.
8990                 (define_attr length): Use mips_const_insns for const instructions.
8991                 Use mips_fetch_insns for load and store instructions.
8992                 (define_attr single_insn): New.
8993                 (define_attr can_delay): Use it.
8994                 (define_attr abicalls): Remove.
8995                 (define_delay): Use can_delay.  Always allow calls to have delay slots.
8996                 (addsi3_internal_2): Add 'Q' constraint.
8997                 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
8998                 (high): Remove.
8999                 (lowsi): Renamed from low.
9000                 (lowdi): New pattern.
9001                 (movdi, movsi): Use mips_legitimize_move.  Remove define_split.
9002                 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
9003                 (loadgp): Change operand 0 to an immediate_operand.
9004                 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
9005                 beforehand.
9006                 (cpaddsi, cpadddi): New patterns.
9007                 (tablejump_internal3, tablejump_internal4): Remove define_expands
9008                 and associated define_splits.
9009                 (call, call_value): Use mips_expand_call.
9010                 (call_internal): New, replacing all existing call_internal* insns.
9011                 (call_value_internal): Likewise call_value_internal*.
9012                 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
9013                 (untyped_call): Remove if (operands[0]) magic.
9014                 (prefetch_si_address, prefetch_si): Change type to "prefetch".
9015                 (prefetch_di_address, prefetch_di): Likewise.
9016                 (leasi, leadi): Remove.
9017                 (reloc_gprel16): New.
9018
9019                 * config/mips/5400.md (ir_vr54_hilo): Include const type.
9020                 * config/mips/5500.md (ir_vr55_hilo): Likewise.
9021                 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
9022
9023         2003-01-08  Eric Christopher  <echristo@redhat.com>
9024
9025                 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
9026                 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
9027                 configure check for libgloss.
9028                 * config/mips/elf64.h: Ditto.
9029                 * config/mips/mips.c: Remove ABI_MEABI.
9030                 * config/mips/mips.h: Ditto.
9031
9032         2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
9033
9034                 Fix merge fallout.
9035                 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
9036                 (muldi3_internal): Remove outdated comment.
9037                 (*muls_di, *umuls_di): Fix comment and 64-bitness.
9038                 (*smsac_di, *umsac_di): Likewise.  Reformat.
9039                 (umulsi3_highpart): Minor formatting tweaks.
9040                 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.  Remove
9041                 redundant scratch operand.  Minor formatting tweak.
9042                 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
9043                 (umulsi3_highpart_neg_mulhi_internal): Likewise.  Fix asm template.
9044                 (smulsi3_highpart): As for the unsigned version.
9045                 (smulsi3_highpart_internal): Likewise.
9046                 (smulsi3_highpart_mulhi_internal): Likewise.
9047                 (smulsi3_highpart_neg_mulhi_internal): Likewise.
9048                 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
9049                 (*smul_acc_di): Remove duplicated pattern.
9050                 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
9051                 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
9052                 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
9053
9054         2002-10-22  Eric Christopher  <echristo@redhat.com>
9055
9056                 * config/mips/mips-protos.h (mips_return_addr): New.
9057                 * config/mips/mips.c (mips_return_addr): New.
9058                 (movdi_operand): Remove.
9059                 (se_register_operand): Ditto.
9060                 (se_reg_or_0_operand): Ditto.
9061                 (se_uns_arith_operand): Ditto.
9062                 (se_arith_operand): Ditto.
9063                 (se_nonmemory_operand): Ditto.
9064                 (extend_operator): Ditto.
9065                 (highpart_shift_operator): Ditto.
9066                 (mips_initial_elimination_offset): Remove return address pointer
9067                 elimination.
9068                 (mips_reg_names): Remove $ra.
9069                 (mips_regno_to_class): Ditto.
9070                 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
9071                 and TARGET_64BIT.
9072                 (POINTER_BOUNDARY): Remove.
9073                 (POINTERS_EXTEND_UNSIGNED): Define to 0.
9074                 (PROMOTE_MODE): Promote to Pmode.
9075                 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
9076                 (Pmode): Define to TARGET_64BIT.
9077                 (FUNCTION_MODE): Define as Pmode.
9078                 (mips_args): Remove deleted functions.
9079                 (SIZE_TYPE): Depend on POINTER_SIZE.
9080                 (PTRDIFF_TYPE): Ditto.
9081                 (FIXED_REGISTERS): Fix extra registers.
9082                 (CALL_USED_REGISTERS): Ditto.
9083                 (CALL_REALLY_USED_REGISTERS): Ditto.
9084                 (RAP_REG_NUM): Remove.
9085                 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
9086                 (RETURN_ADDR_RTX): Define to mips_return_addr.
9087                 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
9088                 (CAN_ELIMINATE): Ditto.
9089                 * config/mips/mips.md: For DImode patterns, take into account
9090                 deletions above. Split mulsidi patterns into sign_extend and
9091                 zero_extend.
9092
9093         2002-10-16  Richard Sandiford  <rsandifo@redhat.com>
9094                     Michael Meissner  <meissner@redhat.com>
9095
9096                 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
9097                 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
9098                 mop up unnecessarly moves through LO.
9099                 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
9100                 (*macc): New pattern for ISA_HAS_MACC.  Add define_peephole2s to
9101                 change mtlo/macc sequences into mul/add sequences when a three-
9102                 address mul is available.
9103                 (*macc2): New pattern.  Add a define_peephole2 to generate it.
9104                 (*mul_sub_si): Fix contraint for operand 5.
9105                 (*muls): Use in 32-bit code as well.
9106                 (*msac): Likewise.  Use msub instead of msac in vr5500 code
9107                 if the destination is LO.  Remove duplicate define_split.
9108                 (*muls_di): Use only in 32-bit code.  Adjust rtl accordingly.
9109                 (*msac_di): Likewise.  Fix formatting.
9110                 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
9111                 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
9112                 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
9113                 (*xmulsi3_neg_highpart_mulhi): Likewise.
9114                 (*mul_acc_64bit_di): Remove.
9115                 (*mul_acc_di): Use only in 32-bit code.  Handle ISA_HAS_MACC as well.
9116
9117         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
9118
9119                 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
9120                 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
9121                 (MULTILIB_DIRNAMES): Remove long32.
9122                 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
9123                 (MULTILIB_REDUNDANT_DIRS): Remove.
9124
9125         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
9126
9127                 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
9128                 * gcc.c (driver_self_specs): New variable.
9129                 (do_self_spec): New function.
9130                 (main): Use it to process driver_self_specs.
9131
9132         2002-10-09  Richard Sandiford  <rsandifo@redhat.com>
9133
9134                 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
9135                 Remove DImode define_split for !TARGET_64BIT.
9136                 (anddi3): Remove !TARGET_64BIT support from here as well.
9137                 Change operand 2's predicate to se_uns_arith_operand.
9138                 Add constant alternatives to define_insn.
9139                 (iordi3, xordi3, *nordi3): Likewise.
9140                 (anddi3_internal1, xordi3_immed): Remove.
9141
9142         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
9143
9144                 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
9145                 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
9146                 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
9147                 * config/mips/mips.md: Apply same renaming here.
9148
9149         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
9150
9151                 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
9152                 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
9153                 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
9154                 * config/mips/mips.md (define_attr cpu): Remove r4320.
9155                 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
9156
9157         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
9158
9159                 * config/mips/mips.c (mips16_strings): New variable.
9160                 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
9161                 symbol in mips16_strings.  Free the list.
9162                 (mips_encode_section_info): Keep track of local strings.
9163
9164         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
9165
9166                 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
9167                 (sordered_df, sordered_sf): Remove.
9168                 * config/mips/mips.c (get_float_compare_codes): New fn.
9169                 (gen_int_relational, gen_conditional_move): Use it.
9170
9171         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
9172
9173                 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
9174                 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
9175                 * config/mips/mips.c (fcc_register_operand): New function.
9176                 (mips_emit_fcc_reload): New function, extracted from reload_incc.
9177                 (override_options): Allow TFmode values in float registers
9178                 if ISA_HAS_8CC.
9179                 * cnfig/mips/mips.md (reload_incc): Change destination prediate
9180                 to fcc_register_operand.  Remove misleading source constraint.
9181                 Use mips_emit_fcc_reload.
9182                 (reload_outcc): Duplicate reload_incc.
9183
9184
9185 2003-04-30  Diego Novillo  <dnovillo@redhat.com>
9186
9187         * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
9188
9189 2003-04-30  Geoffrey Keating  <geoffk@apple.com>
9190
9191         * tree-inline.c (inlinable_function_p): Back out last change, it's
9192         unnecessary.
9193
9194 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
9195
9196         * ggc-page.c (TREE_EXP_SIZE): Define.
9197         (extra_order_size_table): New entry for expr trees with
9198         two operands.
9199
9200 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
9201
9202         * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
9203         (c_expand_start_cond): Adjust.
9204         (c_expand_end_cond): Don't use warning_with_file_and_file.
9205         (shadow_warning): Likewise.
9206
9207 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
9208
9209         * tree.h (DECL_POINTER_DEPTH): Remove.
9210         (struct tree_decl): Remove pointer_depth.
9211
9212 2003-04-30  Janis Johnson  <janis187@us.ibm.com>
9213
9214         * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
9215         * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
9216         (rs6000_xcoff_encode_section_info): Remove.
9217         (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
9218         (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
9219         (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
9220         Use SYMBOL_REF_FLAGS.
9221         (rs6000_elf_encode_section_info): Call default_encode_section_info for
9222         generic flags, use SYMBOL_REF_FLAGS; code cleanups.
9223         * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
9224         (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
9225         * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
9226         (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
9227
9228 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
9229
9230         * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
9231
9232 2003-04-30  Andreas Schwab  <schwab@suse.de>
9233
9234         * doc/extend.texi (Other Builtins): Enclose multiple word data
9235         type in braces for @deftypefn.
9236
9237 2003-04-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9238
9239         * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
9240
9241         * doc/install.texi (--enable-threads): Document "gnat" option.
9242
9243 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
9244
9245         * diagnostic.h (output_formatted_scalar): Tweak.
9246         * diagnostic.c (output_long_decimal): Likewise.
9247         (output_unsigned_decimal): Likewise.
9248         (output_long_unsigned_decimal): Likewise.
9249         (output_octal): Likewise.
9250         (output_long_octal): Likewise.
9251         (output_hexadecimal): Likewise.
9252         (output_long_hexadecimal): Likewise.
9253         (output_pointer): New function.
9254         (output_format): Use it.  Recognize "%p" format specifier.
9255
9256 2003-04-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9257
9258         * function.c (purge_addressof_1): Postpone insn in fewer cases.
9259
9260 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
9261
9262         * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
9263         call abort() after running out of stack space.
9264
9265         * c-typeck.c (function_types_compatible_p): Ignore incompatible
9266         'volatile' qualifiers on a function's return type in GNU mode.
9267
9268 2003-04-29  Aldy Hernandez  <aldyh@redhat.com>
9269
9270         * expr.c (emit_group_load): Dump parallels of simd types to
9271         memory.
9272
9273 2003-04-29  Vladimir Makarov  <vmakarov@redhat.com>
9274
9275         * genautomata.c (add_vect): Check undefined value for range type
9276         too.
9277
9278 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
9279
9280         * configure.in:  More general test for cmp --ignore-initial.
9281         * configure:  Regenerate.
9282
9283 2003-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9284
9285         * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
9286         (layout_decl, place_field): Likewise.
9287         Also make minor type and whitespace changes.
9288
9289         * tree.c (save_expr): Don't fold a COMPONENT_REF.
9290
9291 2003-04-29  Olivier Hainque <hainque@act-europe.fr>
9292
9293         * calls.c (expand_call): When modes of target and valreg match, force
9294         sibcall failure when target is a MEM.
9295
9296 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
9297
9298         * tree-inline.c (inlinable_function_p): Don't support inlining
9299         functions using varargs.
9300
9301         * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
9302
9303         * dwarf2out.c (output_call_frame_info): No need to output EH
9304         unwind information if all_throwers_are_sibcalls.
9305
9306         * c-semantics.c (expand_unreachable_stmt): Return a tree.
9307         (expand_stmt): Update for change to expand_unreachable_stmt.
9308         (expand_unreachable_if_stmt): Likewise.
9309
9310         * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
9311
9312 2003-04-29  Jason Merrill  <jason@redhat.com>
9313
9314         PR middle-end/10336
9315         * jump.c (never_reached_warning): Really stop looking if we reach
9316         the beginning of the function.
9317
9318 2003-04-29  Bob Wilson  <bob.wilson@acm.org>
9319
9320         * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
9321         Remove redundant macros.
9322         (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
9323         (LOCAL_LABEL_PREFIX): Define unconditionally.
9324         (NO_DOT_IN_LABEL): Clarify comment.
9325         * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
9326         definition to "long int".
9327
9328 2003-04-29  Alexander Kabaev  <kan@FreeBSD.ORG>
9329
9330         bootstrap/10452
9331         * gengtype-yacc.y: Improve portability.
9332
9333 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
9334
9335         * config.gcc: Install obsolete target list for GCC 3.3.
9336         * doc/install.texi: Mention in specific-target instructions
9337         that certain configurations are deprecated.
9338
9339 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
9340
9341         * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
9342
9343 2003-04-29  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
9344
9345         * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
9346         * gcc.c (display_help): Likewise.
9347         * toplev.c (f_options): Likewise.
9348         * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
9349         * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
9350         * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
9351         * config/s390/s390.h (TARGET_SWITCHES): Likewise.
9352         * config/v850/v850.h (TARGET_SWITCHES): Likewise.
9353
9354 2003-04-29  J"orn Rennecke <joern.rennecke@superh.com>
9355
9356         * varasm.c (default_assemble_visibility): Use assemble_name.
9357
9358 2003-04-29  David O'Brien  <obrien@FreeBSD.org>
9359
9360         * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
9361         * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
9362         (SIZE_TYPE): New macro.
9363         * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
9364         (SET_ASM_OP): New macro.
9365         (HANDLE_SYSV_PRAGMA): New macro.
9366         (ASM_WEAKEN_LABEL): New macro.
9367
9368 2003-04-28  Mark Mitchell  <mark@codesourcery.com>
9369
9370         PR c++/10180
9371         * tree-inline.c (expand_call_inline): Call push_srcloc when
9372         encountering EXPR_WITH_FILE_LOCATION.  Honor warn_inline.
9373
9374 2003-04-28  Mike Stump  <mrs@apple.com>
9375
9376         * gdbinit.in: Update to reflect new identifier structure.
9377
9378 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
9379
9380         * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
9381         (struct tree_int_cst, struct tree_real_cst, struct tree_string,
9382         struct tree_complex, struct tree_vector): Remove RTL field.
9383         (CONSTRUCTOR_ELTS): Use elt 0.
9384         * tree.def (CONSTRUCTOR): Delete first of its two operands.
9385         * varasm.c (output_constant_def): Remove early exit if
9386         TREE_CST_RTL is set.  Don't set TREE_CST_RTL.
9387         (decode_addr_const): Don't mention TREE_CST_RTL in comment.
9388         * target.h (select_section): Don't mention TREE_CST_RTL in comment.
9389         * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
9390
9391 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
9392
9393         * c-decl.c (finish_decl): When prototype with asmspec is found
9394         for built-in, adjust built_in_decls as well as expr.c decls.
9395         * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
9396         (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
9397         * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
9398
9399 2003-04-28  Richard Henderson  <rth@redhat.com>
9400
9401         * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
9402         * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
9403         integral constant mult operand.
9404         (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
9405         (const_smulsi3_highpart_v8plus): Likewise.
9406         (const_smulsi3_highpart): Likewise.
9407         (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
9408         (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
9409         (const_umulsi3_highpart_v8plus): Likewise.
9410         (const_umulsi3_highpart): Likewise.
9411
9412 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
9413
9414         * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
9415         Define as 1.
9416
9417 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
9418
9419         * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
9420
9421 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
9422
9423         * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
9424         * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
9425         * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
9426         functions.
9427         (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
9428
9429 2003-04-28  Nick Clifton  <nickc@redhat.com>
9430
9431         * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
9432
9433 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
9434
9435         * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
9436         output_constant_def, use its result instead of TREE_CST_RTL (exp).
9437         Can assume it has the form (mem (symbol_ref ".LCxxx")).
9438         (expand_expr <COMPONENT_REF>): Can always just extract the
9439         relevant field of a CONSTRUCTOR.
9440         (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
9441         ARRAY_RANGE_REF>): Make control flow explicit.
9442         * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
9443         an INTEGER_CST.
9444
9445 2003-04-27  Kazu Hirata  <kazu@cs.umass.edu>
9446
9447         * reload1.c (reg_set_luid): Fix a comment typo.
9448
9449 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
9450
9451         * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
9452         struct deferred_string, const_str_htab): Kill.
9453         (n_deferred_strings): New static variable.
9454         (build_constant_desc): Set SYMBOL_REF_DECL of the new
9455         symbol_ref to point to the constant.
9456         (output_constant_def): When a deferred string is forced out,
9457         just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
9458         (mark_constant): Likewise.
9459         (maybe_output_constant_def_contents): When deferring a string
9460         constant, just set STRING_POOL_ADDRESS_P and increment
9461         n_deferred_strings.
9462         (mark_constant_pool): Check n_deferred_strings, not the size
9463         of const_str_htab.
9464         (init_varasm_once): No need to create const_str_htab.
9465
9466         * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
9467         SYMBOL_REF_DECL points to a constant.
9468
9469 2003-04-26  Zack Weinberg  <zack@codesourcery.com>
9470
9471         * varasm.c (output_constant_def): Split out two new static
9472         functions, build_constant_desc and maybe_output_constant_def_contents.
9473         Restructure for comprehensibility.  Don't call
9474         output_addressed_constants.  Treat defstr being non-NULL for
9475         STRING_POOL_ADDRESS_P constants as an invariant.
9476         (struct deferred_string): Remove labelno field.
9477         (output_constant_def_contents): Kill labelno argument. Call
9478         output_addressed_constants here.  Use ASM_OUTPUT_LABEL, not
9479         asm_out.internal_label.
9480         (mark_constant): Update call to output_constant_def_contents.
9481         Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
9482         constants as an invariant.
9483
9484 2003-04-26  Richard Henderson  <rth@redhat.com>
9485
9486         * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
9487         (ix86_expand_call, ix86_rtx_consts): Likewise.
9488
9489 2003-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9490
9491         * doc/md.texi (cmpstr): Document additional restrictions.
9492
9493 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
9494
9495         * flags.h (time_report): Remove.
9496         * timevar.c (timevar_enable): New.
9497         (TIMEVAR_ENABLE): Remove, use timevar_enable.
9498         (timevar_init): Rename from init_timevar.
9499         * timevar.h (timevar_init): Rename from init_timevar.
9500         * toplev.c (time_report): Make static.
9501         (do_compile): Conditionally call init_timevar first.
9502         (preprocess_options): Move some code to do_compile.
9503
9504 2003-04-26  Stephane Carrez  <stcarrez@nerim.fr>
9505
9506         * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
9507
9508 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
9509
9510         * _cpp_lex_direct: Remove pointless code.
9511
9512 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
9513
9514         * doc/extend.texi (Function Attributes): Document "near" and "far"
9515         for 68HC11 and 68HC12.
9516
9517 2003-04-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9518
9519         * expr.c (store_field): When making temporary for store, don't
9520         make it TYPE_QUAL_CONST.
9521
9522 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
9523
9524         * toplev.c (read_integral_parameter):  Use "argument" in error
9525         message to distinguish it from actual invalid options.
9526
9527 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
9528
9529         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
9530         addition of __PIC__ and __pic__ macros.
9531         * config/xtensa/xtensa.h: Clean up indentation.
9532
9533 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
9534
9535         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
9536         _GNU_SOURCE.  Add definitions of __PIC__ and __pic__.
9537         (SUBTARGET_CPP_SPEC): Define.
9538         (LIB_SPEC): Delete.
9539         * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
9540         * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
9541         * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
9542         Define.
9543         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
9544         (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
9545
9546 2003-04-25  H.J. Lu <hjl@gnu.org>
9547
9548         * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
9549         for return mode.
9550         (ia64_expand_builtin): Set rmode to SImode for
9551         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
9552         IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
9553         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
9554         for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
9555
9556 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
9557
9558         * configure.in (make_compare_target):  Test for GNU cmp and set this
9559         variable appropriately.
9560         * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
9561         compare4-lean): Rename actual targets to slowcompare*.  New compare*
9562         targets depend on names based on make_compare_target.
9563         * configure:  Regenerated.
9564
9565 2003-04-25  Richard Henderson  <rth@redhat.com>
9566
9567         * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
9568         to clobber ar.pfs and ar.unat.
9569         (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
9570         fix test for spilling ar.pfs to the stack.
9571
9572 2003-04-25  Richard Henderson  <rth@redhat.com>
9573
9574         PR opt/10315
9575         * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
9576         checks during reload; use validize_mem instead of adjust_address.
9577
9578 2003-04-26  Ben Elliston  <bje@wasabisystems.com>
9579
9580         * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
9581         return values from recog_memoized().
9582
9583 2003-04-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9584
9585         PR opt/8705
9586         * gcse.c (try_replace_reg): On a successful substitution of a constant
9587         into a single set, try to simplify the source of the set.
9588         * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
9589         constant source.
9590
9591 2003-04-24  Neil Booth  <neil@daikokuya.co.uk>
9592
9593         * cpplex.c (cpp_token_len): Tighten up.
9594         (cpp_token_as_text): Need extra byte now.
9595         * cpplib.c (glue_header_name): Need extra 2 bytes.
9596         * cppmacro.c (cpp_macro_definition): Need extra byte.
9597
9598 2003-04-24  Alexander Kabaev <kan@FreeBSD.ORG>
9599
9600         * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
9601         const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
9602         where they might be not present. Use their _sp64 equivalent
9603         instead.
9604
9605 Thu Apr 24 20:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
9606
9607         * i386.md (cvtsi2sdq): Fix typo in previous patch.
9608
9609 2003-04-24  Krister Walfridsson  <cato@df.lth.se>
9610
9611         * configure.in: Check whether mbstowcs works.
9612         * configure, config.in: Regenerate.
9613         * intl.c: Use HAVE_WORKING_MBSTOWCS.
9614
9615 2003-04-24  H.J. Lu <hjl@gnu.org>
9616
9617         * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
9618         for __sync_bool_compare_and_swap_di for int return type.
9619
9620         * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
9621         Change return type to int.
9622         (__sync_bool_compare_and_swap): Likewise.
9623
9624 Thu Apr 24 16:55:26 CEST 2003  Jan Hubicka  <jh@suse.cz>
9625
9626         * cfgbuild.c (make_edges):  Do not use next_nonnote_insn when
9627         looking for fallthru edge.
9628
9629         * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
9630         Fix.
9631         (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
9632         athlon-fvector): New.
9633         (athlon_*): Revisit to match new optimization guide.
9634         * i386.c (ix86_adjust_cost):  Fix memory operand costs on Athlon/k8
9635         * i386.md (cvt??2?? patterns): Fix modes.
9636         (fistp patterns): Set modes.
9637
9638         Accidentaly commited with my earlier reload patch:
9639         PR c/10308
9640         * reload.c (find_reloads_address_1): Reload plus at the place of
9641         index register.
9642
9643 2003-04-24  Nathan Sidwell  <nathan@codesourcery.com>
9644
9645         New GCOV_TAG_FUNCTION layout
9646         * coverage.c (struct function_list): Replace name with ident.
9647         (struct counts_entry): Likewise.
9648         (fn_ident): New.
9649         (htab_counts_entry_hash, htab_counts_entry_eq,
9650         htab_counts_entry_del): Adjust.
9651         (reads_count_file, get_coverage_counts,
9652         coverage_begin_output, coverage_end_function): Adjust.
9653         (build_fn_info_type, build_fn_info_value): Likewise.
9654         * gcov-dump.c (tag_function): Adjust.
9655         * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
9656         * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
9657         * gcov.c (struct function_info): Add ident.
9658         (read_graph_file, read_count_file): Adjust.
9659         * libgcov.c (gcov_exit): Adjust.
9660
9661 2003-04-23  Richard Henderson  <rth@redhat.com>
9662
9663         PR opt/8300
9664         * toplev.c (rest_of_compilation): Delay no_new_pseudos until
9665         after initialize_uninitialized_subregs; update reg info assuming
9666         new pseudos were created.
9667
9668 2003-04-23  Neil Booth  <neil@daikokuya.co.uk>
9669
9670         * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
9671         * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
9672         (lex_string): Take cpp_string with full spelling.
9673         (cb_ident): Update.
9674         (c_lex): Update diagnostics.
9675         * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
9676         (create_literal): New.
9677         (lex_string): Unterminated literals have type CPP_OTHER.
9678         (_cpp_lex_direct): Update calls to lex_string.  Use create_literal
9679         for CPP_OTHER.
9680         (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
9681         (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
9682         * cpplib.c (parse_include, do_line, do_linemarker,
9683         destringize_and_run): Update for token storing full spelling.
9684         * cpplib.h: Update token spelling types.
9685         * cppmacro.c (stringify_arg, check_trad_stringification):
9686         Update for token storing full spelling.
9687
9688 2003-04-23  Ulrich Weigand  <uweigand@de.ibm.com>
9689
9690         * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
9691
9692 2003-04-23  Richard Earnshaw  <rearnsha@arm.com>
9693
9694         * arm.h (TARGET_OPTIONS): Add value field.
9695
9696 2003-04-23  Mark Mitchell  <mark@codesourcery.com>
9697
9698         * doc/extend.texi: Remove duplicate 2003 copyright date.
9699
9700 2003-04-23  Nathan Sidwell  <nathan@codesourcery.com>
9701
9702         * Makefile.in (LIBGCC_DEPS): Add gcov headers.
9703         (libgcov.a): Depends on LIBGCC_DEPS.
9704         * basic-block.h (profile_info): Moved here from coverage.h. Made
9705         a pointer.
9706         * coverage.c (struct function_list): Fixed array of counter types.
9707         (struct counts_entry): Keyed by counter type, contains summary.
9708         (profile_info): Moved to profile.c.
9709         (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
9710         vars.
9711         (profiler_label): Remove.
9712         (ctr_labels): New.
9713         (set_purpose, label_for_tag, build_counter_section_fields,
9714         build_counter_section_value, build_counter_section_data_fields,
9715         build_counter_section_data_values, build_function_info_fields,
9716         build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
9717         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
9718         build_ctr_info_value, build_gcov_info): New.
9719         (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
9720         (reads_counts_file): Adjust.
9721         (get_coverage_counts): Takes counter number. Add summary
9722         parameter. Adjust.
9723         (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
9724         create counter array labels.
9725         (coverage_end_function): Adjust.
9726         (create_coverage): Adjust.
9727         (find_counters_section): Remove.
9728         * coverage.h (MAX_COUNTER_SECTIONS): Remove.
9729         (struct section_info, struct profile_info): Remove.
9730         (profile_info): Moved to basic-block.h.
9731         (coverage_counter_ref): Takes a counter number.
9732         (get_coverage_counts): Takes a counter number. Added summary
9733         parameter.
9734         (find_counters_section): Remove.
9735         * gcov-dump.c (tag_arc_counts): Rename to ...
9736         (tag_counters): ... here. Adjust.
9737         (tag_table): Move tag_counters to 3rd entry. Remove
9738         PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
9739         (dump_file): Check for counter tag values here.
9740         (tag_summary): Adjust.
9741         * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
9742         * gcov-io.h (GCOV_LOCKED): New.
9743         (GCOV_TAG_ARC_COUNTS): Rename to ...
9744         (GCOV_TAG_COUNTS_BASE): ... here.
9745         (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
9746         Remove.
9747         (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
9748         (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
9749         GCOV_TAG_IS_COUNTER): New.
9750         (struct gcov_ctr_summary): New.
9751         (struct gcov_summary): Adjust.
9752         (struct gcov_counter_section): Remove.
9753         struct gcov_counter_section_data): Remove.
9754         (struct gcov_function_info): Rename to ...
9755         (struct gcov_fn_info): ... here. Adjust.
9756         (struct gcov_ctr_info): New.
9757         (struct gcov_info): Adjust.
9758         * gcov.c (read_count_file): Adjust.
9759         (output_lines): Adjust.
9760         * libgcov.c (gcov_exit): Adjust.
9761         (__gcov_flush): Adjust.
9762         * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
9763         * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
9764         probably_never_executed_bb_p, compute_frequency_function): Adjust
9765         profile_info use.
9766         * profile.c (struct counts_entry): Remove.
9767         (profile_info): Define here.
9768         (get_exec_counts): Adjust get_coverage_counts call.
9769         (compute_branch_probablilities): Remove find_counters_section
9770         call.
9771         (gen_edge_profiler): Adjust coverage_counter_ref call.
9772         * tracer.c (tail_duplicate): Adjust profile_info use.
9773
9774 2003-04-23  Roger Sayle  <roger@eyesopen.com>
9775
9776         PR optimization/10339
9777         * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
9778         directly instead of unsafely transforming call into a memcmp.
9779         (expand_builtin_strncmp): Likewise.
9780
9781 2003-04-22  Roger Sayle  <roger@eyesopen.com>
9782
9783         * alias.c (mark_constant_function):  Check for constancy and
9784         purity even of void functions.  Update both the function decl
9785         and the cgraph RTL info with the results.
9786
9787 2003-04-22  Roger Sayle  <roger@eyesopen.com>
9788
9789         * real.c (do_add): Change to return a bool indicating that the
9790         result of the operation may be inexact due to loss of precision.
9791         (do_multiply): Likewise.
9792         (do_divide): Likewise.
9793
9794 2003-04-22  Geoffrey Keating  <geoffk@apple.com>
9795             Loren James Rittle  <ljrittle@acm.org>
9796
9797         * dwarf2out.c (fde_table_allocated): Mark with GTY.
9798         (decl_die_table_allocated): Likewise.
9799         (abbrev_die_table_allocated): Likewise.
9800         (line_info_table_allocated): Likewise.
9801         (separate_line_info_table_allocated): Likewise.
9802         (pubname_table_allocated): Likewise.
9803         (arange_table_allocated): Likewise.
9804         (ranges_table_allocated): Likewise.
9805         (decl_die_table_in_use): Unconditionalize; mark with GTY.
9806         (abbrev_die_table_in_use): Likewise.
9807         (line_info_table_in_use): Likewise.
9808         (separate_line_info_table_in_use): Likewise.
9809         (pubname_table_in_use): Likewise.
9810         (arange_table_in_use): Likewise.
9811         (ranges_table_in_use): Likewise.
9812         (have_location_lists): Likewise.
9813         (emitcount): New GTY-marked static, moved...
9814         (maybe_emit_file): ...from here.
9815         (label_num): New GTY-marked static, moved...
9816         (gen_internal_sym): ...from here.
9817
9818 2003-04-22  Richard Henderson  <rth@redhat.com>
9819
9820         PR 8866
9821         * rtl.h (MEM_NOTRAP_P): New.
9822         (MEM_COPY_ATTRIBUTES): Copy it.
9823         * rtlanal.c (may_trap_p): Check it.
9824         * expr.c (do_tablejump): Set it.
9825         * doc/rtl.texi (Flags): Document it.
9826
9827         * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
9828
9829 2003-04-22  Olivier Hainque  <hainque@act-europe.fr>
9830
9831         * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
9832         set FRP on stack adjustment for outgoing args if frame_pointer_needed.
9833
9834 2003-04-22  Vincent Celier <celier@gnat.com>
9835
9836         * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
9837         --enable-threads=gnat.
9838         * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
9839         * configure.in: Add gnat to the list of thread packages
9840         * configure: Rebuild.
9841         * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
9842
9843 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
9844
9845         * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
9846
9847 2003-04-22  Devang Patel  <dpatel@apple.com>
9848
9849         * cpptrad.c (_cpp_replacement_text_len): Add check for macro
9850         parameter count.
9851         (_cpp_copy_replacement_text): Same.
9852
9853 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
9854
9855         * c-lex.c (c_lex): Handle CPP_OTHER differently.
9856         * cppexp.c (_cpp_parse_expr): Similarly.
9857         * cpplex.c (SPELL_CHAR): Remove.
9858         (_cpp_lex_direct): Stray chars are saved as byte strings.
9859         (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
9860         handle SPELL_CHAR.
9861         (cpp_avoid_paste): Update handling of CPP_OTHER.
9862         * cpplib.h: Spell CPP_OTHER like a number.
9863         (struct cpp_token): Remove member c.
9864         * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
9865
9866 2003-04-22  David Turner <novalis@gnu.org>
9867
9868         * gbl-ctors.h: Add special license exception.
9869         * libgcc2.h: Likewise.
9870         * tsystem.h: Likewise.
9871         * gcov-io.h: Likewise.
9872
9873 2003-04-22  David Edelsohn  <edelsohn@gnu.org>
9874
9875         * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
9876         macro defaulting to original BRANCH_COST heuristic.
9877         * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
9878
9879         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
9880
9881 2003-04-22  Aldy Hernandez  <aldyh@redhat.com>
9882
9883         * config/rs6000/t-spe: Merge in t-fprules into file.
9884
9885         * config.gcc: Add t-spe to powerpc-eabispe.
9886
9887 2003-04-22  Kean Johnston  <jkj@sco.com>
9888
9889         * tlink.c (recompile_files): Add missing '=' to putenv calls
9890
9891 2003-04-22  Nathan Sidwell  <nathan@codesourcery.com>
9892
9893         * ginclude/stddef.h: Provide C++ safe offsetof.
9894
9895 2003-04-22  J"orn Rennecke <joern.rennecke@superh.com>
9896
9897         * function.c (purge_addressof_1): In (mem (addressof (reg))) case
9898         for reg notes, if there are no substitutions, just use a SUBREG.
9899
9900 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
9901
9902         * Makefile.in (calls.o): Depend on except.h.
9903         * calls.c: Include except.h.
9904         (emit_call_1): Call note_eh_region_may_contain_throw if
9905         appropriate.
9906         * except.c (eh_region): Add may_contain_throw.
9907         (expand_eh_region_end_cleanup): Do not include handler code when
9908         it cannot be reached.
9909         (note_eh_region_may_contain_throw): New function.
9910         * except.h (note_eh_region_may_contain_throw): New function.
9911
9912 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
9913
9914         * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
9915         changes.
9916
9917 2003-04-21  Aldy Hernandez  <aldyh@redhat.com>
9918
9919         * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
9920         64-bit long doubles.
9921
9922 2003-04-21  Olivier Hainque  <hainque@act-europe.fr>
9923
9924         * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
9925         a number of conversions required for type consistency and previously
9926         stripped off by STRIP_NOPS.
9927
9928         * calls.c (expand_call): Prevent sibcall optimization for calls to
9929         nested subprograms.
9930
9931         * expmed.c (extract_bit_field): Reverse operands of && condition to
9932         prevent a potential division by zero in the previously first branch.
9933         * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
9934
9935 2003-04-21  Joel Brobecker  <brobecker@gnat.com>
9936
9937         * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
9938         (subrange_type_die): Likewise.
9939         (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
9940         (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
9941
9942 2003-04-21  Nathan Sidwell  <nathan@codesourcery.com>
9943
9944         Break out coverage routines to new file.
9945         * Makefile.in (COVERAGE_H): New variable
9946         (C_OBJS): Add coverage.o
9947         (coverage.o): New target.
9948         (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
9949         dependencies.
9950         (GTFILES): Adjust.
9951         (gt-coverage.h): New target.
9952         (gt-profile.h): Remove.
9953         * profile.h: Remove. Move to ...
9954         * coverage.h: ... here. New. #include gcov-io.h.
9955         * gcov-io.h: Move function definitions to ...
9956         * gcov-io.c: ... here. New.
9957         * profile.c: Move coverage routines to coverage.c.
9958         (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
9959         end_branch_prob): Adjust.
9960         * coverage.c: New. Coverage routines from profile.c
9961         (coverage_counter_ref, coverage_init, coverage_finish,
9962         coverage_end_function, coverage_begin_output,
9963         coverage_counter_ref, get_coverage_counts): Define.
9964         * gcov-dump.c, gcov.c: #include gcov-io.c.
9965         * libgcov.c: Likewise. Adjust.
9966         * loop-init.c: Don't #include profile.h
9967         * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
9968         * rtl.h: Add coverage prototypes.
9969         * toplev.c (compile_file): Init coverage, not branch_prob.
9970         Always call coverage_finish.
9971         (rest_of_compilation): Call coverage_end_function.
9972
9973 2003-04-21  Matt Kraai  <kraai@alumni.cmu.edu>
9974
9975         * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
9976
9977 2003-04-21  Neil Booth  <neil@daikokuya.co.uk>
9978
9979         * c-ppoutput.c (cb_include): Don't take a cpp_token.
9980         * cppfiles.c: Don't undef strcmp.
9981         (find_include_file): Don't take a cpp_token.  Check for empty
9982         file names.
9983         (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
9984         (cpp_push_include): Simplify.
9985         * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
9986         * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
9987         (parse_include): Similary.  Don't check for zero-length filenames.
9988         (do_include_common, do_pragma_dependency): Update accordingly.
9989         * cpplib.h (struct cpp_callbacks): Change prototype of include.
9990
9991 2003-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9992
9993         * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
9994         details of conflict handling.
9995
9996         * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
9997         when conversion overflows.
9998
9999         * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
10000
10001         * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
10002         before clearing.
10003
10004 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
10005
10006         * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
10007         have the same form as the old RTL.
10008
10009 2003-04-21  Andreas Jaeger  <aj@suse.de>
10010
10011         * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
10012
10013 2003-04-20  Chris Lattner  <sabre@nondot.org>
10014             Zack Weinberg  <zack@codesourcery.com>
10015
10016         * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
10017         genrtl_cleanup_stmt.  Correct comment at head of
10018         genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
10019
10020         * stmt.c (struct nesting): Kill n_function_calls.
10021         (expand_start_bindings): Don't set
10022         thisblock->data.block.n_function_calls.
10023         (expand_end_bindings): Compare function_call_count against 0.
10024         (expand_cleanups): Kill DONT_DO argument; all callers passed
10025         NULL_TREE. All callers updated to match.
10026
10027 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
10028
10029         * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
10030         (defer_addressed_constants, output_deferred_addressed_constants): Kill.
10031         (output_constant_def): Remove code predicated on
10032         defer_addressed_constants_flag.
10033
10034         * output.h: Remove prototypes of deleted functions.
10035         * c-typeck.c (constructor_subconstants_deferred): Kill.
10036         (struct initializer_stack): Remove 'deferred' field.
10037         (start_init): Remove all references to the above.
10038         (finish_init): Likewise. Also remove never-executed call to
10039         output_deferred_addressed_constants.  Pull assignment to
10040         defstr out of if expression.
10041
10042 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
10043
10044         * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
10045         NOTE_NEWLINE): Remove.
10046         * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
10047         to handle new form of line note type.
10048
10049 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
10050
10051         * target.h (encode_section_info): Add new argument carrying
10052         the RTL to be modified by the hook.
10053
10054         * varasm.c (make_decl_rtl, output_constant_def): Update calls
10055         to encode_section_info.
10056         (default_encode_section_info): Take and use RTL argument,
10057         don't use TREE_CST_RTL or DECL_RTL.
10058         * output.h: Update prototype of default_encode_section_info.
10059         * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
10060         (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
10061         Update calls to encode_section_info.
10062
10063         * config/darwin.c, config/arm/arm.c, config/arm/pe.c
10064         * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
10065         * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
10066         * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
10067         * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
10068         * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
10069         Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
10070         except for PE dllimport/dllexport.  Update calls to
10071         default_encode_section_info.
10072
10073         * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
10074         Update prototypes.
10075
10076         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
10077
10078 2003-04-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10079
10080         PR/8705
10081         * pa.md (movccfp): New expander.
10082         (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
10083         Reverse fcmp conditions.
10084
10085 2003-04-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10086
10087         * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
10088         of operand 1 correctly.
10089
10090 2003-04-20  Nathan Sidwell  <nathan@codesourcery.com>
10091
10092         * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
10093         * gcov.c (output_lines): Don't be so fussy about going past EOF.
10094
10095 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
10096
10097         * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
10098         (cppcharset.o): New target.
10099         * c-lex.c (is_extended_char): Move to cppcharset.c.
10100         (utf8_extend_token): Delete.
10101         * cppcharset.c: New file.
10102         * cpphash.h (_cpp_valid_ucn): New.
10103         * cpplex.c (lex_identifier): Update prototype.
10104         (continues_identifier_p): Rename forms_identifier_p.  Handle UCN
10105         escapes.
10106         (maybe_read_ucs): Rename maybe_read_ucn.  Update to use code
10107         in cppcharset.c.
10108         (lex_number, lex_identifier, cpp_parse_escape): Update.
10109         (_cpp_lex_direct): Update to handle UCNs.
10110         (cpp_avoid_paste): Don't paste to form a UCN.
10111
10112 2003-04-19  Roger Sayle  <roger@eyesopen.com>
10113
10114         * builtins.c (expand_builtin):  Don't expand a pure or const
10115         built-in function if the result will be ignored and none of
10116         its arguments are volatile.
10117
10118 2003-04-19  Kean Johnston  <jkj@sco.com>
10119
10120         * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
10121         * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
10122         target fragment now: t-sco5; dont compile crti.o.
10123         * config/i386/sco5.h: major overhaul to remove all COFF remnants
10124         and to use elfos.h for most definitions.
10125         (BSS_SECTION_ASM_OP): set correct segment attributes.
10126         (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
10127         (DWARF2_UNWIND_INFO): Always set to 1.
10128         (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
10129         (MD_STARTFILE_PREFIX_1): Define.
10130         (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
10131         (DEFAULT_LINKER): Define if not specified to configure.
10132         (CTORS_SECTION_ASM_OP): Remove COFF crud.
10133         (DTORS_SECTION_ASM_OP): Remove COFF crud.
10134         (WINT_TYPE): Define.
10135         (SDB_DEBUGGING_INFO): Remove.
10136         (EXTRA_SECTIONS): Likewise.
10137         (EXTRA_SECTION_FUNCTIONS): Likewise.
10138         (CTOR_LIST_BEGIN): Likewise.
10139         (CTOR_LIST_END): Likewise.
10140         (INIT_SECTION_FUNCTION): Likewise.
10141         (FINI_SECTION_FUNCTION): Likewise.
10142         (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
10143         (LOCAL_LABEL_PREFIX): Likewise.
10144         (NON_SAVING_SETJMP): Likewise.
10145         (RETURN_POPS_ARGS): Likewise.
10146         (ASM_OUTPUT_SKIP): Likewise.
10147         (TARGET_ASM_NAMED_SECTION): Likewise.
10148         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
10149         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
10150         (ASM_OUTPUT_IDENT): Likewise.
10151         (ASM_OUTPUT_CASE_LABEL): Likewise.
10152         (ASM_OUTPUT_ASCII): Likewise.
10153         (ASM_OUTPUT_LIMITED_STRING): Likewise.
10154         (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
10155         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10156         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
10157         (ASM_FINISH_DECLARE_OBJECT): Likewise.
10158         (ASM_DECLARE_OBJECT_NAME): Likewise.
10159         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
10160         (ASM_DECLARE_FUNCTION_NAME): Likewise.
10161         (ASM_DECLARE_RESULT): Likewise.
10162         (ASM_WEAKEN_LABEL): Likewise.
10163         (SUPPORTS_WEAK): Likewise.
10164         (APPLY_RESULT_SIZE): Likewise.
10165         (LPREFIX): Likewise.
10166         (ALIGN_ASM_OP): Likewise.
10167         (ASCII_DATA_ASM_OP): Likewise.
10168         (IDENT_ASM_OP): Likewise.
10169         (ASM_SHORT): Likewise.
10170         (ASM_LONG): Likewise.
10171         (TYPE_ASM_OP): Likewise.
10172         (SIZE_ASM_OP): Likewise.
10173         (STRING_ASM_OP): Likewise.
10174         (SKIP_ASM_OP): Likewise.
10175         (EH_FRAME_SECTION_ASM_OP): Likewise.
10176         (READONLY_DATA_SECTION_ASM_OP): Likewise.
10177         (INIT_SECTION_ASM_OP): Likewise.
10178         (FINI_SECTION_ASM_OP): Likewise.
10179         (TEXT_SECTION_ASM_OP): Likewise.
10180         (DATA_SECTION_ASM_OP): Likewise.
10181         (TYPE_OPERANT_FORMAT): Likewise.
10182         (ASM_SPEC): Remove COFF code.
10183         (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
10184         cause -pg to emit an error; use pcrt1elf.o with -pp
10185         (ENDFILE_SPEC): Likewise.
10186         (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
10187         (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
10188         (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
10189         add -z alt_resolve to support weak symbols the way GCC wants them.
10190         (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
10191         (LIBGCC_SPEC): Dont use -lgcc in -G mode.
10192         (ASM_PREFERED_EH_DATA_FORMAT): Remove.
10193         * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
10194         (CRTSTUFF_T_CFLAGS_S): Define.
10195         (MULTILIB_OPTIONS): Likewise.
10196         (MULTILIB_DIRNAMES): Likewise.
10197         (MULTILIB_MATCHES): Likewise.
10198         (MULTILIB_EXTRA_OPTS): Likewise.
10199         (LIBGCC): Likewise.
10200         (INSTALL_LIBGCC): Likewise.
10201         (crti.o): Remove.
10202         * config/i386/t-sco5gas: Remove.
10203         * doc/install.texi: Updated for new OpenServer instructions.
10204         * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
10205
10206 2003-04-19  Kean Johnston  <jkj@sco.com>
10207
10208         * fixinc/check.tpl: Allow user to over-ride diff program.
10209         * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
10210         (sco_math): Added test for SCO math header files.
10211         (sco_regset): Added check for conflicts with ieeefp.h.
10212         (svr4_disable_opt): Removed extraneous #ifdef SVR4.
10213         * fixinc/fixincl.x: Regenerated
10214         * fixinc/tests/base/math.h: Added sco_math tests.
10215         * fixinc/tests/base/string.h: New file.
10216         * fixinc/tests/base/sys/regset.h: New file.
10217
10218 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
10219
10220         * cpphash.h (struct cpp_buffer): Remove backup_to.
10221         * cpplex.c (BACKUP, get_effective_char): Die.
10222         (_cpp_skip_block_comment): Assume '*' is location on entry.
10223         (continues_identifier_p): Respect -fno-dollars-in-identifiers.
10224         (IF_NEXT_IS): Update.
10225         (_cpp_lex_direct): Don't use backup_to; look ahead directly.
10226
10227 2003-04-19  Matt Kraai  <kraai@alumni.cmu.edu>
10228
10229         * README.Portability: Move to a new section and obsolete K+R
10230         portability issues.
10231
10232 Sat Apr 19 14:56:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
10233
10234         * rtlanal.c (subreg_offset_representable_p):  Fix call of
10235         subreg_lowpart.
10236
10237 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
10238
10239         * cpphash.h (struct cpp_reader): New member warned_dollar.
10240         * cpplex.c (continues_identifier_p): New function.
10241         (parse_identifier, parse_number, parse_string): Rename lex_identifer,
10242         lex_number and lex_string, and simplify.
10243         (parse_slow, unescaped_terminator_p): Die.
10244         (_cpp_lex_direct): Update.
10245
10246 2003-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10247
10248         * calls.c (expand_call): Provide init for old_stack_pointer_delta.
10249
10250 2003-04-19  Nathan Sidwell  <nathan@codesourcery.com>
10251
10252         * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
10253         fork behavior.
10254
10255 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
10256
10257         * cppexp.c (eval_token): Permit true and false even if pedantic.
10258
10259 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
10260
10261         * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
10262
10263 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
10264
10265         * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
10266         MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
10267         (struct include_file): Remove fefcnt, mapped members.
10268         (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
10269         (read_include_file): Don't use mmap, terminate buffers in '\r'.
10270         (purge_cache): Don't use munmap.
10271         * cpphash.h (CPP_BUF_COLUMN): Update.
10272         (lexer_state): Remove lexing_comment.
10273         (struct _cpp_line_note): New.
10274         (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
10275         next_line and need_line.  Remove col_adjust and saved_flags.
10276         (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
10277         _cpp_skip_block_comment, scan_out_logical_line): New.
10278         (_cpp_init_mbchar): Remove.
10279         * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
10280         (cpp_read_main_file): Set line to 1 earlier.
10281         (post_options): -traditional-cpp doesn't want trigraphs.
10282         * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
10283         (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
10284         _cpp_get_fresh_line): New.
10285         (handle_newline, skip_escaped_newlines, trigraph_p,
10286         continue_after_nul, _cpp_init_mbchar): Remove.
10287         (get_effective_char): Update.
10288         (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
10289         (skip_line_comment): Simplify.
10290         (skip_whitespace, parse_identifier, parse_slow, parse_number,
10291         parse_string): Update.
10292         (cpp_lex_direct): Use clean lines and process line notes.  Update.
10293         (cpp_interpret_charconst): No MULTIBYTE_CHARS.
10294         * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
10295         directly.
10296         (_cpp_handle_directive): Don't set saved_flags.
10297         (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
10298         cpp_undef, handle_assertion, cpp_push_buffer): Update.
10299         (_cpp_pop_buffer): Free notes.
10300         * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
10301         * cpppch.c (cpp_read_state): \n terminate buffer.
10302         * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
10303         (copy_comment): Use _cpp_skip_block_comment.
10304         (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
10305         Simplify.
10306         (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
10307         save_replacement_text): Update.
10308         (scan_out_logical_line): Update to use clean lines and process
10309         line notes.
10310         * fix-header.c (read_scan_file): Update.
10311
10312 2003-04-18  Douglas B Rupp  <rupp@gnat.com>
10313
10314         * unwind-dw2-fde.c (__register_frame_info_bases): Check for
10315         null begin parameter (as well as pointer to null).
10316         (__deregister_frame_info_bases): Likewise.
10317
10318 2003-04-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10319
10320         * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
10321         hard or virtual register and copy into pseudo if replacement fails.
10322
10323         * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
10324
10325         * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
10326
10327 2003-04-18  Olivier Hainque <hainque@act-europe.fr>
10328
10329         * calls.c (expand_call): Move special case for constructor calls
10330         to right place. Ensures constructor calls used to initialize
10331         arguments get a clean outgoing argument block for themselves.
10332         Move check for stack deallocation completeness until after last
10333         deallocation.  Add stack_pointer_delta to set of state
10334         variables saved and restored along with current stack_level.
10335
10336         * integrate.c (expand_inline_function): Ensure non-const actuals
10337         don't end up const in the caller's flow after conversion to possibly
10338         const formal type.
10339
10340 2003-04-18  Vincent Celier  <celier@gnat.com>
10341
10342         * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
10343         and *_DIV_EXPR as TRUNC_*_EXPR.
10344
10345 2003-04-18  Mark Mitchell  <mark@codesourcery.com>
10346
10347         * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
10348         for orphaned jump tables.
10349
10350 2003-04-18  Kazu Hirata  <kazu@cs.umass.edu>
10351
10352         * reload1.c: Revert my previous patch on 2002-04-17.
10353
10354 2003-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10355
10356         * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
10357         Add Segher Boessenkool.
10358
10359 2003-04-18  Alexander Sotirov  <sluncho@mirizma.org>
10360
10361         PR c/9177
10362         * c-decl.c (c_expand_body): Don't garbage collect the function
10363         body if we are going to dump it later.
10364
10365 2003-04-18  Richard Henderson  <rth@redhat.com>
10366
10367         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
10368         (alpha_end_function): Don't set them.
10369         (decl_in_text_section): Remove.
10370         (alpha_encode_section_info): Remove.
10371         (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
10372         (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
10373         sections, rather than decl_in_text_section results.
10374
10375 2003-04-18  Roger Sayle  <roger@eyesopen.com>
10376
10377         * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
10378         and SIGN_EXTRACT.
10379
10380 2003-04-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
10381
10382         PR optimization/7675
10383         * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
10384         on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
10385         nested functions if they refer to declarations from parent functions.
10386         * stmt.c (expand_decl): Don't put automatic variables in registers
10387         if the DECL_NONLOCAL flag is set.
10388
10389 2003-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
10390
10391         * gcse.c (compute_ld_motion_mems): For MEM destinations, only
10392         consider those to be movable where the source matches
10393         want_to_gcse_p.
10394         (update_ld_motion_stores): In comment, refer to
10395         compute_ld_motion_mems for validity of replacement.
10396
10397 Fri Apr 18 01:28:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
10398
10399         * gcov-dump.c (tag_summary): Remove max_sum
10400         * gcov-io.h (gcov_summary, gcov_write_summary,
10401         gcov_read_summary): Kill max_sum.
10402         * libgcov.c (gcov_exit): Do one pass over the data.  Make error
10403         message more verbose.
10404
10405         * emit-rtl.c (subreg_hard_regno):  Check that register is
10406         representable.
10407
10408         * reload.c (reload_inner_reg_of_subreg):  When register is not
10409         representable, reload the whole thing.
10410         (find_reloads): Likewsie.
10411         * rtlanal.c (subreg_representable_p):  New function.
10412
10413         * profile.c (compute_branch_probabilities):  Cleanup sanity checking;
10414         allow negative probabilities for edges from the call to exit.
10415         (branch_prob): Do not add fake edges for functions that may return
10416         twice.
10417
10418 2003-04-17  DJ Delorie  <dj@redhat.com>
10419
10420         * toplev.c (target_options): Add value field.
10421         (set_target_switch): Handle target options with values.
10422         * doc/tm.texi: Document how fixed vs variable target
10423         options work.
10424         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10425         config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
10426         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10427         config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
10428         config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10429         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10430         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
10431         config/rs6000/rs6000.h, config/rs6000/sysv4.h,
10432         config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
10433         Add value initializer to target options.
10434
10435 2003-04-07  Loren James Rittle  <ljrittle@acm.org>
10436
10437         * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
10438
10439 2003-04-17  Kazu Hirata  <kazu@cs.umass.edu>
10440
10441         * reload1.c (move2add_last_cc0): New.
10442         (reload_cse_move2add): Detect implicit sets.
10443         (move2add_note_store): Notice a store into cc0.
10444
10445 2003-04-17  Roger Sayle  <roger@eyesopen.com>
10446
10447         PR c/10375
10448         * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
10449         function attributes.
10450
10451 2003-04-17  Janis Johnson  <janis187@us.ibm.com>
10452
10453         * doc/sourcebuild.texi (Test Suites): Document support for testing
10454         binary compatibility (moved from testsuite/README.compat).
10455
10456 2003-04-17  Richard Henderson  <rth@redhat.com>
10457
10458         * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
10459
10460 2003-04-17  Simon Law  <sfllaw@engmail.uwaterloo.ca>
10461
10462         * doc/include/gpl.texi: Fix double-spacing after "MA" to match
10463         the one provided by the FSF.
10464
10465 2003-04-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10466
10467         * doc/install.texi (Binaries): Update URL and list of platforms
10468         provided by ftp.thewrittenword.com.
10469
10470 2003-04-17  Richard Henderson  <rth@redhat.com>
10471
10472         * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
10473         (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
10474         * config/xtensa/xtensa.md (call, call_value): Likewise.
10475
10476 2003-04-17  Richard Henderson  <rth@redhat.com>
10477
10478         * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
10479         (print_operand_address): Likewise.
10480         (ep_memory_operand): Likewise.
10481         (special_symbolref_operand): Likewise.
10482         (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
10483         (v850_encode_section_info): Call default_encode_section_info.
10484         (v850_strip_name_encoding): Remove.
10485         * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
10486         (ASM_OUTPUT_LABELREF): Remove.
10487         (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
10488         (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
10489         (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
10490         (ENCODED_NAME_P): Remove.
10491         (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
10492         (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
10493         (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
10494
10495 2003-04-17  Richard Henderson  <rth@redhat.com>
10496
10497         * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
10498         * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
10499         SYMBOL_REF_FUNCTION_P.
10500
10501 2003-04-17  Richard Henderson  <rth@redhat.com>
10502
10503         * config/sparc/sparc.c (sparc_encode_section_info): Remove.
10504         (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
10505         (text_segment_operand): Likewise.
10506
10507 2003-04-17  Richard Henderson  <rth@redhat.com>
10508
10509         * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
10510         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10511         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
10512         (sh_encode_section_info): Remove.
10513         (sh_strip_name_encoding): Remove.
10514         * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
10515         (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
10516         (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
10517         (ASM_OUTPUT_LABELREF): Remove.
10518         (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
10519         * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
10520
10521 2003-04-17  Richard Henderson  <rth@redhat.com>
10522
10523         * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
10524         (tls_model_chars): Remove.
10525         (larl_operand): Use SYMBOL_REF_FLAGS.
10526         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10527         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
10528         (s390_output_mi_thunk): Likewise.
10529         (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
10530         (s390_function_profiler): Likewise.
10531         (s390_encode_section_info): Use default_encode_section_info
10532         and SYMBOL_FLAG_ALIGN1.
10533         (s390_strip_name_encoding): Remove.
10534         * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
10535         * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
10536         (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
10537
10538 2003-04-17  Richard Henderson  <rth@redhat.com>
10539
10540         * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
10541         (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
10542         (print_operand_address): Likewise.
10543
10544         * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
10545         * config/ns32k/ns32k.c (expand_block_move): Don't check
10546         flag_unroll_loops.
10547
10548 2003-04-17  Richard Henderson  <rth@redhat.com>
10549
10550         * config/mcore/mcore.c (mcore_encode_section_info): Don't set
10551         SYMBOL_REF_FLAG.
10552
10553 2003-04-17  Richard Henderson  <rth@redhat.com>
10554
10555         * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
10556
10557         * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
10558         (SYMBOL_REF_MODEL): New.
10559         (LIT_NAME_P): Move from m32r.h.
10560         (m32r_select_section): Remove.
10561         (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
10562         (m32r_strip_name_encoding): Remove.
10563         (m32r_in_small_data_p): New.
10564         (small_data_operand): Use SYMBOL_REF_SMALL_P.
10565         (addr24_operand): Use SYMBOL_REF_MODEL.
10566         (call26_operand): Likewise.
10567         (addr32_operand): Tidy.
10568         (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
10569         * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
10570         (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
10571         (READONLY_DATA_SECTION_ASM_OP): Remove.
10572         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
10573         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
10574         (TARGET_ASM_SELECT_SECTION): Remove.
10575         (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
10576         (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
10577         (LARGE_NAME_P, ENCODED_NAME_P): Remove.
10578         (ASM_OUTPUT_LABELREF): Remove.
10579
10580 2003-04-17  Richard Henderson  <rth@redhat.com>
10581
10582         * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
10583         (encode_section_info): Remove.
10584         * config/ip2k/ip2k-protos.h: Update.
10585
10586 2003-04-17  Richard Henderson  <rth@redhat.com>
10587
10588         * varasm.c (default_encode_section_info): Don't set
10589         SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
10590         * config/i370/i370.c (i370_encode_section_info): Remove.
10591         * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
10592         (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
10593         * config/i370/i370.md (movsi): Likewise.
10594
10595         * config/i370/t-i370: Add missing backslash.
10596
10597 2003-04-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
10598
10599         * doc/invoke.texi (inline-limit): Fix pasto.
10600
10601 2003-04-17  Richard Henderson  <rth@redhat.com>
10602
10603         * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
10604         (small_call_insn_operand): Use it.
10605         (SYMBOL_FLAG_EIGHTBIT_DATA): New.
10606         (h8300_eightbit_constant_address_p): Use it.
10607         (SYMBOL_FLAG_TINY_DATA): New.
10608         (h8300_tiny_constant_address_p): Use it.
10609         (h8300_encode_label, h8300_strip_name_encoding): Remove.
10610         (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
10611         * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
10612         (ASM_OUTPUT_LABELREF): Remove.
10613
10614 2003-04-16  Richard Henderson  <rth@redhat.com>
10615
10616         * config/frv/frv.c (symbol_ref_small_data_p): Remove.  Replace
10617         all users with SYMBOL_REF_SMALL_P.
10618         (const_small_data_p): Use SYMBOL_REF_SMALL_P.
10619         (frv_encode_section_info): Remove.
10620         (frv_strip_name_encoding): Remove.
10621         (frv_in_small_data_p): Merge tests from encode_section_info.
10622         (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
10623         * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
10624         (SDATA_NAME_P): Remove.
10625         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
10626         (ASM_OUTPUT_LABELREF): Remove.
10627         (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
10628
10629         * config/frv/frv.c (frv_asm_out_constructor): New.
10630         (frv_asm_out_destructor): New.
10631         * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
10632         (DTORS_SECTION_ASM_OP): New.
10633         (ASM_OUTPUT_CONSTRUCTOR): Remove.
10634         (ASM_OUTPUT_DESTRUCTOR): Remove.
10635
10636 2003-04-16  Richard Henderson  <rth@redhat.com>
10637
10638         * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
10639         SYMBOL_REF_LOCAL_P; abort if not pic.
10640         (cris_encode_section_info): Remove.
10641
10642 2003-04-16  Richard Henderson  <rth@redhat.com>
10643
10644         * config/c4x/c4x.c (c4x_encode_section_info): Remove.
10645         (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
10646
10647         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
10648         flag_inline_trees.
10649
10650 2003-04-16  Richard Henderson  <rth@redhat.com>
10651
10652         * config/avr/avr.c (avr_encode_section_info): Remove.
10653         (avr_insert_attributes): New.
10654         (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
10655         (avr_assemble_integer): Likewise.
10656
10657 2003-04-16  Richard Henderson  <rth@redhat.com>
10658
10659         * arc.c (arc_encode_section_info): Remove.
10660         (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
10661         (arc_print_operand, arc_print_operand_address): Likewise.
10662         * arc.h (EXTRA_CONSTRAINT): Likewise.
10663
10664 2003-04-16  Roger Sayle  <roger@eyesopen.com>
10665
10666         * c-semantics.c (find_reachable_label): New function to find a
10667         potentially reachable label in an expression.
10668         (expand_unreachable_if_stmt): Similar to expand_if_stmt but
10669         assumes the start of the IF_STMT is unreachable (dead) code.
10670         (expand_unreachable_stmt): Similar to expand_stmt but assumes
10671         the start of the statement list is unreachable (dead) code.
10672         (genrtl_if_stmt):  If the controlling expression of the IF
10673         is constant, use expand_unreachable_stmt for the THEN or ELSE
10674         clause as appropriate.
10675         (genrtl_switch_stmt):  Use expand_unreachable_stmt to expand
10676         the body of a SWITCH statement.
10677         (expand_stmt): The code immediately following a "return",
10678         "break", "continue" or "goto" is unreachable.
10679         * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
10680
10681 2003-04-16  Richard Henderson  <rth@redhat.com>
10682
10683         * rtl.h (MEM_ALIAS_SET): Update documentation.
10684         * doc/rtl.texi (Special Accessors): New node.
10685         (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
10686
10687 2003-04-16  Alexandre Oliva  <aoliva@redhat.com>
10688
10689         * reload1.c (reload_cse_noop_set_p): Return false if mode of
10690         SET_DEST is not the same as that returned by...
10691         * cselib.h (cselib_reg_set_mode): ... new function.
10692         * cselib.c (cselib_reg_set_mode): Define it.
10693         (REG_VALUES): Document semantics of first element as set mode.
10694         (cselib_subst_to_values): Skip first element if ELT is NULL.
10695         (cselib_lookup): Likewise.  Insert past the first element.
10696         (cselib_invalidate_regno): NULLify first element.
10697         (cselib_record_set): Set first element.
10698
10699 2003-04-16  Olivier Hainque <hainque@act-europe.fr>
10700
10701         * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
10702         (save_expr): Replace loop by call to skip_simple_arithmetics_at.
10703         * tree.h: Add prototypes for the two new functions.
10704         * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
10705         updates introduced in the previous revision by call to saved_expr_p.
10706         * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
10707
10708         * expr.c (store_field): Force usage of bitfield instructions when
10709         the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
10710         (expand_expr, case BIT_FIELD_REF): likewise.
10711
10712 2003-04-16  Mark Mitchell  <mark@codesourcery.com>
10713
10714         PR middle-end/8866
10715         * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
10716         jumptables.
10717
10718 2003-04-16  Richard Henderson  <rth@redhat.com>
10719
10720         * config/ia64/ia64.c (sdata_symbolic_operand): Use
10721         SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
10722         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10723         (function_operand): Use SYMBOL_REF_FUNCTION_P.
10724         (ia64_expand_load_address): Likewise.
10725         (ia64_assemble_integer): Likewise.
10726         (ia64_encode_section_info): Remove.
10727         (ia64_strip_name_encoding): Remove.
10728         * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
10729         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
10730
10731 2003-04-16  Richard Henderson  <rth@redhat.com>
10732
10733         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
10734         (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
10735         (direct_call_operand): Use SYMBOL_FLAG_NEAR.
10736         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
10737         (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
10738         (global_symbolic_operand): Similarly.
10739         (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
10740         (tls_symbolic_operand_type): Likewise.
10741         (alpha_encode_section_info): Use default_encode_section_info.
10742         (alpha_strip_name_encoding): Remove.
10743         (get_tls_get_addr): Split out from ...
10744         (alpha_legitimize_address): ... here.
10745         (alpha_emit_xfloating_libcall): Use init_one_libfunc.
10746         (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
10747         (alpha_initialize_trampoline): Use init_one_libfunc.
10748         (alpha_setup_incoming_varargs): Mark unused parameters.
10749         (alpha_initial_elimination_offset): Likewise.
10750         (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
10751         (unicosmk_unique_section): Use default_strip_name_encoding.
10752         (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
10753
10754 2003-04-16  Aldy Hernandez  <aldyh@redhat.com>
10755
10756         * config.gcc: Add t-spe for eabispe.
10757
10758         * config/rs6000/t-spe: New.
10759
10760 2003-04-16  J"orn Rennecke <joern.rennecke@superh.com>
10761
10762         Re-apply this patch:
10763
10764         2002-05-16  Dale Johannesen  <dalej@apple.com>
10765           * combine.c (cant_combine_insn_p):  Reenable combinations
10766           involving hard regs unless CLASS_LIKELY_SPILLED_P.
10767
10768 2003-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10769
10770         PR/10271
10771         * pa-protos.h (function_arg): Remove last argument.
10772         * pa.c (function_arg): Likewise.  Use CUMULATIVE_ARGS struct instead.
10773         * pa.h (struct hppa_args): Add member incoming.
10774         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
10775         member incoming.
10776         (FUNCTION_ARG): Revise call to function_arg.
10777         (FUNCTION_INCOMING_ARG): Delete.
10778
10779 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
10780
10781         * configure.in: Unify the code which creates symlinks to a
10782         just-built as, ld, objdump, and nm with the code that detects
10783         their presence for purposes of feature tests.
10784         * configure: Regenerate.
10785
10786 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
10787
10788         * varasm.c (output_constant_def): Do not consult
10789         CONSTANT_AFTER_FUNCTION_P.  Remove all code predicated on it.
10790         (after_function_constants, output_after_function_constants): Delete.
10791         * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
10792         * config/mips/mips-protos.h, config/mips/mips.c
10793         (mips16_constant_after_function_p): Delete.
10794         * config/mips/mips.h: Delete #if-0-ed definition of
10795         CONSTANT_AFTER_FUNCTION_P.
10796         * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
10797         mention of CONSTANT_AFTER_FUNCTION_P in comment.
10798
10799 2003-04-15  Geoffrey Keating  <geoffk@apple.com>
10800
10801         * tree.c (next_decl_uid): Mark with GTY.
10802         (next_type_uid): Likewise.
10803
10804 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
10805
10806         PR target/9594:
10807         * sh.c (barrier_align): Also recognize stuff_delay_slot as
10808         an indicator that a barrier was created by branch splitting.
10809
10810 2003-04-15  Mark Mitchell  <mark@codesourcery.com>
10811
10812         * c-decl.c (implicitly_declare): Copy declarations that are going
10813         to be placed in a local scope.
10814
10815 2003-04-15  James A. Morrison  <ja2morri@uwaterloo.ca>
10816
10817         * invoke.texi (Spec Files): Wrap if-exists-else example.
10818         (MCore): Remove duplicate @itemx entries and @opindex entries.
10819
10820 2003-04-15  Ulrich Weigand  <uweigand@de.ibm.com>
10821
10822         * unwind.inc (_Unwind_Backtrace): New function.
10823         * unwind.h (_Unwind_Backtrace): Declare it.
10824         * libgcc-std.ver (_Unwind_Backtrace): Export it.
10825
10826 2003-04-14  Jason Merrill  <jason@redhat.com>
10827
10828         PR middle-end/10336, c++/10401
10829         * jump.c (never_reached_warning): Also stop looking if we reach the
10830         beginning of the function.
10831
10832 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10833
10834         PR target/10338
10835         PR bootstrap/10198
10836         PR bootstrap/10140
10837         * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
10838
10839 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
10840
10841         * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
10842
10843 2003-04-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10844
10845         * optabs.c (expand_binop): In multi-word add cases, ensure
10846         XTARGET is copied to TARGET if they are different.
10847
10848 2003-04-15  Olivier Hainque <hainque@act-europe.fr>
10849
10850         * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
10851         to region, possible after integration of function with unreachable
10852         regions that were optimized away.
10853
10854 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
10855
10856         * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
10857         instead of TOC_REGISTER in epilogue in
10858         current_function_calls_eh_return functions.
10859
10860 2003-04-14  Mark Mitchell  <mark@codesourcery.com>
10861
10862         * doc/extend.texi (Empty Structures): Correct description of G++'s
10863         handling of these structures.
10864
10865         * c-decl.c (grokdeclarator): Reject extern redeclarations of
10866         static variables.
10867
10868 2003-04-14  Janis Johnson  <janis287@us.ibm.com>
10869
10870         * config/rs6000/rs6000.md (define_constants): Define constants for
10871         all UNSPEC usage, including new values for TLS support.
10872         (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
10873         load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
10874         load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
10875         macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
10876         stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
10877         eh_set_lr_di): Use them.
10878         * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
10879         rs6000_emit_epilogue) Use them.
10880
10881         * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
10882
10883 2003-04-14  Neil Booth  <neil@daikokuya.co.uk>
10884
10885         * Makefile.in (c-opts.o): Use custom action.
10886
10887 2003-04-14  Douglas B Rupp  <rupp@gnat.com>
10888
10889         * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
10890
10891 2003-04-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10892
10893         * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
10894         handle "superflat arrays" in Ada.
10895
10896         * integrate.c (expand_inline_function): Don't inline if would
10897         lose /u on a BLKmode TARGET.
10898
10899 2003-04-14  Joel Brobecker  <brobecker@gnat.com>
10900
10901         * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
10902         extracted from dbxout_type.
10903         (dbxout_range_type): print large bounds in octal format.
10904         (dbxout_type): Replace extracted code by call to
10905         print_int_cst_bounds_in_octal_p.
10906
10907         * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
10908         of DW_LANG_Ada83 for Ada units.
10909
10910 2003-04-14  Olivier Hainque <hainque@act-europe.fr>
10911
10912         * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
10913         temporary used to round CONST_INT sizes.
10914
10915         * tree.c (int_fits_type_p): Extract generic checks from the case
10916         of constant type bounds. Refine the checks against constant type
10917         bounds to allow for possible decisions against each of these bounds
10918         without requiring both bounds to be constant.
10919         (tree_int_cst_msb): Put back.
10920         * tree.h (tree_int_cst_msb): Likewise.
10921
10922         * global.c (global_conflicts): Prevent allocation of call clobbered
10923         hard regs to pseudos live across abnormal edges, as later passes are
10924         not ready to handle them.
10925
10926         * fold-const.c (fold): Reorder tests for conditional expressions.
10927
10928         * expr.c (highest_pow2_factor): Return unsigned.
10929         * expr.h (offset_address): Likewise.
10930         * emit-rtl.c (offset_address): POW2 argument now unsigned.
10931
10932 2003-04-14  Roger Sayle  <roger@eyesopen.com>
10933
10934         * builtins.c (expand_builtin_strlen):  Evaluate the lengths of
10935         string literals at compile-time.
10936
10937 2003-04-14  Roger Sayle  <roger@eyesopen.com>
10938
10939         * fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
10940         comparison operation and c1/c2 are floating point constants into
10941         x swap(cmp) (c1 - c2).
10942
10943 2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>
10944
10945         * genautomata.c (output_translate_vect): Fix a typo in loop
10946         condition.
10947
10948 2003-04-14  Hans-Peter Nilsson  <hp@axis.com>
10949
10950         PR target/10377
10951         * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
10952         ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
10953         ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
10954         ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
10955         ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
10956         ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
10957         ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
10958         ("*extopqihi_swap_side", "*extopqisi_swap_side")
10959         ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
10960         When next to constraint R, replace constraint i with n.
10961
10962 Mon Apr 14 16:18:37 CEST 2003  Jan Hubicka  <jh@suse.cz>
10963
10964         PR opt/10024
10965         * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
10966
10967 2003-04-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
10968
10969         * doc/contrib.texi (Contributors): Correct my entry.
10970
10971 2003-04-13  Roger Sayle  <roger@eyesopen.com>
10972
10973         * tree.h (DECL_BUILT_IN_NONANSI): Remove.
10974         * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
10975         * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
10976         implies DECL_BUILT_IN to simplify logic.
10977         * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
10978
10979 2003-04-13  Roger Sayle  <roger@eyesopen.com>
10980
10981         * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
10982         (BT_FN_PTR_SIZE_SIZE): Likewise.
10983         * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
10984         New built-in functions for malloc, calloc and strdup respectively.
10985         * calls.c (special_function_p): No need to handle malloc-like
10986         functions any longer.  ECF_MALLOC is set via built-in attributes.
10987
10988         * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
10989
10990         * doc/extend.texi: Document these new built-in functions.
10991
10992 2003-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10993
10994         * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
10995         (expand_builtin_stpcpy): New.
10996         (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
10997         * builtins.def: Add mempcpy & stpcpy support.
10998         * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
10999
11000 2003-04-13  Nick Clifton  <nickc@redhat.com>
11001
11002         * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
11003         "GCC".
11004         * config/rs6000/40x.md, config/rs6000/603.md,
11005         config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
11006         config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
11007         config/rs6000/aix3newas.h, config/rs6000/aix41.h,
11008         config/rs6000/aix43.h, config/rs6000/aix51.h,
11009         config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
11010         config/rs6000/altivec.h, config/rs6000/altivec.md,
11011         config/rs6000/beos.h, config/rs6000/darwin.h,
11012         config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
11013         config/rs6000/eabisim.h, config/rs6000/eabispe.h,
11014         config/rs6000/freebsd.h, config/rs6000/gnu.h,
11015         config/rs6000/host-darwin.c, config/rs6000/linux.h,
11016         config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
11017         config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
11018         config/rs6000/netbsd.h, config/rs6000/power4.md,
11019         config/rs6000/rios1.md, config/rs6000/rios2.md,
11020         config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
11021         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
11022         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
11023         config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
11024         config/rs6000/spe.md, config/rs6000/sysv4.h,
11025         config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
11026         config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
11027
11028 2003-04-13  Nick Clifton  <nickc@redhat.com>
11029
11030         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
11031         support for -mcall-aix switch.
11032         * config/rs6000/eabiaix.h: Delete.
11033         * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
11034         (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
11035         RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
11036         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
11037         * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
11038         debug_stack_info, output_function_profiler,
11039         rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
11040         * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
11041         call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
11042         call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
11043         sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
11044         * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
11045         multilibs.
11046         (MULTILIB_DIRNAMES): Remove mcall-aix directories.
11047         (MULTILIB_EXCEPTIONS): Delete.
11048         (MULTILIB_MATCHES): Remove mcall-aix matches.
11049
11050         * doc/fragments.texi: Replace -mcall-aix example with an ARM
11051         one.
11052         * doc/install.texi: Delete powerpc-*-eabiaix target.
11053         * doc/invoke.texi: Remove documentation of mcall-aix switch.
11054         * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
11055         * config.gcc: Delete powerpc-*-eabiaix target.
11056
11057 2003-04-13  Kazu Hirata  <kazu@cs.umass.edu>
11058
11059         * doc/invoke.texi: Fix typos.
11060         * doc/tm.texi: Likewise.
11061
11062 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
11063
11064         * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
11065
11066 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
11067
11068         * tree.c (build_constructor): New function.
11069         * tree.h: Prototype it.
11070
11071         * c-typeck.c (build_c_cast, pop_init_level)
11072         * profile.c (build_function_info_value, build_gcov_info_value)
11073         (create_profiler):
11074         Use build_constructor.
11075
11076         * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
11077
11078         * objc/objc-act.c (build_constructor):
11079         Rename objc_build_constructor. Use build_constructor.
11080         (build_objc_string_object, objc_add_static_instance)
11081         (init_def_list, init_objc_symtab, init_module_descriptor)
11082         (generate_static_references, build_selector_translation_table)
11083         (build_descriptor_table_initializer, generate_descriptor_table)
11084         (build_protocol_initializer, build_ivar_list_initializer)
11085         (generate_ivars_list, build_dispatch_table_initializer)
11086         (generate_dispatch_table, generate_protocol_list)
11087         (build_category_initializer, build_shared_structure_initializer):
11088         Update to match.
11089
11090 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
11091
11092         * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
11093
11094 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
11095
11096         * config/m68hc11/m68hc11-protos.h
11097         (m68hc11_eq_compare_operator): Declare
11098         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
11099         * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
11100         (d_register_operand): Check the operand mode.
11101         (hard_addr_reg_operand): Likewise.
11102
11103 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
11104
11105         * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
11106         pattern for dbcc/ibcc generation for 68HC12.
11107         ("doloop_end"): New pattern.
11108         ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
11109         ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
11110         ("m68hc12_dbcc_dec_qi"): New pattern.
11111         ("m68hc12_dbcc_inc_qi"): New pattern.
11112         (split): Add split for the above when we can't use dbcc/ibcc due to
11113         reloading.
11114         (peephole2): Add peephole2 to generate the above when possible.
11115
11116 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
11117
11118         * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
11119         mode of operand 0.
11120         (peephole2 optimize const load): Likewise for operand 2.
11121         ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
11122         clobbers CC_REGNUM.
11123         ("*rotrhi3_with_carry"): Likewise.
11124         (ashift:DI 1 split): Update pattern to create the above rotate.
11125         (lshiftrt:DI 1 split): Likewise.
11126
11127 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
11128
11129         * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
11130         ("tstqi_z_used" split): Use it.
11131         ("cmphi_z_used"): Likewise.
11132         ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
11133         ("cmpqi_z_used"): Likewise.
11134
11135 2003-04-12  Mark Mitchell  <mark@codesourcery.com>
11136
11137         PR c++/7910
11138         * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
11139
11140 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
11141
11142         * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
11143         * configure, config.in: Regenerate.
11144         * intl.c (gcc_gettext_width): New function.
11145         * intl.h: Prototype it.
11146
11147 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
11148
11149         * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
11150         recognize -mnorelax.
11151         (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
11152         (REG_CLASS_NAMES): Add its name.
11153         (REG_CLASS_CONTENTS): Define its content.
11154
11155 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
11156
11157         * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
11158         parameters so that offsets are valid for far definition.
11159         (__mulsi3): Likewise and use ret to return.
11160         (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
11161
11162 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
11163
11164         * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
11165
11166 2003-04-12  Alexandre Oliva  <aoliva@redhat.com>
11167
11168         * mklibgcc.in (libgcc-stage-start): For every multilib  directory
11169         containing a libgcc.a, move lib* to the corresponding stage dir.
11170
11171         * Makefile.in (stage1-start, stage2-start, stage3-start,
11172         stage4-start): Move $(SPECS) to specs in stage dir.
11173         (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
11174         back as $(SPECS).
11175
11176         * mklibgcc.in (libgcc-stage-start): Move into the stage directory
11177         object files from the non-libgcc/ multilib directories as well.
11178
11179 2003-04-11  Geoffrey Keating  <geoffk@apple.com>
11180
11181         * profile.c (read_counts_file): Initialise 'checksum'.
11182
11183         * emit-rtl.c (gen_rtx): Really correct typo.
11184
11185         PR c++/9393
11186         * doc/invoke.texi (Debugging Options): Document -frandom-seed.
11187         * configure.in: Check for gettimeofday.
11188         * tree.c (flag_random_seed): Define.
11189         (default_flag_random_seed): New.
11190         (append_random_chars): Use flag_random_seed rather than trying
11191         to acquire randomness here.
11192         * tree.h (default_flag_random_seed): Declare.
11193         * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
11194         descriptions.
11195         (decode_f_option): Handle -frandom-seed.
11196         (print_switch_values): Call default_flag_random_seed.
11197         * flags.h (flag_random_seed): Declare.
11198         * configure: Regenerate.
11199         * config.in: Regenerate.
11200         * config/alpha/t-crtfm: Use -frandom-seed.
11201
11202         * doc/extend.texi (Empty Structures): New.
11203
11204         * c-pch.c: Include flags.h.  Add comments to routines.
11205         (struct c_pch_validity): New.
11206         (get_ident): Update PCH file version number.
11207         (pch_init): Output current debugging type.
11208         (c_common_valid_pch): Check debugging type.
11209         * Makefile.in (c-pch.o): Update dependencies.
11210         * flags.h (debug_type_names): Declare.
11211         * toplev.c (debug_type_names): Move out of decode_g_option.
11212
11213 2003-04-11  Eric Christopher  <echristo@redhat.com>
11214
11215         * emit-rtl.c (gen_rtx): Fix typos.
11216
11217 2003-04-11  Richard Henderson  <rth@redhat.com>
11218
11219         * emit-rtl.c (gen_rtx): Zero '0' fields.
11220
11221 2003-04-11  Richard Henderson  <rth@redhat.com>
11222
11223         PR c++/10202
11224         * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
11225         not COMPLETE_TYPE_P for re-invoking layout_decl.
11226
11227 2003-04-11  Simon Law  <sfllaw@engmail.uwaterloo.ca>
11228
11229         * doc/bugreport.texi: Fix paragraph breaking between sections
11230         in preparation for TeXinfo's paragraph indentation fixes.
11231         * doc/extend.texi: Ditto.
11232         * doc/invoke.texi: Ditto.
11233         * doc/objc.texi: Ditto.
11234         * doc/gcov.texi: Wrap 'gcov' in @command{}.
11235         * doc/invoke.texi (Darwin Options): Add a preamble.
11236
11237 2003-04-11  Richard Henderson  <rth@redhat.com>
11238
11239         * config/i386/i386.c (tls_model_chars): Remove.
11240         (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
11241         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
11242         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
11243         (tls_symbolic_operand_1): Likewise.
11244         (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
11245         * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
11246         (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
11247         * config/i386/winnt.c (i386_pe_encode_section_info): Replace
11248         bits "copied from i386.h" with default_encode_section_info.
11249
11250 2003-04-11  Richard Henderson  <rth@redhat.com>
11251
11252         * rtl.def (SYMBOL_REF): Add two 0 fields.
11253         * gengtype.c (adjust_field_rtx_def): Handle them.
11254         * print-rtl.c (print_rtx): Print them.
11255         * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
11256         (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
11257         (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
11258         (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
11259         (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
11260         (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
11261         (SYMBOL_FLAG_MACH_DEP): New.
11262         * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
11263         * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
11264         (assemble_static_space): Set SYMBOL_REF_FLAGS.
11265         (assemble_trampoline_template): Likewise.
11266         (output_constant_def, force_const_mem): Likewise.
11267         (default_encode_section_info): New.
11268         * output.h: Declare it.
11269         * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
11270
11271 2003-04-11  Richard Henderson  <rth@redhat.com>
11272
11273         * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
11274         (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
11275         * optabs.c (init_optabs): Initialize them.
11276         (init_libfuncs): Use init_one_libfunc.
11277         * calls.c (expand_call): Use gcov_flush_libfunc.
11278         * expr.c (store_constructor): Use setbits_libfunc.
11279         * function.c (expand_main_function): Use init_one_libfunc.
11280         * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
11281
11282 2003-04-11  Mark Mitchell  <mark@codesourcery.com>
11283
11284         * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
11285         documentation; add DECL_FRIEND_CONTEXT.
11286
11287 2003-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11288
11289         * doc/install.texi (hppa): Update links for HP-UX patches.  Revise
11290         notes on linker selection and configuration for 64-bit HP-UX port.
11291         * doc/invoke.texi (hppa): Remove hppa text from description for
11292         -ffunction-sections and -fdata-sections.  Document -static, -nolibdld
11293         and -threads options.
11294
11295         * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
11296         libc.a on libdld.sl when -static is specified and -nolibdld is not
11297         specified.
11298         * pa64-hpux.h (LIB_SPEC): Likewise.
11299         * pa-hpux11.h (LIB_SPEC): Likewise.
11300         (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
11301         is not specified.
11302
11303 2003-04-11  Zack Weinberg  <zack@codesourcery.com>
11304
11305         * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
11306         not IDENTIFIER_LOCAL_VALUE.
11307
11308 2003-04-11  Richard Henderson  <rth@redhat.com>
11309
11310         PR c/10201
11311         * expr.c (expand_expr): Move DECL_RTL frobbing ...
11312         * stor-layout.c (layout_decl): ... here.
11313
11314 2003-04-11  James A. Morrison <ja2morri@uwaterloo.ca>
11315
11316         * doc/invoke.texi: Eliminate extra white-space caused by
11317         @gccoptlist{ on its own line.
11318         * doc/invoke.texi: Ensured there are two spaces between each option.
11319         * doc/invoke.texi: Re-wrapped option lines that were too wide.
11320         Added @gol to options that didn't have them.
11321
11322 2003-04-11  Nathan Sidwell  <nathan@codesourcery.com>
11323
11324         * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
11325         gcov-iov.h.
11326
11327         Simplify interface to gcov reading and writing.
11328         * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
11329         gcov_alloc, gcov_modified, gcov_errored): Move into ...
11330         (struct gcov_var gcov_var): ... this static structure.
11331         (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
11332         Return void.
11333         (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
11334         read object.
11335         (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
11336         (gcov_reserve_length): Remove.
11337         (gcov_write_tag): New.
11338         (gcov_write_length): Adjust.
11339         (gcov_read_summary, gcov_write_summary): Adjust.
11340         (gcov_eof, gcov_ok): Rename to ...
11341         (gcov_is_eof, gcov_is_error): ... here. Return error code.
11342         (gcov_save_position, gcov_resync): Rename to ...
11343         (gcov_position, gcov_seek): ... here.
11344         (gcov_skip, gcov_skip_string): Remove.
11345         (gcov_error): Remove.
11346         (gcov_open, gcov_close): Adjust.
11347         * gcov.c (find_source): Take const char *, copy it on allocation.
11348         (read_graph_file): Adjust.
11349         (read_count_file): Adjust.
11350         * libgcov.c (gcov_exit): Adjust.
11351         * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
11352         tag_arc_counts, tag_summary): Return void. Adjust.
11353         (struct tag_format): Adjust proc member.
11354         (dump_file): Adjust gcov calls.
11355
11356 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
11357
11358         * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
11359         mkfixinc.sh.
11360         * fixinc/mkfixinc.sh (defs): Add LIBERTY.
11361         * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
11362         build != host sysrooted builds.
11363         * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
11364         TARGET_SYSTEM_ROOT even on sysrooted natives.
11365         * configure: Rebuilt.
11366
11367 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
11368
11369         * c-decl.c (struct binding_level): Add shadowed_tags and
11370         function_body; remove this_block, tag_transparent, and
11371         subblocks_tag_transparent; update comments.
11372         (clear_binding_level, lookup_tag_reverse): Kill.
11373         (make_binding_level): Use ggc_alloc_cleared or memset.
11374         (lookup_tag): Remove struct binding_level* parameter.  All
11375         callers changed. Just look at IDENTIFIER_TAG_VALUE, and
11376         current_binding_level->tags if asked for thislevel_only or if
11377         we might have to diagnose "struct foo; union foo;"
11378         (pushlevel): Ignore argument.  Do not push another binding
11379         level on the transition from the parameters to the top level
11380         of the function body; just tweak the flags and proceed.
11381         (poplevel): Overhaul.  Clear IDENTIFIER_TAG_VALUEs; on exiting
11382         a function body, separate the parameter list from the
11383         top-level local variables.
11384         (set_block): Do nothing.
11385         (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
11386         shadowed_tags if necessary.
11387         (warn_if_shadowing): Nuke the special case for local shadowing
11388         parameter.
11389         (pushdecl): Do not create a shadow entry if we are replacing
11390         an older decl in the same binding level.
11391         (pushdecl_function_level): Tweak for new way of indicating
11392         function scope.
11393         (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
11394         (start_function): Don't set subblocks_tag_transparent.
11395         (finish_function): Fix up the binding_level stack for totally
11396         empty functions.  Otherwise, don't call poplevel.
11397
11398         * c-common.c (shadow_warning): MANDATORY argument is no longer
11399         necessary.  Always use plain warning.
11400         * c-common.h: Update to match.
11401
11402         * cfglayout.c (scope_to_insns_initialize): Clear block when we
11403         hit the FUNCTION_DECL.
11404         * function.c: Do not create cyclic tree structure.
11405
11406 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
11407
11408         * c-tree.h (struct lang_identifier): Replace global_value,
11409         local_value members with symbol_value, tag_value.  Kill
11410         implicit_decl and limbo_value.
11411         (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
11412         IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
11413         C_MISSING_PROTOTYPE_WARNED): Kill.
11414         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
11415         C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
11416         (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
11417         (implicit_decl_warning, lookup_name_current_level,
11418         record_function_scope_shadow): Don't prototype.
11419         (pushdecl_function_level): Prototype.
11420
11421         * c-decl.c (truly_local_externals): New variable.
11422         (struct binding_level): Adjust commentary.
11423         (get_function_binding_level, clear_limbo_values,
11424         record_function_scope_shadow): Kill.
11425         (lookup_name_current_level, implicit_decl_warning): Are now static.
11426         (any_external_decl, record_external_decl): New static functions.
11427         (clone_underlying type): Split out of pushdecl.
11428         (c_print_identifier): Update to match changes to struct
11429         lang_identifier.
11430         (poplevel): Delete #if 0 block.  Make externals invisible
11431         instead of clearing their IDENTIFIER_SYMBOL_VALUEs.  Don't
11432         call clear_limbo_values.  Refer to IDENTIFIER_SYMBOL_VALUE not
11433         IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
11434         (duplicate-decls): For real parm decl after a forward decl,
11435         set TREE_ASM_WRITTEN here.  Allow void foo(...) followed by
11436         foo(...) { } with only a warning.  Say whether a previous
11437         declaration was implicit.
11438         (warn_if_shadowing): Now handles all shadowing, not just
11439         local-over-local.  Clarify comments.
11440         (pushdecl): Rewritten.  There is no longer a distinction
11441         between global and local symbol values; they're all
11442         IDENTIFIER_SYMBOL_VALUE.  Call record_external_decl on all
11443         DECL_EXTERNAL decls, and use any_external_decl to check
11444         against previous externals.  Kill #if 0 blocks.  Don't
11445         tolerate error_mark_node being NULL.
11446         (pushdecl_top_level): Handle only those cases which
11447         Objective C (the only user) needs.
11448         (pushdecl_function_level): New function.
11449         (implicitly_declare): Create ordinary decls with
11450         C_DECL_IMPLICIT set.  Recycle old decls, however they got
11451         created.
11452         (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
11453         for C_DECL_INVISIBLE symbols.
11454         (lookup_name_current_level): Likewise.  Use chain_member.
11455         (c_make_fname_decl): Don't muck with DECL_CONTEXT.
11456         Use pushdecl_function_level.
11457         (builtin_function): Use C_DECL_INVISIBLE.
11458         (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
11459         Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
11460         (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
11461         (identifier_global_value): Same.  Must scan
11462         global_binding_level in extremis.
11463
11464         * c-typeck.c (undeclared_variable): New static function, split
11465         from build_external_ref.
11466         (build_external_ref): Use DECL_CONTEXT, not
11467         IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
11468         an instance variable.  Restructure for clarity.
11469         * objc/objc-act.c: Use identifier_global_value, not
11470         IDENTIFIER_GLOBAL_VALUE.
11471
11472 2003-04-08  Jonathan Wakely  <redi@gcc.gnu.org>
11473
11474         * doc/extend.texi (Template Instantiation): Refer to ISO standard,
11475         not Working Paper.
11476         * doc/invoke.texi (C++ Dialect Options): Same.
11477
11478 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
11479
11480         * tree.c (tree_operand_check_failed): New function.
11481         * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
11482         TREE_RTL_OPERAND_CHECK): New checking macros.
11483         (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
11484         RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
11485         CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
11486         EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
11487         EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
11488         TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
11489         checking macros.
11490
11491 Thu Apr 10 23:52:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
11492
11493         PR inline-asm/8803
11494         * function.c (instantate_virtual_regs):  Verify that all ASM statements
11495         match after the virutal regs instantiation.
11496
11497 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
11498
11499         * ia64-protos.h (addp4_optimize_ok): New.
11500         * ia64.c (addp4_optimize_ok): New.
11501         * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
11502         (*ptr_extend_plus_2): Ditto.
11503
11504 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
11505
11506         * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
11507         not with convert_memory_address.
11508         (store_constructor): Ditto, and same for copy_size_rtx.
11509         (expand_expr): Ditto.
11510
11511 2003-04-10  Douglas B Rupp  <rupp@gnat.com>
11512
11513         * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
11514
11515 2003-04-10  Bob Wilson  <bob.wilson@acm.org>
11516
11517         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
11518         even if it is configured to be write-through.
11519
11520 2003-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
11521
11522         * config/s390/s390.c (larl_operand): Do not allow symbols
11523         marked with '@'.
11524         (s390_encode_section_info): Mark symbols with forced 1-byte
11525         alignment with '@'.
11526         (s390_strip_name_encoding): Strip '@'.
11527         (legitimize_pic_address): Handle symbols that are not valid
11528         LARL operands in 64-bit mode.
11529
11530 2003-04-10  Andrew Haley  <aph@redhat.com>
11531
11532         * tree-inline.c (inlinable_function_p): Disable inlining for
11533         synchronized methods.
11534
11535 2003-04-09  Steven Bosscher  <steven@gcc.gnu.org>
11536
11537         * c-common.h (lang_statement_code_p): Remove declaration.
11538         (statement_code_p): Ditto.
11539         (c_common_stmt_codes): Define; list of c-common statement codes.
11540         (statement_code_p): New extern declaration.
11541         (STATEMENT_CODE_P): Define.
11542         (INIT_STATEMENT_CODES): Define.
11543         * c-common.c (statement_code_p): Kill the function, declare
11544         as an array of bools instead.
11545         (lang_statement_code_p): Remove.
11546         (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
11547         (c_safe_from_p): Ditto.
11548         * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
11549         to initialize the statement_code_p array.
11550         * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
11551         statement_code_p.
11552         (copy_tree_r): Ditto.
11553         * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
11554         statement tree codes.
11555         * cp/lex.c (cxx_init): Add missing print line break.  Use
11556         INIT_STATEMENT_CODES to initialize the statement_code_p array.
11557         * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
11558         instead of statement_code_p.
11559         * cp/pt.c (tsubst_expr): Ditto.
11560         * cp/tree.c (verify_stmt_tree_r): Ditto.
11561         (cp_statement_code_p): Remove.
11562         (init_tree): Don't set lang_statement_code_p, it's gone.
11563
11564 2003-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
11565             Zack Weinberg  <zack@codesourcery.com>
11566
11567         * regrename.c (struct du_chain): Use a bitfield for reg_class.
11568         * cse.c (struct qty_table_elem, struct table_elt, struct set):
11569         Use bitfields for fields holding enum rtx_code or
11570         enum machine_mode values.  Add comments explaining size choices.
11571
11572 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
11573
11574         * config/fp-bit.c (unpack_d): Handle pair of doubles with
11575         different signs correctly.
11576
11577 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
11578
11579         * sched-deps.c (reg_pending_barrier_mode): New enumeration.
11580         (reg_pending_barrier): Make it of the enumeration type.
11581         (sched_analyze_2): Define the barrier as MOVE_BARRIER or
11582         TRUE_BARRIER.
11583         (sched_analyze): Ditto.
11584         (sched_analyze_insn): Ditto.  Use anti-dependencies for
11585         MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
11586         (init_deps_global): Initialize the barrier as NO_BARRIER.
11587
11588 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
11589
11590         * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
11591         Check that asm insn starts on a new cycle.  Add nops after asm
11592         insn to end bundle.
11593         (bundling): Move insn type evaluation from the loop.  Call
11594         issue_nops_and_insn with the new parameter.  Ignore changing
11595         position for nops after asm insn.
11596
11597 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
11598
11599         * optabs.c: Comment that gen_add2_insn and others may actually
11600         return emitted insns, if the gen functions turn out to return
11601         emitted insns.
11602         * reload1.c (reload_cse_move2add): Cope with emitted insns from
11603         gen_add2_insn.
11604
11605 2003-04-09  Richard Henderson  <rth@redhat.com>
11606
11607         * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
11608         but not tls_symbolic_operand.
11609         (ia64_expand_load_address): Remove scratch operand.
11610         (ia64_expand_tls_address): Split out from ia64_expand_move.
11611         (ia64_expand_move): Split symbolics only after reload.
11612         (ia64_emit_cond_move): New.
11613         * config/ia64/ia64-protos.h: Update.
11614         * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
11615         (symbolic splitter): Accept SImode operands too.
11616         (cmove splitter): Use ia64_emit_cond_move.
11617
11618 2003-04-09  Nick Clifton  <nickc@redhat.com>
11619
11620         * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
11621         newer.
11622         * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
11623         instead of -mno-fpu.
11624         * config/arm/semi.h (ASM_SPEC): Likewise.
11625         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
11626         but only if -msoft-float is specified pass.  Otherwise pass
11627         -mfpu=softvfp.
11628
11629 2003-04-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11630
11631         * function.c (purge_addressof): Use free_INSN_LIST_node instead of
11632         free_EXPR_LIST_node.
11633
11634 2003-04-08  Roger Sayle  <roger@eyesopen.com>
11635
11636         * fold-const.c (fold):  Use "fold" following build in more places.
11637         Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
11638         pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
11639
11640 2003-04-08  Roger Sayle  <roger@eyesopen.com>
11641
11642         * builtins.c (fold_builtin):  Constant fold expressions as x*0.5
11643         instead of x/2.0.  Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
11644         log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
11645         pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
11646         Delete function scope "fcode" variable to avoid shadowing.
11647
11648 2003-04-08  Kevin Buettner  <kevinb@redhat.com>
11649
11650         * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
11651         Take into account DWARF_INITIAL_LENGTH_SIZE.
11652
11653 2003-04-08  Hans-Peter Nilsson  <hp@axis.com>
11654
11655         * reorg.c (fill_slots_from_thread): When considering changing the
11656         insn following a reg-to-reg copy insn to use the source reg of the
11657         copy, bail out if there's overlap between the registers.
11658
11659 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11660
11661         * function.c (postponed_insns): New.
11662         (purge_addressof_1): Postpone processing of insns if addressofs
11663         are not put into stack.
11664         (purge_addressof): Process postponed insns.
11665
11666 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
11667
11668         * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
11669         this is FP_MODE_DOUBLE .
11670         * sh.c (ra.h): #include.
11671         (push_regs): Add second parameter.  Changed all callers.
11672         If necessary, set fpscr before saving floating point registers.
11673         (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
11674         do saves / restores with SZ == 1.
11675         (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
11676         (sh_expand_epilogue): Likewise.  For TARGET_FMOVD, if floating point
11677         registers are being restored, restore FPSCR only after restoring them.
11678
11679 2003-04-08  Aldy Hernandez  <aldyh@redhat.com>
11680
11681         * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
11682         regardless of architecture.
11683         (spe_init_builtins): Change V2SI and V2SF types to opaque types.
11684
11685 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
11686
11687         * sh.c (push_regs, calc_live_regs): Return int.  Take single
11688         HARD_REG_SET * parameter.  Changed all callers.
11689
11690 Tue Apr  8 11:12:07 CEST 2003  Jan Hubicka  <jh@suse.cz>
11691
11692         * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
11693         GOTOFF operand.
11694         (legitimize_pic_address): Move plus outside the unspec.
11695         * i386.c (legitimate_constant_p):  Check (CONST (PLUS (UNSPEC ...
11696         for validity.
11697
11698 2003-04-08  Nathan Sidwell  <nathan@codesourcery.com>
11699
11700         * gcov-io.h (gcov_save_position): Remove __inline__ from
11701         declaration.
11702
11703 2003-04-07  Matt Kraai  <kraai@alumni.cmu.edu>
11704
11705         * doc/install.texi: Use @command and @samp for single- and
11706         multi-word commands respectively.
11707         * doc/makefile.texi: Likewise.
11708         * doc/sourcebuild.texi: Likewise.
11709
11710 2003-04-07  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
11711             Richard Henderson  <rth@redhat.com>
11712
11713         PR c/9516
11714         * expr.c (safe_from_p): Rearrange to avoid deep recursion in
11715         favor of looping and tail recursion for TREE_LIST and binops.
11716
11717 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11718
11719         * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
11720         for insns without luid.
11721
11722 2003-04-07  Glen Nakamura  <glen@imodulo.com>
11723
11724         PR opt/8634
11725         * explow.c (maybe_set_unchanging): Don't flag non-static const
11726         aggregate type initializers with RTX_UNCHANGING_P.
11727
11728 2003-04-07  Richard Henderson  <rth@redhat.com>
11729
11730         PR opt/8634
11731         * function.c (purge_addressof_1): Don't try arithmetics for
11732         unchanging memories.
11733
11734 2003-04-07  Janis Johnson  <janis187@us.ibm.com>
11735
11736         * doc/sourcebuild.texi (Test Suites): Document testing support for
11737         gcov and profile-directed optimizations; describe gcc.misc-tests.
11738
11739 Mon Apr  7 22:19:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
11740
11741         PR target/10077
11742         * i386.md (movsi_1, movsi_nointerunit_1):  Fix SSEMOV alternative.
11743
11744 2003-04-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
11745
11746         * doc/rtl.texi (Comparison operations): Update to
11747         record the allowed comparison modes.
11748
11749 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
11750
11751         * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
11752         V2SI_type_node to opaque_V2SI_type_node.  Rename all
11753         V2SF_type_node to opaque_V2SF_type_node.
11754         (rs6000_init_builtins): Define opaque_V2SI_type_node and
11755         opaque_V2SF_type_node.
11756         (is_ev64_opaque_type): The types opaque_V2SI_type_node and
11757         opaque_V2SF_type_node are opaque types.
11758
11759 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
11760
11761         * gcse.c (replace_store_insn): Use single_set.
11762
11763 2003-04-07  Nathan Sidwell  <nathan@codesourcery.com>
11764
11765         Change gcov file interface to single file at a time.
11766         * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
11767         Convert to C89 prototypes.
11768         (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
11769         gcov_error, gcov_modified): New static variables.
11770         (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
11771         functions.
11772         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
11773         gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
11774         (gcov_read_summary, gcov_write_summary): Adjust.
11775         (gcov_save_position, gcov_reserve_length, gcov_write_length):
11776         Adjust.
11777         (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
11778         (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
11779         (da_file_position, da_file_seek, da_file_write, da_file_read):
11780         Remove.
11781         (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
11782         * gcov.c (gcov_type): Don't typedef here.
11783         (IN_GCOV): #define
11784         (read_graph_file, read_count_file): Adjust.
11785         * gcov-dump.c (gcov_type): Don't typedef here.
11786         (IN_GCOV): #define.
11787         (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
11788         Remove FILE parameter, adjust.
11789         (struct tag_format): Adjust proc member.
11790         (dump_file): Adjust.
11791         * libgcov.c (IN_LIBGCOV): #define.
11792         (gcov_exit): Adjust.
11793         * loop-init.c: Don't #include gcov-io.h
11794         * profile.c (struct counts_entry): New structure to hold counter
11795         values.
11796         (struct section_reference, struct da_index_entry): Remove.
11797         (bbg_file, da_file): Remove.
11798         (htab_counts_index_hash, htab_counts_index_eq,
11799         htab_counts_index_del): Replace with ...
11800         (htab_counts_entry_hash, htab_counts_entry_eq,
11801         htab_counts_entry_del): ... these.
11802         (cleanup_counts_index, index_counts_file): Remove.
11803         (read_counts_file): New function.
11804         (get_exec_counts): Adjust.
11805         (compute_branch_probabilities): Don't free the exec counts here.
11806         (branch_prob): Adjust.
11807         (init_branch_prob): Adjust.
11808         (end_branch_prob): Adjust.
11809
11810 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
11811
11812         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
11813         -mfloat-gprs.
11814
11815         * config/rs6000/rs6000.c: Delete rs6000_fprs.
11816         Declare rs6000_float_gprs.
11817         Declare rs6000_float_gprs_string.
11818         (rs6000_parse_float_gprs_option): New.
11819         (rs6000_override_options): Genericize rs6000_parse_* calls to use
11820         rs6000_parse_yes_no_option.
11821         Change check for cpu=8540, to use TARGET_E500.
11822         (rs6000_parse_isel_option): Delete.
11823         (rs6000_parse_spe_option): Delete.
11824         (rs6000_parse_vrsave_option): Delete.
11825
11826         * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
11827         Define rs6000_float_gprs_string.
11828         (TARGET_OPTIONS): Add rs6000_float_gprs option.
11829
11830         * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
11831
11832         * config/rs6000/eabispe.h: Set rs6000_float_gprs.
11833
11834 Mon Apr  7 14:36:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
11835
11836         PR opt/10024
11837         * cfglayout.c (cfg_layout_redirect_edge):
11838         Redirect any branch edges unified with the fallthru one.
11839         * cfgrtl.c (force_nonfallthru_and_redirect):  Do not special
11840         case fallthru edges when called via cfglayout.c
11841
11842 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
11843
11844         * c-typeck.c (output_init_element): Check for type == error_mark_node.
11845
11846 2003-04-07  Kazu Hirata  <kazu@cs.umass.edu>
11847
11848         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
11849         split.
11850         (a splitter): Do zero-extension via HImode.
11851
11852 2003-04-07  James A. Morrison <ja2morri@uwaterloo.ca>
11853
11854         * doc/invoke.texi: Eliminate extra white-space caused by
11855         @gccoptlist{ on its own line.
11856         * doc/invoke.texi: Ensured there are two spaces between each option.
11857         * doc/invoke.texi: Re-wrapped option lines that were too wide.
11858         Added @gol to options that didn't have them.
11859
11860 2003-04-07  James A Morrison <ja2morri@student.math.uwaterloo.ca>
11861
11862         * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
11863
11864 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
11865
11866         * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
11867         at the sizes of the relevant structures, rather than relying
11868         on TREE_CODE_LENGTH.  Call lang_hooks.tree_size to get the
11869         sizes of any such we don't know about.  Use
11870         lang_hooks.identifier_size for IDENTIFIER_NODE.
11871
11872         (initializer_zerop): Use CONSTRUCTOR_ELTS.
11873         * tree.def: Update commentary.  Make fourth element of
11874         the definition for all 'c' and 'x' nodes zero.
11875
11876         * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
11877         * langhooks-def.h: Update to match.
11878         * langhooks.c: New default, lhd_tree_size.
11879
11880         * c-common.def (SRCLOC): Kill.
11881         * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
11882         Remove entirely - was already #if-ed out.
11883
11884
11885 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
11886
11887         * mklibgcc.in: Use a here document to avoid running afoul of
11888         shells that generate control-A from "echo \1".
11889
11890 2003-04-06  Aldy Hernandez  <aldyh@redhat.com>
11891
11892         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
11893         option.
11894
11895         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
11896         rs6000_spe.
11897
11898         * config/rs6000/eabi.h (TARGET_E500): Define.
11899
11900         * config/rs6000/rs6000.h (TARGET_E500): Define.
11901         (TARGET_OPTIONS): Add spe= option.
11902         Declare rs6000_spe and rs6000_spe_string extern.
11903
11904         * config/rs6000/rs6000.c (branch_positive_comparison_operator):
11905         Change TARGET_SPE to TARGET_E500.
11906         (ccr_bit): Change TARGET_SPE to TARGET_E500.  Check for
11907         !TARGET_FPRS.
11908         (print_operand): Same.
11909         (rs6000_generate_compare): Same.
11910         (output_cbranch): Same.
11911         (rs6000_spe): Declare.
11912         (rs6000_spe_string): Declare.
11913         (rs6000_override_options): Call rs6000_parse_spe_option.
11914         (rs6000_parse_spe_option): New.
11915
11916 2003-04-06  Steven Bosscher  <steven@gcc.gnu.org>
11917
11918         * hashtable.c (gcc_obstack_init): Delete this function
11919         and everything related to it.
11920         * hashtable.h: Remove prototype.
11921         * bitmap.c (bitmap_element_allocate): Cleanup redundant
11922         defines.  Cleanup some unnecessary whitespace.
11923         * defaults.h (obstack_chunk_alloc): Redefine with
11924         appropriate casts for libiberty obstacks.
11925         (obstack_chunk_free): Ditto.
11926         (OBSTACK_CHUNK_SIZE): Define, default to 0.
11927         (gcc_obstack_init): Define as a call to _obstack_begin.
11928         * tree.c (print_obstack_statistics): Delete this unused
11929         function.
11930         * tree.h (obstack): Don't forward-declare.
11931         (print_obstack_statistics): Delete prototype.
11932         (print_obstack_name): Ditto.
11933         (gcc_obstack_init): Ditto.
11934         * rtl.h (gcc_obstack_init): Ditto.
11935         * java/jv-scan.c (gcc_obstack_init): Delete this
11936         function, its prototype and related defines.
11937         * java/jvgenmain.c (gcc_obstack_init): Delete this
11938         function, and related defines.
11939         * java/parse-scan.y (obstack_chunk_alloc): Don't define.
11940         (obstack_chunk_free): Ditto
11941
11942 2003-04-06  Geoffrey Keating  <geoffk@apple.com>
11943
11944         * dbxout.c (dbxout_handle_pch): Move prototype out from
11945         #if defined DBX_DEBUGGING_INFO.
11946
11947 2003-04-05  Nathan Sidwell  <nathan@codesourcery.com>
11948
11949         * gcov.c (struct arc_info): Replace local_span with cycle.
11950         (struct block_info): Replace u.span with u.cycle. Add is_call_return.
11951         (solve_flow_graph): Set is_call_return.
11952         (add_line_counts): Adjust. In block mode, blocks attach to last line.
11953         (accumulate_line_counts): Find graph cycles, not spanning tree.
11954         (output_branch_count): Adjust.
11955         (output_lines): Adjust.
11956         * doc/gcov.texi: Update.
11957
11958 2003-04-06  Kazu Hirata  <kazu@cs.umass.edu>
11959
11960         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
11961         the second alternative to "#".
11962
11963 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
11964
11965         * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
11966         (single_zero_operand): Likewise.
11967
11968 2003-04-05  Daniel Berlin  <dberlin@dberlin.org>
11969
11970         * Makefile.in (df.o):  Depend on alloc-pool.h, not obstack.h.
11971         * df.c: Include alloc-pool.h, not obstack.h.
11972         (df_ref_obstack): Remove.
11973         (df_ref_pool, df_link_pool): Add pools.
11974         (df_alloc): Init the new pools.
11975         (df_free): And free them.
11976         (df_link_create): Use the pools.
11977         (df_ref_create): Ditto.
11978
11979 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
11980
11981         * simplify-rtx.c: Fix formatting.
11982
11983 2003-04-05  Andrew Pinski  <apinski@apple.com>
11984
11985         * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
11986         reg with reg1 == reg2 and offset1 = -8.
11987
11988 2003-04-05  David Edelsohn  <edelsohn@gnu.org>
11989
11990         * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
11991         multiply costs.  Correct Power4 divide costs.
11992         * config/rs6000/power4.md: Restore multiply and FP latency.
11993
11994 2003-04-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11995
11996         * alias.c (find_base_term): Export.
11997         * rtl.h (find_base_term): Declare.
11998         * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
11999         instead of flag_exceptions.  Move test for parameter passing ...
12000         (store_killed_in_insn): ... here.
12001
12002 2003-04-05  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12003
12004         PR bootstrap/10267
12005         * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
12006         for configuring.
12007
12008 2003-04-04  Geoffrey Keating  <geoffk@apple.com>
12009
12010         * dbxout.c (scope_labelno): Add GTY.
12011         (have_used_extensions): Add GTY.
12012         (source_label_number): Add GTY.
12013         (lastfile): Add GTY.
12014         (lastfile_is_base): New.
12015         (base_input_file): New.
12016         (dbxout_handle_pch): New.
12017         (dbx_debug_hooks): Add handle_pch.
12018         (xcoff_debug_hooks): Likewise.
12019         (dbxout_function_end): Remove scope_labelno.
12020         (dbxout_init): Set base_input_file.
12021         (dbxout_handle_pch): New.
12022         (dbxout_source_file): Honour lastfile_is_base.
12023         * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
12024         * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
12025         * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
12026         * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
12027         * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
12028         * debug.h (struct gcc_debug_hooks): Add handle_pch.
12029         * c-pch.c (pch_init): Don't call start_source_file, but do call
12030         handle_pch.
12031         (c_common_write_pch): Call handle_pch.
12032         (c_common_read_pch): Don't call start_source_file,
12033         or end_source_file.
12034
12035 Fri Apr  4 17:43:52 2003  Olivier Hainque <hainque@act-europe.fr>
12036
12037         * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
12038         use of default attributes to agree MEM_ALIGN macro.
12039
12040 Fri Apr  4 17:33:24 2003  Joel Brobecker  <brobecker@gnat.com>
12041
12042         * dbxout.c (dbxout_type): When printing type index of range type
12043         whose bounds are printed in octal format, print type of parent type if
12044         it exists so enumerated type descriptions are not transformed
12045         into unsigned types.
12046
12047 2003-04-04  Kazu Hirata  <kazu@cs.umass.edu>
12048
12049         * config/h8300/h8300-protos.h: Add a prototype for
12050         compute_a_shift_cc.
12051         * config/h8300/h8300.c (shift_one): Update the CC status.
12052         (shift_two): Likewise.
12053         (output_a_shift_cc): Set cc_inline and cc_special.
12054         (compute_a_shift_cc): New.
12055         * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
12056
12057 2003-04-04  Richard Henderson  <rth@redhat.com>
12058
12059         * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
12060
12061 2003-04-04  Loren James Rittle  <ljrittle@acm.org>
12062
12063         * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
12064         * fixinc/fixincl.x: Rebuilt.
12065         * fixinc/tests/base/stdio.h: Regenerated.
12066
12067 2003-04-04  Nathan Sidwell  <nathan@codesourcery.com>
12068
12069         * gcov.c (accumulate_line_counts): Fix span tree merge bug.
12070
12071 Fri Apr  4 15:58:52 2003  J"orn Rennecke <joern.rennecke@superh.com>
12072
12073         * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
12074         (NORMAL_MODE).
12075         * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
12076
12077 2003-04-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12078
12079         * doc/contrib.texi (Contributors): Add entries for Wolfgang
12080         Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
12081         Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
12082         Danny Smith, and Ulrich Weigand.
12083         Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
12084         entry.
12085
12086 2003-04-04  Nick Clifton  <nickc@redhat.com>
12087
12088         * config/sparc/sol2-bi.h: Revert previous delta.
12089         * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
12090
12091 2003-04-04  Nick Clifton  <nickc@redhat.com>
12092
12093         * config/v850/v850.c (expand_prologue): Only use register save
12094         helper functions if long calls are not being used.
12095         Add a clobber of r11 id using long calls.
12096         (pattern_is_ok_for_prologue): Account for the extra clobber.
12097         (construct_save_jarl): Likewise.
12098         * config/v850/v850.md (prolog pattern): Do not use this pattern
12099         for v850e's.
12100
12101 2003-04-04  Andreas Schwab  <schwab@suse.de>
12102
12103         * stor-layout.c (layout_decl): Avoid syntax error in last change
12104         when PCC_BITFIELD_TYPE_MATTERS is defined but not
12105         EMPTY_FIELD_BOUNDARY.
12106
12107 2003-04-03  Jason Merrill  <jason@redhat.com>
12108
12109         PR c/10175
12110         * jump.c (never_reached_warning): Revert patch of 2002-11-02.
12111         Look backwards for a line note.
12112
12113 2003-04-03  Neil Booth  <neil@daikokuya.co.uk>
12114
12115         * fix-header.c (read_scan_file): Defer switch processing.
12116
12117 2003-04-03  Matt Austern  <austern@apple.com>
12118
12119         * cpppch.c (reset_ht): Remove.
12120         (cpp_read_state): Remove loop to reset hashtable identifiers.
12121         * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
12122         after pch file is written.
12123         * ggc.h (gt_pch_fixup_stringpool): Declare.
12124         * stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
12125         hashnode's value to another hashtable, then clear the original.
12126         (saved_ident_hash): Define.
12127         (gt_pch_save_stringpool): Create saved_ident_hash, use it to
12128         store definitions in ident_hash, and clear ident_hash.
12129         (gt_pch_fixup_stringpool): Define.  Restore definitions from
12130         saved_ident_hash to ident_hash, then destroy saved_ident_hash.
12131
12132 Thu Apr  3 22:27:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
12133
12134         * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
12135
12136 2003-04-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
12137
12138         PR optimization/10157
12139         * gcse.c (can_copy_p): Rename it to can_copy.
12140         (can_copy_init_p): Remove.
12141         (compute_can_copy): Use can_copy instead of can_copy_p.
12142         (can_copy_p): New exported function. Call compute_can_copy.
12143         (hash_scan_set): Use it.
12144         (gcse_main): Don't call compute_can_copy.
12145         (bypass_jumps): Don't call compute_can_copy.
12146         * rtl.h (can_copy_p): Declare.
12147         * loop.c (scan_loop): Don't move the source and add a reg-to-reg
12148         copy if the mode doesn't support copy operations.
12149
12150 2003-04-03  Jason Merrill  <jason@redhat.com>
12151
12152         * Makefile.in (unstrap): Also remove stage_last.
12153
12154         * dwarf2out.c (lookup_filename): Don't check for "<internal>".
12155         (dwarf2out_source_line): Don't do anything if line==0.
12156
12157         * stor-layout.c (do_type_align): New fn, split out from...
12158         (layout_decl): ...here.  Do all alignment calculations for
12159         FIELD_DECLs here.
12160         (update_alignment_for_field): Not here.
12161         (start_record_layout, debug_rli): Remove unpadded_align.
12162         * tree.h (struct record_layout_info_s): Remove unpadded_align.
12163         * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
12164         or DECL_MODE on the CONST_DECLs.
12165         (finish_struct): Don't mess with DECL_ALIGN.
12166
12167 Thu Apr  3 18:57:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
12168
12169         * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
12170
12171 Thu Apr  3 17:08:09 2003  J"orn Rennecke <joern.rennecke@superh.com>
12172
12173         * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
12174         function is an interrupt handler.
12175
12176         * sh.c (sh_expand_epilogue): Avoid clash of temp register for
12177         restoring target registers with EH_RETURN_STACKADJ_RTX; use
12178         multiple registers in round-robin fashion.
12179
12180 2003-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12181
12182         * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
12183         * system.h (CHAR_BITFIELD): New.
12184
12185 2003-04-03  Kazu Hirata  <kazu@cs.umass.edu>
12186
12187         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
12188         and LE.
12189         (another peephole2): Likewise.
12190
12191 2003-04-03  Nick Clifton  <nickc@redhat.com>
12192
12193         * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
12194         (DEF_ARCH64_SPEC): Likewise.
12195
12196 Thu Apr  3 09:53:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
12197
12198         * i386.c (constant_address_p): Use legitimate_constant_p.
12199         (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
12200
12201 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
12202
12203         * config/h8300/h8300-protos.h: Add a prototype for
12204         gtle_operator.
12205         * config/h8300/h8300.c (gtle_operator): New.
12206         * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
12207         gtle_operator.
12208         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
12209         and LE.
12210
12211 2003-04-02  Richard Henderson  <rth@redhat.com>
12212
12213         * libgcc-std.ver (_Unwind_GetCFA): New.
12214         * unwind-dw2.c (_Unwind_GetCFA): New.
12215         * unwind-libunwind.c (_Unwind_GetCFA): New.
12216         * unwind-sjlj.c (_Unwind_GetCFA): New.
12217         * unwind.h: Declare it.
12218
12219 Thu Apr  3 00:31:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
12220
12221         PR inline-asm/8088
12222         * i386.c (ix86_hard_regno_mode_ok):  Return 0 for MMX/SSE registers
12223         when MMX/SSE is not available.
12224
12225 2003-04-02  Mike Stump  <mrs@apple.com>
12226
12227         * doc/install.texi (Specific): Update pointers to apple.com.
12228
12229 Thu Apr  3 00:18:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
12230
12231         * i386.c (override_options):  Disable red zone by default on i386.
12232         (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
12233         Do not test TARGET_64BIT together with TARGET_RED_ZONE
12234
12235 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
12236
12237         * config/h8300/h8300.md (a peephole2): Tighten the condition.
12238
12239 2003-04-02  Richard Henderson  <rth@redhat.com>
12240
12241         * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
12242
12243 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
12244
12245         * config/h8300/h8300.md (a peephole2): New.
12246
12247 2003-04-02  Richard Henderson  <rth@redhat.com>
12248
12249         * except.c (sjlj_find_directly_reachable_regions): Recognize when
12250         must-not-throw region has been deleted.
12251
12252 2003-04-02  Richard Henderson  <rth@redhat.com>
12253
12254         * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
12255         optimization when flag_exceptions not enabled.
12256
12257 2003-04-02  Vladimir Makarov  <vmakarov@redhat.com>
12258
12259         * config/rs6000/rs6000.c
12260         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
12261         macros.
12262         (rs6000_issue_rate): Add case for 8540.
12263         (rs6000_use_sched_lookahead): New function.
12264
12265         * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
12266         units into MU ones.
12267         (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
12268         reservation before retirement.
12269         (ppc8540_multiply, ppc8540_load, ppc8540_store,
12270         ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
12271         Remove additional cycle in the reservation before retirement.
12272         (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
12273         reservation of ppc8540_issue.
12274
12275 2003-04-02  Andreas Schwab  <schwab@suse.de>
12276
12277         * real.c (decode_ieee_single): Fix decoding of SNaN bit.
12278
12279 2003-04-01  Richard Henderson  <rth@redhat.com>
12280
12281         * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
12282         notes for nothrow calls if flag_forced_unwind_exceptions.
12283         (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
12284         (sjlj_find_directly_reachable_regions): Likewise.
12285         (reachable_handlers): Likewise.
12286         (can_throw_external): Likewise.
12287         (collect_one_action_chain): Record cleanups after catch-all and
12288         must-not-throw if flag_forced_unwind_exceptions.
12289         * flags.h (flag_forced_unwind_exceptions): Declare.
12290         * toplev.c (flag_forced_unwind_exceptions): New.
12291         (lang_independent_options): Add it.
12292         * doc/invoke.text: Add it.
12293
12294 2003-04-01  David Mosberger <davidm@hpl.hp.com>
12295
12296         * config/ia64/crti.asm: Clean up trailing whitespace.
12297         Remove trailing hashes (#) from identifiers.
12298
12299         * config/ia64/crtn.asm: Ditto.
12300
12301         * config/ia64/crtend.asm: Remove trailing hashes (#) from
12302         identifiers.
12303         (__do_global_ctors_aux): Align to 32-byte boundary.  Add unwind
12304         directives.  Drop explicit bundling---it just makes the code
12305         harder to read.  Don't save/restore gp needlessly.
12306
12307         * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
12308         identifiers (they're only needed if the identifier would clash
12309         with a register name otherwise).
12310         (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
12311         directives.  Drop explicit bundling---it just makes the code
12312         harder to read.
12313         (__do_jv_register_classes): Ditto.
12314         (.fini_array): Remove "progbits" (newer
12315         assemblers don't like wrong section-types).
12316         (.init_array): Ditto.
12317
12318 2003-04-01  Roger Sayle  <roger@eyesopen.com>
12319
12320         PR fortran/9974
12321         * gcse.c (reg_killed_on_edge): New function to test whether the
12322         given reg is overwritten by any instruction queued on an edge.
12323         (bypass_block): Ignore substitutions killed on incoming edges.
12324         Don't bypass outgoing edges that have queued instructions.
12325
12326 2003-04-01  Alexandre Oliva  <aoliva@redhat.com>
12327
12328         * real.h (EXP_BITS): Make room for...
12329         (struct real_value): ... added canonical bit.
12330         (struct real_format): Added pnan.
12331         (mips_single_format, mips_double_format, mips_extended_format,
12332         mips_quad_format): New.
12333         * real.c: Copy p to pnan in all formats.
12334         (get_canonical_qnan, get_canonical_snan): Set canonical bit.
12335         (real_nan): Use pnan to compute significand's shift.
12336         (real_identical): Disregard significand in canonical
12337         NaNs.
12338         (real_hash): Likewise.  Take signalling into account.
12339         (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
12340         Disregard significand bits in canonical NaNs.  Set all bits of
12341         canonical NaN if !qnan_msb_set.
12342         (encode_ibm_extended, decode_ibm_extended): Likewise.  Use
12343         qnan_msb_set to tell the base double format.
12344         (ibm_extended_format): Use 53 as pnan.
12345         (mips_single_format, mips_double_format, mips_extended_format,
12346         mips_quad_format): Copied from the corresponding ieee/ibm
12347         formats, with qnan_msb_set false.
12348         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
12349         * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
12350         * config/mips/mips.c (override_options): Use mips_single_format
12351         and mips_double_format.  Default TFmode to mips_quad_format.
12352         * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
12353         * config/mips/t-irix6: Likewise.
12354         * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
12355         * config/fp-bit.c (pack_d, unpack_d): Obey it.
12356
12357 2003-04-01  Geoffrey Keating  <geoffk@apple.com>
12358
12359         * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
12360         (live_image_destructor): Reset image to initial state.
12361         (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
12362
12363 2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
12364
12365         * config/sparc/sparc.c (input_operand): Accept bare
12366         CONSTANT_P_RTX operands.
12367
12368 2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12369
12370         * gcse.c (struct ls_expr): Added pattern_regs field.
12371         (ldst_entry): Initialize it.
12372         (extract_mentioned_regs, extract_mentioned_regs_helper): New.
12373         (store_ops_ok): Use regs precomputed by them.
12374         (find_loads, store_killed_in_insn, load_kills_store): Change return
12375         type to bool.
12376         (store_killed_before, store_killed_after): Take position of register
12377         set in account.
12378         (reg_set_info): Store position of the setter.
12379         (gcse_main): Enable store motion.
12380         (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
12381         (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
12382         sharing.
12383         (simple_mem): Enable store motion of non-symbol mems.
12384         (regvec): Type changed.
12385         (LAST_AVAIL_CHECK_FAILURE): New.
12386         (compute_store_table_current_insn): New.
12387         (build_store_vectors): Computation of availability and anticipatability
12388         moved ...
12389         (compute_store_table, find_moveable_store): ... here.
12390         (delete_store): Remove senseless comment.
12391         (store_motion): Reorganize.
12392
12393 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
12394
12395         * config/mips/mips.c (override_options): Provide mappings for
12396         HI_REGNUM and LO_REGNUM.
12397         * config/mips/mips.h (MD_DBX_FIRST): Define.
12398
12399 2003-04-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12400
12401         * combine.c (merge_outer_ops): Fix typo.
12402
12403         * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
12404
12405 2003-04-01  David Edelsohn  <edelsohn@gnu.org>
12406
12407         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
12408         power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
12409         imul_compare.  Add lmul_compare.
12410         * config/rs6000/power4.md: Bump some latencies.  Model extra cycle
12411         in second pair of dispatch slots.  Model stores more accurately.
12412         Tweak multiply model.  Add bypasses for CR instructions dependent
12413         on complicated compares.
12414         * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
12415         (muldi3): Add lmul_compare patterns.
12416         * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
12417         and FPSTORE_UX to split instructions and add COMPARE,
12418         DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
12419         (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
12420         (rs6000_rtx_costs): Separate POWER4 multiply case.
12421
12422 2003-04-01  Ulrich Weigand  <uweigand@de.ibm.com>
12423
12424         * config/s390/s390.c (s390_fixup_clobbered_return_reg):
12425         Do nothing if __builtin_return_address was not used.
12426
12427 Tue Apr  1 18:18:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
12428
12429         * i386.md (test patterns):  Allow memory operand in operand1.
12430
12431 2003-02-31  Aldy Hernandez  <aldyh@redhat.com>
12432
12433         * testsuite/gcc.c-torture/execute/simd-3.c: New.
12434
12435         * expr.c (expand_expr): Handle VECTOR_CST.
12436         (const_vector_from_tree): New.
12437
12438         * varasm.c (output_constant): Handle VECTOR_CST.
12439
12440         * c-typeck.c (digest_init): Build a vector constant from a
12441         VECTOR_TYPE.
12442
12443         * config/rs6000/rs6000.c: Remove prototype for
12444         easy_vector_constant.
12445         (easy_vector_constant): Add mode parameter.  Rewrite to handle
12446         more easy constants.
12447         (rs6000_emit_move): Pass mode to easy_vector_constant.
12448         Call emit_easy_vector_insn for SPE V2SI vector constant moves.
12449         (emit_easy_vector_insn): New.
12450         (easy_vector_same): New.
12451         (EASY_VECTOR_15): New macro.
12452         (EASY_VECTOR_15_ADD_SELF): New macro.
12453         (bdesc_2arg): Rename to xorv2si3.
12454         (easy_vector_constant_add_self): New.
12455         (input_operand): Allow vector constants.
12456
12457         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12458         easy_vector_constant, easy_vector_constant_add_self.
12459         (EXTRA_CONSTRAINT): Add 'W'.
12460
12461         * config/rs6000/rs6000-protos.h: Add prototype for
12462         easy_vector_constant, emit_easy_vector_insn.
12463
12464         * config/rs6000/altivec.md (xorv8hi3): New.
12465         (xorv16qi3): New.
12466         Remove all _const0 patterns.
12467         (movv4si_internal): Rewrite to use code.  Add vector constant to
12468         vector alternative.  Add splitter.
12469         (movv8hi_internal): Same.
12470         (movv16qi_internal): Same.
12471         (movv4sf_internal): Same.
12472         Change the unspecs for vspltis* to use constants.
12473
12474         * config/rs6000/spe.md ("xorv4hi3"): New.
12475         ("spe_evxor"): Rename to xorv2si3.
12476         ("xorv1di3"): New.
12477         Remove all _const0 patterns.
12478         (movv2si_internal): Rewrite to use code.  Add vector constant to
12479         alternatives.  Add splitter.
12480         (movv4hi_internal): Add vector constant to alternatives.
12481         (movv1di_internal): Same.
12482         (movv2sf_internal): Same.
12483
12484 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
12485
12486         PR c/9936
12487         * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
12488         variably-sized arrays in parameters.
12489         (set_save_expr_context): New function.
12490         (c_expand_body): Use it, via walk_tree.
12491
12492 2003-03-31  Eric Christopher  <echristo@redhat.com>
12493
12494         * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
12495         (combinable_i3pat): Remove call to expand_field_assignment and
12496         #if 0'd code.
12497
12498 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
12499
12500         PR c++/10278
12501         * c-common.c (finish_label_address_expr): Handle the
12502         error_mark_node.
12503
12504 2003-03-31  Richard Henderson  <rth@redhat.com>
12505
12506         * real.c (real_identical): Reorg so as to not compare
12507         signalling for normals.
12508
12509 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
12510
12511         * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
12512
12513 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
12514
12515         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
12516         notes as they are boggus.
12517         (m68hc11_gen_movqi): Likewise.
12518
12519 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
12520
12521         * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
12522         save the soft registers after the frame pointer so that gdb can unwind
12523         the frame more easily.
12524         (expand_epilogue): Likewise in opposite order; allow to use X register
12525         as scratch if the return value is by reference.
12526
12527 2003-03-31  Jason Merrill  <jason@redhat.com>
12528
12529         PR java/10145
12530         * stor-layout.c (update_alignment_for_field): Respect
12531         DECL_USER_ALIGN for zero-length bitfields, too.
12532         * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
12533         fields.
12534
12535 2003-03-31  Matt Austern  <austern@apple.com>
12536
12537         * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
12538         (count_defs): Keep track of number of defs as well as total size.
12539         (write_defs): Put every definition in cpp_savedstate's defs array.
12540         (comp_hashnode): Define.  Comparison function for qsort.
12541         (cpp_write_pch_deps): Sort definitions before writing them.
12542         (struct ht_node_list): Define. Like cpp_savedstate but simpler.
12543         (collect_ht_nodes): Define.
12544         (cpp_valid_state): When verifying that undefined identifiers in
12545         the pch file are still undefined, read a sorted list of undefined
12546         identifiers, collect all defined identifiers into a sorted list,
12547         and walk through both lists to make sure there's no match.
12548
12549 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
12550
12551         * config/h8300/h8300.md (a peephole2): New.
12552
12553 2003-03-31  Michael Matz  <matz@suse.de>
12554
12555         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
12556
12557 2003-03-31  Segher Boessenkool  <segher@koffie.nl>
12558
12559         PR target/10177
12560         * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
12561         * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
12562         all call-clobbered registers as used.
12563
12564 2003-03-31  Michael Matz  <matz@suse.de>
12565
12566         * cppexp.c (cpp_classify_number): Accept '.' after "0x".
12567         * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
12568
12569 2003-03-31  Nathan Sidwell  <nathan@codesourcery.com>
12570
12571         * gcov.c: Add -a & -u options.
12572         (struct arc_info): Add local_span, is_call_non_return,
12573         is_nonlocal_return, is_unconditional flags, remove is_call flag.
12574         (struct block_info): Add flags, is_call_site, is_nonlocal_return
12575         members. Make encodings a union with span member.
12576         (struct function_info): Add blocks_executed, line, src, line_next
12577         members.
12578         (struct coverage_info): Make branches a union with blocks member.
12579         (struct source_info): Add functions member.
12580         (object_summary, program_count): New global variables.
12581         (flag_all_blocks, flag_unconditional): New flags.
12582         (find_source, output_branch_count): New functions.
12583         (print_usage): Adjust.
12584         (options): Adjust.
12585         (process_args): Adjust.
12586         (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
12587         <GCOV_TAG_BLOCKS>: Read flags.
12588         <GCOV_TAG_LINES>: Adjust.
12589         (read_count_file): Process SUMMARY tags.
12590         (solve_flow_graph): Set is_unconditional and clear is_call_site
12591         appropriately.
12592         (add_branch_counts): Adjust. Don't count unconditional branches.
12593         (add_line_counts): Deal with all-blocks mode, accumulate block
12594         coverage.
12595         (accumulate_line_counts): Adjust, generate local spanning tree for
12596         all-blocks mode.
12597         (output_lines): Adjust.
12598         * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
12599         * doc/gcov.texi: Document.
12600
12601 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
12602
12603         * config/h8300/h8300.md: Organize peephole2's that transform
12604         (compare (reg:HI) (const_int)).
12605
12606 2003-03-31  Roger Sayle  <roger@eyesopen.com>
12607
12608         * emit-rtl.c (dconstm2, dconsthalf): New real constants.
12609         (init_emit_once): Initialize dconstm2 and dconsthalf here.
12610         * real.h (dconstm2, dconsthalf): Add prototypes here.
12611         * real.c (real_sqrt): Use dconsthalf rather than local copy.
12612         * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
12613         exp(x/2.0) remember to fold the division if possible.
12614         Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
12615         pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
12616         1.0/(x*x) and pow(x,0.5) as sqrt(x).
12617
12618 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
12619
12620         * config/h8300/h8300.md (a new peephole2): New.
12621
12622 2003-03-31  Richard Sandiford  <rsandifo@redhat.com>
12623
12624         * gcse.c (simple_mem): Return false for floating-point accesses
12625         if flag_float_store is true.
12626
12627 2003-03-30  Roger Sayle  <roger@eyesopen.com>
12628
12629         * gcse.c (gcse_constant_p): New function to identify constants
12630         suitable for constant propagation, including COMPARE with two
12631         integer constant arguments.
12632         (hash_scan_set): Use gcse_constant_p.
12633         (find_avail_set): Likewise.
12634         (cprop_insn): Likewise.
12635         (do_local_cprop): Likewise.
12636         (find_implicit_sets): Likewise.
12637         (find_bypass_set): Likewise.
12638
12639 2003-03-30  Matt Kraai  <kraai@alumni.cmu.edu>
12640
12641         * except.h: Remove definition of varray_type.
12642
12643 2003-03-30  Richard Henderson  <rth@redhat.com>
12644
12645         PR opt/10011, opt/10252:
12646         * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
12647         before post-gcse cse pass.
12648
12649 2003-03-30  Roger Sayle  <roger@eyesopen.com>
12650
12651         * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
12652
12653 2003-03-30  DJ Delorie  <dj@redhat.com>
12654
12655         * profile.c (instrument_edges): Make sure any newly created
12656         jump insns have correct jump label info.
12657
12658 2003-03-30  Richard Henderson  <rth@redhat.com>
12659
12660         * cfgbuild.c (make_edges): Use tablejump_p.
12661         * cfgcleanup.c (label_is_jump_target_p): Likewise.
12662         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
12663         * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
12664         (try_redirect_by_replacing_jump): Likewise.
12665         (redirect_edge_and_branch): Likewise.
12666         * cse.c (fold_rtx): Likewise.
12667         * jump.c (delete_related_insns): Likewise.
12668         * rtlanal.c (get_jump_table_offset): Likewise.
12669         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
12670
12671 2003-03-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12672
12673         * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
12674         (STRICT2_WARN): Likewise.
12675
12676 2003-03-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12677
12678         PR other/6955
12679         * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
12680         * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
12681
12682 2003-03-30  Richard Henderson  <rth@redhat.com>
12683
12684         PR c/10083
12685         * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
12686         don't zero_extend const inputs.
12687
12688 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
12689
12690         * reload1.c (reload_cse_move2add): Fix a comment typo.
12691
12692 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
12693
12694         * config/h8300/h8300.md (a peephole2): Remove useless code.
12695
12696 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
12697
12698         * config/h8300/h8300.md (*iorsi3_and_ashift): New.
12699         (*iorsi3_and_lshiftrt): Likewise.
12700         (*iorsi3_zero_extract): Likewise.
12701
12702 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
12703
12704         * config/h8300/h8300.md (*insv_si_8_8): New.
12705         (*insv_si_8_8_lshiftrt_8): Likewise.
12706         (a peephole2): Likewise.
12707
12708 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12709
12710         * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
12711         Uniformly use bugfix instead of bug fix.
12712
12713 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12714
12715         PR doc/895
12716         * ONEWS: Remove those items that already appear in the EGCS
12717         release notes on our web pages.
12718
12719 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
12720
12721         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
12722         TARGET_HARD_FLOAT.  Reformat.
12723         (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
12724
12725 2003-03-28  Albert Chin-A-Young  <china@thewrittenword.com>
12726
12727         * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
12728         work on Solaris 2.5.1.
12729
12730 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>
12731
12732         * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
12733         section of h8300.md
12734         (*addsi3_and_nor_r_1): Likewise.
12735
12736 2003-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
12737
12738         * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
12739         set up before any trapping memory access if flag_non_call_exceptions.
12740
12741 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
12742
12743         * reload1.c (reload_as_needed): Allow a USE in asm reloads.
12744
12745         * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
12746
12747 2003-03-28  Nathanael Nerode  <neroden@gcc.gnu.org>
12748
12749         * configure.in: Clarify comments.
12750         * configure: Regenerate.
12751
12752 2003-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
12753
12754         * config/s390/s390.md ("literal_pool_31"): Output pool anchor
12755         label even if pool empty when generating PIC.
12756         ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
12757
12758 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>,
12759             Dhananjay Deshpande  <dhananjayd@kpit.com>
12760
12761         PR target/10205
12762         * config/h8300/h8300.c (h8300_initial_elimination_offset):
12763         Correct the offset computation when TARGET_NORMAL.
12764
12765 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
12766
12767         PR target/10067
12768         * config/sparc/sparc.md (jump pattern): Correct order
12769         when issuing the annuling marker.
12770
12771 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
12772
12773         PR c/8281
12774         * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
12775         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
12776
12777 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
12778
12779         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
12780         globalize_label.
12781         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12782         * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12783         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12784         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12785         * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12786         * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12787         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
12788
12789 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
12790
12791         * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
12792         (replace_loop_mems): Add "written" param.  Remove invalid REG_EQUAL
12793         notes after hoisting.
12794         (load_mems): Adjust replace_loop_mems call.
12795
12796 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
12797             Richard Henderson  <rth@redhat.com>
12798
12799         PR target/10114 and PR target/10084
12800         * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
12801
12802 2003-03-27  Richard Henderson  <rth@redhat.com>
12803
12804         * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
12805
12806 2003-03-27  Roger Sayle  <roger@eyesopen.com>
12807
12808         * fold-const.c (fold_inf_compare):  New function to simplify FP
12809         comparisons against +Infinity or -Infinity.
12810         (fold):  Optimize floating point comparisons against Infs and NaNs.
12811
12812 2003-03-27  Janis Johnson  <janis187@us.ibm.com>
12813
12814         * libgcov.c: Provide only dummy functions if libc is not available.
12815
12816 2003-03-27  Richard Henderson  <rth@redhat.com>
12817
12818         * real.h (struct real_value): Add signalling.
12819         (EXP_BITS): Decrement.
12820         * real.c (get_canonical_qnan): Don't set MSB-1.
12821         (get_canonical_snan): Likewise.  Set signalling.
12822         (real_identical): Compare signalling.
12823         (round_for_format): Remove force-one-bit on code.
12824         (real_nan): Likewise.  Set signalling.
12825         (encode_ieee_single): Add force-one-bit code; honor signalling.
12826         (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
12827         (decode_ieee_single): Set signalling.
12828         (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
12829
12830 2003-03-27  Olivier Hainque  <hainque@act-europe.fr>
12831
12832         PR ada/9953
12833         * ada/Makefile.in (gnatlib configuration for HPUX): Split
12834         the general section for HPUX into specific sections for
12835         HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
12836         11 case.
12837
12838 2003-03-27  Glen Nakamura  <glen@imodulo.com>
12839
12840         PR opt/10087
12841         * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
12842         while incrementing giv.
12843         (record_biv): Check for duplicate biv locations and
12844         set (struct induction *) v->same if found.
12845
12846 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
12847
12848         * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
12849         v0.9 API change: replace read of UNW_REG_HANDLER with
12850         unw_get_proc_info().
12851         (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
12852         with unw_get_proc_info().
12853         (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
12854         unw_get_proc_info().
12855
12856 2003-03-27  Vladimir Makarov  <vmakarov@redhat.com>
12857
12858         * config/rs6000/8540.md: Use presence_set instead of absence_set.
12859
12860 2003-03-26  Richard Henderson  <rth@redhat.com>
12861
12862         * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
12863
12864 2003-03-26  Roger Sayle  <roger@eyesopen.com>
12865
12866         PR bootstrap/10051, PR bootstrap/10169.
12867         * mips-tfile.c (init_file): Don't provide a static initializer.
12868         (initialize_init_file): Initialize the contents of init_file.
12869         (add_file): Call initialize_init_file if not already initialized.
12870
12871 2003-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
12872
12873         * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
12874         registers used for global asm variables.
12875         (s390_frame_info, s390_arg_frame_offset): Likewise.
12876         (s390_emit_prologue, s390_emit_epilogue): Likewise.
12877
12878 2003-03-26  Vladimir Makarov  <vmakarov@redhat.com>
12879
12880         * config/rs6000/8540.md: New file.
12881
12882         * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
12883         power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
12884         reservations for imul.
12885
12886         * config/rs6000/rs6000.md: Include 8540.md.  Change
12887         delayed_compare onto mult_compare for insns generating
12888         multiplication.
12889         (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
12890         New type attribute values.
12891
12892         * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
12893         fpsimple instead of fp.
12894         (*divsf3_gpr): Use type vecfdiv instead of fp.
12895         (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
12896         instead of vecfloat.
12897         (spe_evfsdive): Use type vecfdiv instead of vecfloat.
12898         (spe_brinc): Use type brinc instead of veccomplex.
12899         (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
12900         veccomplex.
12901         (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
12902         (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
12903         *movv2sf_internal): Define type attribute values for all
12904         alternatives.
12905         (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
12906         of fpcompare.
12907         (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
12908         instead of fpcompare.
12909
12910 2003-03-26  David Edelsohn  <edelsohn@gnu.org>
12911
12912         * config/rs6000/power4.md: Allow delay between dispatch and
12913         function units for simple instructions.  Correct store units.
12914         Allow branch to occupy as many dispatch slots as necessary.
12915
12916 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
12917
12918         * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
12919         (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
12920         zero extend old to it.
12921         * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
12922         operand.
12923
12924 2003-03-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
12925
12926         PR target/7784
12927         * reload.c (find_reloads_address): Handle
12928         (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
12929         all base registers.
12930
12931 2003-03-25  Marcelo Abreu  <mmabreu@inf.ufrgs.br>
12932
12933         PR other/10203
12934         * version.c: Reference the GCC web site in the URL.
12935
12936 2003-03-26  Alan Modra  <amodra@bigpond.net.au>
12937
12938         * c-incpath.c (add_standard_paths): Add both "translated" and
12939         non-translated header paths.
12940
12941 2003-03-25  Loren James Rittle  <ljrittle@acm.org>
12942
12943         * doc/install.texi (*-*-freebsd*): Update with known status.
12944
12945 2003-03-21  Jason Merrill  <jason@redhat.com>
12946
12947         PR optimization/10171
12948         * unroll.c (unroll_loop): Don't delete the jump at the end unless
12949         we also delete a jump at the beginning.
12950
12951 2003-03-25  Stephane Carrez  <stcarrez@nerim.fr>
12952
12953         * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
12954         contributor.
12955
12956 Tue Mar 25 20:35:51 CET 2003  Jan Hubicka  <jh@suse.cz>
12957
12958         * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
12959         constants are not expensive.
12960
12961 Mon Mar 24 20:03:03 CET 2003  Jan Hubicka  <jh@suse.cz>
12962
12963         PR opt/10056
12964         * cfglayout.c (fixup_reorder_chain):  Fix dealing with the conditional
12965         jump jumping to the next instruction.
12966         * cfgrtl.c (force_nonfallthru_and_redirect):  Likewise.
12967
12968 2003-03-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12969
12970         * doc/passes.texi (Passes): Properly document that we do not
12971         perform jump2 any longer; remove command-line option -dJ.
12972
12973 2003-03-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
12974
12975         PR optimization/8746
12976         * config/i386/i386.md (and promoting splitters): Disable HImode to
12977         SImode promoting when the sign bit matters and is not preserved, or
12978         when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
12979         for size.
12980
12981 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
12982
12983         * config/h8300/h8300.md (a peephole2): Extend to support loads
12984         in QImode and HImode.
12985
12986 2003-03-24  Stephane Carrez  <stcarrez@nerim.fr>
12987
12988         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
12989         _return_far
12990         (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
12991         (MULTILIB_EXCEPTIONS): Likewise.
12992         * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
12993         by calling some board support routine.
12994         ("call_value"): Likewise.
12995         ("*return_void"): Likewise for return.
12996         ("*return_16bit"): Likewise.
12997         ("*return_32bit"): Likewise.
12998         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
12999         for 68HC11 too.
13000         (DWARF2_ADDR_SIZE): Use 4 so that addresses can
13001         * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
13002         -mlong-calls for 68HC11.
13003         * config/m68hc11/larith.asm (declare_near): New macro.
13004         (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
13005         (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
13006         (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
13007         (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
13008         (__mulhi32): Likewise.
13009         (ret): Update macro for 68HC11.
13010         (__far_trampoline): Implement for 68HC11.
13011         (__call_a16, __call_a32, __return_void, __return_16): New support
13012         routines for 68HC11 memory bank switching calling support.
13013         (__return_32): Likewise.
13014
13015 2003-03-24  Neil Booth  <neil@daikokuya.co.uk>
13016
13017         * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
13018
13019 2003-03-24  Janis Johnson  <janis187@us.ibm.com>
13020
13021         * doc/install.texi (Testing): Mention test result links from build
13022         status pages.
13023
13024 2003-03-24  Mark Mitchell  <mark@codesourcery.com>
13025
13026         * function.c (put_var_into_stack): Change bool parameter to int.
13027         (gen_mem_addressof): Likewise.
13028         * rtl.h (gen_mem_addressof): Likewise.
13029         * tree.h (put_var_into_stack): Likewise.
13030         * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
13031         gen_mem_addressof or put_var_into_stack.
13032         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
13033         * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
13034
13035 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
13036
13037         * config/h8300/h8300.md (a peephole2): New.
13038
13039 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
13040
13041         * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
13042
13043 2003-03-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13044
13045         * doc/contrib.texi (Contributors): Update Janis Johnson.
13046
13047 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
13048
13049         PR target/10072
13050         * combine.c (simplify_if_then_else): Check that the mode
13051         has MODE_INT class before applying the (OP Z (mult COND C2))
13052         transformation.
13053
13054 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
13055
13056         PR optimization/9414
13057         * config/sparc/sparc.md (widening peepholes): Use
13058         widen_memory_access instead of change_address.
13059
13060 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
13061
13062         PR c++/7086
13063         * c-typeck.c (c_mark_addressable): Adjust calls to
13064         put_var_into_stack.
13065         * expr.c (expand_expr): Likewise.
13066         * function.c (put_var_into_stack): Add rescan parameter.  Do not
13067         call fixup_var_refs when rescan is false.
13068         (gen_mem_addressof): Likewise.
13069         (assign_parms): Adjust calls to put_var_into_stack.
13070         (setjmp_protect): Likewise.
13071         (setjmp_protect_args): Likewise.
13072         * rtl.h (gen_mem_addressof): Change prototype.
13073         * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
13074         * tree.h (put_var_into_stack): Change prototype.
13075
13076 2003-03-23  Arpad Beszedes <beszedes@cc.u-szeged.hu>
13077
13078         PR middle-end/9967
13079         * builtins.c (expand_builtin_fputs): When optimizing for size,
13080         don't transform fputs into fwrite.
13081
13082 2003-03-23  Glen Nakamura <glen@imodulo.com>
13083
13084         PR c/8224
13085         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
13086         when signedness changes for division or modulus.
13087
13088 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
13089
13090         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
13091         globalize_label.
13092
13093 2003-03-23  Roger Sayle  <roger@eyesopen.com>
13094
13095         PR c/10178
13096         * stmt.c (expand_end_case_type): Check for overflow in range when
13097         determining whether to use a bit-test implementation.
13098
13099 2003-03-23  Richard Henderson  <rth@redhat.com>
13100
13101         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
13102         before flow2.
13103         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
13104
13105 2003-03-23  Richard Henderson  <rth@redhat.com>
13106
13107         PR opt/10116
13108         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
13109         from then_bb or else_bb after flow2.
13110
13111 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
13112
13113         * configure.in: Check whether it is necessary to link against
13114         libm to use ldexp.
13115         * configure: Regenerate.
13116         * Makefile.in: Add LDEXP_LIB substitution variable.
13117
13118 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
13119
13120         * config/h8300/h8300.md: Fix comment typos.
13121
13122 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13123
13124         * pa.c (output_cbranch): Fix typo in comment.
13125
13126 2003-03-22  Richard Henderson <rth@redhat.com>
13127
13128         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
13129         after reload.
13130
13131 2003-03-22  DJ Delorie  <dj at redhat dot com>,
13132         Bruce Korb  <bkorb at gnu dot org>
13133
13134         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
13135         buggy Solaris 2.6 mutex/cond initializers.
13136         (solaris_mutex_init): Rename to solaris_mutex_init_2.
13137         * fixinc/fixincl.x: Regenerate.
13138         * fixinc/tests/base/pthread.h: Update.
13139         * fixinc/fixincl.c(initialize): be explicit about the default case
13140         and indicate verbose level when being very, very verbose.
13141         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
13142
13143 2003-03-22  Andreas Jaeger  <aj@suse.de>
13144
13145         * config/i386/i386.c (ix86_init_machine_status): Return value.
13146
13147 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13148
13149         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
13150         conditional branch to the following instruction.  Use next_real_insn
13151         instead of next_active_insn.
13152         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
13153         instead of next_active_insn.
13154
13155 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
13156
13157         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
13158         instead of 'm' constraint in forced-split alternatives.
13159         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
13160         VALIDATE_ADDRESS parameter to operand_subword.
13161
13162 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
13163
13164         * config/h8300/h8300.c (notice_update_cc): Correctly handle
13165         the case where the set destination is STRICT_LOW_PART.
13166
13167 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
13168
13169         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
13170         c30 instead of a c40 processor.
13171
13172 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
13173
13174         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
13175
13176 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
13177
13178         * c-common.c: Include intl.h.
13179         (shadow_warning): Rewrite to allow better diagnostic translations.
13180         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
13181         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
13182         use it throughout.
13183         * Makefile.in (c-common.o): Add intl.h.
13184
13185 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
13186
13187         * config.gcc: Remove 'float_format'.
13188
13189         * fixproto: Define NULL and size_t in generated stdlib.h and
13190         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
13191         Rearrange file generation loop for readability.  Generate time.h,
13192         string.h if missing.
13193         * tsystem.h: Include <string.h>, <time.h> unconditionally.
13194         * config.gcc: Blow away POSIX defines.
13195
13196 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
13197
13198         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
13199
13200 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
13201
13202         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
13203         writing .interrupt command.
13204         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
13205         if it's a far or near function.
13206         ("call_value"): Likewise.
13207         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
13208         near attributes.
13209         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
13210         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
13211         (m68hc11_initial_elimination_offset): Set current_function_far
13212         according to attributes.
13213         (expand_prologue): Likewise.
13214         (trap_handler_symbol): New global to keep track of trap handlers.
13215         (m68hc11_encode_section_info): Mark symbol as far if needed; set
13216         trap symbol.
13217         (m68hc11_is_far_symbol): New function.
13218         (m68hc11_is_trap_symbol): New function.
13219         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
13220         (m68hc11_is_trap_symbol): Declare.
13221
13222 2003-03-21  Jan Hubicka  <jh@suse.cz>
13223
13224         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
13225         only when amount of saved regs changed.
13226         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
13227         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
13228
13229 2003-03-21  Jan Hubicka  <jh@suse.cz>
13230
13231         PR inline-asm/7916
13232         * function.c (instantiate_virtual_regs_lossage): New function.
13233         (instantiate_virtual_regs_1): Use it.
13234         (instantiate_virtual_regs): Do not continue in substition when insn has
13235         been deleted.
13236
13237 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
13238
13239         * combine.c (make_field_assignment): Fix a warning.
13240
13241 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
13242
13243         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
13244
13245 2003-03-21  Dale Johannesen  <dalej@apple.com>
13246
13247         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
13248         priority for R2 on Darwin.
13249         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
13250
13251 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
13252
13253         * combine.c (make_field_assignment): Remove unnecessary AND
13254         when storing into zero_extract.
13255
13256 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
13257
13258         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
13259         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
13260         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
13261         in comment.
13262
13263 2003-03-21  DJ Delorie  <dj@redhat.com>
13264
13265         * optabs.c (init_integral_libfuncs): Make sure we init at least up
13266         to "long long" size words.
13267
13268 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
13269
13270         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
13271         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
13272         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
13273
13274 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
13275
13276         PR doc-bug/9813
13277         * doc/extend.texi: Move misplaced paragraph about underscores in
13278         variables in macros.
13279
13280 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
13281             Richard Henderson  <rth@redhat.com>
13282
13283         PR optimization/8366
13284         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
13285         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
13286         PIC+SYMBOLIC_CONST in other modes than Pmode.
13287         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
13288         the form PIC+SYMBOLIC_CONST as mode dependent.
13289
13290 2003-03-21  DJ Delorie  <dj@redhat.com>
13291
13292         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
13293         sure we always emit at least one insn.
13294
13295 2003-03-21  Christopher Faylor  <cgf@redhat.com>
13296
13297         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
13298         stub t-cygming. Use common target header cygming.h. Add extra
13299         c_target_obj and cxx_target_obj file. Default cygwin to posix
13300         threading. Enforce i386 as float format.
13301         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
13302         Remove cygwin.h as target header. Use common target header
13303         cygming.h  Enforce i386 as float format. Correct typo.
13304         * config/i386/cygming.h: New file, containing definitions
13305         common to mingw32 and cygwin.
13306         * config/i386/cygwin.h: Remove definitions common to cygwin and
13307         mingw.  Simplify special spec logic.  Define "wrappers" around
13308         certain include path defines to accommodate -mno-cygwin.
13309         Remove some #if 0'ed code.
13310         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
13311         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
13312         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
13313         * config/i386/mingw32.h: Remove definitions common to cygwin and
13314         mingw.
13315         (EXTRA_OS_CPP_BUILTINS): Adjust.
13316         (TARGET_VERSION): Define.
13317         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
13318         mingw32.h definitions.
13319         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
13320         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
13321         Add compilation rules for cygwin1.o cygwin2.o.
13322         * config/i386/cygwin1.c: New file.
13323         * config/i386/cygwin2.c: New file.
13324         * config/i386/t-cygming: New makefile stub.
13325
13326 2003-03-20  Richard Henderson  <rth@redhat.com>
13327
13328         * fold-const.c (extract_muldiv_1): Revert changing order of
13329         operands in case MULT_EXPR of 2003-02-16 patch.
13330
13331 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
13332         Merge changes from new-regalloc-branch
13333
13334         From Michael Matz  <matz@suse.de>
13335         * df.c (df_ref_record_1): Move init of loc to safe point.
13336         Only recurse on interesting things in parallels.
13337         Handle CLASS_CANNOT_CHANGE_MODE smarter.
13338         (df_uses_record): Ditto.
13339
13340         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
13341         it's already okay to use memory operands in (IE doesn't require
13342         adding another insn or anything).
13343
13344 2003-03-20  Richard Henderson  <rth@redhat.com>
13345
13346         PR middle-end/6348
13347         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
13348         different from word_mode.
13349
13350 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
13351
13352         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
13353         source operand to those that can be extracted with bld.
13354
13355 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
13356
13357         PR 10066
13358         * arm.md (UNSPEC_PIC_BASE): New constant.
13359         (pic_add_dot_plus_four): Wrap with unspec.
13360         (pic_add_dot_plus_eight): Likewise.
13361
13362 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
13363
13364         * config/h8300/h8300.md (*insv_si_1_n): New.
13365         (*insv_si_1_n_lshiftrt): Likewise.
13366
13367 2003-03-20  Roger Sayle  <roger@eyesopen.com>
13368
13369         * fold-const.c (fold_mathfn_compare): New function to simplify
13370         comparisons against built-in math functions.  Fold comparisons
13371         of sqrt against constants.
13372         (fold): Call fold_mathfn_compare when appropriate.
13373
13374 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
13375
13376         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
13377         information.
13378
13379 2003-03-20  Per Bothner  <pbothner@apple.com>
13380
13381         Various cleanups to help compile server.
13382
13383         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
13384         and pass that to _cpp_init_hashtable.
13385         (cpp_read_main_file):  Drop hash_table* argument; don't call
13386         _cpp_init_hashtable.
13387         * cpplib.h:  Update declarations to match.
13388         * c-opts.c (c_common_init_options):  Pass ident_hash to
13389         cpp_create_reader.
13390         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
13391         * fix-header.c (read_scan_file):  Likewise pass NULL table to
13392         cpp_create_reader rather than cpp_read_main_file.
13393
13394         * cppfiles.c (cpp_rename_file):  Generalized and renamed
13395         to cpp_change_file.
13396         * cpplib.h:  Update declaration to match.
13397         * c-opts.c (push_command_line_line, finish_options):  Change
13398         cpp_rename_file calls to cpp_change_file.
13399
13400         * line-map.c (add_line_map):  Allow leaving the outermost file.
13401         Allowing entering an outermost-file after the initial time.
13402
13403         * toplev.c (pop_srcloc):  Allow popping from initial file.
13404
13405 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
13406
13407         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
13408
13409 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
13410
13411         * config/h8300/h8300.md (a peephole2): New.
13412
13413 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
13414
13415         * config/h8300/h8300.md (*addsi3_and_r_1): New.
13416         (*addsi3_and_not_r_1): Likewise.
13417
13418 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
13419
13420         * Makefile.in (STRICT2_WARN): Add @WERROR@.
13421         (GCC_WARN_CFLAGS): Remove $(WERROR).
13422         (fixinc.sh-warn): New.
13423         * ada/Make-lang.in (ada-warn): Add $(WERROR).
13424         * cp/Make-lang.in (cp-warn): Add $(WERROR).
13425         * f/Make-lang.in (f-warn): Add $(WERROR).
13426         * java/Make-lang.in (java-warn): Add $(WERROR).
13427         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
13428
13429 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
13430
13431         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
13432         langhooks-def.h (lhd_tree_dump_dump_tree),
13433         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
13434         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
13435         true and false in return statements.
13436
13437 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
13438
13439         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
13440         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
13441         DWARF_INITIAL_LENGTH_SIZE.
13442         (output_compilation_unit_header, output_pubnames, output_aranges)
13443         (output_line_info): Output 0xffffffff escape value for 64-bit
13444         DWARF extension.
13445         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
13446
13447 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
13448
13449         * config/s390/s390.c (s390_preferred_reload_class): Do not
13450         force constants to the pool unless necessary.
13451         (s390_decompose_address): Prefer to use pointer as base,
13452         not index register.
13453         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
13454         Q alternative.
13455         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
13456         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
13457         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
13458         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
13459         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
13460
13461 2003-03-19  Jan Hubicka  <jh@suse.cz>
13462
13463         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
13464         * i386.c (use_fast_prologue_epilogue): Remove.
13465         (ix86_frame): New field save_regs-using_mov;
13466         (ix86_compute_frame_layout):  Decide on fast prologues;
13467         allocate saved registers in red zone.
13468         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
13469
13470 2003-03-19  Nick Clifton  <nickc@redhat.com>
13471
13472         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
13473
13474 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13475
13476         PR 10062
13477         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
13478         * pa-protos.h (output_lbranch): New prototype.
13479         * pa.c (compute_frame_size): Change size of the frame marker on the
13480         64-bit ports to 48 bytes.
13481         (pa_output_function_prologue): Document why SAVE_SP is set.
13482         (hppa_expand_prologue): Save previous stack pointer into frame marker
13483         on targets which use the hpux unwind library.
13484         (output_cbranch): Use output_lbranch.
13485         (output_lbranch): New function to output long unconditional branches.
13486         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
13487         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
13488         64-bit ports.
13489         * pa.md (jump): Use output_lbranch.
13490         (allocate_stack): New expander for dynamic stack allocation.
13491
13492 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
13493
13494         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
13495         when debugging on XCOFF targets.  Delete "abi" temp.
13496
13497         PR target/10073
13498         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
13499
13500 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
13501
13502         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
13503         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
13504         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
13505
13506         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
13507         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
13508         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
13509
13510 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
13511
13512         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
13513         the result of machopic_function_base_name.
13514         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
13515         string rather than a static array.
13516
13517         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
13518
13519         * gengtype.c: Include rtl.h.
13520         (enum rtx_code): Don't define.
13521         (rtx_format): Make declaration match rtl.h.
13522         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
13523         users.
13524         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
13525         * Makefile.in (gengtype.o): Update dependencies.
13526
13527 2003-03-18  Andreas Schwab  <schwab@suse.de>
13528
13529         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
13530         martin@blom.org.
13531
13532 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
13533
13534         * function.c (next_block_index): Mark with GTY.
13535
13536         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
13537
13538 2003-03-18  Richard Henderson  <rth@redhat.com>
13539
13540         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
13541         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
13542         until after reload.
13543
13544 2003-03-18  Richard Henderson  <rth@redhat.com>
13545
13546         * builtins.c (expand_builtin_unop): New target_mode operand;
13547         use it to convert the result to the correct mode.
13548         (expand_builtin): Update all callers.
13549
13550 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
13551
13552         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
13553
13554 2003-03-18  Jan Hubicka  <jh@suse.cz>
13555
13556         * i386.md:  Fix previous commit that mistakely applied the patch
13557         twice.
13558
13559         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
13560         canonicalized.
13561         (memrefs_conflict_p): Likewise.
13562         (addr_side_effect_eval): Canonicalize the constructed address.
13563
13564 2003-03-18  Jan Hubicka  <jh@suse.cz>
13565
13566         * i386.md (cvtts?2si peep2): New.
13567
13568 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
13569
13570         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
13571
13572 2003-03-18  Andreas Schwab  <schwab@suse.de>
13573
13574         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
13575         for format.
13576
13577 2003-03-17  Jason Merrill  <jason@redhat.com>
13578
13579         PR c++/10091
13580         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
13581         an unaligned member of TREE_ADDRESSABLE type.
13582
13583 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
13584
13585         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
13586         (TARGET_PROFILE_KERNEL): Define.
13587         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
13588         (PROFILE_BEFORE_PROLOGUE): Don't define.
13589         (PROFILE_KERNEL): Remove hacks.
13590         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
13591         (rs6000_stack_info): No need to save lr if just for profiling when
13592         TARGET_PROFILE_KERNEL.
13593         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
13594         (output_function_profiler): Localize label generation.  Emit code
13595         for kernel profiling.
13596
13597 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
13598
13599         * config/h8300/h8300-protos.h: Add a prototype for
13600         byte_accesses_mergeable_p.
13601         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
13602         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
13603         (a splitter): Likewise.
13604         (*iorsi3_ashift_16_ashift_24): Likewise.
13605         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
13606
13607 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13608
13609         * dwarf2asm.h: Delete obsolete comment.
13610         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
13611         dw2_asm_output_pcrel, dw2_asm_output_addr,
13612         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
13613         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
13614         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
13615         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
13616
13617 2003-03-17  Zack Weinberg <zack@codesourcery.com>
13618
13619         * c-tree.h (struct lang_identifier): Remove error_locus field.
13620         (IDENTIFIER_ERROR_LOCUS): Kill.
13621         (record_function_scope_shadow): New prototype.
13622         * c-typeck.c (build_external_ref): Don't complain if
13623         decl is error_mark_node.  When not at file scope, bind the
13624         decl's local value to error_mark_node to suppress further
13625         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
13626
13627         * c-decl.c (get_function_binding_level): New static function.
13628         (record_function_scope_shadow): New exported function.
13629         (c_make_fname_decl): Use get_function_binding_level.
13630
13631 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
13632
13633         * stmt.c (tail_recursion_args): Call promote_mode to set
13634         unsignedp flag correctly before calling convert_move.
13635
13636 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13637
13638         * loop-unroll.c (decide_peel_completely,
13639         decide_unroll_constant_iterations, decide_unroll_stupid,
13640         decide_unroll_runtime_iterations, decide_peel_simple): Set
13641         loop->has_desc.
13642
13643 2003-03-17  Jan Hubicka  <jh@suse.cz>
13644
13645         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
13646
13647 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
13648
13649         * function.c (assign_parms): For a struct value address passed as
13650         first argument, delay the function's result RTL setup code until
13651         after the emission of parameter conversions.
13652
13653 2003-03-17  Dave Love  <fx@gnu.org>
13654             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13655
13656         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
13657         __arch64__ to match Compaq cc.
13658
13659 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
13660
13661         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
13662         (c_common_init): Set EBCDIC in cpp options.
13663         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
13664         not conditional compilation.
13665         * cpplib.h (struct cpp_options): New entry EBCDIC.
13666
13667 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
13668
13669         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
13670
13671 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13672
13673         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
13674         argument to 0 for redirect_jump.
13675
13676 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
13677
13678         PR c++/8805
13679         * except.c (eh_region_u_cleanup): Add prev_try.
13680         (expand_eh_region_end_cleanup): Set it.
13681         (reachable_handlers): Use it to skip over cleanup blocks.
13682
13683 2003-03-17  Andreas Jaeger  <aj@suse.de>
13684
13685         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
13686
13687 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
13688
13689         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
13690         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
13691         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
13692         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
13693
13694 2003-03-16  Richard Henderson  <rth@redhat.com>
13695
13696         * simplify-rtx (simplify_binary_operation): Don't abort for
13697         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
13698
13699 2003-03-16  Richard Henderson  <rth@redhat.com>
13700
13701         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
13702         optimize_size as well.
13703
13704 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
13705
13706         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
13707         for D register to specify the low part of it, aka B.
13708         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
13709         the register if we are loading 1 or -1 to it; avoid using temp
13710         register when moving X/Y to Y/X.
13711         (m68hc11_gen_movqi): Likewise.
13712         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
13713
13714 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
13715
13716         PR optimization/9016
13717         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
13718         into the constant pool.
13719
13720 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
13721
13722         PR target/9164
13723         * tree.c (get_narrower): For extensions with unchanged bit number,
13724         return the unsignedness of the outer mode.
13725
13726 2003-03-16  Roger Sayle  <roger@eyesopen.com>
13727
13728         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
13729         to avoid "may be used uninitialized" warning on ia64-hpux.
13730         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
13731
13732 2003-03-16  Andreas Jaeger  <aj@suse.de>
13733
13734         * configure.in: Improve check for memcheck.h.
13735         * configure: Regenerated.
13736
13737 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
13738
13739         * doc/cppopts.texi: Remove documentation of -A-.
13740
13741 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
13742
13743         * doc/libgcc.texi: Remove @tie.
13744
13745 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
13746
13747         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
13748         (rtx_pair): Added new element update_label_nuses, renamed to
13749         replace_label_data.
13750         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
13751         replace_label_data instead of rtx_pair.
13752         * loop.c (load_mems): Likewise.
13753         * rtlanal.c (replace_label): Replace label in pool constants and in
13754         INSN_LIST (in REG_LABEL note).
13755         (subrtx_p): Renamed to rtx_referenced_p.
13756         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
13757         LABEL_REF with CODE_LABEL, traverse constants from pool.
13758
13759 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
13760             Zack Weinberg  <zack@codesourcery.com>
13761
13762         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
13763         * doc/libgcc.texi: New file.
13764         * doc/interface.texi: Delete paragraph about libgcc interface.
13765         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
13766
13767 2003-03-15  Jason Merrill  <jason@redhat.com>
13768
13769         PR debug/9039
13770         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
13771
13772         PR debug/6387
13773         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
13774         function DIEs at toplevel.
13775         (decls_for_scope): At -g1, don't descend into subblocks.
13776
13777 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
13778
13779         * varasm.c (struct rtx_const): Change type of un.addr member
13780         to struct holding an additional 'symbol' member.
13781         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
13782         with equal string addresses as equal.
13783         (simplify_subtraction): Adapt to struct rtx_const change.
13784
13785 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
13786
13787         * fix-header.c (read_scan_file): Read main file before handling -D.
13788
13789 2003-03-15  Roger Sayle  <roger@eyesopen.com>
13790
13791         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
13792         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
13793         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
13794         (find_sub_basic_blocks): Likewise.
13795         * cgraphunit.c (cgraph_expand_functions): Likewise.
13796         * dwarf2out.c (prune_unused_types): Likewise.
13797         * expr.c (store_field): Likewise.
13798         * genextract.c (print_path): Likewise.
13799         * haifa-sched.c (schedule_insn): Likewise.
13800         * lcm.c (compute_antinout_edge): Likewise.
13801         * loop-unroll.c (decide_peel_once_rolling): Likewise.
13802         * ra-colorize.c (ra_colorize_free_all): Likewise.
13803         * ra-debug.c (dump_igraph): Likewise.
13804         (debug_hard_reg_set): Likewise.
13805         * reg-stack.c (reg_to_stack): Likewise.
13806         * rtlanal.c (refers_to_regno_p): Likewise.
13807         * tracer.c (layout_superblocks): Likewise.
13808
13809 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
13810
13811         * fix-header.c (read_scan_file): Fix thinko.
13812
13813 2003-03-15  Glen Nakamura  <glen@imodulo.com>
13814
13815         * reload1.c (choose_reload_regs): Use && instead of ||
13816         with REG_CANNOT_CHANGE_MODE_P condition.
13817
13818 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
13819
13820         * Makefile.in: Update.
13821         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
13822         * c-lex.c (init_c_lex): Register builtins hook is dead.
13823         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
13824         (c_common_decode_option): Don't call cpp_handle_option.
13825         Handle -A, -D and -U.
13826         (handle_deferred_opts): Simplify.
13827         (finish_options): Define builtins and command line macros.
13828         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
13829         * cppinit.c: Don't include intl.h.
13830         (init_builtins): Rename cpp_init_builtins.  No hook to call.
13831         (init_library): Don't need to sort options.
13832         (cpp_create_reader): Don't set pending.
13833         (cpp_destroy): Don't free pending.
13834         (struct pending_option, cl_directive_handler, struct cpp_pending,
13835         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
13836         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
13837         cl_options, cpp_handle_option): Remove.
13838         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
13839         cpp_finish_options): Remove.
13840         (cpp_init_builtins): New.
13841         * fix-header.c (read_scan_file): Update to handle -D.  Fix
13842         handling of -I.  Replace call to cpp_finish_options.
13843
13844 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13845
13846         PR optimization/9387
13847         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
13848         for conditional returns.
13849
13850 2003-03-14  Jason Merrill  <jason@redhat.com>
13851
13852         PR optimization/6871
13853         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
13854
13855 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
13856
13857         * c-opts.c (finish_options): New.
13858         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
13859         (missing_arg): Handle OPT_include and OPT_imacros.
13860         (c_common_init, c_common_parse_file): Use finish_options.
13861         (handle_deferred_opts): Update.
13862         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
13863         (cpp_finish_options): Don't handle -imacros here.
13864         (no_fil): Remove.
13865         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
13866
13867 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
13868
13869         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
13870         rs6000_maybe_dead if !fromprolog.
13871
13872 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
13873
13874         * Makefile.in: Update.
13875         * c-common.h (fe_file_change, pp_file_change): New.
13876         * c-lex.c (init_c_lex): Don't set cb_file_change.
13877         (c_common_parse_file): Move to c-opts.c.
13878         (cb_file_change): Rename fe_file_change.
13879         * c-opts.c: Include debug.h.
13880         (warn_unused_macros, include_cursor): New.
13881         (push_command_line_include, cb_file_change): New.
13882         (COMMAND_LINE_OPTIONS): Handle -include.
13883         (c_common_decode_option): Use local warn_unused_macros.
13884         Handle OPT_include.
13885         (c_common_post_options): Set file change callback.
13886         (handle_deferred_opts): Skip -include.  Don't free the array.
13887         (c_common_init): Call cpp_finish_options here, and push an
13888         initial -include file.
13889         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
13890         (preprocess_file): Don't call cpp_finish_options.
13891         (init_pp_output): Don't set the file change callback.
13892         (pp_file_change): Return if no line commands or no output.
13893         * cpphash.h (next_include_file, first_unused_line): Remove.
13894         * cppinit.c (include_head, include_tail): Remove.
13895         (cpp_destroy): Don't free -include chain.
13896         (cpp_finish_options): Don't handle -include, or worry about
13897         -Wunused-macros.
13898         (_cpp_maybe_push_include_file): Remove.
13899         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
13900         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
13901         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
13902         Used flag is set based upon the state of the warn_unused_macros
13903         flag, and so use of first_unused_line is unnecessary.
13904
13905 2003-03-13  Jan Hubicka  <jh@suse.cz>
13906
13907         * cselib.c (clear_table): Do not take argument; always clear just
13908         used slots.
13909         (cselib_process_insn):  Update call of clear_table
13910         (cselib_init): Do not call clear_table.
13911         (cselib_finish): Clear table.
13912
13913         * cse.c (count_reg_usage): Do not check side_effects_p.
13914         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
13915         like noop.
13916         (find_reg_equal_equiv_note): Do not use find_reg_note.
13917
13918 2003-03-14  Richard Henderson  <rth@redhat.com>
13919
13920         PR target/9700
13921         * config/alpha/alpha.c (alpha_va_start): Account for
13922         current_function_pretend_args_size in the AP offset.
13923
13924         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
13925         (INITIAL_ELIMINATION_OFFSET): Move out of line.
13926         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
13927         (alpha_initial_elimination_offset) New.
13928         * config/alpha/alpha-protos.h: Update.
13929
13930 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
13931
13932         * stmt.c (expand_start_case): Call emit_queue ().
13933
13934 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
13935             Alexandre Oliva  <aoliva@redhat.com>
13936
13937         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
13938         words in new abis.
13939
13940 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
13941
13942         PR optimization/8396
13943         * tree-inline.c (initialize_inlined_parameters): Make sure the value
13944         of read-only constant arguments is passed with the right type.
13945
13946 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
13947
13948         * doc/extend.texi (Function Names): Make the example compilable.
13949
13950 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
13951
13952         * config/rs6000/rs6000.c (processor_target_table): Really allow
13953         GP optional instructions on Power4.
13954
13955 2003-03-13  Roger Sayle  <roger@eyesopen.com>
13956
13957         * calls.c (flags_from_decl_or_type): Factor and remove redundant
13958         conditional tests.
13959
13960 2003-03-13  Mike Stump  <mrs@apple.com>
13961
13962         * ggc-page.c (struct page_entry): Remove varray.h header.
13963         Add index_by_depth field.
13964         Remove save_in_use_p field.
13965         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
13966         by_depth_max, by_depth, and save_in_use fields.
13967         (INITIAL_PTE_COUNT): Add.
13968         (save_in_use_p_i): Add.
13969         (save_in_use_p): Add.
13970         (adjust_depth): Add.
13971         (move_ptes_to_front): Add.
13972         (push_depth): Add.
13973         (push_by_depth): Add.
13974         (prefetch): Add.
13975         (free_page): Add support for and use faster data structures.
13976         (ggc_alloc): Likewise.
13977         (init_ggc): Likewise.
13978         (ggc_recalculate_in_use_p): Likewise.
13979         (ggc_pop_context): Likewise.
13980         (clear_marks): Likewise.
13981         (ggc_pch_read): Likewise.
13982         * Makefile.in (ggc-page.o): Remove varray.h.
13983
13984 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
13985
13986         * ChangeLog: Rotated last year's entries to...
13987         * ChangeLog.8: New.
13988
13989         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
13990         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
13991         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
13992         config/ia64/ia64-protos.h, config/ia64/ia64.c,
13993         config/ia64/ia64.h, config/ia64/ia64.md,
13994         config/ia64/itanium1.md, config/ia64/itanium2.md,
13995         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
13996         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
13997
13998 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
13999
14000         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
14001         Differentiate endianness.
14002         (s6000_override_options): Use cpu type instead of TARGET_SPE.
14003
14004 2003-03-13  Nick Clifton  <nickc@redhat.com>
14005
14006         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
14007         LDM instructions with writeback enabled.
14008         (output_return_instruction): Likewise.
14009
14010         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
14011         (CALL_USED_REGISTERS): Remove definition.
14012         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
14013
14014 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
14015
14016         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
14017         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
14018         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
14019         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
14020         (rs6000_legitimize_address): Formatting.
14021         (rs6000_emit_move): Likewise.
14022         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
14023         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
14024         (rs6000_elf_select_section): Comment reason for shlib being
14025         set for ABI_AIX.
14026         (rs6000_elf_unique_section): Likewise.
14027         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
14028         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
14029         as well as flag_pic.
14030         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
14031         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14032         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
14033
14034 2003-03-13  Richard Henderson  <rth@redhat.com>
14035
14036         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
14037
14038         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
14039         (ia64_gp_save_reg): Remove.
14040         (struct ia64_frame_info): Move to the beginning of the file;
14041         add reg_save_gp.
14042         (ia64_expand_call): Rearrange for new call patterns.
14043         (ia64_reload_gp): New.
14044         (ia64_split_call): New.
14045         (ia64_compute_frame_size): Allocate reg_save_gp.
14046         (ia64_expand_prologue): Save reg_save_gp.
14047         (ia64_expand_epilogue): Don't restore gp.
14048         (ia64_hard_regno_rename_ok): Remove R4 hack.
14049         (ia64_function_ok_for_sibcall): New.
14050         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
14051         call try_split on sibcall pattern.
14052         * config/ia64/ia64-protos.h: Update.
14053         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
14054         Rename from nopic versions.  Confiscate 2nd argument to call as
14055         a marker.
14056         (call_pic, call_value_pic, sibcall_pic): Remove.
14057         (call_gp, call_value_gp, sibcall_gp): New.
14058         (builtin_setjmp_setup): Remove.
14059         (builtin_setjmp_receiver): Call ia64_reload_gp.
14060
14061 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
14062
14063         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
14064         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
14065         "GNU CC" with "GCC".
14066
14067         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
14068         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
14069         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
14070         GCC, not GNU CC.
14071
14072         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
14073         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
14074
14075         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
14076         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
14077         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
14078         "GNU CC" with "GCC".
14079
14080         * config/v850/lib1funcs.asm, config/v850/rtems.h,
14081         config/v850/v850-c.c, config/v850/v850-protos.h,
14082         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
14083         GCC, not GNU CC.
14084
14085         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
14086         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
14087         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
14088         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
14089         GNU CC.
14090
14091 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
14092
14093         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
14094
14095 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
14096
14097         * fixinc/fixinc.interix: Remove dead code (most of it).
14098         * fixinc/fixinc.dgux: Remove.
14099
14100         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
14101         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
14102
14103 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14104
14105         * pa.c (pa_init_builtins): Fix warning.
14106
14107 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
14108
14109         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
14110         (ASM_OUTPUT_XDATA_SHORT): Remove.
14111         (ASM_OUTPUT_XDATA_INT): Remove.
14112         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
14113         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
14114         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
14115         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
14116
14117 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
14118
14119         PR c++/7050
14120         * expr.c (store_expr): Don't attempt to store void-typed trees,
14121         just evaluate them for side effects.
14122
14123 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
14124
14125         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
14126         * cppinit.c (push_include): Move with changes to cppfiles.c.
14127         (cpp_read_main_file): Mark named operators here...
14128         (cpp_finish_options): ...not here.  Update.
14129         (_cpp_maybe_push_include_file): Update.
14130         * cpplib.h (cpp_push_include, cpp_rename_file): New.
14131
14132 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
14133
14134         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
14135         _gcc_COMPUTE_GAS_VERSION.
14136         * configure.in: Use them.
14137         * configure: Regenerate.
14138
14139 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
14140
14141         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
14142         to detect carry.
14143         (subdi3): Reorder emitted instructions.
14144
14145 2003-03-12  Andreas Jaeger  <aj@suse.de>
14146
14147         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
14148         NETBSD_OS_CPP_BUILTINS_LP64.
14149
14150 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
14151
14152         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
14153         Rearrange.  Reorganize.
14154         * configure.in: Rearrange.
14155         * configure: Regenerate.
14156
14157 2003-03-12  Andreas Jaeger  <aj@suse.de>
14158
14159         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
14160         LP64 targets.
14161
14162         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
14163         _LP64.
14164
14165         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
14166         _LP64 macros here.
14167         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
14168
14169         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
14170         NETBSD_OS_CPP_BUILTINS_LP64.
14171         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
14172         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
14173
14174         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
14175
14176 2003-03-12  Jan Hubicka  <jh@suse.cz>
14177
14178         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
14179
14180 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
14181
14182         Fix PR target/9797 and PR c/9853.
14183         * stmt.c (expand_decl_init): Call push_temp_slots () and
14184         pop_temp_slots ().
14185
14186 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
14187
14188         * sh.c: Include basic-block.h.
14189         (sh_output_mi_thunk, emit_load_ptr): New functions.
14190         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
14191
14192 2003-03-12  Nick Clifton  <nickc@redhat.com>
14193
14194         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
14195         (CALL_USED_REGISTERS): Likewise.
14196         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
14197         describing how this value is calculated.
14198
14199 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
14200
14201         * configure.in (rlim_t): Define to long if no valid definition
14202         found in sys/resource.h.
14203         * config.in, configure: Regenerate.
14204
14205 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
14206
14207         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
14208         TARGET_OS_CPP_BUILTINS.
14209         * config/mcore/mcore-pe.h: Similarly.
14210         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
14211         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
14212
14213 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
14214
14215         PR c/9928
14216         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
14217         only if it is a VAR_DECL.
14218
14219 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
14220
14221         PR optimization/9888
14222         * config/i386/i386.md (jcc_1): Fix range.
14223         (jcc_2): Likewise.
14224         (jump): LIkewise.
14225         (doloop_end_internal): Likewise.
14226
14227 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
14228
14229         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
14230         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
14231         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
14232         DLL_IMPORT_EXPORT_PREFIX and "i."
14233         (i386_pe_dllexport_name_p): Here.
14234         (i386_pe_dllimport_name_p): Here.
14235         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
14236         not 9 chars when getting identifier name.
14237         (i386_pe_mark_dllimport): Here.
14238         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
14239         not 9 chars when getting identifier name. Correct comment.
14240         (i386_pe_strip_name_encoding): Here. Add comments for different
14241         cases.
14242         (gen_fastcall_suffix): Break down xmalloc() argument to
14243         components.
14244         (gen_stdcall_suffix): Likewise.
14245         Update copyright year.
14246
14247 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
14248
14249         PR optimization/9888
14250         * config/i386/i386.md (movsi_1): Remove special alternatives
14251         for %eax register.
14252         (movsi_1_nointernunit): Likewise.
14253         (movhi_1): Likewise.
14254         * config/i386/i386.c (memory_address_length): Do not use
14255         short displacement when there is no base.
14256         (ix86_attr_length_address_default): Handle LEA instructions.
14257
14258 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
14259
14260         * c-cppbuiltin.c (builtin_define_std): Make non-static.
14261
14262 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
14263
14264         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
14265         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
14266         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
14267         * config/freebsd.h (CPP_PREDEFINES): Remove.
14268         (TARGET_OS_CPP_BUILTINS): New.
14269         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
14270         instead of TARGET_OS_CPP_BUILTINS.
14271         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
14272
14273 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
14274
14275         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
14276
14277 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
14278
14279         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
14280         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
14281
14282         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
14283
14284 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
14285
14286         * toplev.c (independent_decode_option): Return success for --help,
14287         --target-help and --version.
14288
14289 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
14290
14291         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
14292         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
14293         specified.
14294         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
14295         DRIVER_SELF_SPECS.
14296         (LINK_SPEC): Let endian options affect the linker emulation name.
14297
14298 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
14299
14300         * sh.md (reload_inqi): Fix mode for source in second set.
14301
14302 2003-03-11  Jan Hubicka  <jh@suse.cz>
14303
14304         * cselib.c (cselib_invalidate_mem_1): Move too ...
14305         (cselib_invalidate_mem): ... here; use new list
14306         (dummy_val, first_containing_mem): New static variables.
14307         (clear_table): Initialize first_containing_mem.
14308         (discard_useless_values):  Compact the containing_mem list.
14309         (add_mem_for_addr): Add to the list.
14310         * cselib.h (cselib_val): Add next_containing_mem.
14311
14312 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
14313
14314         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
14315         instructions for e500.
14316
14317 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
14318
14319         * Makefile.in: Update.
14320         * c-cppbuiltin.c: Include tm_p.h.
14321
14322 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
14323
14324         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
14325
14326         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
14327         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
14328         (_Unwind_SetGR): Same.
14329         (_Unwind_GetGRPtr): New.
14330         (_Unwind_SetGRPtr): New.
14331         (uw_update_context_1): Use accesor functions instead of accessing
14332         context->reg[] directly.
14333         (uw_install_context_1): Same.
14334         (execute_cfa_program): Same.
14335         (__frame_state_for): Same.
14336
14337         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
14338         the synthetic register offset.
14339
14340         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
14341
14342 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
14343
14344         * config/cris/cris.md: Remove lingering EGCS reference.
14345         ("*extopqihi_side_biap"): For HI operation, match
14346         cris_additive_operand_extend_operator, not
14347         cris_operand_extend_operator.  Adjust condition.
14348         ("*extopqihi_side", "*extopqihi"): Ditto.
14349         ("*extopqisi_side_biap"): Correct operand numbers in condition.
14350         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
14351         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
14352         ("*extophisi_swap"): Ditto.
14353         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
14354         PLUS, not cris_operand_extend_operator.  Adjust condition and
14355         output template.
14356         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
14357         * config/cris/cris.h (PREDICATE_CODES): Add
14358         cris_additive_operand_extend_operator.
14359         * config/cris/cris.c (cris_additive_operand_extend_operator):
14360         New predicate.
14361
14362 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
14363
14364         * df.c (read_modify_subreg_p): Change from static to global.
14365         * df.h (read_modify_subreg_p): Add prototype.
14366         * sched-deps.c (sched_analyze_1): Generate true dependency for
14367         strict_low_part, certain subregs and zero/sign_extract.
14368
14369 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
14370
14371         * Makefile.in: Update.
14372         * c-common.c: Don't include real.h or except.h.
14373         (REGISTER_PREFIX): Remove.
14374         (builtin_define_std, builtin_define_with_value,
14375         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
14376         builtin_define_type_max, builtin_define_type_precision,
14377         builtin_define_float_constants): Move to c-cppbuiltin.c.
14378         (c_stddef_cpp_builtins): New.
14379         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
14380         * c-cppbuiltin.c: New, extracted from c-common.c.
14381         (define__GNUC__): New.
14382         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
14383         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
14384         (cpp_unique_options): Don't support no-gcc.
14385         (do_spec_1): Remove support of version specs.
14386         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
14387         * doc/passes.texi: Update.
14388         * doc/tm.texi: Update.
14389
14390 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
14391
14392         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
14393
14394 2003-03-10  Andrew Pinski  <apinski@apple.com>
14395
14396         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
14397         is on should not get here.
14398         (machopic_indirect_data_reference): If dynamic-no-pic is on just
14399         generate high/low parts of the address.
14400         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
14401         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
14402         symbol and labels with a new reg.  Dynamic-no-pic does not have a
14403         pic_offset_table_rtx.
14404         (machopic_select_section): Change references of flag_pic to
14405         MACHOPIC_INDIRECT.
14406         (machopic_asm_out_destructor): Likewise.
14407         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
14408         reference of flag_pic to MACHOPIC_INDIRECT.
14409         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
14410         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
14411         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
14412         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
14413         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
14414         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
14415         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
14416         (TARGET_DYNAMIC_NO_PIC): Define.
14417         (SUBTARGET_SWITCHES): Define, have sub-target switches for
14418         dynamic-no-pic.
14419         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
14420         rs6000_override_options to here. Dynamic-no-pic overrides
14421         pic.
14422         (CC1_SPEC): Change from not static then pic to not static and not
14423         dynamic-no-pic then pic.
14424         * config/rs6000/rs6000.c (rs6000_override_options): Move the
14425         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
14426         (rs6000_legitimize_reload_address): Add case for loading floating in
14427         dynamic-no-pic.
14428         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
14429         of flag_pic to MACHOPIC_INDIRECT.
14430         (secondary_reload_class): Conditional change the reference of
14431         flag_pic to MACHOPIC_INDIRECT.
14432         (rs6000_output_mi_thunk): Change reference of flag_pic to
14433         MACHOPIC_INDIRECT.
14434         (output_profile_hook): Likewise.
14435         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
14436         * config/rs6000/rs6000.md (movdf_low): Add the case for
14437         MACHO_DYNAMIC_NO_PIC_P.
14438         (call): Change references for flag_pic in TARGET_MACHO to
14439         MACHOPIC_INDIRECT.
14440         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
14441         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
14442         * doc/invoke.texi (-mdynamic-no-pic): Document.
14443
14444 2003-03-10  Devang Patel  <dpatel@apple.com>
14445
14446         PR c++/9394
14447         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
14448         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
14449         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
14450         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
14451         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
14452         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
14453
14454 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
14455
14456         PR optimization/7189
14457         * toplev.c (rest_of_compilation):  Move
14458         check_function_return_warnings up to just after
14459         delete_unreachable_blocks.
14460
14461 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
14462
14463         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
14464         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
14465         Declare.
14466         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
14467         for reg rename optimization to avoid using Z and Y registers.
14468
14469 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
14470
14471         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
14472         when adding to X and Y since leax/leay are fast.
14473         ("*addhi3"): Accept 'I' constraint when adding to address register.
14474         ("rotlhi3"): Operand 1 must be a register_operand.
14475         (peephole2): New peephole to optimize some adds.
14476         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
14477         to represent -2 .. 2 small integer range.
14478
14479 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
14480
14481         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
14482         each 16-bit rotation.
14483
14484 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
14485
14486         * c-opts.c (add_prefixed_path): Don't use concat.  When
14487         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
14488         cpp_GCC_INCLUDE_DIR_len characters.
14489
14490 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
14491
14492         * testsuite/gcc.dg/altivec-9.c: New file.
14493
14494         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
14495         (rs6000_emit_prologue): Use rs6000_frame_related instead.
14496
14497 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
14498
14499         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
14500         vectors.
14501         (__ev_convert_u64): Remove macro.  Define as inline.
14502         (__ev_convert_s64): Same.
14503
14504 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
14505
14506         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
14507         (rs6000_stack_t): Add spe_64bit_regs_used.
14508
14509         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
14510         spe_64bit_regs_used, and use it to determine the size of the
14511         frame.
14512         (spe_func_has_64bit_regs_p): New.
14513         (spe_synthesize_frame_save): New.
14514         (rs6000_frame_related): Handle SPE synthetic registers.
14515         (rs6000_emit_prologue): Only save in 64-bits if the function used
14516         any registers in 64-bit mode.
14517         (rs6000_emit_epilogue): Same, but for restore.
14518
14519 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
14520
14521         * arm.h (enum floating_point_type): Delete.  Replace with...
14522         (enum fputype): ... new.
14523         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
14524         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
14525         * arm.md (attr fpu): Reworked for new underlying enum values.
14526         * arm.c (arm_fpu_arch): Now enum fputype.
14527         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
14528         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
14529         Update uses of arm_fpu_arch and arm_fpu_tune.
14530
14531 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
14532
14533         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
14534         (try_crossjump_to_edge): Replace refereces to one jump table by
14535         references to identical jump table.
14536         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
14537         (replace_label): Moved to rtlanal.c.
14538         (struct rtx_pair): Moved to rtl.h.
14539         * rtl.h (struct rtx_pair): Moved from loop.c.
14540         (replace_label): New extern function.
14541         (subrtx_p): New extern function.
14542         (tablejump_p): New extern function.
14543         * rtlanal.c (replace_label): Moved from loop.c.
14544         (subrtx_p_1): New static function.
14545         (subrtx_p): New function.
14546         (tablejump_p): New function.
14547
14548 2003-03-10  Jan Hubicka  <jh@suse.cz>
14549
14550         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
14551
14552         * cfgcleanup.c (merge_blocks): Return where to iterate next.
14553         (try_optimize_cfg): Use return value of merge_blocks
14554
14555 2003-03-10  Michael Matz  <matz@suse.de>
14556
14557         * cfg.c (unchecked_make_edge): New.
14558         (cached_make_edge): Use it.
14559         * basic-block.h (unchecked_make_edge): Declare.
14560         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
14561
14562 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
14563
14564         * fpa.md: New file.  Move all patterns relating to FPA co-processor
14565         to here...
14566         * arm.md: ... from here.
14567         (cirrus.md, fpa.md): Include at end of description.
14568         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
14569         (pic_load_addr_based): Remove register constraint from expander.
14570         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
14571         (sordered, sungt, sunle, sunge, sunlt): Likewise.
14572         (eh_epilogue, tablejump): Likewise.
14573
14574 2003-03-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14575
14576         * tree.c (substitute_in_expr, case 'e'): Only make recursive call
14577         on operands if it has a PLACEHOLDER_EXPR.
14578
14579 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
14580             Mostafa Hagog
14581
14582         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
14583         condition.
14584
14585 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
14586
14587         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
14588         * config/ip2k/ip2k.h: Similarly.
14589         * config/m32r/m32r.h: Similarly.
14590         * config/m68hc11/m68hc11.h: Similarly.
14591         * config/mn10200/mn10200.h: Similarly.
14592         * config/mn10300/mn10300.h: Similarly.
14593         * config/pdp11/pdp11.h: Similarly.
14594         * config/v850/v850.h: Similarly.
14595         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
14596         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
14597         * config/mips/iris3.h: Remove #if 0 block.
14598
14599 2003-03-09  Roger Sayle  <roger@eyesopen.com>
14600             Joern Rennecke <joern.rennecke@superh.com>
14601
14602         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
14603         pending argument upon return from handle_braces here.
14604         (do_spec_2): Instead handle it upon return from do_spec_1 here.
14605
14606 2003-03-09  Roger Sayle  <roger@eyesopen.com>
14607             Joern Rennecke <joern.rennecke@superh.com>
14608
14609         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
14610         pending argument upon return from handle_braces here.
14611         (do_spec_2): Instead handle it upon return from do_spec_1 here.
14612
14613 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14614
14615         * varasm.c (make_decl_one_only): Use declare_weak().
14616
14617 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14618
14619         PR middle-end/9986
14620         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
14621         after the common builtins.
14622         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
14623         * pa.c (TARGET_INIT_BUILTINS): Define.
14624         (pa_init_builtins): New function.
14625
14626         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
14627         space has been allocated for the outgoing arguments, set the arg
14628         pointer for a call emitted after virtuals have been instantiated
14629         using the stack pointer offset, otherwise abort.
14630
14631 2003-03-09  DJ Delorie  <dj@redhat.com>
14632
14633         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
14634
14635 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
14636
14637         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
14638         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
14639         conversion to integer.
14640         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
14641
14642 2003-03-09  Roger Sayle  <roger@eyesopen.com>
14643
14644         * builtins.def: Fix typo and improve grammar.
14645         * loop-unroll.c (decide_peel_completely): Tidy log message.
14646
14647 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
14648
14649         * config/h8300/h8300.md (*tstsi_upper_bit): New.
14650         (*iorsi3_e2f): Likewise.
14651
14652 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
14653
14654         * config/h8300/h8300.c (h8300_and_costs): Return the number of
14655         assembly instructions needed.
14656         (h8300_shift_costs): Likewise.
14657
14658 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
14659
14660         * config/cris/aout.h (ENDFILE_SPEC): Undef.
14661
14662         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
14663         moves from here ...
14664         * expr.c (emit_move_insn_1): ... to here.
14665
14666         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
14667         (TARGET_OS_CPP_BUILTINS): New macro.
14668         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
14669         (TARGET_OS_CPP_BUILTINS): New macro.
14670         (CPP_PREDEFINES): Don't define.  Move old definitions and...
14671         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
14672         (TARGET_CPU_CPP_BUILTINS): New macro.
14673         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
14674         definitions and the optional __PIC__, __pic__ and
14675         __NO_UNDERSCORES__ definitions to...
14676         (TARGET_OS_CPP_BUILTINS): New macro.
14677
14678         * flags.h (flag_leading_underscore): Declare.
14679
14680         * c-opts.c (c_common_post_options): On fopen failure, return
14681         false, not NULL.
14682
14683 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
14684
14685         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
14686         config.h.
14687         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
14688         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
14689
14690 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
14691
14692         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
14693         CPP_PREDEFINES.
14694         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
14695         CPP_PREDEFINES.
14696
14697 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
14698
14699         * c-common.h (c_common_init, c_common_post_options): Update.
14700         * c-objc-common.c (c_objc_common_init): Update for new prototype.
14701         * c-opts.c (saved_lineno): New.
14702         (c_common_post_options, c_common_init): Update prototypes,
14703         move call to cpp_read_main_file from latter to former.
14704         * c-tree.h (c_ojbc_common_init): Update.
14705         * langhooks-def.h (lhd_post_options): New.
14706         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
14707         * langhooks.c (lhd_post_options): New.
14708         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
14709         * toplev.c (no_backend): New.
14710         (process_options): Call post_options hook and set main_input_filename
14711         and input_filename here.
14712         (lang_dependent_init, do_compile): post_options hook moved to
14713         process_options.
14714         * objc/objc-act.c (objc_init): Update prototype.
14715         * objc/objc-act.h (objc_init): Update prototype.
14716
14717 2003-03-08  Roger Sayle  <roger@eyesopen.com>
14718
14719         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
14720         a complex or vector type, using a load in the original mode.
14721
14722 2003-03-08  Jan Hubicka  <jh@suse.cz>
14723
14724         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
14725         * gt-cgraph.h: New GC file.
14726         * cgraph.c (known_fns): New static variable.
14727         (cgraph_node): Add the decl into varray.
14728
14729 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
14730
14731         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
14732
14733 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
14734
14735         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
14736         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
14737         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
14738         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
14739         All callers changed.
14740         * arm.md, arm.h, arm-protos.h: Updated.
14741
14742         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
14743         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
14744         * arm.c (arm_regno_class, f_register_operand): Updated.
14745
14746 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
14747
14748         * config/cris/cris.h: Remove EGCS references.
14749         (CPP_SPEC): Remove "-$".
14750         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
14751
14752 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
14753
14754         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
14755         preference to CPP_PREDEFINES.
14756
14757 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
14758
14759         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
14760
14761 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
14762
14763         * config/h8300/h8300.md (*extzv_16_8): New.
14764
14765 2003-03-08  Jan Hubicka  <jh@suse.cz>
14766
14767         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
14768         * cgraph.h: (cgraph_local_info): Add can_inline_once
14769         (cgraph_global_info): Add inline_once.
14770         (cgraph_node): Add previous.
14771         (cgraph_remove_node): New.
14772         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
14773         function.
14774         (cgraph_optimize): Call it.
14775         (cgraph_finalize_function):  Set inlinable flags.
14776         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
14777         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
14778         (cgraph_expand_function): Likewise.
14779         * cgraph.c
14780         (cgraph_node): Put nodes into doubly linked chain.
14781         (cgraph_remove_node): New function.
14782         * flags.h (flag_inline_functions_called_once): Declare.
14783         * tree-inline.c: Include cgraph.h
14784         (inlinable_functions_p): Add extra argument to bypass limits.
14785         (expand_call_inline):  Obey cgraph flag.
14786         * tree-inline.h (tree_inlinable_function_p): Update prototype.
14787
14788 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14789
14790         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
14791         irreducible loops.
14792
14793         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
14794         loops info correctly.
14795
14796 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
14797
14798         PR middle-end/7796
14799         * unroll.c (calculate_giv_inc): Handle constants being
14800         loaded with LSHIFTRT.
14801
14802 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
14803
14804         * config/rs6000/rs6000.c (processor_target_table): Do not disable
14805         GP optional instructions on Power3, Power4, 620, and 630.
14806
14807 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
14808
14809         * calls.c: Fix comment formatting.
14810         * cfgloopanal.c: Likewise.
14811         * cfgloopmanip.c: Likewise.
14812         * combine.c: Likewise.
14813         * dwarf2out.c: Likewise.
14814         * ggc-common.c: Likewise.
14815         * langhooks.c: Likewise.
14816         * loop-unroll.c: Likewise.
14817         * loop.c: Likewise.
14818         * ra-build.c: Likewise.
14819         * sbitmap.c: Likewise.
14820         * toplev.c: Likewise.
14821
14822 2003-03-07  James E Wilson  <wilson@tuliptree.org>
14823
14824         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
14825
14826 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
14827
14828         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
14829         support -no-integrated-cpp.
14830
14831         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
14832         than langhooks.name.
14833
14834 2003-03-07  Michael Matz  <matz@suse.de>
14835
14836         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
14837         (DF_FOR_REGALLOC): New.
14838         * df.c (df_ref_record): Set DF_REF_STRIPPED.
14839         (read_modify_subreg_p): Simplify.
14840         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
14841         Use DF_FOR_REGALLOC.
14842         * ra.h (struct web): New member subreg_stripped.
14843         (invalid_mode_change_regs): Declare.
14844         * ra.c (invalid_mode_change_regs): New.
14845         (init_ra): Initialize it.
14846         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
14847         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
14848         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
14849         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
14850         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
14851
14852 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
14853
14854         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
14855         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
14856         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
14857         machine description file from ...
14858         * cirrus.md: ... here.
14859
14860 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
14861
14862         * config/h8300/h8300.md (a peephole2): Don't use
14863         reg_overlap_mentioned_p.
14864
14865 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
14866
14867         * c-pch.c: Include langhooks.h.
14868         (IDENT_LENGTH): New.
14869         (get_ident): New.
14870         (pch_ident): Delete.
14871         (pch_init): Use get_ident, IDENT_LENGTH.
14872         (c_common_valid_pch): Likewise.  Also, use actual language
14873         in warning message.
14874         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
14875
14876         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
14877         c-parse.in.
14878         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
14879         gt-objc-objc-act.h.
14880         (gt-objc-objc-act.h): New rule.
14881         * objc/lang-specs.h: Support PCH.
14882         * objc/objc-act.c: Include gt-objc-objc-act.h.
14883         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
14884         (build_selector_reference_decl): Move idx out, mark for PCH.
14885         (build_class_reference_decl): Likewise.
14886         (build_objc_string_decl): Move *_idx out, mark for PCH.
14887         (build_tmp_function_decl): Move xxx out, mark for PCH.
14888
14889 2003-03-06  Dale Johannesen  <dalej@apple.com>
14890
14891         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
14892         global functions for inlining on Darwin.
14893
14894 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
14895
14896         * haifa-sched.c (schedule_block): Don't call reorder when sorting
14897         is prohibited.
14898
14899 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
14900
14901         * Makefile.in (c-ppoutput.o): Update.
14902         * c-common.h (init_pp_output): New.
14903         (preprocess_file): Update.
14904         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
14905         Register builtins.
14906         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
14907         Make call to cpp_read_main_file common to whether preprocessing
14908         or not.  Don't register builtins.
14909         * c-ppoutput.c: Include c-pragma.h.
14910         (setup_callbacks): Rename init_pp_output.
14911         (preprocess_file): No longer setup callbacks or call
14912         cpp_read_main_file.
14913         * cpphash.h (_cpp_init_mbchar): New.
14914         * cppinit.c (init_library): Call _cpp_init_mbchar.
14915         * cpplex.c (_cpp_init_mbchar): New.
14916
14917 2003-03-06  Roger Sayle  <roger@eyesopen.com>
14918
14919         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
14920         MEM, try loading the MEM into a register and taking the low-part
14921         of that, to help CSE see the use of the MEM in its true mode.
14922
14923 2003-03-05  Tom Tromey  <tromey@redhat.com>
14924
14925         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
14926         Define.
14927
14928 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
14929
14930         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
14931         operand 2.
14932         ("*ineqbranchsi"): Likewise.
14933
14934 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
14935
14936         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
14937         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
14938         register store followed by a stack increment.
14939
14940 2003-03-05  Chris Moller  <cmoller@redhat.com>
14941
14942         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
14943         to inhibit saving CARRY_REGS.
14944
14945         * config/stormy16/stormy16.c (xs_hi_general_operand):
14946         added predicate to detect and error-out on out-of-range
14947         const_ints for movhi.
14948         * config/stormy16/stormy16.md (movhi): use
14949         xs_hi_general_operand.
14950
14951         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
14952         added a check for local vbl size overflow.
14953         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
14954         added predicate to detect and error-out on out-of-range
14955         const_ints for addhi and subhi.
14956         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
14957         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
14958
14959         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14960         add a term to accept PRE_MODIFY addresses.
14961         * config/stormy16/stormy16.c (xstormy16_expand_move):
14962         add code to expand PRE_MODIFY addresses to an add followed
14963         by a move.
14964
14965 2003-03-06  Jason Merrill  <jason@redhat.com>
14966
14967         * tree-inline.c (inlinable_function_p): Revert earlier change
14968         pending investigation.
14969
14970 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
14971
14972         * config/h8300/h8300.md (a new peephole2): New.
14973
14974 2003-03-06  Jan Hubicka  <jh@suse.cz>
14975
14976         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
14977
14978 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14979
14980         * dwarf2out.c (size_of_die): Compute size of external reference to
14981         die correctly.
14982
14983 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
14984
14985         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
14986         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
14987         expanders.
14988
14989 2003-03-05  Roger Sayle  <roger@eyesopen.com>
14990
14991         * expr.h (lang_expand_expr): Delete obsolete prototype.
14992
14993 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
14994
14995         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
14996
14997 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
14998
14999         * config/h8300/h8300.md (a peephole2): Generalize to
15000         accept a memory operand.
15001
15002 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
15003
15004         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
15005         * config/alpha/alpha.c (print_operand, case '+'): New.
15006         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
15007         (call_value_osf_1_noreturn): Likewise.
15008
15009 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15010
15011         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
15012         (expand_end_bindings): Likewise.
15013
15014 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15015
15016         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
15017         (epilogue): Don't generate return_external_pic when emitting PA 2.0
15018         code.
15019
15020 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
15021
15022         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
15023
15024         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
15025
15026         * hooks.c (hook_rtx_rtx_null): New.
15027
15028         * hooks.h (hook_rtx_rtx_null): Protoize.
15029
15030         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
15031         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
15032
15033         * target.h (struct gcc_target): Add dwarf_register_span.
15034
15035         * dwarf2out.c (multiple_reg_loc_descriptor): New.
15036         (one_reg_loc_descriptor): New.
15037         (reg_loc_descriptor): Add support for values that span more than
15038         one register.
15039
15040 2003-03-05  Jan Hubicka  <jh@suse.cz>
15041
15042         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
15043         * alias.c:  Include cgraph.h
15044         (mark_constant_function): Use cgraph_rtl_info.
15045         * calls.c:  Include cgraph.h
15046         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
15047         calls.
15048         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
15049         * cgraph.c (cgraph_rtl_info): New function.
15050         * cgraph.h (cgraph_rtl_info): Declare
15051         (cgraph_rtl_info): Likewise.
15052         * function.h (struct function): Add recursive_call_emit.
15053         * toplev.c: Include cgraph.h.
15054         (rest_of_compilation): Set preferred_incoming_stack_boundary.
15055
15056 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
15057
15058         * config/h8300/h8300.c (output_simode_bld): Clear the
15059         destination first if possible.
15060         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
15061         alternative.
15062         (extzv_1_r_inv_h8300hs): Likewise.
15063
15064 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15065
15066         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
15067         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
15068         * cfgloop.c (flow_loop_free): Made global.
15069         (establish_preds): New static function.
15070         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
15071         (get_loop_exit_edges): New.
15072         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
15073         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
15074         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
15075         loops.
15076         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
15077         removability of an edge.
15078         (fix_irreducible_loops): New static function.
15079         (find_path, remove_path): Add ability to remove enclosing loops.
15080         (unloop): New.
15081         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
15082         flags.
15083         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
15084         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
15085         not neccessary.
15086         (decide_peel_completely, peel_loops_completely): Allow complete peeling
15087         of non-duplicable once rolling loops.
15088         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
15089
15090 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
15091
15092         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
15093         for align_jumps is 4.
15094
15095         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
15096         use GENERAL_REGS.
15097
15098 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
15099
15100         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
15101         according to va_arg type.
15102         (EXPAND_BUILTIN_VA_ARG): Remove.
15103         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
15104         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
15105
15106 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
15107
15108         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
15109         else clauses.
15110
15111 2003-03-05  Michael Matz  <matz@suse.de>
15112
15113         * i386/i386.c (ix86_save_reg): Also test
15114         current_function_uses_const_pool.
15115
15116 2003-03-05  Michael Matz  <matz@suse.de>
15117
15118         * unwind.h: Add the GPL exception.
15119         * Makefile.in (USER_H): Add unwind.h.
15120
15121 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
15122
15123         PR c/9799
15124         * c-typeck.c (push_init_level): Add sanity check.
15125
15126 2003-03-05  Jan Hubicka  <jh@suse.cz>
15127
15128         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
15129         RTL inlining is done.
15130
15131         * cgraphunit.c (cgraph_mark_local_functions): New local function.
15132         (cgraph_optimize): Mark local functions.
15133         * i386-protos.h (init_cumulative_args): Update prototype.
15134         * i386.c (init_cumulative_args): Use register passing convention for
15135         local functions.
15136
15137         * cgraph.c (cgraph_global_info_ready): New global variable
15138         (cgraph_local_info, cgraph_global_info): New functions.
15139         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
15140         structures.
15141         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
15142         Declare.
15143         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
15144         (cgraph_mark_functions_to_output): Use inline_many.
15145         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
15146         (cgraph_expand_functions): Expand inline functions last.
15147         (cgraph_optimize): Do not emit uneeded functions.
15148
15149 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
15150
15151         * expr.c (convert_modes): Check for legal hard register.
15152
15153 2003-03-04  Tom Tromey  <tromey@redhat.com>
15154
15155         * doc/sourcebuild.texi (Front End Directory): Document tags.
15156         * configure: Rebuilt.
15157         * configure.in (target_list): Added tags.
15158         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
15159         TAGS files by reference.
15160         * objc/Make-lang.in (objc.tags): New target.
15161
15162 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15163
15164         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
15165         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
15166         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
15167         gcov_read_string, gcov_write_length): Modified to enable reading/
15168         writing of whole .da file just once.
15169         (da_file_open, da_file_close, da_file_eof, da_file_error,
15170         da_file_position, da_file_seek, da_file_write, da_file_read): New
15171         functions.
15172         (actual_da_file, actual_da_file_position, actual_da_file_length,
15173         actual_da_file_buffer, actual_da_file_buffer_size): New static
15174         functions.
15175         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
15176         just once.
15177
15178
15179 2003-03-04  Andreas Schwab  <schwab@suse.de>
15180
15181         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
15182         offset without frame pointer.
15183
15184 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
15185
15186         * expr.c (expand_expr): Call promote_mode to set unsignedp.
15187
15188 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
15189
15190         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
15191         * configure: Regenerated.
15192         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
15193
15194 2003-03-04  Andreas Jaeger  <aj@suse.de>
15195
15196         * configure.in: Check for <memcheck.h>.
15197         * configure: Regenerated.
15198
15199         * config.in: Define HAVE_MEMCHECK_H.
15200
15201         * ggc-common.c: Use <memcheck.h> if available instead of
15202         <valgrind.h>.
15203         * ggc-page.c: Likewise.
15204         * cppfiles.c: Likewise.
15205
15206 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
15207
15208         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
15209
15210 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
15211
15212         PR c/9262
15213         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
15214         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
15215
15216 2003-03-04  Jan Hubicka  <jh@suse.cz>
15217
15218         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
15219         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
15220         for -O3.
15221
15222 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
15223
15224         * configure.in: Delete three unused variables.  Move a variable
15225         definition closer to its use.  Simplify use_collect2 logic.  Start to
15226         organize.  Simplify tests for in-tree gas and ld.
15227         * configure: Regenerate.
15228
15229 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
15230
15231         * Makefile.in: Update.
15232         * c-common.c (flag_no_line_commands, flag_no_output,
15233         flag_dump_macros, flag_dump_includes): New.
15234         * c-common.h (flag_no_line_commands, flag_no_output,
15235         flag_dump_macros, flag_dump_includes, preprocess_file): New.
15236         (init_c_lex): Update prototype.
15237         * c-lex.c (init_c_lex): Update prototype; move some code to
15238         c_common_init.
15239         * c-opts.c (preprocess_file): Subsume into c_common_init.
15240         (c_common_decode_option): Update flags.
15241         (c_common_init): Move code from preprocess_file and init_c_lex.
15242         (sanitize_cpp_opts): Update.
15243         * c-ppoutput.c: New, cppmain.c almost verbatim.
15244         * cpphash.h (struct printer): Remove.
15245         (struct cpp_reader): Remove print.
15246         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
15247         cpp_preprocess_file): Remove.
15248         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
15249         and dump_includes.
15250         * cppmain.c: Remove.
15251         * doc/passes.texi: Update.
15252
15253 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15254
15255         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
15256         (assign_stack_local_1): Perform overall stack alignment only when
15257         STACK_ALIGNMENT_NEEDED is nonzero.
15258         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
15259
15260         * pa.c (compute_frame_size): Rename fsize to size.  Account for
15261         alignment to a word boundary before general register save block.  Only
15262         account for double-word alignment before floating point register save
15263         block if one or more are saved.  Don't allocate space for %r3 when
15264         frame pointer is needed.
15265         (hppa_expand_prologue): Include alignment to word boundary in local
15266         frame size.
15267         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
15268         (STACK_ALIGNMENT_NEEDED): Define.
15269
15270 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
15271
15272         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
15273         global register variables.
15274
15275 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
15276
15277         * reload.c (reload_adjust_reg_for_mode): New function.
15278         (subst_reloads): Call it.
15279         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
15280         * reload.h (reload_adjust_reg_for_mode): Declare.
15281         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
15282         Call it.
15283
15284 2003-03-03  James E Wilson  <wilson@tuliptree.org>
15285
15286         * optabs.c (add_equal_note): Delete SUBREG_REG use.
15287         Fixes PR c/7872.
15288
15289 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15290
15291         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
15292         (*ixorsi3_lshiftrt_16): New.
15293         (*iorsi3_ashift_16): Remove.
15294
15295 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15296
15297         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
15298         pattern.
15299
15300 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
15301
15302         * doc/install.texi (Specific): Update entry for powerpc-darwin.
15303
15304 2003-03-03  Richard Henderson  <rth@redhat.com>
15305
15306         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
15307
15308 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
15309
15310         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
15311         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
15312         (rs6000_variable_issue): Do not return negative value.
15313         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
15314         scheduling pass.
15315
15316 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15317
15318         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
15319         prune_unused_types calls.
15320
15321 2003-03-03  Jason Merrill  <jason@redhat.com>
15322
15323         * tree-inline.c (find_builtin_longjmp_call): Save and restore
15324         lineno and input_filename.
15325         (find_alloca_call): Likewise.
15326         (inlinable_function_p): Run the langhook earlier.
15327
15328         * calls.c (compute_argument_addresses): Give the new MEMs a
15329         minimum alignment of PARM_BOUNDARY.
15330
15331 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
15332
15333         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
15334         subtarget_asm_isa_spec.
15335         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
15336         (ASM_SPEC): Define as SH_ASM_SPEC.
15337         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
15338         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
15339         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
15340         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
15341
15342         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
15343         and align_jumps if not set.
15344         Force align_jumps to be at least 2.
15345         When relaxing, force align_functions to be at least the maximum of
15346         align_loops, align_jumps and 4.
15347         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
15348         (sh_loop_align): Honour align_loops_log.
15349
15350         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
15351         to check for indirect_jump_scratch.
15352         (indirect_jump_scratch): Add second set.
15353         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
15354         when looking for indirect_jump_scratch.
15355         Extract scratch register taking new structure of indirect_jump_scratch
15356         into account.
15357         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
15358
15359 2003-03-03  Jan Hubicka  <jh@suse.cz>
15360
15361         * calls.c (rtx_for_function_call): Take the address as an argument
15362         (expand_call): Do not modify the expression.
15363
15364         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
15365         optimizing.
15366
15367 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15368
15369         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
15370         TARGET_H8300H and TARGET_H8300S.
15371
15372 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15373
15374         * config/h8300/h8300.md (a peephole2): New.
15375
15376 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15377
15378         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
15379         operands[0] and operands[1] are different.
15380
15381 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15382
15383         * reload1.c (reload_cse_move2add): Remove variable success.
15384
15385 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15386
15387         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
15388         warnings.
15389
15390 2003-03-02  Richard Henderson  <rth@redhat.com>
15391
15392         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
15393         * config.in, configure: Rebuild.
15394         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
15395         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
15396         paired ldtoffx and ldxmov annotations.
15397         (load_symptr_internal1): Remove.
15398         (load_symptr_high, load_symptr_low): New.
15399
15400 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
15401
15402         * c-incpath.c (add_path): Fix sysp assignment.
15403
15404 2003-03-02  Kurt Garloff  <garloff@suse.de>
15405
15406         * params.def: Introduce parameter max-inline-insns-rtl for
15407         a separate limit for the RTL inliner.
15408         * params.h: Likewise.
15409         * integrate.c (function_cannot_inline_p): Use it.
15410         * toplev.c (decode_f_option): Set multiple parameters
15411         controlling inlining with -finline-limit.
15412         * params.def: Fix orthographic and typographic errors.
15413         * doc/invoke.texi: Document parameters controlling inlining
15414         and the way -finline-limit sets multiple of them.
15415
15416         * tree.h (struct tree_decl): Introduce inlined_function_flag,
15417         recording whether the function became eligible for inlining
15418         by a compiler flag rather than the declaration.
15419         Provide DID_INLINE_FUNC macro to access it.
15420         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
15421         * cp/decl.c (grokfndecl): Likewise.
15422         * toplev.c (rest_of_compilation): Likewise.
15423         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
15424         * print-tree.c (print_node): Report it.
15425         * params.def: Introduce new max-inline-insns-auto limit.
15426         * params.h: Likewise.
15427         * tree-inline.c (inlinable_function_p): Apply it to functions
15428         with DID_INLINE_FUNC set.
15429         * toplev.c (decode_f_option): Initialize it from -finline-limit
15430         value.
15431         * doc/invoke.texi: Document new parameter.
15432
15433 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
15434
15435         * fix-header.c (read_scan_file): Don't reference simplify_path.
15436
15437 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
15438
15439         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
15440         min/max instructions by default as may result in reload errors.
15441
15442 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
15443
15444         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
15445         avoid reload problems; define split for it.
15446
15447 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
15448
15449         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
15450         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
15451         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
15452         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
15453         rotatert and rotate.
15454         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
15455         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
15456         ("*rotrhi3_addr"): New split for shift insns on address register.
15457         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
15458         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
15459         (___rotrhi3): Likewise.
15460         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
15461
15462 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
15463
15464         * toplev.c (aux_base_name): Moved from toplev.h.
15465         (filename): Constify.
15466         (lang_dependent_init): Don't duplicate name.
15467         (process_options): Set aux_base_name here, not...
15468         (do_compile): ...here.  Change protoype.
15469         (toplev_main): Move some code from do_compile.
15470         * toplev.h: Remove aux_base_name.
15471
15472 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
15473
15474         * config/h8300/h8300-protos.h: Add a prototype for
15475         iorxor_operator.
15476         * config/h8300/h8300.c (print_operand): Handle 'c'.
15477         (iorxor_operator): New.
15478         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
15479         * config/h8300/h8300.md (*iorhi3_zext): Remove.
15480         (*iorsi3_zexthi): Likewise.
15481         (*iorsi3_zextsi): Likewise.
15482         (*xorhi3_zextqi): Likewise.
15483         (*xorsi3_zexthi): Likewise.
15484         (*xorsi3_zextsi): Likewise.
15485         (*ixorhi3_zext): New.
15486         (*ixorsi3_zext_qi): Likewise.
15487         (*ixorsi3_zext_hi): Likewise.
15488
15489 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
15490
15491         * c-incpath.c (remove_component_p, simplify_path): Move back to
15492         cppfiles.c.
15493         (remove_duplicates): Use cpp_simplify_path.
15494         * c-incpath.h (simplify_path): Remove.
15495         * c-lex.c: Don't include c-incpath.h.
15496         (init_c_lex): Remove simplify_path.
15497         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
15498         (find_or_create_entry, validate_pch): Revert.
15499
15500 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
15501
15502         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
15503           an external cpp during compilation.
15504         (option_map): Likewise.
15505         * objc/lang-specs.h (default_compilers): Similarly.
15506         * doc/invoke.texi: Document -no-integrated-cpp flag.
15507
15508 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
15509
15510         * config/h8300/h8300.md (zero_extendqisi2): Change to an
15511         expander.
15512         (*zero_extendqisi2_h8300): New.
15513         (*zero_extendqisi2_h8300hs): New.
15514         (two splitters): New.
15515
15516 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15517
15518         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
15519
15520 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
15521
15522         * config/h8300/h8300.md (a peephole2): Remove dead code.
15523
15524 2003-03-01  Roger Sayle  <roger@eyesopen.com>
15525
15526         PR c++/9367
15527         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
15528         (BT_FN_INT_CONST_STRING_VALIST_ARG,
15529         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
15530         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
15531         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
15532         BT_FN_INT_STRING_CONST_STRING_VAR,
15533         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
15534         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
15535         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
15536         ATTR_NONNULL_3): Also include the nothrow attribute.
15537         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
15538         vsnprintf, vscanf, vsscanf): Don't define attributes here.
15539         * builtins.def (putchar, puts): Make full C89 built-ins.
15540         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
15541         vsscanf, vsnprintf, vsprintf): New built-ins.
15542         * c-common.c (c_common_nodes_and_builtins): Handle new macro
15543         DEF_FUNCTION_TYPE_VAR_3.
15544
15545         * doc/extend.texi: Document these new built-in functions.
15546
15547 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
15548
15549         * config/h8300/h8300.md (a peephole2): New.
15550
15551 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
15552
15553         * predict.c (estimate_bb_frequencies): Correctly set
15554         real_values_initialized after initialization.
15555
15556 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
15557
15558         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
15559         cppinit.o, cppdefault.o, fix-header): Update.
15560         * c-incpath.c: New file.
15561         * c-incpath.h: New file.
15562         * c-lex.c: Include c-incpath.h.
15563         (init_c_lex): Register path simplifier.
15564         * c-opts.c: Include cppdefault.h and c-incpath.h.
15565         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
15566         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
15567         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
15568         (missing_arg, c_common_decode_option): Handle them.
15569         (c_common_post_options): Register include chains.
15570         (print_help): Update.
15571         * cppdefault.h (struct default include): Update.
15572         Move some macros to ...
15573         * cppdefault.c: ... here.
15574         (cpp_include_defaults): Add extra field add_sysroot.
15575         * cppfiles.c (include_file, search_from, find_or_create_entry,
15576         cpp_included, find_include_file, remap_filename): Update for
15577         renaming of search_path to cpp_path, and of the chain headers.
15578         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
15579         * cpphash.h (struct search_path): Move to cpplib.h.
15580         (struct cpp_buffer, struct cpp_reader): Update.
15581         (_cpp_simplify_pathname): Remove.
15582         * cppinit.c: Don't include prefix.h and cppdefault.h.
15583         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
15584         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
15585         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
15586         no_pth, cpp_handle_options): Remove.
15587         (struct pending_option): Remove chain members.
15588         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
15589         cpp_handle_option): Update.
15590         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
15591         (struct cpp_options): Remove quote_include, bracket_include,
15592         include_prefix, include_prefix_len, verbose, ignore_srcdir,
15593         no_standard_includes, no_standard_cplusplus_includes.
15594         (struct cpp_callbacks): Add simplify_path.
15595         (cpp_handle_options): Remove.
15596         * fix-header.c: Include c-incpath.h.
15597         (read_scan_file): Update to use c-incpath functionality.
15598         * doc/passes.texi: Update.
15599
15600 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
15601
15602         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
15603         satisfies EXTRA_CONSTRAINT 'U'.
15604
15605 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
15606
15607         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
15608         register.
15609         (*tst_extzv_memqi_1_n): Change to a splitter.
15610         (a peephole2): Update.
15611
15612 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
15613
15614         * predict.c (estimate_bb_frequencies): Initialize the sreal
15615         constants once per compilation.
15616
15617 2003-02-28  Richard Henderson  <rth@redhat.com>
15618
15619         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
15620
15621 2003-02-28  scott snyder  <snyder@fnal.gov>
15622
15623         * flags.h: Add flag_eliminate_unused_debug_types.
15624         * toplev.c: Add flag_eliminate_unused_debug_types.
15625         (f_options): Add -feliminate-unused-debug-types.
15626         * dwarf2out.c (struct file_table): Add emitted member.
15627         (splice_child_die): Fix the parent pointer for the child being
15628         spliced.
15629         (lookup_filename): Maintain file_table.emitted array.  Don't
15630         output .file directive here.
15631         (maybe_emit_file): (new)
15632         (init_file_table): Set up file_table.emitted.
15633         (dwarf2out_source_line): Use maybe_emit_file.
15634         (dwarf2out_start_source_file): Use maybe_emit_file.
15635         (dwarf2out_init): Use maybe_emit_file.
15636         (prune_unused_types_walk_attribs): (new)
15637         (prune_unused_types_mark): (new)
15638         (prune_unused_types_walk): (new)
15639         (prune_unused_types_prune): (new)
15640         (prune_unused_types): (new)
15641         (dwarf2out_finish): Call prune_unused_types if
15642         flag_eliminate_unused_debug_types is set.
15643         * doc/invoke.texi (Option Summary): Add
15644         -feliminate-unused-debug-types.
15645         (Debugging Options): Likewise.
15646
15647 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
15648
15649         * doc/invoke.texi: Change .pch to .gch.
15650         * cppfiles.c (open_file_pch): Likewise.
15651         * gcc.c (default_compilers): Likewise.
15652
15653 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
15654
15655         * floatlib.c: Remove.
15656
15657 2003-02-28  Jason Merrill  <jason@redhat.com>
15658
15659         * stor-layout.c (variable_size): Leave a "minus 1" outside the
15660         SAVE_EXPR.
15661
15662 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
15663
15664         * config/rs6000/power4.md: Add compare bypass.
15665
15666 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
15667
15668         * config/netbsd.h: Update copyright years.
15669         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
15670         -pthread is specified on the command line.
15671
15672 2003-02-28  Dale Johannesen <dalej@apple.com>
15673
15674         * loop.c (struct movable): Add insert_temp, shrink savemode.
15675         (scan_loop): Accept invariants that require copying; mark as
15676         insert_temp.
15677         (combine_movables): Don't combine insert_temp movables.
15678         (move_movables): Insert copies for insert_temp movables.
15679         Don't record the info based on regno for insert_temp's.
15680
15681 2003-02-28  Joel Sherrill <joel@OARcorp.com>
15682
15683         PR 9638/other
15684         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
15685         this constant defaults to 1.
15686
15687 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
15688
15689         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
15690
15691 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
15692
15693         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
15694         ARMv5e processor, not just for XScale.  Instructions are predicable.
15695         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
15696
15697 2003-02-28  Nick Clifton  <nickc@redhat.com>
15698
15699         * config/arm/arm.c (note_invalid_constants): Change parameter type
15700         from bool to int.
15701
15702 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
15703
15704         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
15705         test of bit 7.
15706         (*tst_extzv_memqi_1_n): Likewise.
15707         (a peephole2): New.
15708
15709 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
15710
15711         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
15712         #ifndef __mips16.
15713
15714 2003-02-28  Jan Hubicka  <jh@suse.cz>
15715
15716         * combine.c (gen_lowpart_for_combine): Update handling of
15717         subregs_of_mode
15718         * flow.c (life_analysis, mark_used_regs): Likewise.
15719         * regclass.c (subregs_of_mode): Turn into single bitmap.
15720         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
15721         dealing with subregs_of_mode
15722         * regs.h (subregs_of_mode): Update prototype.
15723
15724 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
15725
15726         * emit-rtl.c (set_reg_attrs_for_parm): New function.
15727         * rtl.h (set_reg_attrs_for_parm): New exported function.
15728         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
15729         set_reg_attrs_from_mem.
15730
15731 2003-02-27  Roger Sayle  <roger@eyesopen.com>
15732             Zack Weinberg <zack@codesourcery.com>
15733
15734         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
15735
15736 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
15737
15738         * reload1.c (sext_for_mode): Remove.
15739         (reload_cse_move2add): Use trunc_int_for_mode instead of
15740         sext_for_mode.
15741         (move2add_note_store): Likewise.
15742         Reset register information if we see a set in non-integer
15743         mode.
15744
15745 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
15746
15747         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
15748         option.
15749         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
15750         * config/rs6000/aix51.h: Same.
15751         * config/rs6000/aix52.h: Same.
15752         * config/rs6000/power4.md: Additional VMX bypasses.
15753
15754 2003-02-27   Geert Bosch <bosch@gnat.com>
15755
15756         * toplev.c (print_version): Add indentation for GGC heuristics and
15757         output after printing version information.
15758
15759 2003-02-27  James E Wilson  <wilson@tuliptree.org>
15760
15761         * combine.c (simplify_comparison): Require integral mode when
15762         permuting SUBREG with AND.
15763
15764 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
15765
15766         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
15767
15768 2003-02-27  Nick Clifton  <nickc@redhat.com>
15769
15770         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
15771         deleted when cirrus instructions were added.
15772
15773 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
15774
15775         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
15776         POSIX thread support by default.
15777
15778 2003-02-27  Roger Sayle  <roger@eyesopen.com>
15779
15780         * config/i386/cygwin.h: Don't include any other files directly.
15781         * config/i386/mingw32.h: Don't include cygwin.h directly.
15782         * config.gcc (cygwin, mingw32, uwin): Instead make these files
15783         explicit in the tm_files variable.
15784
15785 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
15786
15787         * config/rs6000/rs6000.md: Add TI constant splitter.
15788
15789 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
15790
15791         * builtins.c (purge_builtin_constant_p): Handle subreg of
15792         constant_p_rtx too.
15793
15794         * function.c (assign_stack_local_1): Truncate constant added to
15795         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
15796
15797 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
15798
15799         * config.gcc: Add power4 to PowerPC with_cpu list.
15800
15801 2003-02-26  Jan Hubicka  <jh@suse.cz>
15802
15803         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
15804
15805 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15806
15807         * gcov-dump.c (print_prefix): Fix signedness warning.
15808         * gcov-io.h (struct counter_section, struct counter_section_data): New.
15809         (struct function_info): n_arc_counts field removed, n_counter_sections,
15810         counter_sections fields added.
15811         (struct gcov_info): arc_counts, n_arc_counts fields removed,
15812         n_counter_sections, counter_sections fields added.
15813         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
15814         profile sections.
15815         * profile.h (MAX_COUNTER_SECTIONS): New.
15816         (struct section_info): New.
15817         (struct profile_info): count_instrumented_edges,
15818         count_edges_instrumented_now fields removed, n_sections, section_info
15819         fields added.
15820         (find_counters_section): Declare.
15821         * profile.c (struct function_list): count_edges field removed,
15822         n_counter_sections, counter_sections fields added.
15823         (set_purpose, label_for_tag, build_counter_section_fields,
15824         build_counter_section_value, build_counter_section_data_fields,
15825         build_counter_section_data_value, build_function_info_fields,
15826         build_function_info_value, build_gcov_info_fields,
15827         build_gcov_info_value): New static functions.
15828         (find_counters_section): New function.
15829         (instrument_edges, get_exec_counts, compute_branch_probabilities,
15830         branch_prob, create_profiler): Modified to support multiple profile
15831         sections.
15832
15833 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15834
15835         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
15836         is 8 * STACK_BOUNDARY.
15837         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
15838
15839 2003-02-26  Michael Matz  <matz@suse.de>
15840
15841         * ra-colorize.c (merge_moves): Fix list handling.
15842
15843 2003-02-26  Nick Clifton  <nickc@redhat.com>
15844
15845         * config/arm/arm.c (is_load_address): Rename to...
15846         (arm_memory_load_p) ... this and make it check for SUBREGs and
15847         constant loads that will be converted into loads from the
15848         minipool.
15849         (is_cirrus_insn): Rename to ...
15850         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
15851         of CIRRUS_NO with CIRRUS_NOT.
15852         (cirrus_reorg): Use renamed functions.
15853         (note_invalid_constants): Change from a void function to bool.
15854         Add an extra parameter, saying whether the fixups should be
15855         pushed.  Return true if fixups are needed.
15856         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
15857         of CIRRUS_NO with CIRRUS_NOT.
15858         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
15859         other floating point co-processors can also affect this.
15860         * config/arm/arm.md ("type" attribute): Add mav_farith and
15861         mav_dmult.  Replace references to "cirrus_type" attribute with
15862         "type".
15863         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
15864         ("cirrus_type" attribute): Delete - use "type" instead.
15865         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
15866         'normal'.
15867
15868 2003-02-25  Jan Hubicka  <jh@suse.cz>
15869
15870         * objc-act.c: Include cgraph.h
15871         (mark_referenced_methods): New function.
15872         (objc_init): Call it.
15873         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
15874
15875         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
15876         mode.
15877
15878         * optabs.c (expand_fix): Do not widen the input operand.
15879
15880         * expr.c (emit_group_store):  Fix crash when converting single
15881         register into complex register.
15882
15883         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
15884         * alias.c: Include timevar.h
15885         (init_alias_analysis):  Set timevar
15886         * jump.c: Include timevar.h
15887         (rebuild_jump_labels):  Set timevar
15888         * regcalss.c: Include timevar.h
15889         (reg_scan):  Set timevar
15890         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
15891
15892 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15893
15894         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
15895
15896         * Makefile.in (loop-unroll.o): New.
15897         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
15898         (unroll_and_peel_loops): Declare.
15899         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
15900         flag_old_unroll_loops.
15901         * loop.c (loop_invariant_p): Ditto.
15902         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
15903         flag_old_unroll_all_loops.
15904         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
15905         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
15906         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
15907         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
15908         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
15909         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
15910         PARAM_MAX_ONCE_PEELED_INSNS): New.
15911         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
15912         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
15913         instead of old one.
15914         (flag_peel_loops): New.
15915         (lang_independent_options): The new flags added.
15916         (rest_of_compilation): Call new unroller.
15917         (process_options): Setup flags for coexistence of old and new unroller.
15918         * doc/invoke.texi: Document new options.
15919         * doc/passes.texi: Document new unroller pass.
15920
15921 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
15922
15923         * fixinc/fixincl.x: Regenerate
15924
15925 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
15926
15927         * function.c (assign_parms): Set reg_attrs for parameters passed in
15928         registers.
15929
15930 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
15931
15932         PR target/9681
15933         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
15934
15935 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
15936
15937         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
15938         pseudo-op.
15939
15940 2003-02-25  Roger Sayle  <roger@eyesopen.com>
15941
15942         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
15943         * cse.c (invalidate_skipped_set):  Likewise.
15944         * integrate.c (subst_constants):  Likewise.
15945         * jump.c (reversed_comparison_code_parts):  Likewise.
15946         * loop.c (canonicalize_condition):  Likewise.
15947         * simplify-rtx.c (simplify_relational_operation):  Likewise.
15948
15949 2003-02-25  Roger Sayle  <roger@eyesopen.com>
15950
15951         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
15952         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
15953         the appropriate macro to define built-in function.
15954         (fmod,fmodf,fmodl): New built-in functions.
15955
15956         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
15957
15958 2003-02-25  Richard Henderson  <rth@redhat.com>
15959
15960         * config/i386/i386.c (function_arg): Pass variable sized
15961         structures correctly on the stack.
15962
15963 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
15964
15965         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
15966         does not reduce the cost of SET.
15967
15968 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15969
15970         PR target/9732
15971         * config/rs6000/rs6000.c (first_reg_to_save): Handle
15972         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
15973         (rs6000_emit_prologue): Likewise.
15974         (rs6000_emit_epilogue): Likewise.
15975         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
15976         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
15977
15978 2003-02-25  Richard Henderson  <rth@redhat.com>
15979
15980         * real.c (real_to_integer2): Force overflow result only for
15981         unsigned overflow.
15982
15983 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
15984
15985         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
15986
15987 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
15988             Richard Henderson  <rth@redhat.com>
15989
15990         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
15991         there is no similar load.
15992
15993 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
15994             Richard Henderson  <rth@redhat.com>
15995
15996         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
15997         sched-rgn.c.
15998         (add_forward_dependence): New function prototype.
15999
16000         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
16001         sched-init.h.
16002         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
16003         them to haifa-sched.c.
16004
16005         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
16006         haifa_classify_insn): Move them from sched-rgn.c.
16007
16008         * sched-deps.c (add_dependence): Return flag of creating a new
16009         entry.
16010         (add_forward_dependence): New function.
16011         (compute_forward_dependences): Use the function.
16012
16013         * sched-ebb.c (earliest_block_with_similiar_load): New function.
16014         (add_deps_for_risky_insns): New function.
16015         (schedule_ebb): Call the function.
16016
16017 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
16018
16019         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
16020         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
16021
16022         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
16023         opaque types fail.
16024
16025         * c-typeck.c (comptypes): Change call to vector_types_compatible
16026         to vector_opaque_p.
16027         (convert_for_assignment): Call vector_opaque_p instead of
16028         vector_types_compatible.
16029         (really_start_incremental_init): Disallow initialization of opaque
16030         types.
16031
16032         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
16033         Define TARGET_VECTOR_OPAQUE_P.
16034         (TARGET_INITIALIZER): Same.
16035
16036         * target.h (struct gcc_target): Remove vector_types_compatible.
16037         Add vector_opaque_p.
16038
16039         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
16040         Remove.
16041         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
16042         a vector type.  Change return type to bool.
16043         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
16044         (TARGET_VECTOR_OPAQUE_P): Define.
16045
16046         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
16047         target hook.
16048         Include target.h.
16049         (cp_parser_init_declarator): Fix typo in function comments.
16050
16051 2003-02-25  Jan Hubicka  <jh@suse.cz>
16052
16053         * Makefile.in (lcm.o):  Add dependency on function.h
16054         * lcm.c (function.h): Include.
16055         * i386.c (machine_function, ix86_stack_locals,
16056         * ix86_save_varrargs_registers) : Move to
16057         ...
16058         * i386.h (machine_function, ix86_stack_locals,
16059         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
16060         (ix86_optimize_mode_switching): New.
16061         * i386.md (fix patterns): Set ix86_optimize_mode_switching
16062
16063 2003-02-25  Nick Clifton  <nickc@redhat.com>
16064
16065         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
16066         of fourth arg is 'fndecl' not 'indirect'.  Update comment
16067         describing the function's parameters.
16068
16069 2003-02-24  Jan Hubicka  <jh@suse.cz>
16070
16071         * combine.c (simplify_shift_const):  Fix previous patch.
16072
16073 2003-02-24  Jeff Law  <law@redhat.com>
16074
16075         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
16076         alternative.
16077         (testsi_1, testhi_1, testqi_1): Likewise.
16078
16079 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16080
16081         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
16082         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
16083         * doc/extend.texi (Tru64 Pragmas): Reflect this.
16084
16085         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
16086         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
16087         * fixinc/fixincl.x: Regenerate.
16088         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
16089         testcase.
16090         Fixes PR c/5059, c/6126, other/9671.
16091
16092 2003-02-24  Roger Sayle  <roger@eyesopen.com>
16093
16094         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
16095         from handle_braces in "%{...}".
16096
16097 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
16098
16099         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
16100         (prepare_move_operands): Handle TLS operands.
16101         (tls_symbolic_operand): New.
16102         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
16103         (legitimize_pic_address): Do nothing for the TLS symbol.
16104         (sh_encode_section_info): Handle TLS case.
16105         (sh_strip_name_encoding): Drop TLS encoding.
16106         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
16107         * config/sh/sh.h (SH_TLS_ENCODING): Define.
16108         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
16109         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
16110         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
16111         * config/sh/sh.md: Define TLS UNSPEC constants.
16112         (type): Add tls_load.
16113         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
16114         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
16115         ("tls_initial_exec"): New insn.
16116         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
16117         ("load_gbr"): New insn.
16118
16119         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
16120         * configure: Regenerate.
16121
16122 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
16123
16124         PR 9297, PR 9722
16125         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
16126         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
16127         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
16128         (enum block_op_methods): Reorder for better store_expr optimization.
16129         * expr.c (store_expr): Test bit 1 of "want_value" for call param
16130         stores, test bit 0 for original want_value meaning.  Pass
16131         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
16132         recursive calls, and calls to expand_param.
16133         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
16134         expected, set target to 0 rather than to subtarget.  Formatting.
16135
16136 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
16137
16138         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
16139
16140 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16141
16142         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
16143         new default behavior.
16144         * ggc-common.c: Include sys/resource.h.
16145         (ggc_rlimit_bound): New function.
16146         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
16147         defaults to account for rlimits.
16148
16149 2003-02-22  Richard Henderson  <rth@redhat.com>
16150
16151         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
16152
16153 2003-02-22  Kelley Cook <kelley@dwhoops.info>
16154
16155         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
16156         (ix86_tune_string): Rename from ix86_cpu_string.
16157
16158 2003-02-22  Kelley Cook <kelleycook@comcast.net>
16159
16160         * config/i386/i386.c: Replace "mcpu" with "mtune".
16161         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
16162         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
16163         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
16164         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
16165
16166 2003-02-23  Andreas Schwab  <schwab@suse.de>
16167
16168         * config.gcc: Delete references to m68k/t-linux and
16169         m68k/t-linux-aout.
16170         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
16171
16172 2003-02-22  Jan Hubicka  <jh@suse.cz>
16173
16174         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
16175         of track scheduling patch.
16176
16177 2003-02-22  Jan Hubicka  <jh@suse.cz>
16178
16179         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
16180         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
16181
16182 2003-02-22  Jan Hubicka  <jh@suse.cz>
16183
16184         * c-decl.c (c_expand_body_1): Fix.
16185
16186 2003-02-22  Jan Hubicka  <jh@suse.cz>
16187
16188         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
16189
16190         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
16191         when not optimizing.
16192         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
16193         when not expensive.
16194         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
16195         optimizing;  Delete trivially dead insns early; fix optimize check.
16196
16197         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
16198         dependency on cgraph.h
16199         * c-decl.c: Include cgraph.h
16200         (finish_function): Update call of tree_inlinable_function_p.
16201         * c-objc-common.c: Include cgraph.h
16202         * cgraph.h: New file.
16203         * cgraphunit.c: New file.
16204         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
16205         (cgraph_nodes, cgraph_n_nodes): Globalize.
16206         (cgraph_finalize_function, cgraph_finalize_compilation_unit
16207         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
16208         Move into cgraphunit.c
16209         * tree-inline.c: Include cgraph.h
16210         * tree-inline.c: Include cgraph.h
16211
16212 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
16213
16214         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
16215         for copying a register.
16216
16217 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
16218
16219         PR other/3782
16220         * toplev.c (process_options): If flag_detailed_statistics is set,
16221         then set time_report as well.
16222
16223         PR c/8828
16224         * jump.c (never_reached_warning): Don't fall through BARRRIER
16225         insns.  Update comments to reflect what the function really does.
16226
16227 2003-02-21  Roger Sayle  <roger@eyesopen.com>
16228
16229         * fold-const.c (omit_one_operand): No longer static.
16230         * tree.h (omit_one_operand): Prototype here.
16231         (div_and_round_double): Keep fold-const.c prototypes together.
16232         * builtins.c (builtin_mathfn_code): Handle binary built-in
16233         funtions, such as "pow" and "atan2".
16234         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
16235         Simplify optimizations using "type" the builtin's return type.
16236
16237 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
16238
16239         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
16240         Fix functionalization typo.
16241
16242         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
16243         in an asm.
16244
16245 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16246
16247         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
16248         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
16249         documentation.
16250         * ggc-common.c: Include params.h
16251         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
16252         init_ggc_heuristics): New functions.
16253         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
16254         init_ggc_heuristics): Prototype.
16255         * toplev.c (print_version):  Output GGC heuristics.
16256         (parse_options_and_default_flags): Call init_ggc_heuristics.
16257
16258 2003-02-22  Jan Hubicka  <jh@suse.cz>
16259
16260         * i386.c (def_builtin):  Special case 64bit builtins.
16261         (MASK_SSE164, MASK_SSE264): New constants.
16262         (builtin_description): Add 64bit builtins.
16263         (ix86_init_mmx_sse_builtins): Likewise.
16264         * i386.h (enum ix86_builtins): Likewise.
16265         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
16266         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
16267         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
16268         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
16269         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
16270         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
16271         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
16272
16273 2003-02-22  Jan Hubicka  <jh@suse.cz>
16274
16275         * i386.c (builtin_description): Add __builtin_ia32_paddq and
16276         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
16277          and __builtin_ia32_psubq128.
16278         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
16279         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
16280         (mmx_adddi3, mmx_subdi3): New.
16281         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
16282         * xmmintrin.h (_mm_movepi64_pi64): New.
16283         (_mm_add_epi64, _mm_sub_epi64): fix.
16284         (_mm_mul_pu16): Rename to...
16285         (_mm_mul_su32): ... this one.
16286
16287         * builtins.c (expand_builtin_expect):  Do not predict
16288         flag_guess_branch_prob is not set.
16289         * c-semantics.c (expand_stmt): Likewise.
16290         * predict.c (predict_insn): Likewise.
16291         * stmt.c (expand_continue_loop): Likewise.
16292         * toplev.c (rest_of_compilation): Do not call
16293         note_prediction_to_br_prob and note_prediction_to_br_prob
16294         when not optimizing.
16295
16296 2003-02-21  Jan Hubicka  <jh@suse.cz>
16297
16298         * cfgrtl.c (commit_edge_insertions):  Call
16299         find_many_sub_basic_block only when some code has been emitted.
16300         (commit_edge_insertions_watch_calls): Bring into sync with
16301         commit_edge_insertions
16302
16303 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
16304
16305         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
16306
16307         * sh.md (binary_sf_op): Use extra constant operand instead of
16308         negating constant operand 4.
16309         * sh.c (sh_expand_binop_v2sf): Supply it.
16310
16311 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
16312
16313         * cpphash.h (struct lexer_state): Add directive_wants_padding.
16314         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
16315         for directives of type INCL.
16316         (glue_header_name, parse_include): Use get_token_no_padding.
16317         * cppmacro.c (replace_args): If directive_wants_padding,
16318         provide padding tokens.
16319
16320 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
16321
16322         * config/h8300/h8300.md (a peephole2): New.
16323
16324 2003-02-21  Jan Hubicka  <jh@suse.cz>
16325
16326         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
16327         (commit_edge_insertions): Call find_many_sub_basic_blocks
16328
16329         * reg-stack.c (convert_regs): Cleax aux for blocks.
16330
16331 2003-02-21  Jan Hubicka  <jh@suse.cz>
16332
16333         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
16334
16335 2003-02-21  Glen Nakamura  <glen@imodulo.com>
16336
16337         PR optimization/8613
16338         * builtins.c (expand_builtin): Emit postincrements before expanding
16339         builtin functions.
16340
16341 2003-02-21  Ben Elliston  <bje@redhat.com>
16342
16343         PR other/5634
16344         * doc/install.texi (Configuration): Explain using $HOME instead of
16345         the ~ metacharacter when referring to home directories.
16346
16347 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
16348
16349         * configure.in (TARGET_SYSTEM_ROOT): Set default to
16350         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
16351         '${exec_prefix}' (in addition to the expansion thereof) as
16352         relocatable.
16353         * configure: Rebuilt.
16354
16355 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
16356
16357         * config/h8300/h8300.md (addhi3_incdec): Change the name to
16358         *addhi3_incdec.
16359         (addsi3_incdec): Change the name to *addsi3_incdec.
16360
16361 2003-02-20  Roger Sayle  <roger@eyesopen.com>
16362
16363         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
16364
16365 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
16366
16367         PR fortran/9038
16368         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
16369         options to be ignored.
16370         (c_common_decode_option): Ignore them when preprocessing.
16371
16372 2003-02-20  Jan Hubicka  <jh@suse.cz>
16373
16374         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
16375         global variables.
16376         (lang_independent_options):  Add -fsched2-use-superblocks
16377         -fsced2-use-traces.
16378         (rest_of_compilation): Deal with it.
16379         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
16380         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
16381         Declare.
16382         * rtl.h (reg_to_stack):  Update prototype.
16383         * reg-stack.c (reg_to_stack): Return when something has changed;
16384         update liveness when executing after superblock scheduling.
16385
16386         * combine.c (simplify_shift_const):  Simplify few special cases
16387         into constants.
16388
16389 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
16390
16391         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
16392         (add.,subf.,neg.): Change attribute to fast_compare.
16393         All DFA descriptions updated.
16394
16395 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
16396
16397         Change base class access representation.
16398         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
16399         TREE_VIA_PRIVATE): Remove.
16400         (BINFO_BASEACCESSES): New binfo elt.
16401         (BINFO_BASEACCESS): New accessor.
16402         (BINFO_ELTS): Increase.
16403         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
16404         (access_public_node, access_protected_node,
16405         access_private_node): New global nodes.
16406         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
16407         * dbxout.c (dbxout_type): Adjust.
16408         * dwarf2out.c (gen_inheritance_die): Add access parameter.
16409         (gen_member_die): Adjust.
16410         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
16411         (output_type): Adjust.
16412         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
16413
16414         Change base class access representation. Share virtual base
16415         binfos.
16416         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
16417         call.
16418         * cp/class.c (build_base_path): Likewise.
16419         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
16420         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
16421         (make_new_vtable): Adjust.
16422         (force_canonical_binfo_r): Delete.
16423         (force_canonical_binfo): Delete.
16424         (mark_primary_virtual_base): Delete.
16425         (dfs_unshared_virtual_bases): Delete.
16426         (mark_primary_bases): Adjust.
16427         (maybe_warn_about_overly_private_class): Adjust.
16428         (dfs_base_derived_from): Delete.
16429         (base_derived_from): Follow the inheritance chain.
16430         (struct find_final_overrider_data): Add vpath member.
16431         (dfs_find_final_overrider): Adjust.
16432         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
16433         (find_final_overrider): Adjust.
16434         (update_vtable_entry_for_fn): Adjust.
16435         (modify_all_vtables): Adjust.
16436         (walk_subobject_offsets): Adjust.
16437         (layout_nonempty_base_or_field): Adjust.
16438         (layout_empty_base): Remove last parameter. Adjust.
16439         (build_base_field): Adjust.
16440         (build_base_fields): Adjust.
16441         (propagate_binfo_offsets): Remove last parameter. Adjust.
16442         (dfs_set_offset_for_unshared_vbases): Delete.
16443         (layout_virtual_bases): Adjust.
16444         (finish_struct_1): Adjust.
16445         (init_class_processing): Don't init access nodes.
16446         (dfs_get_primary_binfo): Delete.
16447         (get_primary_binfo): Adjust.
16448         (dump_class_hierarchy_r): Remove most derived arg, add IGO
16449         parameter. Adjust.
16450         (dump_class_hierarchy): Adjust.
16451         (finish_vtbls): Adjust.
16452         (get_original_base): Delete.
16453         (build_vtt_inits): Adjust.
16454         (dfs_build_secondary_vptr_vtt_inits): Adjust.
16455         (dfs_ctor_vtable_bases_queue_p): Adjust.
16456         (build_ctor_vtbl_group): Adjust.
16457         (dfs_accumulate_vtbl_inits): Adjust.
16458         (build_vtbl_initializer): Adjust.
16459         (build_vbase_offset_vtbl_entries): Adjust.
16460         (add_vcall_offset_vtbl_entries_1): Adjust.
16461         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
16462         (access_*_node): Remove.
16463         (CANONICAL_BINFO): Delete.
16464         (BINFO_UNSHARED_MARKED): Remove.
16465         (BINFO_MARKED): Set LANG_FLAG_0 directly.
16466         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
16467         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
16468         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
16469         Delete.
16470         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
16471         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
16472         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
16473         Delete.
16474         (BINFO_DEPENDENT_BASE_P): New.
16475         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
16476         index.
16477         (markedp, unmarkedp): Adjust.
16478         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
16479         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
16480         find_vbase_instance, binfo_for_vbase): Delete.
16481         (copied_binfo, original_binfo): Declare.
16482         (finish_base_specifier): Add virtual_p arg.
16483         (unshare_base_binfos): Delete.
16484         (copy_base_binfos): Declare.
16485         (reverse_path): Delete.
16486         * cp/decl.c (xref_basetypes): Access and virtuality passed
16487         differently. Don't copy direct base binfos here. Call
16488         copy_base_binfos.
16489         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
16490         (initialize_vtbl_ptrs): Adjust.
16491         (expand_member_init): Adjust.
16492         * cp/parser.c (cp_parser_base_specifier): Adjust.
16493         * cp/pt.c (instantiate_class_template): Adjust.
16494         (get_template_base_recursive): Adjust.
16495         * cp/rtti.c (get_pseudo_ti_init): Adjust.
16496         (get_pseudo_ti_desc): Adjust.
16497         * cp/tree.c (unshare_base_binfos): Rename to ...
16498         (copy_base_binfos): ... here, reimplement.
16499         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
16500         (reverse_path): Remove.
16501         * cp/typeck.c (get_delta_difference): Adjust error messages.
16502         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
16503         * cp/search.c (lookup_base_r): Adjust.
16504         (dynamic_cast_base_recurse): Adjust.
16505         (canonical_binfo): Remove.
16506         (dfs_canonical_queue): Remove.
16507         (dfs_assert_unmarked_p): Remove.
16508         (assert_canonical_unmarked): Remove.
16509         (shared_marked_p, shared_unmarked_p): Remove.
16510         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
16511         (dfs_access_in_type): Adjust.
16512         (access_in_type): Adjust.
16513         (dfs_accessible_queue_p): Adjust.
16514         (dfs_accessible_p): Adjust.
16515         (is_subobject_of_p_1, is_subobject_of_p): Remove.
16516         (struct lookup_field_info): Remove from_dep_base_p field.
16517         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
16518         (lookup_field_r): Remove dependent base code.
16519         (lookup_member): Likewise.
16520         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
16521         (dfs_unmarked_real_bases_queue_p): Remove.
16522         (dfs_marked_real_bases_queue_p): Remove.
16523         (dfs_skip_vbases): Remove.
16524         (dfs_get_pure_virtuals): Adjust.
16525         (markedp, unmarkedp): Adjust.
16526         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
16527         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
16528         (dfs_unmark): Adjust.
16529         (dfs_get_vbase_types):Remove.
16530         (dfs_build_inheritance_graph_order): Remove.
16531         (get_vbase_types): Remove
16532         (dfs_find_vbase_instance): Remove.
16533         (find_vbase_instance): Remove.
16534         (dfs_debug_unmarkedp): Adjust.
16535         (dependent_base_p): Remove.
16536         (dfs_push_type_decls): Adjust.
16537         (dfs_push_decls): Adjust.
16538         (dfs_no_overlap_yet): Adjust.
16539         (copied_binfo): New function.
16540         (original_binfo): New function.
16541         (binfo_for_vbase): Remove.
16542
16543         Change base class access representation.
16544         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
16545         (add_interface_do): Likewise.
16546
16547 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
16548
16549         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16550         * config/rs6000/power4.md (power4-store,power4-vecstore): New
16551         insn reservations.
16552         (power4-fpstore): Compact.
16553
16554 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
16555
16556         * config/h8300/h8300.md (*iorsi3_w): New.
16557
16558 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
16559
16560         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
16561         * rtl.c (reg_note_name): Likewise.
16562         * rtl.h (enum reg_note): Likewise.
16563         * doc/invoke.texi: Likewise.
16564         * doc/rtl.texi: Likewise.
16565
16566 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
16567
16568         * bb-reorder.c (find_traces_1_round): Fix comment typo.
16569
16570 2003-02-19  Roger Sayle  <roger@eyesopen.com>
16571
16572         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
16573         addition in the presence of signaling NaNs.
16574
16575 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
16576
16577         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
16578
16579 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
16580
16581         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
16582         ORing with 0xffff??00 with the highest bit of the ?? part set.
16583         (compute_logical_op_length): Update.
16584         (compute_logical_op_cc): Likewise.
16585
16586 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
16587
16588         * bb-reorder.c (find_traces_1_round): Fixed condition for small
16589         destination block with multiple predecessors.
16590         (connect_traces): Check whether the block is a start of trace.
16591
16592 2003-02-19  Jan Hubicka  <jh@suse.cz>
16593
16594         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
16595         * function.c (assign_params): Likewise.
16596         * arm-protos.h (arm_init_cumulative_args): Update prototype.
16597         * arm.c (arm_init_cumulative_args): Update function.
16598         * arm.h (INIT_CUMULATIVE_ARGS): Update.
16599         * avr-protos.h (init_cumulative_args): Update prototype.
16600         * avr.c (init_cumulative_args): Update function.
16601         * avr.h (INIT_CUMULATIVE_ARGS): Update.
16602         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
16603         * d30v.c (d30v_init_cumulative_args): Update function.
16604         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
16605         * frv-protos.h (frv_init_cumulative_args): Update prototype.
16606         * frv.c (frv_init_cumulative_args): Update function.
16607         * frv.h (INIT_CUMULATIVE_ARGS): Update.
16608         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
16609         * pa.h (INIT_CUMULATIVE_ARGS): Update.
16610         * sparc-protos.h (init_cumulative_args): Update prototype.
16611         * sparc.c (init_cumulative_args): Update function.
16612         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
16613         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
16614
16615 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
16616
16617         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
16618         (*ashiftsi_sextqi_7): Likewise.
16619
16620 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16621
16622         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
16623         ISO C99 and C++.
16624
16625         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
16626         for C++ on IRIX 6.5.1[89].
16627         * fixinc/tests/base/internal/sgimacros.h: New file.
16628
16629         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
16630         * fixinc/tests/base/internal/wchar_core.h: New file.
16631
16632         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
16633         socklen_t definition.
16634         * fixinc/fixincl.x: Regenerate.
16635         * fixinc/tests/base/sys/socket.h: New file.
16636         Fixes PR libgcj/9652.
16637
16638 2003-02-19  Jan Hubicka  <jh@suse.cz>
16639
16640         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
16641
16642 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
16643
16644         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
16645         align_jumps_max_skip and align_loops_max_skip.
16646
16647 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
16648
16649         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
16650         test size if named section.
16651
16652 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
16653
16654         * expr.c (expand_expr): Use gen_int_mode for the argument
16655         to gen_rtx_MULT.
16656
16657 2003-02-19  Jan Hubicka  <jh@suse.cz>
16658
16659         * i386.md (cosxf2):  Fix conditional.
16660
16661 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
16662
16663         * config/h8300/h8300.md (extendqisi2): Change to an expander.
16664         (*extendqisi2_h8300): New.
16665         (*extendqisi2_h8300hs): Likewise.
16666
16667 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
16668
16669         * config/h8300/h8300-protos.h: Update the prototype for
16670         split_adds_subs.  Remove the prototypes for
16671         const_int_le_2_operand and const_int_le_6_operand.
16672         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
16673         (const_int_le_2_operand): Remove.
16674         (const_int_le_6_operand): Likewise.
16675         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
16676         for const_int_le_2_operand and const_int_le_6_operand.
16677         * config/h8300/h8300.md: Update all uses of split_adds_subs.
16678         (a peephole2): New.
16679
16680 2003-02-18  Jan Hubicka  <jh@suse.cz>
16681
16682         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
16683         (cgraph_expand_function): Rewrite.
16684
16685 2003-02-18  Matt Austern <austern@apple.com>
16686
16687         * toplev.c, langhooks.c, langhooks-def.h: Move
16688         write_global_declarations from toplev.c to langhooks.c.
16689
16690 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
16691
16692         * config/h8300/h8300.c (general_operand_src): Always check
16693         MODE.
16694         (general_operand_dst): Likewise.
16695
16696 2003-02-18  Roger Sayle  <roger@eyesopen.com>
16697
16698         * convert.c (convert_to_real): Also optimize (float)log(x) into
16699         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
16700
16701 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
16702
16703         * config/sh/sh.c (unspec_caller_rtx_p): New.
16704         (sh_cannot_copy_insn_p): New.
16705         (TARGET_CANNOT_COPY_INSN_P): New.
16706
16707 2003-02-18  Richard Henderson  <rth@redhat.com>
16708
16709         * c-common.c (handle_used_attribute): Accept static data too.
16710
16711 2003-02-18  Nick Clifton  <nickc@redhat.com>
16712             Aldy Hernandez  <aldyh@redhat.com>
16713
16714         * testsuite/gcc.dg/20030218-1.c: New.
16715
16716         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
16717
16718         * target-def.h (TARGET_INITIALIZER): Add
16719         TARGET_VECTOR_TYPES_COMPATIBLE.
16720         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
16721
16722         * target.h (struct gcc_target): Add field vector_types_compatible.
16723
16724         * c-typeck.c (comptypes): Take into account
16725         TARGET_VECTOR_TYPES_COMPATIBLE.
16726         (convert_for_assignment): Same.
16727
16728         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
16729         (rs6000_spe_vector_types_compatible): New.
16730         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
16731
16732 2003-02-19  Andreas Schwab  <schwab@suse.de>
16733
16734         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
16735         * toplev.c: Include langhooks-def.h.
16736
16737 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
16738
16739         * config/mips/mips.h (enum processor_type): Sort entries
16740         alphabetically.
16741         * config/mips/mips.md (define_attr cpu): Sync with processor_type
16742         enum values, including adding entries that were missing.
16743
16744 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
16745
16746         * sh.c (calc_live_regs): Also check GET_CODE when checking if
16747         initial value for PR_REG is still the PR_REG register.
16748
16749 2003-02-18  Jim Wilson  <wilson@redhat.com>
16750
16751         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
16752         instruction in output template.
16753         (bsp_value): Change output template from string to C code, add %,
16754         before actual instruction.
16755         (flushrs): Mark as not predicable.
16756
16757 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
16758
16759         * inclhack.def (netbsd_bogus_semicolon): New fix.
16760         * fixincl.x: Rebuilt.
16761         * tests/base/ctype.h: Update.
16762
16763 2003-02-18  Roger Sayle  <roger@eyesopen.com>
16764
16765         * fold-const.c (negate_expr_p): New function to determine whether
16766         an expression can be negated cheaply.
16767         (fold) [MINUS_EXPR]: Use it to determine whether to transform
16768         -A - B into -B - A for floating point types.
16769
16770 2003-02-18  Roger Sayle  <roger@eyesopen.com>
16771
16772         * sbitmap.c (sbitmap_resize): New function.
16773         * sbitmap.h (sbitmap_resize): Prototype here.
16774         * recog.c (split_all_insns): Use sbitmap_resize.
16775
16776 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
16777
16778         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
16779         insn length.
16780         (extendqisi2): Likewise.
16781         (*extendhisi2_h8300): Likewise.
16782
16783 2003-02-18  Matt Austern <austern@apple.com>
16784
16785         * langhooks.h, langhooks-def.h: introduce new langhook,
16786         final_write_globals, with write_global_declarations as default.
16787         * toplev.c: Move invocation of wrapup_global_declarations from
16788         compile_file to new function, write_global_declarations.  Change
16789         compile_file to use final_write_globals hook.  Change
16790         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
16791         conditional.
16792
16793 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16794
16795         * pa.md: Correct and enhance comment.
16796
16797 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
16798
16799         * gcc.c (validate_switches): Don't scan past closing '}'.
16800
16801 2003-02-18  Ben Elliston  <bje@redhat.com>
16802
16803         PR c++/1607
16804         * doc/extend.texi (Function Attributes): Document the effect of
16805         the C++ "this" parameter on the counting of arguments for the
16806         "format" and "format_arg" attributes.
16807
16808 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
16809
16810         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
16811         (__ev_stdw): Same.
16812         (__ev_stdh): Same.
16813
16814 2003-02-17  Jan Hubicka  <jh@suse.cz>
16815
16816         * recog.c (split_all_insns):  Fix memory overflow.
16817
16818 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
16819
16820         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
16821         (cmphi): Likewise.
16822         (*cmphi_h8300): Likewise.
16823         (*cmphi_h8300hs): Likewise.
16824         (cmpsi): Likewise.
16825         (7 peephole2): Likewise.
16826
16827 2003-02-16  Jan Hubicka  <jh@suse.cz>
16828
16829         * c-typeck.c (build_c_cast):  Fold constant variables into
16830         initial values.
16831
16832 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16833
16834         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
16835         (Binaries): Ditto for Sinix/Reliant Unix.
16836
16837 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
16838
16839         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
16840         not overlap the final result register.
16841
16842 2003-02-16 Arend Bayer <arend.bayer@web.de>
16843            Richard Henderson  <rth@redhat.com>
16844
16845         PR c/8068
16846         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
16847         rearrange mult arguments for less recursion.
16848         (extract_muldiv): New.  Prevent runaway recursion.
16849
16850 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
16851
16852         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
16853         MASK_ALIGN_DOUBLE.
16854
16855 2003-02-15  Roger Sayle  <roger@eyesopen.com>
16856
16857         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
16858         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
16859         (ext_80387_constants_table): Global table of 80387 special constants
16860         guarded by ext_80387_constants_init flag when not initialized.
16861         (init_ext_80387_constants): New function to initialize this table.
16862         (standard_80387_constant_p): Extend to recognize extra 80387
16863         constants, in XFmode, on processors where this is a win.
16864         (standard_80387_constant_opcode): New function to return the
16865         opcode associated with standard_80387_constant_p.
16866         (standard_80387_constant_rtx): New function to return the XFmode
16867         CONST_DOUBLE associated with standard_80387_constant_p.
16868         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
16869
16870         * config/i386/i386-protos.h (standard_80387_constant_opcode):
16871         Prototype here.
16872         (standard_80387_constant_rtx): Likewise.
16873
16874         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
16875         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
16876         *movtf_integer): Simplify using new standard_80387_constant_opcode.
16877
16878 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
16879
16880         * doc/invoke.texi (Optimize Options): Correct @option syntax.
16881
16882 2003-02-15  Richard Henderson  <rth@redhat.com>
16883
16884         * Makefile.in (cfglayout.o): Depend on TARGET_H.
16885         * cfglayout.c: Include target.h.
16886         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
16887         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
16888         * target.h (struct gcc_target): Add cannot_copy_insn_p.
16889
16890         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
16891         (TARGET_CANNOT_COPY_INSN_P): New.
16892         (override_options): Revert 2003-02-08 hack.
16893
16894 2003-02-15  Richard Henderson  <rth@redhat.com>
16895
16896         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
16897         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
16898
16899 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
16900
16901         * config/rs6000/rs6000.h (processor_type): Add PPC440.
16902         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
16903         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
16904         TARGET_SCHED_VARIABLE_ISSUE): Define.
16905         (rs6000_use_dfa_pipeline_interface): New function.
16906         (rs6000_multipass_dfa_lookahead): New Function.
16907         (rs6000_variable_issue): New function.
16908         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
16909         (rs6000_issue_rate): Add PPC440.
16910         * config/rs6000/rs6000.md (unspec list): Correct typo.
16911         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
16912         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
16913         cmp, delayed_cr, mfcr, mtcr.
16914         (automata_option): Set "ndfa".
16915         (extendMMNN2): Update attributes.
16916         (movcc_internal1): Discourage move to non-cr0.  Update
16917         attributes.
16918         (movMM_update): Update attributes.
16919         (cmpMM_internal): Update attributes.
16920         (sCC CR materialization): Update attributes.
16921         (branch patterns): Do not discourage non-cr0.
16922         (cr logical patterns): Prefer destructive register allocation.
16923         Update attributes.
16924         (movesi_from_cr): Update attribute.
16925         (mtcrf_operation): Update attribute.
16926         (mtcrfsi): Update attribute.
16927         * config/rs6000/40x.md: New file.
16928         * config/rs6000/603.md: New file.
16929         * config/rs6000/6xx.md: New file.
16930         * config/rs6000/7450.md: New file.
16931         * config/rs6000/7xx.md: New file.
16932         * config/rs6000/mpc.md: New file.
16933         * config/rs6000/power4.md: New file.
16934         * config/rs6000/rios1.md: New file.
16935         * config/rs6000/rios2.md: New file.
16936         * config/rs6000/rs64.md: New file.
16937         [Some DFA descriptions based on work by Michael Hayes]
16938
16939 2003-02-15  Richard Henderson  <rth@redhat.com>
16940
16941         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
16942         successors with multiple predecessors.
16943         (connect_traces): Try harder to copy traces of length 1.
16944
16945         * function.h (struct function): Add computed_goto_common_label,
16946         computed_goto_common_reg.
16947         * function.c (free_after_compilation): Zap them.
16948         * stmt.c (expand_computed_goto): Use them to produce one
16949         indirect branch per function.
16950
16951 2003-02-15  Richard Henderson  <rth@redhat.com>
16952
16953         * cfgcleanup.c: Include params.h.
16954         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
16955         too many outgoing edges from a block.
16956         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
16957         * params.def (max-crossjump-edges): New.
16958         * doc/invoke.texi: Document it.
16959
16960 2003-02-15  Richard Henderson  <rth@redhat.com>
16961
16962         * recog.c (split_all_insns): Include new blocks in life update;
16963         do a global life update.
16964
16965 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
16966
16967         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
16968         Update copyright.
16969         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
16970         -mno-cygwin case.
16971
16972 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
16973
16974         PR optimization/7702
16975         * reload1.c (reload_cse_simplify_set): Honor
16976         CANNOT_CHANGE_MODE_CLASS.
16977
16978 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
16979
16980         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
16981         function.
16982         * config/mn10300/mn10300-protos.h: Declare it.
16983         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
16984         attribute cc of instructions that may use clr.
16985
16986 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
16987
16988         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
16989         (x - (x & y)) is found.
16990
16991 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16992
16993         * configure.in: Fix typo.
16994         * configure: Regenerate.
16995
16996 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
16997
16998         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
16999
17000 2003-02-13  Adam Nemet  <anemet@lnxw.com>
17001
17002         PR opt/2391
17003         * combine.c: Fix spelling in comment.
17004         (cached_nonzero_bits): New function.
17005         (cached_num_sign_bit_copies): New function.
17006         (nonzero_bits_with_known): New macro.
17007         (num_sign_bit_copies_with_known): New macro.
17008         (nonzero_bits1): Rename from nonzero_bits.  Add three new
17009         arguments.  Change calls from nonzero_bits to
17010         nonzero_bits_with_known.
17011         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
17012         three new arguments.  Change calls from num_sign_bit_copies to
17013         num_sign_bit_copies_with_known.
17014         (nonzero_bits): New macro.
17015         (num_sign_bit_copies): New macro.
17016         (update_table_tick): Don't traverse identical subexpression more
17017         than once.
17018         (get_last_value_validate): Likewise.
17019
17020 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
17021
17022         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
17023         * function.h (struct emit_status): Length of regno_pointer_align
17024         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
17025         not regno_pointer_align_length (i.e. length actually used, not
17026         length as allocated)
17027
17028         * config/i386/i386.c (struct stack_local_entry): New.
17029         (struct machine_function): Replace huge array with alist.
17030         (assign_386_stack_local): Change to match.
17031
17032 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
17033
17034         * inclhack.def (hpux_long_double): Tighten select and add bypass
17035         regexp.
17036         * fixincl.x: Rebuilt.
17037
17038 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
17039
17040         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
17041         edge and block ends with a jump insn it must be simple jump.
17042
17043 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
17044
17045         * Makefile.in (PREPROCESSOR_DEFINES): Add
17046         @TARGET_SYSTEM_ROOT_DEFINE@.
17047         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
17048         is specified or if building a cross compiler.
17049         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
17050         if the sysroot is under $exec_prefix.
17051         * configure: Regenerated.
17052         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
17053         defined.
17054         (struct default_include): Add add_sysroot field.
17055         (cpp_SYSROOT): Declare.
17056         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
17057         field.
17058         (cpp_SYSROOT): New variable.
17059         * cppinit.c (cpp_create_reader): Initialize
17060         CPP_OPTION (pfile, sysroot).
17061         (init_standard_includes): Handle add_sysroot.  Do not
17062         add unrelocated copies of relocated directories.
17063         (COMMAND_LINE_OPTIONS): Add -isysroot.
17064         (cpp_handle_option): Handle -isysroot.
17065         * cpplib.h (struct cpp_options): Add sysroot member.
17066         * gcc.c (The Specs Language): Update description of %I.
17067         (target_system_root_changed): New variable.
17068         (process_command): Conditionalize make_relative_prefix call
17069         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
17070         target_system_root_changed.
17071         (do_spec_1): Add -isysroot to %I.
17072         * doc/invoke.texi (Spec Files): Update description of %I.
17073         * doc/install.texi (--with-sysroot): Update comment about
17074         relocation.
17075
17076 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
17077
17078         * config/h8300/h8300.md (a peephole2): New.
17079
17080 2003-02-13  Robert Lipe <robertlipe@usa.net>
17081             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17082
17083         * doc/install.texi (Specific): Update three SCO-related URLs.
17084
17085 2003-02-13  Andreas Schwab  <schwab@suse.de>
17086
17087         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
17088         Parenthesize properly.
17089         (NPREDECESORS): Parenthesize properly.
17090
17091 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17092
17093         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
17094
17095 2003-02-12  Roger Sayle  <roger@eyesopen.com>
17096
17097         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
17098         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
17099
17100         * reg-stack.c (subst_stack_regs_pat): Add support for binary
17101         UNSPEC instructions (e.g. "fpatan").
17102
17103 2003-02-12  Mike Stump  <mrs@apple.com>
17104
17105         * varray.c (element_size): Remove.
17106         (uses_ggc): Remove.
17107         (element): Add.
17108         (varray_init): Use new interface.
17109         (varray_grow): Use new interface.
17110         (varray_clear): Use new interface.
17111
17112 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
17113
17114         * config/rs6000/spe.h: Add casts to the arguments of the following
17115         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
17116         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
17117         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
17118         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
17119         __ev_get_u16, __ev_get_s16.
17120
17121 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
17122
17123         * config/h8300/h8300.md (a peephole2): New.
17124
17125 2003-02-12  Jan Hubicka  <jh@suse.cz>
17126
17127         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
17128         (OBJS): Add callgraph.o
17129         (callgraph.o): New.
17130         * c-decl.c (expand_body_1): Break out from ...
17131         (expand_body): This one;  change calling convention
17132         (finish_function): Move some of expand_body logic here.
17133         (c_expand_deferred_function): Update call of expand_body
17134         (c_expand_stmt): Use c_expand_body_1.
17135         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
17136         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
17137         * c-tree.h (c_expand_body): Declare.
17138         * callgraph.c: New file.
17139         * flags.h (flag_unit_at_a_time): Declare.
17140         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
17141         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
17142         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
17143         * langhooks.h (struct lang_hooks_for_callgraph): New.
17144         (struct lang_hooks): Add callgraph field.
17145         * toplev.c (flag_unit_at_a_time): New.
17146         (lang_independent_options): Add flag_unit_at_a_time.
17147         (process_options): Disable unit-at-a-time mode for frontends not
17148         supporting callgraph.
17149         * tree-inline.c (typedef struct inline_data): Add "decl"
17150         (expand_call_inline): Update callgraph.
17151         (optimize_inline_calls): Set id.decl.
17152         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
17153         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
17154         cgraph_calls_p): Declare.
17155         * invoke.texi (-funit-at-a-time): Document
17156
17157 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
17158
17159         * config/rs6000/spe.h: Fix misc formatting.
17160         (__ev_create_ufix32_fs): Cast ev argument.
17161         (__ev_create_sfix32_fs): Same.
17162         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
17163         (__ev_get_ufix32_fs_internal): Same.
17164
17165 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
17166
17167         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
17168         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
17169
17170 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
17171
17172         * cpplib.c (do_include_common): Move warnings for
17173         #include_next and #import out to callers.  Use early-return
17174         instead of nested ifs.  Don't do check_eol here.
17175         (parse_include): Do check_eol here with the rest of the
17176         parsing stuff.
17177         (do_include_next, do_import): Now handle warnings.
17178
17179 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17180
17181         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
17182
17183 2003-02-12  Jan Hubicka  <jh@suse.cz>
17184
17185         * predict.c (estimate_probability):  Fix roundoff error.
17186
17187 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
17188
17189         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
17190         (two peephole2): New.
17191
17192 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
17193
17194         * config/h8300/h8300.md (several peephole2): Replace
17195         find_regno_note with peep2_reg_dead_p.
17196
17197 2003-02-11  Richard Henderson  <rth@redhat.com>
17198
17199         * gcse.c (lookup_set): Remove unused argument PAT.  Update
17200         both callers.
17201
17202 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
17203
17204         * diagnostic.c (real_abort): New.
17205         (diagnostic_report_diagnostic): Call real_abort on error.
17206         * diagnostic.h (diagnostic_abort_on_error): New.
17207         (struct diagnostic_context): Add abort_on_error field.
17208         * toplev.c (setup_core_dumping): New.
17209         (decode_d_option): Handle 'H' case.
17210         * doc/invoke.texi (Debugging Options): Document -dH.
17211
17212 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
17213
17214         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
17215         which refers to obsolete directories.
17216
17217 2003-02-11  Richard Henderson  <rth@redhat.com>
17218
17219         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
17220
17221 2002-10-21  Jan Hubicka  <jh@suse.cz>
17222
17223         * i386.c (contains_128bit_aligned_vector_p): New function.
17224         (ix86_function_arg_boundary): Properly align vector modes.
17225
17226 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
17227
17228         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
17229         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
17230         as a SET pattern.
17231
17232 2003-02-11  Roger Sayle  <roger@eyesopen.com>
17233
17234         * builtins.c:  Fix failure caused by commiting wrong patch.
17235
17236 2003-02-11  Dale Johannesen  <dalej@apple.com>
17237         * ra-build.c (compare_and_free_webs):  Relax checking.
17238         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
17239         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
17240
17241 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
17242
17243         PR optimization/9651
17244         * rtlanal.c (may_trap_p): Handle FIX.
17245
17246 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
17247
17248         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
17249         * doc/invoke.texi: Extra alias.
17250
17251 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
17252
17253         * config/rs6000/host-darwin.c: Fix comment.
17254
17255 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
17256
17257         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
17258         predicate for mod result.
17259
17260 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17261
17262         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
17263         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
17264         * fixincl.x: Rebuilt.
17265         * tests/base/stdlib.h: Update.
17266         * tests/base/ctype.h: New file.
17267
17268 2003-02-11  Jan Hubicka  <jh@suse.cz>
17269
17270         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
17271
17272 2003-02-11  Richard Henderson  <rth@redhat.com>
17273
17274         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
17275         appropriated as globals.
17276         (ix86_expand_clrstr): Similarly.
17277         * config/i386/i386.md (cmpstrsi): Similarly.
17278
17279 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
17280
17281         * config/h8300/h8300.md (a peephole2): Add a case of 255.
17282
17283 2003-02-11  Roger Sayle  <roger@eyesopen.com>
17284
17285         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
17286         (pow_optab, atan2_optab): Define corresponding macros.
17287         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
17288         * genopinit.c (optabs): Implement pow_optab and atan2_optab
17289         using pow?f3 and atan2?f3 patterns.
17290         * builtins.c (expand_errno_check): New function to update errno
17291         if necessary, split out from expand_builtin_mathfn.
17292         (expand_builtin_mathfn): Use expand_errno_check.
17293         (expand_builtin_mathfn_2): New function to handle expanding binary
17294         math functions, reusing the code in expand_errno_check.
17295         (expand_builtin): Handle the pow and atan2 math built-ins,
17296         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
17297         expand_builtin_mathfn_2.
17298
17299         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
17300
17301 2003-02-11  Jan Hubicka  <jh@suse.cz>
17302
17303         * combine.c (combine_simplify_rtx): Fix folding of
17304         nested float_truncates.
17305
17306 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
17307
17308         * config/h8300/h8300.md (a peephole2): Fix a typo.
17309
17310 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
17311
17312         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
17313         register number.
17314
17315 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
17316
17317         * config/h8300/h8300-protos.h: Add a prototype for
17318         gtuleu_operator.
17319         * config/h8300/h8300.c (gtuleu_operator): New.
17320         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
17321         * config/h8300/h8300.md (a peephole2): New.
17322
17323 2003-02-11  Jan Hubicka  <jh@suse.cz>
17324
17325         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
17326
17327 2003-02-11  Jan Hubicka  <jh@suse.cz>
17328
17329         * predict.c (choose_function_section): Choose sections correctly.
17330
17331 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17332
17333         * reload1.c (first_label_num): New.
17334         (reload): Index offsets_known_at and offsets_at using difference of
17335         label number and first label number.  Don't use offset pointers.
17336         (set_label_offsets, set_initial_label_offsets): Likewise.
17337
17338 2003-02-10  Roger Sayle  <roger@eyesopen.com>
17339
17340         * mips-tfile.c (init_file): Add missing initializers in the
17341         "#ifdef __alpha" case.
17342         (file_offset, max_file_offset): Declare as unsigned long.
17343         (write_varray): Cast to "unsigned long" in comparisons against
17344         either file_offset or max_file_offset.
17345         (write_object): Likewise.
17346         (read_seek): Likewise.
17347         (copy_object): Likewise. Declare "ifd" as int to match its use
17348         in add_ext_symbol, and avoid signed/unsigned conditional warning.
17349
17350 2003-02-10  Nick Clifton  <nickc@redhat.com>
17351             Aldy Hernandez  <aldyh@redhat.com>
17352
17353         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
17354         override options which have been specified on the command line.
17355
17356 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
17357
17358         * config/h8300/h8300.md (abssf2): New.
17359         (*abssf2_h8300): Likewise.
17360         (*abssf2_h8300hs): Likewise.
17361
17362 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
17363
17364         * tree.c (build_tree_list):  Fix parameter names in comment.
17365
17366 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
17367
17368         * config/rs6000/ppc64-fp.c: New file.
17369         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
17370
17371 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
17372
17373         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
17374         * bb-reorder.c (make_reorder_chain): Deleted.
17375         (make_reorder_chain_1): Deleted.
17376         (find_traces): New function.
17377         (rotate_loop): New function.
17378         (mark_bb_visited): New function.
17379         (find_traces_1_round): New function.
17380         (copy_bb): New function.
17381         (bb_to_key): New function.
17382         (better_edge_p): New function.
17383         (connect_traces): New function.
17384         (copy_bb_p): New function.
17385         (get_uncond_jump_length): New function.
17386         (reorder_basic_blocks): Use new functions (Software Trace Cache).
17387         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
17388         boundaries.
17389
17390 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
17391
17392         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
17393
17394 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
17395
17396         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
17397         (DECL_LIVE_RANGE_RTL): Remove.
17398
17399 2003-02-10  Nick Clifton  <nickc@redhat.com>
17400
17401         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
17402         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
17403         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
17404         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
17405         config/arm/freebsd.h, config/arm/linux-elf.h,
17406         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
17407         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
17408         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
17409         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
17410         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
17411         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
17412         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
17413         and reformat as appropriate.
17414
17415 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
17416
17417         * config/h8300/clzsi2.c: Remove.
17418         * config/h8300/ctzsi2.c: Likewise.
17419         * config/h8300/paritysi2.c: Likewise.
17420         * config/h8300/popcountsi2.c: Likewise.
17421         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
17422         ctzsi2, paritysi2, and popcountsi2.
17423
17424 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
17425             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
17426
17427         PR c/7741
17428         * c-decl.c (duplicate_decls): Discard the initializer of the
17429         new decl when the types are conflicting.
17430
17431 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
17432
17433         * Makefile.in (sreal.o): Added.
17434         (predict.o): Depends on sreal.h instead of real.h.
17435         * sreal.c: New file.
17436         * sreal.h: New file.
17437         * predict.c: Use sreal.c instead of real.c.
17438
17439 2003-02-10  Nick Clifton  <nickc@redhat.com>
17440
17441         * Contributed support for the Cirrus EP9312 "Maverick"
17442         floating point co-processor.  Written by Aldy Hernandez
17443         <aldyh@redhat.com>.
17444         (config/arm/arm.c): Add Cirrus support.
17445         (config/arm/arm.h): Likewise.
17446         (config/arm/aout.h): Likewise.
17447         (config/arm/arm.md): Likewise.
17448         (config/arm/arm-protos.h): Likewise.
17449         (config.gcc): Likewise.
17450         (doc/invoke.texi): Describe new -mcpu value and new
17451         -mcirrus-fix-invalid-insns switch,
17452         (cirrus.md): New file.
17453
17454 2003-02-10  Jan Hubicka  <jh@suse.cz>
17455
17456         * combine.c (combine_simplify_rtx): Simplify using
17457         (float_truncate (float x)) is (float x)
17458         (float_extend (float_extend x)) is (float_extend x).
17459
17460 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
17461
17462         * calls.c (try_to_integrate): Tidy stack_usage_map access.
17463         (emit_library_call_value_1): Likewise.  Formatting.
17464         (store_one_arg): Likewise.
17465
17466 2003-02-09  Nick Clifton  <nickc@redhat.com>
17467             Aldy Hernandez  <aldyh@redhat.com>
17468
17469         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
17470         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
17471         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
17472         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
17473         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
17474         docs.  Add range test for immediate value.
17475
17476 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
17477
17478         Rename spe_evxor to xorv2si3.
17479         (xorv4hi3): New.
17480         (xorv1di3): New.
17481
17482 2003-02-10  Glen Nakamura  <glen@imodulo.com>
17483
17484         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
17485         tag.
17486
17487 2003-02-10  Jan Hubicka  <jh@suse.cz>
17488
17489         * i386.c (vector_move_operand): New predicate.
17490         (ix86_expand_vector_move): Be happy about 0.
17491         * i386.h (PREDICATE_CODES): Add sse-move_operand.
17492         * i386.md (mov*_internal): Add 'C' alternative.
17493
17494 2003-02-09  Jan Hubicka  <jh@suse.cz>
17495
17496         * i386.md (floathi*): Deal with SSE.
17497
17498 2003-02-09  Jan Hubicka  <jh@suse.cz>
17499
17500         * simplify-rtx.c (simplify_unary_operation,
17501         simplify_binary_operation):  Deal with vector modes
17502         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
17503
17504 2003-02-09  Richard Sandiford  <rsandifo@redhat.com>
17505
17506         * toplev.c (rest_of_compilation): Recompute register usage after
17507         split_all_insns.
17508
17509 2003-02-09  Richard Henderson  <rth@redhat.com>
17510
17511         * libgcc-std.ver (__clztf2): New.
17512         (__ctztf2, __popcounttf2, __paritytf2): New.
17513         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
17514         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
17515         adjust code to match the different type sizes.
17516         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
17517         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
17518
17519         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
17520         TImode; select word_mode and twice that.
17521         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
17522         select the modes from float, double, and long double.
17523         (init_optabs): Remove duplicate initializations.
17524
17525 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
17526
17527         * doc/install.texi: Squeeze and streamline section on
17528         testing and regression checking.
17529
17530 2003-02-09  Jan Hubicka  <jh@suse.cz>
17531
17532         * i386.md (ahi?v*3): Set third operand type to TImode.
17533         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
17534
17535         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
17536         integer mode.
17537
17538         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
17539         Change code so they are arithmetic expressions now.
17540         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
17541         simplify_ternary_operation): Deal with VEC_* expressions.
17542
17543         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
17544
17545 2003-02-08  Jan Hubicka  <jh@suse.cz>
17546
17547         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
17548         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
17549         possibly got duplicated.
17550
17551 2003-02-08  Richard Henderson  <rth@redhat.com>
17552
17553         * config/alpha/alpha.c (override_options): Turn off explicit
17554         relocs until post-peep2 code duplication resolved.
17555
17556 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
17557
17558         * optabs.c (expand_unop): Widen clz properly when clz is done
17559         via libcall.
17560
17561 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
17562
17563         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
17564         * config/h8300/crti.asm: Likewise.
17565         * config/h8300/crtn.asm: Likewise.
17566         * config/h8300/ctzsi2.c: Likewise.
17567         * config/h8300/fixunssfsi.c: Likewise.
17568         * config/h8300/h8300-protos.h: Likewise.
17569         * config/h8300/h8300.c: Likewise.
17570         * config/h8300/h8300.h: Likewise.
17571         * config/h8300/h8300.md: Likewise.
17572         * config/h8300/paritysi2.c: Likewise.
17573         * config/h8300/popcountsi2.c: Likewise.
17574         * config/h8300/rtems.h: Likewise.
17575
17576 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17577
17578         * doc/invoke.texi: Documentation for my previous commit.
17579         * doc/passes.texi: Ditto.
17580
17581 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17582
17583         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
17584         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
17585         Declare.
17586         (DLTHE_FLAG_UPDATE_FREQ): New.
17587         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
17588         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
17589         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
17590         fix_bb_placement, fix_bb_placements, place_new_loop,
17591         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
17592         New static functions.
17593         (fix_loop_placement, can_duplicate_loop_p,
17594         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
17595         New functions.
17596
17597         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
17598         unswitch_loops): Declare.
17599         * loop-init.c: New file.
17600         * loop-unswitch.c: New file.
17601         * Makefile.in (loop-init.o, loop-unswitch.o): New.
17602         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
17603         * toplev.c (DFI_loop2): New dump.
17604         (flag_unswitch_loops): New.
17605         (lang_independent_options): Add it.
17606         (rest_of_compilation): Call new loop optimizer.
17607         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
17608
17609 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
17610
17611         * config/h8300/clzsi2.c: New.
17612         * config/h8300/ctzsi2.c: Likewise.
17613         * config/h8300/paritysi2.c: Likewise.
17614         * config/h8300/popcountsi2.c: Likewise.
17615         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
17616
17617 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
17618
17619         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
17620         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
17621         (ctzsi2): New pattern.
17622         (ffssi2): Use clz instead of unspec.
17623         (clzdi2): Rename from cntlzd2.
17624         (ctzdi2): New pattern.
17625         (ffsdi2): Use clz instead of unspec.
17626
17627 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
17628
17629         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
17630         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
17631         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
17632         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
17633
17634 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
17635
17636         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
17637
17638 2003-02-07  Richard Henderson  <rth@redhat.com>
17639
17640         PR 9226
17641         * gcse.c (local_cprop_find_used_regs): New.
17642         (local_cprop_pass): Use it.
17643
17644 2003-02-07  Fred Fish  <fnf@intrinsity.com>
17645
17646         * mips-tfile.c (parse_def): Parenthesize assignments to fix
17647         precedence bugs.
17648
17649 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
17650
17651         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
17652
17653 2003-02-07  Roger Sayle  <roger@eyesopen.com>
17654
17655         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
17656         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
17657         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
17658         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
17659         builtin functions (and their __builtin_* variants).
17660         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
17661         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
17662         when not optimizing.
17663
17664         * doc/extend.texi: Document new pow and atan2 builtins, and
17665         their float and long double variants.  Realphabetize builtins.
17666
17667 2003-02-07  Jan Hubicka  <jh@suse.cz>
17668
17669         * i386.md (sse2_nandv2di3): Fix.
17670
17671 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
17672
17673         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
17674         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
17675         definition.
17676         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
17677         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
17678
17679 2003-02-07  Jan Hubicka  <jh@suse.cz>
17680
17681         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
17682
17683 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
17684
17685         * cfg.c (dump_flow_info): Add back accidently deleted line.
17686
17687 2003-02-07  Andrey Petrov <petrov@netbsd.org>
17688
17689         * optabs.c (expand_float): Search wider integer modes first.
17690
17691 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
17692
17693         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
17694         based on preprocessor flag.
17695
17696 2003-02-07  Roger Sayle  <roger@eyesopen.com>
17697             Richard Henderson  <rth@redhat.com>
17698
17699         * gcse.c (implicit_sets): New.
17700         (compute_hash_table_work): Include them in hash table.
17701         (find_implicit_sets, fis_get_condition): New.
17702         (one_cprop_pass): Allocate and free implicit_sets; call
17703         find_implicit_sets before building hash table.
17704
17705 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
17706
17707         * config/t-netbsd (USER_H): Revert previous change.
17708
17709 2003-02-07  Gabor Greif  <ggreif@lucent.com>
17710
17711         * doc/c-tree.texi (Namespaces): Fix typo.
17712
17713 2003-02-07  Jan Hubicka  <jh@suse.cz>
17714
17715         * regrename.c (do_replace, find_oldest_value_reg,
17716         copyprop_hardreg_forward_1): Update register attributes.
17717
17718 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
17719
17720         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
17721         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
17722         variables starting with underscore.
17723         (struct unit_usage): New structure.
17724         (unit_usages, cycle_alt_unit_usages): New global variables.
17725         (check_unit_distribution_in_reserv): Remove it.
17726         (store_alt_unit_usage): New function.
17727         (check_regexp_units_distribution): Rewrite it.
17728
17729 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17730
17731         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
17732         target_cpu_default.
17733         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
17734         if not MASK_NO_SPACE_REGS.
17735         (output_call): Adjust return pointer, don't load new space register
17736         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
17737         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
17738         TARGET_NO_SPACE_REGS is true.
17739         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
17740         conditions.
17741         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
17742         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
17743         true.  Use bve when TARGET_64BIT is true.
17744
17745 2003-02-06  Richard Henderson  <rth@redhat.com>
17746
17747         * combine.c (nonzero_bits): Fix double break.
17748
17749 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
17750             Richard Henderson <rth@redhat.com>
17751
17752         PR c/9530
17753         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
17754         from functions that return a float to functions that don't.
17755
17756 2003-02-06  Jan Hubicka  <jh@suse.cz>
17757
17758         * i386.c (x86_inter_unit_moves): New variable.
17759         (ix86_secondary_memory_needed): Fix 64bit case, honor
17760         TARGET_INTER_UNIT_MOVES
17761         * i386.h (x86_inter_unit_moves): Declare.
17762         (TARGET_INTER_UNIT_MOVES): New macro.
17763         * i386.md (movsi_1): Cleanup constraints; disable
17764         when not doing inter-unit moves.
17765         (movsi_1_nointernunit): New.
17766         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
17767         (movdi_1_rex64_nointerunit): New.
17768         (mivsf_1): disable when not doing inter-unit moves.
17769         (movsf_1_nointerunit): New.
17770
17771         * basic-block.h (inside_basic_block_p):  Declare.
17772         * cfgbuild.c (inside_basic_block_p): Make global.
17773         * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
17774         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
17775         update CFG.
17776         (fix_basic_block_boundaries, add_missing_bbs): New.
17777         (rank): Use profile.
17778         (scheudle_ebbs): Rely on CFG; update coments.
17779
17780 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
17781
17782         * Makefile.in (host_hook_obj): New.
17783         (OBJS): Add $(host_hook_obj).
17784         (host_default.o): New rule.
17785         * config.gcc (host_hook_obj): New, default to host-default.o.
17786         (powerpc-*-darwin*): Use host-darwin.o.
17787         (out_host_hook_obj): New.
17788         * configure: Regenerate.
17789         * configure.in: Print information about out_host_hook_obj, substitute
17790         into output files.
17791         * host-default.c: New file.
17792         * hosthooks.h: New file.
17793         * toplev.c (general_init): Call host_hooks.extra_signals.
17794         * config/rs6000/host-darwin.c: New file.
17795         * config/rs6000/x-darwin: New file.
17796         * doc/hostconfig.texi: Add documentation for new host hook.
17797         Rearrange existing documentation.
17798
17799 2003-02-05  Roger Sayle  <roger@eyesopen.com>
17800
17801         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
17802         with *targetm.delegitimize_address.
17803         (rtl_for_decl_location): Likewise.
17804         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
17805         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
17806
17807         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
17808         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
17809         prototype.
17810         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
17811         i386_simplify_dwarf_addr.  Made static.  Prototyped.
17812         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
17813         i386_simplify_dwarf_addr to ix86_delegitimize_address.
17814         (ix86_find_base_term): Likewise.
17815         (maybe_get_pool_constant): Likewise.
17816
17817         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
17818         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
17819         prototype.
17820         * config/s390/s390.c (s390_delegitimize_address): Renamed from
17821         s390_simplify_dwarf_addr.  Made static.  Prototyped.
17822         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
17823
17824 2003-02-05  Richard Henderson  <rth@redhat.com>
17825
17826         PR c/8602
17827         * integrate.c (output_inline_function): Reset input_filename
17828         and lineno from the decl before rest_of_compilation.
17829
17830 2003-02-05  Richard Henderson  <rth@redhat.com>
17831
17832         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
17833         (CTZ_DEFINED_VALUE_AT_ZERO): New.
17834         * doc/rtl.texi, doc/tm.texi: Document them.
17835
17836         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
17837         of the value at zero properly.
17838         * fold-const.c (tree_expr_nonnegative_p): Likewise.
17839         * simplify-rtx.c (simplify_unary_operation): Likewise.
17840
17841         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
17842         (CTZ_DEFINED_VALUE_AT_ZERO): New.
17843
17844         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
17845         (TARGET_EXPAND_BUILTIN): Remove.
17846         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
17847         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
17848         (enum arm_builtins): Remove.
17849         * config/arm/arm.md (UNSPEC_CLZ): Remove.
17850         (clzsi2): Rename from clz; use clz instead of unspec.
17851         (ctzsi2): New.
17852         * config/arm/arm-protos.h: Update.
17853
17854 2003-02-05  Jan Hubicka  <jh@suse.cz>
17855
17856         * i386-protos.h (x86_emit_floatuns):  Declare.
17857         * i386.c (x86_emit_floatuns): New global function.
17858         * i386.md (floatunssisf2, floatunsdisf2,
17859         floatunsdidf2):  New patterns.
17860
17861 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17862
17863         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
17864
17865 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
17866
17867         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
17868           config/ia64/linux.h
17869
17870 2003-02-05  Roger Sayle  <roger@eyesopen.com>
17871
17872         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
17873
17874 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
17875
17876         PR optimization/8555
17877         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
17878         instead of aborting.
17879
17880 2003-02-04  Richard Henderson  <rth@redhat.com>
17881
17882         * config/i386/i386.md (UNSPEC_BSF): Remove.
17883         (ffssi2): Split into cmove and no_cmove insns and splitters;
17884         lose pentium float trick for now.
17885         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
17886         (ctzsi2, clzsi2, bsr): New.
17887
17888 2003-02-04  Richard Henderson  <rth@redhat.com>
17889
17890         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
17891         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
17892         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
17893         (ffsdi2): Use popcount instead of unspec.
17894         (popcountdi2): Rename from *popcnt.
17895         (ctzdi2, clzdi2, getf_exp_tf): New.
17896
17897 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
17898
17899         * genconfig.c (main): Generate CC0_P.
17900         * rtl.h (CC0_P): Remove.
17901
17902 2003-02-04  Richard Henderson  <rth@redhat.com>
17903
17904         * libgcc2.h, libgcc2.c (__ffsSI2): New.
17905         (__ffsDI2): Rename from __ffsdi2.
17906         * mklibgcc.in (lib2funcs): Add _ffssi2.
17907
17908 2003-02-04  Richard Henderson  <rth@redhat.com>
17909
17910         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
17911         rounds with a "bit table" lookup.
17912
17913 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
17914
17915         * reload.c (find_reloads): Do not use the mode specified in the insn
17916         pattern as reload mode for address operands.  Do not generate optional
17917         reloads for operands where a mandatory reload was already pushed.
17918
17919 2003-02-04  Richard Henderson  <rth@redhat.com>
17920
17921         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
17922         builtins instead of inline assembly.
17923
17924 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
17925
17926         PR c/9376
17927         * libgcc2.c (__subvdi3): Fix typo.
17928
17929 2003-02-04  Jan Hubicka  <jh@suse.cz>
17930
17931         * i386.md (movti_rex64):  Fix constraint.
17932
17933 2003-02-04  Jan Hubicka  <jh@suse.cz>
17934
17935         * i386.md (vector push splitters):  Fix typo in resolving conflict.
17936
17937 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
17938
17939         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
17940
17941 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
17942
17943         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
17944         for recent libstdc++.  Remove formatting cruft.
17945
17946 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
17947
17948         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
17949         attribute even if input file name is absolute, but one of the
17950         includes is relative.
17951
17952 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
17953
17954         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
17955         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
17956         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
17957
17958 2003-02-03  Richard Henderson  <rth@redhat.com>
17959
17960         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
17961         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
17962         return type to "int".  Shuffle declarations and undef int trap.
17963         * libgcc2.h: Remove their declarations.
17964         * optabs.c (expand_unop): Force outmode to int for bitops.
17965
17966 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
17967
17968         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
17969         coprocessor registers before floating-point registers.
17970         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
17971         to account for a previously removed register.
17972         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
17973         Delete unused macros.
17974
17975 2003-02-03  Jan Hubicka  <jh@suse.cz>
17976
17977         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
17978         (mov*_internal): Fix predicates; require one of operands to not be
17979         memory.
17980         (SSE?MMX move expanders):  Fix predicates; force one of operands to
17981         register.
17982         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
17983         (movups/movupd/movdqu patterns): Force one of operands to not be
17984         memory.
17985
17986 2003-02-03  Roger Sayle  <roger@eyesopen.com>
17987
17988         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
17989         takes a single rtx and returns it unmodified.
17990         * hooks.h (hook_rtx_rtx_identity): Prototype here.
17991         * target.h (struct gcc_target): Add "delegitimize_address"
17992         field to target structure.
17993         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
17994         for delegitimize_address target using hook_rtx_rtx_identity.
17995         (TARGET_INITIALIZER): Initialize delegitimize_address field
17996         using TARGET_DELEGITIMIZE_ADDRESS macro.
17997         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
17998         extensions of constant pool references.  Use delegitimize_address
17999         to undo the obfuscation of "-fpic".
18000         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
18001
18002         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
18003         i386_simplify_dwarf_addr.
18004         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
18005         (maybe_get_pool_constant): Likewise.
18006
18007 2003-02-03  Jan Hubicka  <jh@suse.cz>
18008
18009         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
18010
18011 2003-02-03  Jan Hubicka  <jh@suse.cz>
18012
18013         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
18014
18015 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18016
18017         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
18018         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
18019
18020 2003-02-02  Andreas Schwab  <schwab@suse.de>
18021
18022         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
18023
18024 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
18025
18026         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
18027         (epilogue_insns): Likewise.
18028
18029 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18030
18031         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
18032
18033 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18034
18035         * pa-protos.h (attr_length_millicode_call): Remove second argument.
18036         (attr_length_indirect_call, attr_length_indirect_call,
18037         attr_length_save_restore_dltp): New prototypes.
18038         * pa.c (attr_length_millicode_call): Remove second argument.  Check
18039         INSN_ADDRESSES_SET_P in distance calculation.
18040         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
18041         INSN_ADDRESSES.
18042         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
18043         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
18044         Call attr_length_call directly.
18045         (attr_length_indirect_call, output_indirect_call,
18046         attr_length_save_restore_dltp): New functions.
18047         * pa.md (attr_length_millicode_call): Drop second argument from all
18048         patterns.
18049         (return_internal_pic): Delete.
18050         (return_external_pic): Remove use of PIC register and pic operand and
18051         flag checks.
18052         (epilogue): Use return_internal for both normal and pic code.
18053         (call, call_value): Emit new 32-bit pic patterns for symref and
18054         indirect calls.  Remove uses for arg pointer and pic register.
18055         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
18056         call_reg_pic_post_reload, call_val_symref_pic,
18057         call_val_symref_pic_post_reload, call_val_reg_pic,
18058         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
18059         Implement define_split and define_peephole2 patterns for pre reload
18060         patterns.
18061         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
18062         call_value_internal_reg_64bit): Shorten names.
18063         (all call patterns): Explicitly indicate registers used and clobbered.
18064         Use attr_length_indirect_call and attr_length_save_restore_dltp for
18065         attribute length calculation.  Move code generation for indirect calls
18066         to output_indirect_call.
18067         (sibcall, sibcall_value): Don't restore PIC register.
18068         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
18069         register retore.
18070
18071 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18072
18073         * doc/install.texi (Testing): Simplify and compress instructions
18074         concerning Dejagnu.
18075
18076 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18077
18078         * collect2.c (pexecute_pid): Rename to pid.
18079         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
18080         pid.
18081
18082 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
18083
18084         * doc/extend.texi (Function Attributes): Remove documentation
18085         for PowerPC Windows NT function attributes..
18086
18087 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
18088
18089         * dwarf2out.c (gen_type_die): Check for typedefs before calling
18090         for TYPE_MAIN_VARIANT.
18091
18092 2003-02-01  Richard Henderson  <rth@redhat.com>
18093
18094         * libgcc2.c: Include auto-host.h.
18095         (ATTRIBUTE_HIDDEN): New.
18096         (__clz_tab): Don't declare here for clz and ctz.
18097         (__clzsi2, __clzdi2): Use count_leading_zeros.
18098         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
18099         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
18100         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
18101         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
18102
18103 2003-02-01  Richard Henderson  <rth@redhat.com>
18104
18105         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
18106         to the conditional.
18107         (ashlsi3_1_zext splitter): Likewise.
18108
18109 2003-02-01  Richard Henderson  <rth@redhat.com>
18110
18111         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
18112         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18113         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
18114         return type to Wtype.
18115
18116         * libgcc-std.ver (GCC_3.4): Fix inheritance.
18117
18118         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
18119         expander input constraint.
18120
18121 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
18122
18123         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
18124         OTI_parity.
18125         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
18126         * optabs.c (widen_clz, expand_parity): New.
18127         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
18128         for libcalls to clz, ctz, popcount, and parity.
18129         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
18130         parity_optab, and set up libfunc handlers.
18131         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18132         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
18133         __popcount_tab): New.
18134         * libgcc2.h: Declare them.
18135         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
18136         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
18137         and parity_optab.
18138         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
18139         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
18140         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
18141         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
18142         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
18143         BUILT_IN_PARITYLL): New.
18144         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
18145         and add optab argument.
18146         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
18147         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
18148         * expr.c (expand_expr): Handle them.
18149         * fold-const.c (tree_expr_nonnegative_p): Likewise.
18150         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
18151         * reload1.c (eliminate_regs): Handle them.
18152         (elimination_effects): Likewise.
18153         * function.c (instantiate_virtual_regs_1): Likewise
18154         * genattrtab.c (check_attr_value): Likewise.
18155         * simplify-rtx.c (simplify_unary_operation): Likewise.
18156         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
18157         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
18158         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
18159         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
18160         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
18161         __builtin_arm_clz.
18162         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
18163         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
18164         * doc/extend.texi (Other Builtins): Add new builtins.
18165         * doc/md.texi (Standard Names): Add new patterns.
18166
18167 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
18168
18169         * reload.c: Revert 2003-01-31 change.
18170
18171 2003-02-01  Jan Hubicka  <jh@suse.cz>
18172
18173         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
18174
18175 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
18176
18177         * flags.h (flag_volatile): Remove declaration.
18178         (flag_volatile_global, flag_volatile_static): Likewise.
18179         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
18180         * toplev.c (flag_volatile): Remove definition.
18181         (flag_volatile_global, flag_volatile_static): Likewise.
18182         (f_options): Remove corresponding entries here.
18183         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
18184         or flag_volatile_static.
18185         * doc/invoke.texi: Remove documentation of -fvolatile,
18186         -fvolatile-global and -fvolatile-static.
18187
18188 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18189
18190         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
18191         updating of total_code_bytes from prologue to epilogue.
18192
18193 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
18194
18195         * reload.c (find_reloads): Do not use the mode specified in the insn
18196         pattern as reload mode for address operands.  Do not generate optional
18197         reloads for operands where a mandatory reload was already pushed.
18198         Generate optional reloads only in the final pass though find_reloads.
18199         (have_replacement_p): New function.
18200
18201 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18202
18203         * doc/install.texi (Testing): Remove a reference to our obsolete
18204         /testresults web pages and strip redundant information concerning
18205         test results.
18206         (Binaries): Refer to Microsoft Windows instead of listing all
18207         possible variants.
18208
18209 2003-02-01  Jan Hubicka  <jh@suse.cz>
18210
18211         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
18212         RTL chain.
18213
18214         * combine.c (simplify_set): Reverse order of ragumetns to
18215         REG_CANNOT_CHANGE_MODE_P
18216         * df.c (df_def_record_1): Likewise.
18217         * recog.c (register_operand): Likewise.
18218         * simplify-rtx.c (simplify_subreg): Likewise.
18219         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
18220         CANNOT_CHANGE_MODE_CLASS.
18221         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
18222         Likewise.
18223         * reload.c (push_reload): Likewise.
18224         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18225         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18226         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18227         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
18228         * mips.c (mips_cannot_change_mode_class): Update.
18229         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18230         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18231         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18232         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18233         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
18234         * sh.c (sh_cannot_change_mode_class): Update.
18235         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
18236         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
18237
18238 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
18239
18240         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
18241         change to LINK_COMMAND_SPEC in gcc.c.
18242
18243 2003-01-31  Jan Hubicka  <jh@suse.cz>
18244
18245         PR c/9506
18246         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
18247
18248 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18249
18250         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
18251         duplicated code.
18252
18253 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
18254
18255         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
18256         (BINFO_ELTS): New #define.
18257         * stor-layout.c (finalize_record_size): Don't set them.
18258         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
18259         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
18260         (BINFO_LANG_ELTS): New #define.
18261         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
18262         * java/class.c (make_class): Use BINFO_ELTS.
18263         (set_super_info): Likewse.
18264         (add_interface_do): Likewise.
18265         * objc/objc-act.c (start_class): Use BINFO_ELTS.
18266
18267 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
18268
18269         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
18270         (times): Don't ever declare if not HAVE_TIMES.
18271         (clock): Don't ever declare if not HAVE_CLOCK.
18272
18273 2003-01-30  Richard Henderson  <rth@redhat.com>
18274
18275         * flow.c (update_life_info): Zap life info after cleanup_cfg.
18276         (regno_uninitialized): Use correct live at function entry set.
18277         (regno_clobbered_at_setjmp): Likewise.
18278
18279         * expr.c (store_expr): Promote all MEM intermediates to regs.
18280
18281 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
18282
18283         * config/arm/arm.c: Fix comment typos.
18284         * config/arm/arm.h: Likewise.
18285         * config/arm/netbsd-elf.h: Likewise.
18286         * config/arm/netbsd.h: Likewise.
18287
18288 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
18289
18290         * gengtype.c (struct walk_type_data): Add needs_cast_p.
18291         (walk_type): Set needs_cast_p in walk_type_data.
18292         (write_types_process_field): Supply casts when required to suppress
18293         warnings.
18294         (write_root): Cast gt_pch_n_S to suppress warning.
18295         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
18296         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
18297         when they might exist.
18298         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
18299         insn-conditions.o, and rs6000.o.
18300
18301 2003-01-30  Richard Henderson  <rth@redhat.com>
18302
18303         * ggc-page.c (G.context_depth_allocations): New.
18304         (G.context_depth_collections): New.
18305         (alloc_page): Set G.context_depth_allocations.
18306         (ggc_collect): Set G.context_depth_collections.
18307         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
18308         (ggc_pop_context): Early exit for no allocations or collections.
18309
18310 2003-01-30  Richard Henderson  <rth@redhat.com>
18311
18312         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
18313
18314 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
18315
18316         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
18317         size, the link register is always saved if any other register is
18318         saved.
18319
18320 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
18321
18322         * config/h8300/h8300-protos.h: Update the prototype for
18323         compute_plussi_cc.
18324         (cpp_reader): Declare before it is used.
18325         * config/h8300/h8300.c (compute_plussi_cc): Change the return
18326         type to int.
18327         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
18328         see an unknown H8 variant.
18329
18330 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
18331
18332         PR target/9316
18333         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
18334         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
18335         * config/rs6000/t-rtems: New file. multilib variants to match OS.
18336         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
18337         rs6000/t-ppcgas so we get the desired multilibs.
18338
18339 2003-01-30  Nick Clifton  <nickc@redhat.com>
18340
18341         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
18342         when popping saved IP register off the stack.
18343
18344 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
18345
18346         * config/rs6000/aix43.h: Fix comment typos.
18347         * config/rs6000/aix51.h: Likewise.
18348         * config/rs6000/aix52.h: Likewise.
18349         * config/rs6000/altivec.h: Likewise.
18350         * config/rs6000/rs6000.c: Likewise.
18351         * config/rs6000/rs6000.h: Likewise.
18352         * config/rs6000/rs6000.md: Likewise.
18353         * config/rs6000/spe.md: Likewise.
18354
18355 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
18356
18357         * c-common.c (builtin_define_float_constants): Define
18358         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
18359
18360 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
18361
18362         * config/sh/lib1funcs.asm: Fix comment typos.
18363         * config/sh/linux.h: Likewise.
18364         * config/sh/sh.c: Likewise.
18365         * config/sh/sh.md: Likewise.
18366
18367 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
18368
18369         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
18370
18371 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
18372
18373         * config/fp-bit.h (__make_dp): Declare if TMODES.
18374
18375 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
18376
18377         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
18378         general_operand_src and general_operand_dst.
18379
18380 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
18381
18382         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
18383         Return true for variable sized types.
18384         (rs6000_va_arg): Handle variable sized types passed by reference
18385         on non-SVR4 ABI.
18386
18387 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
18388
18389         * arm.c (arm_legtimize_address): New function.
18390         * arm-protos.h (arm_legtimize_address): Add prototype.
18391         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
18392         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
18393         do ... while (0)
18394
18395 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
18396
18397         PR bootstrap/9296
18398         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
18399         depended on it being defined until now.
18400
18401 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
18402
18403         PR target/9295
18404         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
18405         RTEMS code knows which C++ initialization style the toolset
18406         configuration is using.
18407
18408 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
18409
18410         PR bootstrap/9293
18411         * config/m68k/t-crtstuff: Replace spaces with tabs, add
18412          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
18413
18414 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
18415
18416         PR bootstrap/9292
18417         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
18418         RTEMS threads.
18419         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
18420
18421 2003-01-29  Nick Clifton  <nickc@redhat.com>
18422
18423         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
18424         not $(srcdir).
18425
18426 2003-01-29  Andrew Haley  <aph@redhat.com>
18427
18428         * tree-inline.c (walk_tree): Add CHAR_TYPE.
18429
18430 2003-01-29  Jan Hubicka  <jh@suse.cz>
18431
18432         * i386.md (subdi3_carry_rex64): Fix typo.
18433
18434 2003-01-28  Stan Shebs  <shebs@apple.com>
18435
18436         * coretypes.h (cpp_reader): Forward declare struct.
18437         * c-pragma.h (cpp_reader): Remove forward declaration.
18438         * hashtable.h (cpp_reader): Likewise.
18439         * scan.h (cpp_reader): Likewise.
18440         * tree.h (cpp_reader): Likewise.
18441         * config/darwin-protos.h (cpp_reader): Likewise.
18442         * config/arm/arm-protos.h (cpp_reader): Likewise.
18443         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
18444         struct cpp_reader in prototypes.
18445
18446 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
18447
18448         * doc/install.texi: Add documentation for installation into
18449         tooldirs and with DESTDIR.
18450
18451 2003-01-28  Richard Henderson  <rth@redhat.com>
18452
18453         * config.gcc (ia64*-*-aix*): Remove.
18454         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
18455         * config/ia64/unwind-aix.c: Remove file.
18456
18457 2003-01-28  Andreas Schwab  <schwab@suse.de>
18458
18459         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
18460         register.
18461         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
18462         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
18463         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
18464         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
18465         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
18466         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
18467         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
18468
18469 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
18470
18471         * combine.c (nonzero_bits): Fix check for negative divide operands.
18472
18473 2003-01-28  Richard Henderson  <rth@redhat.com>
18474
18475         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
18476         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
18477
18478 2003-01-28  Richard Henderson  <rth@redhat.com>
18479
18480         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
18481
18482         * config/cris/cris.c (cris_address_cost): Make static.
18483         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
18484         * config/cris/cris.h (ADDRESS_COST): Remove.
18485         * config/cris/cris-protos.h: Update.
18486
18487 2003-01-23  Mike Stump  <mrs@apple.com>
18488
18489         * regclass.c (init_reg_autoinc): New function.
18490         (regclass): Move initialization of forbidden_inc_dec_class from
18491         here...
18492         (init_regs): to here.  Avoids reinitialization for each function,
18493         saving compilation time.
18494
18495 2003-01-28  Jason Merrill  <jason@redhat.com>
18496
18497         * cpplib.h (struct cpp_options): Add warn_deprecated field.
18498         * cppinit.c (cpp_create_reader): Turn it on by default.
18499         * c-opts.c (c_common_decode_option): Set it.
18500         * cpplib.c (do_pragma_once): Only complain about #pragma once
18501         if warn_deprecated is set.
18502
18503 2003-01-28  Dale Johannesen  <dalej@apple.com>
18504
18505         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
18506         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
18507         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
18508
18509 2003-01-28  Richard Henderson  <rth@redhat.com>
18510
18511         * target.h (targetm.address_cost): New.
18512         * target-def.h (TARGET_ADDRESS_COST): New.
18513         (TARGET_RTX_COSTS): Uncomment.  Oops.
18514         * cse.c (address_cost): Use new target hook.
18515         (default_address_cost): New.
18516         * output.h (default_address_cost): Declare.
18517         * hooks.c (hook_int_rtx_0): New.
18518         * hooks.h (hook_int_rtx_0): Declare.
18519         * loop.c (combine_givs_p): Remove if 0 code.
18520         * system.h (ADDRESS_COST): Poison.
18521
18522         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
18523         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
18524         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
18525         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
18526         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
18527         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
18528         config/xtensa/xtensa.c, config/xtensa/xtensa.h
18529         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
18530         (ADDRESS_COST): Remove.
18531
18532         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
18533         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
18534         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
18535         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
18536         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
18537         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
18538         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
18539         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
18540         config/mips/mips.c, config/mips/mips.h,
18541         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
18542         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
18543         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
18544         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
18545         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
18546         config/vax/vax.c, config/vax/vax.h
18547         (foo_address_cost): Make static.
18548         (TARGET_ADDRESS_COST): New.
18549         (ADDRESS_COST): Remove.
18550
18551         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
18552         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
18553         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
18554         config/stormy16/stormy16.h
18555         (ADDRESS_COST): Move code ...
18556         (foo_address_cost): ... here.
18557         (TARGET_ADDRESS_COST): New.
18558
18559         * config/m32r/m32r.c (m32r_address_cost): Remove.
18560         * config/m32r/m32r-protos.h: Update.
18561
18562         * config/mmix/mmix.c (mmix_address_cost): Remove.
18563         * config/mmix/mmix-protos.h: Update.
18564
18565         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
18566         mn10300_address_cost; move unsig allocation ...
18567         (mn10300_address_cost): ... here.
18568         (TARGET_ADDRESS_COST): New.
18569         * config/mn10300/mn10300-protos.h: Update.
18570         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
18571
18572         * doc/tm.texi: Update.
18573
18574 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
18575
18576         * haifa-sched.c (schedule_insn): Return necessary cycle advance
18577         after issuing the insn.
18578         (rank_for_schedule): Make a insn with /S the highest priority
18579         insn.
18580         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
18581         (choose_ready): Check SCHED_GROUP_P.
18582         (schedule_block): Advance cycle after issuing insn if it is
18583         necessary.  Don't reorder insns if there is an insn with /S.
18584         (set_priorities): Ignore schedule groups.
18585
18586         * sched-deps.c (remove_dependence, group_leader): Remove the
18587         functions.
18588         (add_dependence): Ignore schedule groups.
18589         (set_sched_group_p): Don't make copy of dependencies from previous
18590         insn of the schedule group.  Add anti-dependency to the previous
18591         insn of the schedule group.
18592         (compute_forward_dependences): Ignore schedule groups.
18593
18594         * sched-ebb.c (init_ready_list): Ignore schedule groups.
18595
18596         * sched-rgn.c (init_ready_list): Ditto.
18597         (can_schedule_ready_p): Ditto.
18598
18599 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
18600
18601         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
18602         register to another one.
18603
18604 2003-01-28  Richard Henderson  <rth@redhat.com>
18605
18606         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
18607
18608 2003-01-28  Roger Sayle  <roger@eyesopen.com>
18609
18610         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
18611
18612 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
18613
18614         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
18615         class contains a floating-point register, return the size of the
18616         mode in half words.
18617
18618 2003-01-28  Jan Hubicka  <jh@suse.cz>
18619
18620         * i386.c (ix86_carry_flag_operator):  New predicate.
18621         (fcmov_operator): Fix whitespace.
18622         (ix86_expand_carry_flag_compare):  Deal with floating point.
18623         (ix86_expand_int_movcc): Deal with fp; update insn expansion
18624         (ix86_expand_int_addcc): Likewise.
18625         (ix86_expand_strlensi_unroll_1): likewsie.
18626         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
18627         * i386.md (add?i_carry_rex64): Use new predicate.
18628         (sub?i3_carry_rex64): Likewise.
18629         (x86_mov?icc_0_m1*): Likewise.
18630
18631 2003-01-28  Andreas Schwab  <schwab@suse.de>
18632
18633         * cfgloopmanip.c (create_preheader): Initialize src to avoid
18634         warning.
18635
18636         * expmed.c (emit_store_flag): Fix cast to avoid sign
18637         comparison warning.
18638
18639         * combine.c (force_to_mode): Add cast to fix warning when
18640         STORE_FLAG_VALUE is negative.
18641
18642 2003-01-27  Richard Henderson  <rth@redhat.com>
18643
18644         * Makefile.in (cse.o): Depend on TARGET_H.
18645         * cse.c (rtx_cost): Use targetm.rtx_costs.
18646         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
18647         * doc/tm.texi: Update.
18648
18649         * target.h (targetm.rtx_costs): New.
18650         * target-def.h (TARGET_RTX_COSTS): New.
18651         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
18652         * hooks.h: Update.
18653
18654         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
18655         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
18656         * config/alpha/alpha.h (PROCESSOR_MAX): New.
18657         (CONST_COSTS, RTX_COSTS): Remove.
18658
18659         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
18660         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
18661         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
18662         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
18663         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
18664         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
18665         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
18666         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
18667         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
18668         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
18669         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
18670         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
18671         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
18672         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
18673         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
18674         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
18675         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
18676         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
18677         config/v850/v850.c, config/v850/v850.h,
18678         config/xtensa/xtensa.c, config/xtensa/xtensa.h
18679         (CONST_COSTS, RTX_COSTS): Move code ...
18680         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
18681
18682         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
18683         (arm_rtx_costs, TARGET_RTX_COSTS): New.
18684         * config/arm/arm-protos.h: Update.
18685         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
18686
18687         * config/avr/avr.h (CONST_COSTS): Move code ...
18688         * config/avr/avr.c (avr_rtx_costs): ... here.
18689         (default_rtx_costs): Make static.
18690         * config/avr/avr-protos.h: Update.
18691
18692         * config/h8300/h8300.c (const_costs): Make static.
18693         (h8300_and_costs, h8300_shift_costs): Likewise.
18694         * config/h8300/h8300-protos.h: Update.
18695
18696         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
18697         (CONST_COSTS): Move code ...
18698         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
18699         default_rtx_costs; update for signature change.
18700         * config/ip2k/ip2k-protos.h: Update.
18701
18702         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
18703         (CONST_COSTS): Move code ...
18704         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
18705         (TARGET_RTX_COSTS): New.
18706         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
18707         * config/m68hc11/m68hc11-protos.h: Update.
18708
18709         * config/m68k/m68k.c (const_int_cost): Make static.
18710         * config/m68k/m68k-protos.h: Update.
18711
18712         * config/mcore/mcore.c (mcore_const_costs): Make static.
18713         (mcore_and_cost, mcore_ior_cost): Likewise.
18714         * config/mcore/mcore-protos.h: Update.
18715
18716         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
18717         (mmix_rtx_cost_recalculated): Remove.
18718         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
18719         * config/mmix/mmix-protos.h: Update.
18720
18721         * config/sh/sh.c (shiftcosts): Make static.
18722         (addsubcosts, andcosts, multcosts): Likewise.
18723         * config/sh/sh-protos.h: Update.
18724
18725         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
18726         (sparc_rtx_costs): Make static; update for change in signature.
18727         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
18728         * config/sparc/sparc-protos.h: Update.
18729
18730         * config/v850/v850.c (const_costs): Make static.
18731         * config/v850/v850-protos.h: Update.
18732
18733         * config/vax/vax.h (RTX_COSTS): Remove.
18734         (CONST_COSTS): Move code ...
18735         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
18736         from vax_rtx_cost.
18737         (vax_rtx_costs, TARGET_RTX_COSTS): New.
18738
18739 2003-01-27  Richard Henderson  <rth@redhat.com>
18740
18741         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
18742         * config/vax/vax-protos.h: Update.  Really.
18743
18744 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
18745
18746         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
18747         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
18748         zero if no hardware floating point.
18749         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
18750         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
18751         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
18752         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
18753         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
18754         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
18755         even FP registers on N32 and N64.
18756         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
18757         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
18758         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
18759         even-register-like alignment to 128-bit arguments.
18760         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
18761         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
18762         on N32 or N64.
18763         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
18764         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
18765         (TPBIT): Set to tp-bit.c.
18766         (tp-bit.c): Create out of fp-bit.c.
18767
18768 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18769
18770         * c-parse.in: Remove '%expect 32' directive in objc mode.
18771
18772 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
18773
18774         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
18775         (LIBGCOV): New variable.
18776         (libgcc.mk): Add LIBGCOV.
18777         (LIBGCC_DEPS): Add libgcov.c.
18778         (libgcov.a): New target.
18779         (clean): Remove libgcov.a.
18780         (install-libgcc): Do libgcov too.
18781         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
18782         with libgcov.a.
18783         * libgcc2.c (L_gcov): Move into ...
18784         * libgcov.c: ... here. New file.
18785         * mklibgcc.in: Add libgcov rules.
18786         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
18787
18788         * doc/invoke.texi (profile-arcs, test-coverage): Update and
18789         clarify.
18790
18791         * profile.c (index_counts_file): Remove duplicate check for open file.
18792
18793 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
18794
18795         * gcc/doc/invoke.texi (Optimization Options): Group together
18796         optional and experimental flags.  Move trapv and bounds-check
18797         out of this section.  Group floating point flags together.
18798         (Code Gen Options): Move trapv and bounds-check to here.
18799
18800 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
18801
18802         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
18803
18804 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
18805
18806         PR optimization/9090
18807         * function.c (purge_addressof_1): After pushing an addressed register
18808         onto the stack, simplify the result.
18809
18810 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
18811
18812         * doc/extend.texi: Fix typo.
18813
18814 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
18815
18816         * doc/cppopts.texi: Fix typo.
18817         * doc/objc.texi: Likewise.
18818         * doc/passes.texi: Likewise.
18819
18820 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
18821
18822         * real.c (ibm_extended_format): Add 53 to minimum exponent.
18823         (encode_ibm_extended): Adjust.
18824
18825 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
18826
18827         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
18828         timevar_id enumerations.
18829
18830 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
18831
18832         * combine.c: Fix formatting.
18833
18834 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
18835
18836         * doc/gccint.texi: Update the copyright.
18837
18838 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
18839
18840         * doc/cpp.texi: Fix typos.
18841         * doc/extend.texi: Likewise.
18842         * doc/gty.texi: Likewise.
18843         * doc/install.texi: Likewise.
18844         * doc/passes.texi: Likewise.
18845         * doc/rtl.texi: Likewise.
18846         * doc/tm.texi: Likewise.
18847
18848 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
18849
18850         * config/ia64/fde-glibc.c: Fix comment typos.
18851         * config/ia64/hpux.h: Likewise.
18852         * config/ia64/ia64.c: Likewise.
18853         * config/ia64/ia64.h: Likewise.
18854         * config/ia64/unwind-ia64.c: Likewise.
18855
18856 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
18857
18858         * config/i386/i386-modes.def: Fix comment typos.
18859         * config/i386/i386.c: Likewise.
18860         * config/i386/i386.md: Likewise.
18861
18862 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
18863
18864         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
18865         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
18866         ASM_FINISH_DECLARE_OBJECT before defining it.
18867         * toplev.c (rest_of_decl_compilation):  Don't define
18868         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
18869         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
18870         parameters for DWARF2 targets because they _are_ used.
18871
18872 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
18873
18874         * fp-bit.h: Define macros for TFmode floating-point constants
18875         in IBM-extended TFmode types.
18876         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
18877         widths.
18878         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
18879         TFmode type.
18880
18881         * config/fp-bit.h: Define macros for TFmode floating-point
18882         constants in IEEE quad TFmode type.  Declare functions according
18883         to L_ macros.
18884         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
18885         (TFtype, TItype, UTItype): Define if TMODES is defined.
18886         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
18887         (F_T_BITOFF, D_T_BITOFF): Define.
18888         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
18889         guaranteed to be wide enough.
18890         * config/fp-bit.c: Check for L_ macros for tf functions.
18891         (__thenan_tf): New.
18892         (nan): Adjust.
18893         (pack_d, unpack_d): Support IEEE 854 quad type.
18894         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
18895         from FRAC_NBITS, FRAC_BITS and NGARDS.
18896         (usi_to_float): Cast constants to be shifted to fractype
18897         instead of assuming long long is wide enough.
18898         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
18899
18900 2003-01-26  Andreas Jaeger  <aj@suse.de>
18901
18902         * df.c: Remove prototype of unused function df_regno_rtl_debug.
18903
18904 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
18905
18906         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
18907         (DBBIT_FUNCS): Added _df_to_tf.
18908         (TPBIT_FUNCS): New.
18909         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
18910         (LIBGCC_DEPS): Added TPBIT.
18911         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
18912
18913         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
18914         been able to move the result to target.
18915
18916         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
18917         for the appropriate mode.
18918
18919         * calls.c (emit_library_call_value_1): Handle return values
18920         in a PARALLEL.
18921
18922         * rtl.c (get_mode_alignment): Moved to...
18923         * stor-layout.c: ... here.
18924
18925         * print-rtl.c (print_rtx): Don't print MEM details in
18926         GENERATOR_FILEs.
18927
18928 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
18929
18930         * df.h: Update comments, tidy formatting.
18931         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
18932         REVERSE, UNION, INTERSECTION.  All uses updated.
18933         (OLD_DF_INTERFACE): Remove.
18934         (struct insn_info): Remove commented out insn field.
18935         * df.c: Update comments, tidy formatting.
18936         (df_def_table_realloc): Remove.
18937
18938
18939 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
18940
18941         * calls.c (save_fixed_argument_area): Tidy.
18942         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
18943         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
18944         call chain loop at 1 if !try_tail_call.  Formatting.
18945         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
18946         Use save_fixed_argument_area and restore_fixed_argument_area.
18947
18948 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18949
18950         * df.c (df_uses_record): Handle CC0.
18951
18952 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
18953
18954         * reload.c (maybe_memory_address_p): New function.
18955         (find_reloads_address): Use it instead of memory_address_p.
18956
18957 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
18958
18959         * final.c (shorten_branches): Align the address of code label
18960         when computing initial lengths and addresses.
18961
18962 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
18963
18964         * config/m68hc11/m68hc11.md: Fix a comment typo.
18965
18966 2003-01-25  Andreas Jaeger  <aj@suse.de>
18967
18968         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
18969         TARGET_MACHO.
18970
18971 2003-01-25  Roger Sayle  <roger@eyesopen.com>
18972
18973         * gcse.c (bypass_last_basic_block): New global variable.
18974         (bypass_block):  Use redirect_edge_and_branch_force to redirect
18975         fall-through edges.  Use bypass_last_basic_block to determine
18976         which blocks have valid PRE information.
18977         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
18978
18979 2003-01-25  Jan Hubicka  <jh@suse.cz>
18980
18981         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
18982
18983 2003-01-25  Jan Hubicka  <jh@suse.cz>
18984                               Eric Botcazou <ebotcazou@libertysurf.fr>
18985         PR opt/8492
18986         * gcse.c (one_cprop_pass): Delete unreachable blocks.
18987
18988 2003-01-25  Richard Henderson  <rth@redhat.com>
18989
18990         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
18991         from ia64_aix_select_rtx_section.
18992         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
18993         instead of saving and restoring flag_pic.
18994         (ia64_rwreloc_unique_section): Similarly.
18995         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
18996         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
18997         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
18998         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
18999
19000 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
19001
19002         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
19003         comment.
19004
19005 2003-01-25  Richard Henderson  <rth@redhat.com>
19006
19007         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
19008
19009 2003-01-25  Kelley Cook <kelleycook@comcast.net>
19010
19011         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
19012
19013 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
19014
19015         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
19016         type for bitmaps.  Use unsigned long.
19017         (nBITMAP_WORD_BITS): New macro.
19018         (BITMAP_WORD_BITS): New macro.
19019         (rest of file): Use it.
19020         * bitmap.c: Use it.
19021
19022 2003-01-25  Richard Henderson  <rth@redhat.com>
19023
19024         2002-02-19  Robert Lipe  <robertlipe@usa.net>
19025         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
19026
19027 2003-01-25  Roger Sayle  <roger@eyesopen.com>
19028
19029         * builtins.c (purge_builtin_constant_p): Scan insn stream
19030         sequentially rather than by basic block.
19031         * function.c (purge_addressof): Simplify test with INSN_P.
19032
19033 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
19034
19035         * combine.c (simplify_comparison, case AND): Remove a redundant test.
19036
19037 2003-01-25  Roger Sayle  <roger@eyesopen.com>
19038
19039         * function.h (struct function): New field calls_constant_p.
19040         (current_function_calls_constant_p): New macro for above.
19041         * function.c (prepare_function_start): Initialize calls_eh_return
19042         and calls_constant_p.
19043         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
19044         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
19045         when the current_function_calls_constant_p.
19046         * integrate.c (expand_inline_function): Set calls_constant_p if
19047         the function being inlined has calls_constant_p set.
19048
19049 2003-01-25  Roger Sayle  <roger@eyesopen.com>
19050
19051         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
19052         optimizing, even if flag_gcse is true.
19053         * toplev.c (rest_of_compilation): purge_builtin_constant_p
19054         only needs to be called when "optimize > 0 && flag_gcse".
19055
19056 2003-01-25  Roger Sayle  <roger@eyesopen.com>
19057
19058         * stmt.c (emit_case_bit_tests): New routine to implement suitable
19059         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
19060         (case_bit_test_cmp): New comparison function for "qsort" to order
19061         case_bit_tests by decreasing number of destination nodes.
19062         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
19063         (expand_end_case_type): Use emit_case_bit_tests to implement
19064         suitable switch statments.
19065         (CASE_USE_BIT_TESTS): New target macro to disable the above.
19066         * Makefile.in (stmt.o): Add dependency on optab.h.
19067         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
19068
19069 2003-01-23  Andreas Schwab  <schwab@suse.de>
19070
19071         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
19072         __do_global_ctors_aux hidden global and don't put it in
19073         .init_array.
19074         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
19075         instead so that it comes first.
19076
19077 2003-01-25  Jan Hubicka  <jh@suse.cz>
19078
19079         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
19080         subreg is read/modify.
19081
19082 2003-01-25  Jan Hubicka  <jh@suse.cz>
19083
19084         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
19085         do libcall for large blocks.
19086         * i386.md (comi patterns): Set type to ssecomi.
19087         (sse2_unpck?pd): Fix mode of vec_select.
19088
19089         * cse.c: Include except.h
19090         (cse_set_around_loop):  Do not create new basic blocks.
19091         * Makefile.in (cse.o): Add dependnecy on except.h
19092
19093 2003-01-25  Jan Hubicka  <jh@suse.cz>
19094
19095         * builtins.c (fold_trunc_transparent_mathfn): New function.
19096         (fold_builtin): Use it.
19097         * convert.c (convert_to_real): Re-enable code to convert
19098         math functions; add support for floor familly functions.
19099
19100 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19101
19102         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
19103         dependencies on coretypes.h and $(TM_H).
19104
19105 2003-01-25  Jan Hubicka  <jh@suse.cz>
19106
19107         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
19108
19109 2003-01-24  Stuart Hastings  <stuart@apple.com>
19110
19111         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
19112
19113 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
19114
19115         * config/c4x/c4x.md (UNSPEC_BU): New constants.
19116         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
19117         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
19118         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
19119         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
19120         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
19121         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
19122         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
19123
19124 2003-01-24  Jan Hubicka  <jh@suse.cz>
19125
19126         * emit-rtl.c (reg_attrs_htab): New static variable.
19127         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
19128         functions.
19129         (reg_rtx): Do not maintain regno_decl.
19130         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
19131         set_mem_attrs_from_reg): New global function.
19132         (init_emit): Do not initialize regno_decl.
19133         (init_emit_once): initialize reg_attrs_htab.
19134         * final.c (alter_subreg): Do not replace REG by SUBREG.
19135         (gen_mem_expr_from_op): Improve output.
19136         (output_asm_operands): Likewise.
19137         * function.c (assign_params): Do not set REGNO_DECL.
19138         * function.h (struct function): Kill regno_decl.
19139         (REGNO_DECL): Kill.
19140         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
19141         * print_rtl.c (print_rtx): Output REG information.
19142         * regclass.c (reg_scan_mark_refs): Update attrs.
19143         * reload1.c (alter_reg): Likewise.
19144         * simplify_rtx.c (simplify_subreg): Likewise.
19145         * stmt.c (expand_decl): Likewise.
19146         * rtl.def (REG): Add new field.
19147         * rtl.h (struct reg_attrs): New.
19148         (rtunion_def): At rtreg.
19149         (X0MEMATTR): Add checking.
19150         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
19151         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
19152         Declare.
19153         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
19154
19155 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
19156
19157         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
19158         (xtensa_emit_call, print_operand): Fix printf format strings
19159         to avoid compile warnings.
19160         (xtensa_function_prologue, xtensa_function_epilogue): Change type
19161         of "size" argument to HOST_WIDE_INT to fix compile warnings.
19162         * config/xtensa/xtensa-protos.h
19163         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
19164
19165 2003-01-24  Jan Hubicka  <jh@suse.cz>
19166
19167         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
19168         (implicit_built_in_decls): New global array.
19169         (mathfn_built_in): New global function.
19170         (fold_trunc_transparent_mathfn): New static function
19171         (expand_builtin_strstr, expand_bultin_strchr,
19172         expand_builtin_strpbrk, expand_builtin_strcpy,
19173         expand_builtin_strncpy, expand_bultin_strcmp,
19174         expand_bultin_strncat, expand_builtin_fputs): Use
19175         implicint_built_in_decls.
19176         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
19177         * builtins.def: Fix comments.
19178         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
19179         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
19180         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
19181         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
19182         (DEF_C99_C90RES_BULTIN): New.
19183         (*f, *l builtins): Update.
19184         * c-common.c (DEF_BUILTIN): Initialize implicit array.
19185         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
19186         * convert.c (strip_float_extensions): New global function.
19187         * tree.h (DEF_BUILTIN): Accept 10 arguments.
19188         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
19189         Declare.
19190         * java/builtins.c (define_builtin): Handle implicit.
19191         (DEF_BUILTIN): Update.
19192         * tm.texi (TARGET_C99_FUNCTIONS): Document.
19193         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
19194         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
19195         when using glibc2.
19196
19197 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
19198
19199         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
19200         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
19201         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
19202         * config/xtensa/crti.asm: New file.
19203         * config/xtensa/crtn.asm: New file.
19204         * config/xtensa/t-elf: New file.
19205         * config/xtensa/t-linux: New file.
19206         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
19207         Move various CFLAGS settings to new t-elf file.
19208
19209 2003-01-24  Richard Henderson  <rth@redhat.com>
19210
19211         PR optimization/4382
19212         * tree-inline.c (find_builtin_longjmp_call_1): New.
19213         (find_builtin_longjmp_call): New.
19214         (inlinable_function_p): Use it.
19215
19216 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19217
19218         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
19219         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
19220         * config/i386/i386.c (function_arg_pass_by_reference): New.
19221         (ix86_va_arg): Support arguments passed by reference.
19222
19223 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19224
19225         * cfgloopanal.c: New file.
19226         * cfgloopmanip.c: New file.
19227         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
19228         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
19229         cfglayout.o): Add dependency on cfgloop.h.
19230         (cfgloop.o): Add flags.h dependency.
19231         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
19232         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
19233         (struct loop, struct loops, flow_loops_find, flow_loops_update,
19234         flow_loops_free, flow_loops_dump, flow_loop_dump,
19235         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
19236         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
19237         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
19238         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
19239         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
19240         find_common_loop, verify_loop_structure): Declarations moved to ...
19241         * cfgloop.h: New file.
19242         * bb-reorder.c (reorder_basic_blocks): Modified.
19243         * cfglayout.c: Include cfgloop.h.
19244         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
19245         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
19246         (break_superblocks): New static function.
19247         (cfg_layout_finalize): Use it.
19248         (cfg_layout_split_block): New function.
19249         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
19250         fields.
19251         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
19252         changed.
19253         (cfg_layout_split_block): Declare.
19254         * cfgloop.c: Include cfgloop.h and flags.h.
19255         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
19256         get_loop_body): Avoid signed versus unsigned comparison warnings.
19257         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
19258         loop_latch_edge): Modified.
19259         (verify_loop_structure): Modified to use flags stored in loop structure;
19260         check irreducible loops.
19261         (cancel_loop, cancel_loop_tree): New functions.
19262         (estimate_probability): Use loop analysis code for predictions.
19263         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
19264         warnings.
19265         * doloop.c: Include cfgloop.h.
19266         * loop.c: Include cfgloop.h.
19267         * predict.c: Include cfgloop.h.
19268         * toplev.c: Include cfgloop.h.
19269         * unroll.c: Include cfgloop.h.
19270         * tracer.c (tracer): Modified.
19271
19272 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
19273
19274         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
19275
19276 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
19277
19278         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
19279         * configure: Regenerate.
19280
19281         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
19282         (tls_symbolic_reference_mentioned_p): Add prototype.
19283         (s390_tls_get_offset): Add prototype.
19284         (emit_pic_move): Remove prototype, replace by ...
19285         (emit_symbolic_move): .. this new prototype.
19286
19287         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
19288         (tls_model_chars): New global variable.
19289         (s390_encode_section_info): Encode TLS model.
19290         Use targetm.binds_local_p to check for local symbols.
19291         (s390_strip_name_encoding): New function.
19292         (TARGET_STRIP_NAME_ENCODING): Define.
19293
19294         (get_thread_pointer): New function.
19295         (legitimize_tls_address): New function.
19296         (legitimize_address): Call it.
19297         (emit_pic_move): Remove, replace by ...
19298         (emit_symbolic_move): ... this new function.
19299
19300         (larl_operand): Handle TLS operands.
19301         (legitimate_constant_p): Likewise.
19302         (s390_decompose_address): Likewise.
19303         (s390_cannot_force_const_mem): New function.
19304         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
19305
19306         (s390_output_symbolic_const): Handle TLS unspecs.
19307         (print_operand): New code 'J'.
19308         (machine_function): Add struct member 'some_ld_name'.
19309         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
19310
19311         (enum s390_builtin): New type.
19312         (code_for_builtin_64, code_for_builtin_31): New global variables.
19313         (s390_init_builtins, s390_expand_builtin): New functions.
19314         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
19315
19316         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
19317         (ASM_OUTPUT_LABELREF): Define.
19318         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
19319
19320         * config/s390/s390.md: Define TLS UNSPEC constants.
19321         ("movdi", "movsi"): Handle TLS operands.
19322         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
19323         ("*tls_load_64", "*tls_load_31"): New insns.
19324         ("call_value_tls", "call_value_tls_exp"): New expanders.
19325         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
19326         "bas_tls_64", "bas_tls_31"): New insns.
19327
19328 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
19329
19330         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
19331         spe ABI is configured, if requested.
19332
19333 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19334
19335         * doc/passes.texi: Fix typo.
19336
19337 2003-01-24  Andreas Schwab  <schwab@suse.de>
19338
19339         * stor-layout.c (excess_unit_span): Only define if used.
19340
19341 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
19342
19343         * gcc/doc/invoke.texi (Optimization Options): List -O levels
19344         for each optimization flag.
19345
19346 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
19347
19348         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
19349
19350 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19351
19352         * doc/bugreport.texi: Use @command instead of @code for commands.
19353         * doc/collect2.texi: Likewise.
19354         * doc/headerdirs.texi: Likewise.
19355         * doc/invoke.texi: Likewise.
19356         * doc/standards.texi: Likewise.
19357         * doc/tm.texi: Likewise.
19358         * doc/trouble.texi: Likewise.
19359
19360 2003-01-24  Nick Clifton  <nickc@redhat.com>
19361
19362         * config/arm/arm.c (use_return_insn): Do not use a single return
19363         instruction for interrupt handelrs which have to create a stack
19364         frame.
19365         (arm_expand_prologue): Do not pre-bias the return address of
19366         interrupt handlers which create a stack frame.
19367
19368 2003-01-24  Nick Clifton  <nickc@redhat.com>
19369
19370         * Add sh2e support:
19371
19372         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
19373
19374                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
19375                 med_cbranches.  Fix logic in short_cbranches.
19376
19377         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
19378
19379                 * config/sh/sh.md (delay for cbranch): Don't annul delay
19380                 slots on SH2e.
19381                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
19382                 cbranch with unfilled delay slot on SH2e.
19383                 (output_branch): Fill with a nop the delay slot of a
19384                 branch that required a delay slot but didn't get one.
19385
19386         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
19387
19388                 * doc/invoke.texi (SH options): Document -m2e.
19389                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
19390                 * config/sh/lib1funcs.asm: Likewise.
19391                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
19392                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
19393                 not __sh1__.
19394                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
19395                 SH2E up.
19396                 (SH3E_BIT): Renamed to...
19397                 (SH_E_BIT): ... this.  Replace all uses.
19398                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
19399                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
19400                 (TARGET_SWITCHES): Added 2e.
19401                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
19402                 (processor_type): Added PROCESSOR_SH2E.
19403                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
19404                 TARGET_SH2E, except in sqrtsf2_i.
19405                 (attribute cpu): Added sh2e.
19406                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
19407                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
19408                 * config.gcc: Add sh2e target support.
19409
19410 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
19411
19412         Rename -W to -Wextra.
19413         * c-decl.c:  Update comments.
19414         * c-typeck.c:  Likewise.
19415         * flags.h:  Likewise.
19416         * function.c:  Likewise.
19417         * stmt.c:  Likewise.
19418         * toplev.c:  Update comments.
19419         (W_options):  Add 'extra'.
19420         (display_help):  Remove '-W'.
19421         (decode_W_option):  Special warn_uninitialized treatment in the case
19422         of -Wextra.
19423         * doc/invoke.texi:  Update with new entries.
19424
19425 2003-01-23  Richard Henderson  <rth@redhat.com>
19426
19427         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
19428         in no-else-block case.  Add commentary.
19429
19430 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19431
19432         * configure.in: Revert last change.
19433
19434 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19435
19436         * configure.in: Don't include ansidecl.h in tconfig.h.
19437         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
19438         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
19439         ATTRIBUTE_UNUSED.
19440
19441         * configure: Regenerate.
19442
19443 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19444
19445         PR java/6748
19446         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
19447         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
19448         kernels.
19449
19450 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19451
19452         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
19453
19454 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
19455
19456         * genattrtab.c (write_attr_get): Mark 'insn' paramter
19457         as ATTRIBUTE_UNUSED.
19458
19459 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
19460
19461         * arm.c (thumb_base_register_rtx_p): New function.
19462         (thumb_index_register_rtx_p): New function.
19463         (thumb_legitimate_address_p): New function.
19464         (thumb_legitimate_offset_p): New function.
19465         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
19466         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
19467         definitions.
19468         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
19469         (THUMB_LEGITIMATE_OFFSET): Delte.
19470         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
19471         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
19472         (thumb_legitimate_offset_p): Likewise.
19473
19474 2003-01-23  Andreas Schwab  <schwab@suse.de>
19475
19476         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
19477
19478 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19479
19480         * fixinc/Makefile.in (FL_LIST): Revert last change.
19481
19482 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19483
19484         PR other/7341
19485         * invoke.texi (ftest-coverage): Fix broken cross-reference.
19486         Change @code to @command for gcov command.
19487
19488         * gcc.texi: Adjust title of gcov section.
19489         Adjust copyright.
19490         * gcov.texi: Likewise.
19491
19492 2003-01-22  Roger Sayle  <roger@eyesopen.com>
19493
19494         PR optimization/8423
19495         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
19496         its argument is constant, or 0 if !flag_gcse.
19497         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
19498         if it's argument is constant.
19499         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
19500         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
19501         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
19502         * builtins.c (purge_builtin_constant_p): New function to force
19503         instantiation of any remaining CONSTANT_P_RTX nodes.
19504         * rtl.h (purge_builtin_constant_p): Prototype here.
19505         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
19506         pass after GCSE and before loop.
19507         (flag_gcse): No longer static.
19508         * flags.h (flag_gcse): Prototype here.
19509
19510 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
19511
19512         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
19513         introduced by last change.
19514
19515 2003-01-22  Andreas Schwab  <schwab@suse.de>
19516
19517         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
19518
19519 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
19520
19521         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
19522         request a scratch reg on H8S when the shift count is 8.
19523
19524 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
19525
19526         * config/s390/s390-protos.h (preferred_la_operand_p):
19527         Remove second parameter.
19528         * config/s390/s390.c (preferred_la_operand_p): Likewise.
19529         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
19530         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
19531         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
19532         Add peepholes to transform ADD to LOAD ADDRESS.
19533
19534 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
19535
19536         * arm.c (arm_address_register_rtx_p): New function.
19537         (arm_legitimate_address_p): New function.
19538         (arm_legitimate_index_p): New function.
19539         (legitimize_pic_address): Use arm_legitimate_index_p.
19540         * arm-protos.h (arm_legtimate_address_p): Add prototype.
19541         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
19542         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
19543
19544 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
19545
19546         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
19547         * config/s390/2064.md (define_bypass): Correct 'Load' and
19548         'Load-address' bypass values.
19549
19550 2003-01-22  Andreas Schwab  <schwab@suse.de>
19551
19552         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
19553
19554 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
19555
19556         * genautomata.c (output_internal_insn_latency_func,
19557         output_print_reservation_func): Short circuit when there is no
19558         automaton to generate code for.
19559
19560 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19561
19562         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
19563         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
19564
19565 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
19566
19567         * config/rs6000/rs6000.md: Remove warning.
19568         (builtin_setjmp_receiver): Likewise.
19569         * config/darwin.c (update_stubs): Slightly improve terrible hack
19570         with identifiers.  Add comment pointing out problems with it.
19571         (update_non_lazy_ptrs): Likewise.
19572
19573 2003-01-21  Richard Henderson  <rth@redhat.com>
19574
19575         * dwarf2out.c (lookup_filename): Fix printf format warning.
19576         * system.h (fread_unlocked, fwrite_unlocked): Undef.
19577
19578         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
19579         (fixincl.o-warn, gnu-regex.o-warn): New.
19580         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
19581         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
19582         * fixinc/fixincl.c (process): Fix printf format warning.
19583
19584 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
19585
19586         * dwarf2out (output_file_names): Don't crash if called
19587         with empty file_table.
19588
19589 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
19590
19591         * genautomata.c (output_internal_insn_latency_func): Add
19592         missing break statement to generated code.
19593
19594 2003-01-21  Roger Sayle  <roger@eyesopen.com>
19595
19596         * stmt.c (same_case_target_p): New function to determine whether
19597         two case labels branch to the same target.  Split out from...
19598         (group_case_nodes): ... here.  Use same_case_target_p instead.
19599         (strip_default_case_nodes): Remove explicit case nodes
19600         that branch to the default destination.
19601         (expand_end_case_type): Call strip_default_case_nodes after
19602         group_case_nodes, to simplify the case-list before we count it.
19603         Only generate table_label RTX when actually needed.  Try to share
19604         thiscase->exit_label and thiscase->data.case_stmt.default_label
19605         when a switch has no explicit default case.  Simplify test for
19606         constant index.
19607
19608 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
19609
19610         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
19611         \t.
19612         (*negsf2_h8300hs): Likewise.
19613         (*addsi3_lshiftrt_16_zexthi): Likewise.
19614         (*iorhi3_lshiftrt_8): Likewise.
19615
19616 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
19617
19618         * dwarf2out.c (fde_table_in_use): Mark GTY.
19619         (dwarf2out_cfi_label_num): New variable, marked GTY.
19620         (dwarf2out_cfi_label): Use it instead of static label_num.
19621         * emit-rtl.c (label_num): Mark GTY.
19622
19623 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
19624
19625         * config/h8300/h8300.c (output_plussi): Support H8/300.
19626         (compute_plussi_length): Likewise.
19627         (compute_plussi_cc): Likewise.
19628         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
19629         output assembly instructions.
19630
19631 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19632
19633         * calls.c (fix_unsafe_tree): Prototype.
19634
19635         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
19636         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
19637         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
19638         c-parse.o-warn): Add -Wno-error.
19639         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
19640
19641         * configure.in (--enable-werror): Add new flag.
19642         * doc/install.texi (--enable-werror): Document.
19643         * configure: Regenerate.
19644
19645         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
19646
19647 2003-01-21  Andreas Schwab  <schwab@suse.de>
19648
19649         * genautomata.c (output_internal_insn_latency_func): Fix missing
19650         close paren in output.
19651
19652 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
19653
19654         * genautomata.c: Space savings in generated code:
19655         (output_dfa_insn_code_func): Split out the table-enlargement
19656         path to an out-of-line static function, dfa_insn_code_enlarge.
19657         (output_internal_insn_latency_func): Use a lookup table for the
19658         default latencies.
19659         (output_print_reservation_func): Use a lookup table for the
19660         strings.
19661
19662 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
19663
19664         PR opt/7507
19665         * calls.c (fix_unsafe_tree): Split out from ...
19666         (expand_call): ... here.  Use it on the function address too.
19667
19668 2003-01-20  Richard Henderson  <rth@redhat.com>
19669
19670         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
19671
19672 2003-01-20  Richard Henderson  <rth@redhat.com>
19673
19674         PR opt/7154
19675         * stmt.c (expand_asm_operands): Validize memory operands.
19676
19677 2003-01-20  Richard Henderson  <rth@redhat.com>
19678
19679         PR opt/8848
19680         * ifcvt.c (noce_process_if_block): Correct arguments to
19681         modified_between_p for no-else-block case.
19682
19683 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
19684
19685         * config/h8300/h8300.c (const_costs): Remove a warning.
19686         (output_plussi): Likewise.
19687         (compute_plussi_length): Likewise.
19688         (compute_plussi_cc): Likewise.
19689
19690 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
19691
19692         * config/h8300/h8300.md (addsi_h8300): Remove the last
19693         alternative.
19694
19695 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
19696
19697         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
19698
19699 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19700
19701         * system.h (__NO_STRING_INLINES): Define.
19702
19703 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19704
19705         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
19706         is not a scalar int mode.
19707
19708 2003-01-20  Roger Sayle  <roger@eyesopen.com>
19709
19710         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
19711         insn's notes following a substitution inside a libcall.
19712
19713 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
19714
19715         * configure.in: Check for system-provided 'uchar' type.
19716         * configure, config.in: Regenerate.
19717         * cpphash.h: Only typedef 'uchar' if the system doesn't.
19718
19719 2003-01-20  Richard Henderson  <rth@redhat.com>
19720
19721         * expr.h (MUST_PASS_IN_STACK): Move implementation...
19722         * calls.c (default_must_pass_in_stack): ... here.
19723
19724 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
19725
19726         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
19727
19728         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
19729
19730         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
19731         Wrap up definition of `insn_alts'.
19732
19733         * genattrtab.c (main): Wrap up `insn_alts'.
19734
19735 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19736
19737         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
19738         prototyping.
19739         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
19740
19741         * config.in, configure: Regenerate.
19742
19743 2003-01-20  Nick Clifton  <nickc@redhat.com>
19744
19745         * config/arm/arm.md (sibcall_epilogue): Add an
19746         UNSPEC_PROLOGUE_USE to prevent the link register from being
19747         considered dead.
19748
19749 2003-01-20  Jan Hubicka  <jh@suse.cz>
19750
19751         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
19752
19753 2003-01-20  Andreas Schwab  <schwab@suse.de>
19754
19755         * system.h: Don't declare strsignal if the decl test hasn't been
19756         run yet.
19757
19758 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
19759
19760         * config/h8300/h8300.c (notice_update_cc): Don't assume that
19761         recog_data.operands[0] is always associated with cc0.
19762
19763 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
19764
19765         * collect2.c (ldgetname): Expand declaration to prototype.
19766         * read-rtl.c (atoll): Add prototype.
19767         * system.h (strsignal): Also declare if no declaration found.
19768
19769 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
19770
19771         * config.gcc (mips64*-*-linux*): Added.
19772         * config/mips/linux64.h, config/mips/t-linux64: New file.
19773         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
19774         * config/mips/mips.c (override_options): Use it.
19775         * config/mips/mips.h (TARGET_SWITCHES): Added...
19776         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
19777         * Makefile.in (SPECS): New.
19778         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
19779         * gcc.c (process_command): Move self-spec processing past spec
19780         file loading.
19781         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
19782         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
19783         CRTSTUFF_T_CFLAGS.
19784         (SPECS): Document.
19785         * doc/invoke.texi (-mabi-fake-default): Document.
19786
19787 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
19788
19789         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
19790         z_reg, z_reg_qi): Declare static and GTY().
19791         (da_reg): Remove.
19792         (create_regs_rtx): Don't create da_reg.
19793         ("gt-m68hc11.h"): Include for GTY roots.
19794         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
19795         and GTY() here.
19796         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
19797         (m68hc11_soft_tmp_reg): Likewise.
19798         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
19799
19800 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
19801
19802         * basic-block.h: Fix comment formatting.
19803         * calls.c: Likewise.
19804         * combine.c: Likewise.
19805         * convert.c: Likewise.
19806         * gcov.c: Likewise.
19807         * haifa-sched.c: Likewise.
19808         * libgcc2.c: Likewise.
19809         * loop.c: Likewise.
19810         * profile.c: Likewise.
19811         * system.h: Likewise.
19812
19813 2003-01-18  Roger Sayle  <roger@eyesopen.com>
19814
19815         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
19816
19817 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19818
19819         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
19820
19821 2003-01-17  Dale Johannesen  <dalej@apple.com>
19822
19823         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
19824           (*floatunssidf2_internal):  Ditto.
19825
19826 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
19827
19828         * alias.c: Fix comment typos.
19829         * basic-block.h: Likewise.
19830         * c-common.c: Likewise.
19831         * c-common.h: Likewise.
19832         * c-decl.c: Likewise.
19833         * c-opts.c: Likewise.
19834         * c-pragma.c: Likewise.
19835         * c-pretty-print.h: Likewise.
19836         * cfg.c: Likewise.
19837         * cfganal.c: Likewise.
19838         * cfgbuild.c: Likewise.
19839         * cfgcleanup.c: Likewise.
19840         * cfglayout.c: Likewise.
19841         * cfgrtl.c: Likewise.
19842         * convert.c: Likewise.
19843         * cpphash.h: Likewise.
19844         * cpplex.c: Likewise.
19845         * cpplib.h: Likewise.
19846         * df.h: Likewise.
19847         * diagnostic.c: Likewise.
19848         * diagnostic.h: Likewise.
19849         * dwarf2.h: Likewise.
19850
19851 2003-01-17  Stan Shebs  <shebs@apple.com>
19852
19853         * config/darwin-protos.h: Forward-declare struct cpp_reader.
19854
19855 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
19856
19857         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
19858         mistake in last checkin.
19859
19860 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
19861
19862         * et-forest.c: Fix comment typos.
19863         * et-forest.h: Likewise.
19864         * except.c: Likewise.
19865         * expr.c: Likewise.
19866         * flags.h: Likewise.
19867         * flow.c: Likewise.
19868         * gcc.c: Likewise.
19869         * gcse.c: Likewise.
19870         * genattrtab.c: Likewise.
19871         * genautomata.c: Likewise.
19872         * gengtype.c: Likewise.
19873         * genrecog.c: Likewise.
19874         * global.c: Likewise.
19875         * gthr-rtems.h: Likewise.
19876
19877 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19878
19879         * i386.c (x86_function_profiler): Fix format specifier.
19880
19881 2003-01-17  Richard Henderson  <rth@redhat.com>
19882
19883         * gengtype.c (walk_type): Allow paramN_is.
19884
19885 2003-01-17  Nick Clifton  <nickc@redhat.com>
19886
19887         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
19888
19889 2003-01-16  Richard Henderson  <rth@redhat.com>
19890
19891         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
19892
19893 2003-01-16  Richard Henderson  <rth@redhat.com>
19894
19895         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
19896         (alpha_next_sequence_number): Likewise.
19897         (alpha_this_literal_sequence_number): Likewise.
19898         (alpha_this_gpdisp_sequence_number): Likewise.
19899         (struct alpha_funcs, alpha_funcs_num): Likewise.
19900         (struct alpha_links): Fix branch merge error.
19901         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
19902
19903 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
19904
19905         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
19906         R. Ghazi.
19907
19908 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
19909
19910         * ifcvt.c: Fix comment typos.
19911         * lcm.c: Likewise.
19912         * libgcc2.c: Likewise.
19913         * local-alloc.c: Likewise.
19914         * loop.c: Likewise.
19915         * predict.c: Likewise.
19916         * ra-build.c: Likewise.
19917         * ra.c: Likewise.
19918         * ra-colorize.c: Likewise.
19919         * ra.h: Likewise.
19920         * ra-rewrite.c: Likewise.
19921         * regmove.c: Likewise.
19922         * reload.h: Likewise.
19923         * rtlanal.c: Likewise.
19924         * toplev.c: Likewise.
19925         * tree.h: Likewise.
19926         * unwind-dw2-fde-glibc.c: Likewise.
19927         * vmsdbgout.c: Likewise.
19928
19929 2003-01-16  Richard Henderson  <rth@redhat.com>
19930
19931         * dwarf2out.c (struct file_table): Remove.
19932         (FILE_TABLE_INCREMENT): Remove.
19933         (file_table): Make a varray; mark for GC.  Update all users.
19934         (file_table_last_lookup_index): Extract from struct file_table.
19935         (output_file_names): Fix unsigned compare warnings.
19936         (add_name_attribute): Remove inline marker.
19937         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
19938         (lookup_filename): Don't manage size of file_table.
19939         (init_file_table): Allocate file_table with GC.
19940         (dwarf2out_init): Don't record main_input_filename here.
19941         (dwarf2out_finish): Do it here instead.
19942
19943 2003-01-16  Bruce Korb  <bkorb@gnu.org>
19944
19945         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
19946
19947 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
19948
19949         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
19950         instead of rotldi3_mextr.
19951
19952 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
19953
19954         * haifa-sched.c (move_insn): Restore moving all schedule group.
19955         (set_priorities): Restore taking SCHED_GROUP_P into account.
19956
19957         * sched-deps.c (add_dependence): Restore processing the last group
19958         insn.
19959         (remove_dependence, group_leader): Restore the functions.
19960         (set_sched_group_p): Restore adding dependencies from previous insn
19961         in the group.
19962         (compute_forward_dependences): Restore usage of group_leader.
19963
19964         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
19965         account.
19966
19967         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
19968         account.
19969         (can_schedule_ready_p): Ditto.
19970         (add_branch_dependences): Restore skipping over the group insns.
19971
19972 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
19973
19974         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
19975         68HC12 pre/post inc/dec side effects.
19976
19977 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
19978
19979         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
19980
19981 2003-01-16  J"orn Rennecke <amylaar@onetel.net.uk>
19982
19983         * sh.md (mshflo_w_x): Fix description of operation.
19984
19985 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
19986
19987         * config/rs6000/rs6000.h: Mention Altivec registers in
19988         commentary.  Fix typo.
19989
19990 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
19991
19992         * config/rs6000/rs6000.md (movti_string): Remove clobber.
19993         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
19994         generate PARALLEL with clobber for TARGET_POWER.
19995
19996 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19997
19998         * ra-colorize.c (colorize_one_web): Initialize variable.
19999         * regmove.c (fixup_match_1): Likewise.
20000         * reload1.c (reload_as_needed): Likewise.
20001         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
20002
20003 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
20004
20005         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
20006
20007 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20008
20009         * dbxout.c (lastfile, cwd): Fix `unused' warning.
20010         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
20011         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
20012         is_main_source, file_table, decl_die_table_in_use,
20013         abbrev_die_table_in_use, line_info_table_in_use,
20014         separate_line_info_table_in_use, pubname_table_in_use,
20015         arange_table_in_use, ranges_table_in_use,
20016         current_function_has_inlines): Likewise.
20017         * flow.c (life_analysis): Likewise.
20018         * genemit.c (gen_insn): Likewise.
20019         * protoize.c (cplus_suffix): Likewise.
20020
20021         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
20022         * arm.h (ROUND_UP_WORD): Likewise.
20023
20024         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
20025         warning.
20026         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
20027         init_emit_once): Likewise.
20028         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
20029         Likewise.
20030         * function.c (assign_stack_temp_for_type): Likewise.
20031         * loop.c (loop_invariant_p): Likewise.
20032         * recog.c (push_operand): Likewise.
20033         * regclass.c (init_reg_sets_1): Likewise.
20034         * reload.c (update_auto_inc_notes): Likewise.
20035         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
20036         * stmt.c (expand_asm_operands): Likewise.
20037         * stor-layout.c (start_record_layout): Likewise.
20038
20039 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
20040
20041         * config/c4x/c4x.md (epilogue): Correct last patch.
20042
20043 2003-01-15  Richard Henderson  <rth@redhat.com>
20044
20045         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
20046         also check that GP is being used.
20047         (alpha_find_lo_sum_using_gp): New.
20048         (alpha_does_function_need_gp): Use get_attr_usegp.
20049         * config/alpha/alpha-protos.h: Update.
20050         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
20051         as needed.
20052
20053 2003-01-15  Roger Sayle  <roger@eyesopen.com>
20054
20055         * gcse.c (one_cprop_pass): Change function arguments to take both
20056         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
20057         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
20058         (bypass_jumps): New function to perform separate jump bypassing pass.
20059         * rtl.h (bypass_jumps): Add function prototype.
20060         * timevar.def (TV_BYPASS): New timing variable.
20061         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
20062         (dump_file): New entry for the bypass RTL dump file.
20063         (rest_of_compilation): Insert new jump bypassing optimization
20064         pass after loop.
20065         * doc/passes.texi: Document new pass.
20066
20067 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20068
20069         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
20070         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
20071         * pa.h (TARGET_SOM_SDEF): Define.
20072         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
20073
20074 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
20075
20076         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
20077         allocate 4-bytes of locals on 68HC11.
20078         (expand_epilogue): Likewise.
20079         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
20080
20081 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
20082
20083         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
20084         and -mshort-double to the assembler to specify the ABI.
20085         (LINK_SPEC): Likewise.
20086         (CPP_SPEC): Pass HCS12 specific define.
20087         (MASK_M68S12): New define.
20088         (TARGET_M68S12): Likewise.
20089         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
20090         (TARGET_VERSION): Update.
20091         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
20092         (LINK_SPEC): Update.
20093         (ASM_SPEC): Update.
20094         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
20095         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
20096
20097 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
20098
20099         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
20100         the return code.
20101
20102 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
20103
20104         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
20105         flag before setting it.
20106
20107 2003-01-15  Roger Sayle  <roger@eyesopen.com>
20108
20109         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
20110         when loop condition is known true, i.e.  "while (1) { ... }".
20111         (genrtl_for_stmt): Similarly for "for" statements.
20112
20113 2003-01-15  Roger Sayle  <roger@eyesopen.com>
20114
20115         * real.c (real_sqrt): Return a bool result indicating whether
20116         a floating point exception or trap should be raised.
20117         * real.h (real_sqrt): Update function prototype.
20118         * builtins.c (fold_builtin): Only fold non-trapping square
20119         roots unless we're ignoring errno and trapping math.
20120
20121 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
20122
20123         * expr.h (emit_conditional_add): Add PARAMS to declaration.
20124         * gengtype-lex.l (malloc, realloc): Move defines after include of
20125         system.h.  Remove duplicate include of system.h.
20126
20127 2003-01-15  Roger Sayle  <roger@eyesopen.com>
20128
20129         PR middle-end/9009
20130         * optabs.c (expand_unop):  When manipulating the FP sign bit
20131         using integer operations, account for targets with different
20132         integer and FP word orders.
20133         (expand_abs): Likewise.
20134
20135 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
20136
20137         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
20138         file extension in section name.
20139
20140 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
20141
20142         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
20143         constant offset.
20144
20145 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
20146
20147         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
20148         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
20149         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
20150         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
20151
20152 2003-01-15  Jan Hubicka  <jh@suse.cz>
20153
20154         PR f/9258
20155         * global.c (struct allocno): Add no_stack_reg.
20156         (global_conflicts): Set no_stack_reg.
20157         (find_reg): Use it.
20158
20159         * convert.c (convert_to_real): Fold - and abs only when profitable.
20160         * fold-const.c (fold): Fold truncates in - and abs.
20161
20162 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
20163
20164         Segher Boessenkool  <segher@koffie.nl>
20165
20166         * predict.c (real_inv_br_prob_base): New variable.
20167         (propagate_freq): Use multiply by reciprocal instead of
20168         division.  Don't divide by 1.0 at all.
20169         (estimate_bb_frequencies): Similar.
20170
20171 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
20172
20173         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
20174         * configure: Rebuilt.
20175
20176 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
20177
20178         * config/s390/s390.c (s390_safe_attr_type): New function.
20179         (s390_use_dfa_pipeline_interface): New function, return true for z900.
20180         (s390_issue_rate): New function.
20181         (s390_agen_dep_p): New function.
20182         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
20183         (s390_adjust_cost): Return 'cost' if new DFA is used.
20184         (s390_adjust_priority): Delete function.
20185         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
20186         * config/s390/s390.md (atype attribute): Attribute 'atype' default
20187         determined by 'op_type'.
20188         (type attribute): Added more type attributes.
20189         * config/s390/2064.md: New DFA description for z900 pipeline.
20190
20191 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
20192
20193         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
20194         forced to memory.  Fixes PR bootstrap/9036.
20195
20196         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
20197         to set $gp before the call.
20198
20199 2003-01-14  Richard Henderson  <rth@redhat.com>
20200
20201         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
20202         for force_const_mem.
20203
20204 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20205
20206         * genattr.c (main): Rearrange output to avoid prototype warning.
20207         * genautomata.c (transform_3): Fix ambiguous-else warning.
20208         * local-alloc.c (requires_inout): Add parentheses around
20209         assignment used as truth-value.
20210         * timevar.c: Move system includes above local includes.  Include
20211         toplev.h
20212         * Makefile.in (timevar.o): Depend on toplev.h.
20213
20214 2003-01-14  Denis Chertykov  <denisc@overta.ru>
20215
20216         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
20217         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
20218
20219         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
20220         attributes.
20221         (TARGET_ATTRIBUTE_TABLE): New macro.
20222         (valid_machine_type_attribute): Remove.
20223         (valid_machine_decl_attribute): Remove.
20224         (ip2k_handle_progmem_attribute): New function.
20225         (ip2k_handle_fndecl_attribute): New function.
20226
20227 2003-01-10  Andrew Haley  <aph@redhat.com>
20228
20229         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
20230         registers to be in correct order.  Add rip.
20231
20232 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
20233
20234         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
20235         (*iorsi3_and_lshiftrt_9_sb): Likewise.
20236
20237 2003-01-14  Jan Hubicka  <jh@suse.cz>
20238
20239         * convert.c (strip_float_extensions):  Look for narrowest type handling
20240         FP constants.
20241
20242         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
20243         float1 CMP float2.
20244         * convert.c (strip_float_extensions): Make global.
20245         * tree.h (strip_float_extensions): Declare.
20246
20247 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20248
20249         * timevar.def: define TV_NAME_LOOKUP.
20250         * timevar.c (timevar_pop): Be verbose when aborting.
20251
20252 2003-01-13  Andreas Schwab  <schwab@suse.de>
20253
20254         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
20255         $(parsedir), just move the temporary file at the end.
20256         ($(parsedir)/gengtype-yacc.c): Likewise.
20257
20258 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
20259
20260         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
20261         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
20262         splitting.
20263         * configure: Rebuilt.
20264
20265 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20266
20267         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
20268         internal_mcount): Don't use PARAMS.
20269         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
20270         ISO C style.
20271         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
20272
20273 2003-01-13  Andreas Schwab  <schwab@suse.de>
20274
20275         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
20276         directive.
20277
20278 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
20279
20280         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
20281         (*iorsi3_and_lshiftrt_n_sb): Likewise.
20282
20283 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
20284
20285         PR c++/9264
20286         * c-lex.c (c_lex): Set the token value to error_mark_node for
20287         invalid numeric constants.
20288
20289 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20290
20291         * c-pch.c (asm_file_startpos): Change to `long'.
20292         (pch_init): Use ftell, not ftello.
20293         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
20294         Use `long' instead of `off_t'.
20295         (c_common_read_pch): Likewise.
20296         * ggc-common.c (gt_pch_save): Use long/ftell instead of
20297         off_t/ftello.
20298
20299 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
20300
20301         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
20302
20303 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
20304
20305         * arm-protos.h (struct cpp_reader): Add declaration.
20306
20307 2003-01-11  Jan Hubicka  <jh@suse.cz>
20308
20309         PR target/9068
20310         * i386.c (output_fp_compare): Fix typo.
20311
20312 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
20313
20314         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
20315
20316 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
20317
20318         * Makefile.in (parsedir): New variable.
20319         (docobjdir): New variable.
20320         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
20321         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
20322         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
20323         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
20324         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
20325         Use docobjdir.
20326         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
20327         objc.maintainer-clean): Use parsedir.
20328
20329         * varasm.c (struct constant_descriptor_rtx): Remove unused
20330         `label' field.
20331
20332         * toplev.c (documented_lang_options): Document -Winvalid-pch.
20333
20334 2003-01-10  Richard Henderson  <rth@redhat.com>
20335
20336         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
20337         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
20338
20339 2003-01-10  Richard Henderson  <rth@redhat.com>
20340
20341         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
20342         not INTEGRAL_MODE_P when widening extensions.
20343
20344 2003-01-10  Richard Henderson  <rth@redhat.com>
20345
20346         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
20347
20348 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
20349
20350         * ggc-page.c (ggc_collect): Avoid overflow computing
20351         min_expand.
20352
20353         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
20354         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
20355         Remove calls.
20356         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
20357
20358 2003-01-10  Jan Hubicka  <jh@suse.cz>
20359
20360         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
20361         with weird operands.
20362
20363 2003-01-10  Dale Johannesen <dalej@apple.com>
20364
20365         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
20366         parameters.  Call check_sibcall_argument_overlap if indicated.
20367         (check_sibcall_argument_overlap):  Add mark_stored_args_map
20368         parameter.  Don't mark parameter area as clobbered if not set.
20369         (expand_call):  Adjust calls to above.
20370
20371 2003-01-10 Kelley Cook <kelleycook@comcast.net>
20372
20373         * configure.in (linker read-only and read-write section mixing):
20374         Squelch some assembler warnings.
20375         * configure: Likewise.
20376
20377 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
20378
20379         * doc/invoke.texi: Document -mtune, delete -mcpu
20380         option for S/390 and zSeries.
20381         * config/s390/s390.c (s390_tune_string) New variable.
20382         (s390_cpu_string) Delete variable.
20383         (override_options): Use s390_tune_string instead of
20384         s390_cpu_string.
20385         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
20386
20387 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
20388
20389         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
20390
20391 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
20392
20393         * jump.c (next_nonnote_insn_in_loop): New function.
20394         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
20395         next_nonnote_insn.
20396         (duplicate_loop_exit_test). Likewise.
20397
20398 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
20399
20400         Merge from pch-branch:
20401
20402         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
20403
20404         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
20405         load.
20406
20407         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
20408
20409         * cpplib.c (count_registered_pragmas): New function.
20410         (save_registered_pragmas): New function.
20411         (_cpp_save_pragma_names): New function.
20412         (restore_registered_pragmas): New function.
20413         (_cpp_restore_pragma_names): New function.
20414         * cpphash.h (_cpp_save_pragma_names): Prototype.
20415         (_cpp_restore_pragma_names): Likewise.
20416         * cpppch.c (struct save_macro_item): Split from save_macro_data.
20417         (struct save_macro_data): New field 'saved_pragmas'.
20418         (save_macros): Update for changes to struct save_macro_data.
20419         (cpp_prepare_state): Call _cpp_save_pragma_names, update
20420         for changes to struct save_macro_data.
20421         (cpp_read_state): Call _cpp_restore_pragma_names, update
20422         for changes to struct save_macro_data.
20423
20424         * cpppch.c (cpp_read_state): Restore the hashtable references
20425         in the cpp_reader.
20426
20427         * tree.h (built_in_decls): Mark for PCH.
20428
20429         * dbxout.c (lastfile): Don't mark for PCH.
20430
20431         * ggc.h: Document PCH calls into memory managers.
20432
20433         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
20434
20435         * doc/invoke.texi (Precompiled Headers): Document the
20436         directory form of PCH.
20437         * cppfiles.c (validate_pch): New function.
20438         (open_file_pch): Search suitably-named directories for PCH files.
20439
20440         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
20441
20442         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
20443         reorder options.
20444         (Type Information): Mention that the information is also
20445         used to implement PCH.
20446         * doc/passes.texi (Passes): Improve documentation of
20447         language-specific files.
20448
20449         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
20450
20451         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
20452         (struct walk_type_data): Add reorder_fn field.
20453         (walk_type): Process 'reorder' option.
20454         (write_types_process_field): Reorder parameters to gt_pch_note_object,
20455         call reorder_note_routine.
20456         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
20457         (ggc_wtd): Update for change to struct write_types_data.
20458         (pch_wtd): Likewise.
20459         * ggc.h (gt_pch_note_object): Reorder parameters.
20460         (gt_handle_reorder): New definition.
20461         (gt_pch_note_reorder): New prototype.
20462         * ggc-common.c (struct ptr_data): Add reorder_fn.
20463         (gt_pch_note_object): Reorder parameters.
20464         (gt_pch_note_reorder): New.
20465         (gt_pch_save): Call reorder_fn.
20466         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
20467
20468         * dbxout.c (cwd): Don't mark for PCH.
20469
20470         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
20471
20472         * gengtype.c (finish_root_table): Fix some warnings.
20473         (write_root): Handle TYPE_STRING.
20474         * ggc.h (gt_ggc_m_S): Add prototype.
20475         * stringpool.c (gt_ggc_m_S): New function.
20476
20477         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
20478
20479         * dwarf2out.c (dw2_string_counter): New.
20480         (AT_string_form): Use it.
20481         (same_dw_val_p): Update for removal of hashtable.h hash tables.
20482
20483         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
20484
20485         * dbxout.c: Include gt-dbxout.h.
20486         (lastfile): Mark for PCH/GGC.
20487         (cwd): Likewise.
20488         (struct typeinfo): Likewise.
20489         (typevec): Likewise.
20490         (typevec_len): Likewise.
20491         (next_type_number): Likewise.
20492         (struct dbx_file): Likewise.
20493         (current_file): Likewise.
20494         (next_file_number): Likewise.
20495         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
20496         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
20497         (dbxout_end_source_file): Don't free struct dbx_file.
20498         (dbxout_type): Use GGC to allocate typevec.
20499         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
20500         (GTFILES): Add dbxout.c.
20501         (gt-dbxout.h): New rule.
20502
20503         * Makefile.in (c-pch.o): Add debug.h as dependency.
20504         * c-pch.c: Include debug.h.
20505         (pch_init): Call start_source_file to keep nesting right.
20506         (c_common_read_pch): Add orig_name parameter.  Call
20507         start_source_file debug hook.  Call end_source_file debug hook.
20508         * c-common.h (c_common_read_pch): Update prototype.
20509         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
20510         callback.
20511         * cppfiles.c (struct include_file): Add new field `header_name'.
20512         (find_or_create_entry): Default it to `name'.
20513         (open_file_pch): Set it to the original header file searched for.
20514         (stack_include_file): Don't stack an empty buffer, just handle
20515         PCH files immediately.  Pass header_name field to read_pch callback.
20516
20517         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
20518
20519         * function.c (funcdef_no): Mark to be saved in a PCH.
20520
20521         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
20522
20523         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
20524
20525         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
20526
20527         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
20528
20529         * optabs.h (code_to_optab): Add GTY marker.
20530
20531         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
20532
20533         * Makefile.in (GTFILES): Add cpplib.h.
20534         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
20535         * c-decl.c (build_compound_literal): Don't use var_labelno.
20536         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
20537         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
20538         * varasm.c (const_labelno): Use gengtype to mark.
20539         (var_labelno): Likewise.
20540         (in_section): Likewise.
20541         (in_named_name): Likewise.
20542         (struct in_named_entry): Likewise.
20543         (in_named_htab): Likewise.
20544         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
20545         (init_varasm_once): Use GGC to allocate in_named_htab.
20546         * config/darwin.c (current_pic_label_num): Mark for PCH.
20547
20548         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
20549
20550         * ggc-simple.c (init_ggc_pch): New stub procedure.
20551         (ggc_pch_count_object): Likewise.
20552         (ggc_pch_total_size): Likewise.
20553         (ggc_pch_this_base): Likewise.
20554         (ggc_pch_alloc_object): Likewise.
20555         (ggc_pch_prepare_write): Likewise.
20556         (ggc_pch_write_object): Likewise
20557         (ggc_pch_finish): Likewise.
20558         (ggc_pch_read): Likewise.
20559
20560         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
20561
20562         * c-pch.c (c_common_write_pch): Write the macro definitions after
20563         the GCed data.
20564         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
20565         definitions after the GCed data.
20566         * cpplib.c (save_macros): New.
20567         (reset_ht): New.
20568         (cpp_write_pch_deps): Split out of cpp_write_pch.
20569         (cpp_write_pch_state): Split out of cpp_write_pch.
20570         (cpp_write_pch): Delete.
20571         (struct save_macro_data): Delete.
20572         (cpp_prepare_state): New.
20573         (cpp_read_state): Erase and restore initial macro definitions.
20574         * cpplib.h (struct save_macro_data): Forward-declare.
20575         (cpp_write_pch_deps): Prototype.
20576         (cpp_write_pch_state): Prototype.
20577         (cpp_write_pch): Delete prototype.
20578         (cpp_prepare_state): Prototype.
20579         (cpp_read_state): Add fourth argument.
20580
20581         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
20582
20583         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
20584         (write_array): Remove warning.
20585
20586         * gengtype.c (contains_scalar_p): New.
20587         (finish_root_table): Add the table to all languages, even if it's
20588         empty.
20589         (write_roots): Output gt_pch_scalar_rtab.
20590         * ggc-common.c (gt_pch_save): Write out scalars.
20591         (gt_pch_restore): Read scalars back.
20592
20593         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
20594         (struct page_entry): Delete pch_page field.
20595         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
20596         (clear_marks): Likewise.
20597         (sweep_pages): Likewise.
20598         (poison_pages): Likewise.
20599         (ggc_print_statistics): Likewise.
20600         (ggc_pch_read): Don't free objects read from a PCH.
20601         Properly set up in_use_p and page_tails.
20602
20603         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
20604
20605         * gengtype.c (struct write_types_data): New.
20606         (struct walk_type_data): Make `cookie' const; add extra
20607         prev_val item; add `orig_s' field.
20608         (walk_type): Update prev_val[3].
20609         (write_types_process_field): New.
20610         (write_func_for_structure): Take write_types_data structure.
20611         (write_types): New.
20612         (ggc_wtd): New.
20613         (pch_wtd): New.
20614         (write_types_local_process_field): New.
20615         (gc_mark_process_field): Delete.
20616         (write_local_func_for_structure): New.
20617         (gc_mark_func_name): Delete.
20618         (write_gc_types): Delete.
20619         (write_local): New.
20620         (finish_root_table): Don't include 'ggc_' in PFX.
20621         (write_root): Rename from write_root.  Fill pchw field of structures.
20622         (write_array): New.
20623         (write_roots): Rename from write_gc_roots.  Split out to write_array.
20624         Update to changes to other routines.  Write gt_pch_cache_rtab table.
20625         (main): Write PCH walking routines.
20626         * ggc-common.c: Include toplev.h, sys/mman.h.
20627         (ggc_mark_roots): For cache hashtables, also mark the hash table
20628         and the array of entries.
20629         (saving_htab): New.
20630         (struct ptr_data): New.
20631         (POINTER_HASH): New.
20632         (gt_pch_note_object): New.
20633         (saving_htab_hash): New.
20634         (saving_htab_eq): New.
20635         (struct traversal_state): New.
20636         (call_count): New.
20637         (call_alloc): New.
20638         (compare_ptr_data): New.
20639         (relocate_ptrs): New.
20640         (write_pch_globals): New.
20641         (struct mmap_info): New.
20642         (gt_pch_save): New.
20643         (gt_pch_restore): New.
20644         * ggc-page.c (ROUND_UP_VALUE): New.
20645         (ROUND_UP): New.
20646         (struct page_entry): Add field `pch_page'.
20647         (init_ggc): Use ROUND_UP.
20648         (struct ggc_pch_data): Declare.
20649         (init_ggc_pch): New.
20650         (ggc_pch_count_object): New.
20651         (ggc_pch_total_size): New.
20652         (ggc_pch_this_base): New.
20653         (ggc_pch_alloc_object): New.
20654         (ggc_pch_prepare_write): New.
20655         (ggc_pch_write_object): New.
20656         (ggc_pch_finish): New.
20657         (ggc_pch_read): New.
20658         * ggc.h (gt_pointer_operator): New.
20659         (gt_note_pointers): New.
20660         (gt_pch_note_object): New prototype.
20661         (gt_pointer_walker): New.
20662         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
20663         (LAST_GGC_ROOT_TAB): Update.
20664         (gt_pch_cache_rtab): Declare.
20665         (gt_pch_scalar_rtab): Declare.
20666         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
20667         (LAST_GGC_CACHE_TAB): Update.
20668         (gt_pch_save_stringpool): Declare.
20669         (gt_pch_restore_stringpool): Declare.
20670         (gt_pch_p_S): Declare.
20671         (gt_pch_n_S): Declare.
20672         (struct ggc_pch_data): Forward-declare.
20673         (init_ggc_pch): Declare.
20674         (ggc_pch_count_object): Declare.
20675         (ggc_pch_total_size): Declare.
20676         (ggc_pch_this_base): Declare.
20677         (ggc_pch_alloc_object): Declare.
20678         (ggc_pch_prepare_write): Declare.
20679         (ggc_pch_write_object): Declare.
20680         (ggc_pch_finish): Declare.
20681         (ggc_pch_read): Declare.
20682         (gt_pch_save): Declare.
20683         (gt_pch_restore): Declare.
20684         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
20685         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
20686         const_double_htab, mem_attrs_htab using GGC.
20687         * c-pch.c: Include ggc.h.
20688         (pch_init): Allow reading PCH file back.
20689         (c_common_write_pch): Call gt_pch_save.
20690         (c_common_read_pch): Call gt_pch_restore.
20691         * c-parse.in (init_reswords): Delete now-untrue comment.
20692         Allocate ridpointers using GGC.
20693         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
20694         calling expand_deferred_fns.
20695         * c-common.h (ridpointers): Mark for GTY machinery.
20696         * Makefile.in (stringpool.o): Update dependencies.
20697         (c-pch.o): Update dependencies.
20698         (ggc-common.o): Update dependencies.
20699         * stringpool.c: Include gt-stringpool.h.
20700         (gt_pch_p_S): New.
20701         (gt_pch_n_S): New.
20702         (struct string_pool_data): New.
20703         (spd): New.
20704         (gt_pch_save_stringpool): New.
20705         (gt_pch_restore_stringpool): New.
20706         * tree.c (init_ttree): Make type_hash_table allocated using GC.
20707
20708         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
20709
20710         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
20711         (output_mangled_typename): Don't pass size_t to printf.
20712
20713         * tree.h (union tree_type_symtab): Add tag to `address' field.
20714         (union tree_decl_u2): Add tag to 'i' field.
20715         * varasm.c (union rtx_const_un): Add tags to all fields.
20716         * gengtype.c (struct walk_type_data): New.
20717         (output_escaped_param): Take struct walk_type_data parameter.
20718         (write_gc_structure_fields): Delete.
20719         (walk_type): New.
20720         (write_gc_marker_routine_for_structure): Delete.
20721         (write_func_for_structure): New.
20722         (gc_mark_process_field): New.
20723         (gc_mark_func_name): New.
20724         (gc_counter): Delete.
20725         (write_gc_types): Use write_func_for_structure.
20726         (write_gc_roots): Use walk_type.
20727
20728         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
20729
20730         * ggc-common.c (ggc_mark_roots): Delete 'x'.
20731         (ggc_splay_dont_free): Fix warning about unused 'x'.
20732         (ggc_print_common_statistics): Remove warnings.
20733
20734         2002-10-01  Mike Stump  <mrs@apple.com>
20735
20736         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
20737         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
20738
20739         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
20740             Catherine Moore  <clm@redhat.com>
20741
20742         * Makefile (c-pch.o): Update dependencies.
20743         (LIBCPP_OBJS): Add cpppch.o.
20744         (cpppch.o): New.
20745         * c-common.c (c_common_init): Don't call pch_init here.
20746         * c-common.h (c_common_read_pch): Update prototype.
20747         * c-lex.c (c_common_parse_file): Call pch_init here.
20748         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
20749         (c_common_decode_option): Handle them.
20750         * c-pch.c: Include c-pragma.h.
20751         (save_asm_offset): Delete.
20752         (pch_init): Move contents of save_asm_offset into here, call
20753         cpp_save_state.
20754         (c_common_write_pch): Call cpp_write_pch.
20755         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
20756         cpp_valid_state.
20757         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
20758         * cppfiles.c (stack_include_file): Update for change to
20759         parameters of cb.read_pch.
20760         * cpphash.h (struct cpp_reader): Add `savedstate' field.
20761         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
20762         `restore_pch_deps' fields.
20763         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
20764         (cpp_save_state): Prototype.
20765         (cpp_write_pch): Prototype.
20766         (cpp_valid_state): Prototype.
20767         (cpp_read_state): Prototype.
20768         * cpppch.c: New file.
20769         * flags.h (version_flag): Remove prototype.
20770         * mkdeps.c (deps_save): New.
20771         (deps_restore): New.
20772         * mkdeps.h (deps_save): Prototype.
20773         (deps_restore): Prototype.
20774         * toplev.c (late_init_hook): Delete.
20775         (version_flag): Make static again.
20776         (compile_file): Don't call late_init_hook.
20777         * toplev.h (late_init_hook): Delete.
20778         * doc/cppopts.texi: Document -fpch-deps.
20779         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
20780
20781         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
20782
20783         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
20784         callers.
20785         (c_common_valid_pch): Rename from c_valid_pch, change callers.
20786         (c_common_read_pch): Rename from c_read_pch, change callers.
20787
20788         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
20789         a space between it and its argument.
20790
20791         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
20792
20793         * c-pch.c: New file.
20794         * toplev.h (late_init_hook): Declare.
20795         * toplev.c (late_init_hook): Define.
20796         (version_flag): Make globally visible.
20797         (compile_file): Call late_init_hook.
20798         (init_asm_output): Make output file seekable.
20799         * gcc.c (default_compilers): Update c-header rule.
20800         * flags.h (version_flag): Declare.
20801         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
20802         fields.
20803         * cppfiles.c (struct include_file): Add 'pch' field.
20804         (INCLUDE_PCH_P): New.
20805         (open_file_pch): New.
20806         (stack_include_file): Handle PCH files specially.
20807         (find_include_file): Call open_file_pch instead of open_file.
20808         (_cpp_read_file): Explain why open_file is used instead of
20809         open_file_pch.
20810         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
20811         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
20812         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
20813         in cpplib callbacks.
20814         * c-common.c (pch_file): Correct comment.
20815         (allow_pch): Define.
20816         (c_common_init): Call pch_init.
20817         * c-common.h (allow_pch): Declare.
20818         (pch_init): Declare.
20819         (c_valid_pch): Declare.
20820         (c_read_pch): Declare.
20821         (c_write_pch): Declare.
20822         * Makefile.in (c-pch.o): New.
20823         (C_AND_OBJC_OBJS): Add c-pch.o.
20824         * doc/invoke.texi (Precompiled Headers): Add index entries,
20825         complete truncated paragraph.
20826
20827         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
20828
20829         * c-common.c: (pch_file): Define.
20830         * c-common.h (pch_file): Declare.
20831         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
20832         (missing_arg): Require --output-pch= to have an argument.
20833         (c_common_decode_option): Handle --output-pch=.
20834         * gcc.c: Document new %V.
20835         (default_compilers): Handle compiling C header files.
20836         (do_spec_1): Implement %V.
20837         (main): Handle "gcc foo.h" without trying to run linker.
20838         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
20839         (Overall Options): Document what the driver does with header files,
20840         document new -x option possibilities.
20841         (Invoking G++): More documentation for PCH.
20842         (Precompiled Headers): New.
20843
20844         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
20845
20846         * ggc.h: Don't include varray.h.  Rearrange functions to be more
20847         organized.
20848         (ggc_add_root): Delete.
20849         (ggc_mark_rtx): Delete.
20850         (ggc_mark_tree): Delete.
20851         (struct ggc_statistics): Remove contents.
20852         * ggc-common.c: Remove unneeded includes.
20853         (struct ggc_root): Delete.
20854         (roots): Delete.
20855         (ggc_add_root): Delete.
20856         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
20857         (ggc_print_common_statistics): Remove most of the contents.
20858         * Makefile.in (GGC_H): No longer uses varray.h.
20859         (ggc-common.o): Update dependencies.
20860         (c-parse.o): Add varray.h to dependencies.
20861         (c-common.o): Add varray.h.
20862         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
20863         (mark_ident_hash): Rename to ggc_mark_stringpool.
20864         (init_stringpool): Don't use ggc_add_root.
20865         * c-parse.in: Include varray.h.
20866         * c-common.c: Include varray.h.
20867         * objc/Make-lang.in (objc-act.o): Add varray.h.
20868         * objc/objc-act.c: Include varray.h.
20869
20870         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
20871
20872         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
20873         (dw_cfi_oprnd1_desc): Likewise.
20874
20875         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
20876
20877         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
20878         move out of ifdef.
20879         (alpha_links): Use gengtype to mark; move out of ifdef.
20880         (mark_alpha_links_node): Delete.
20881         (mark_alpha_links): Delete.
20882         (alpha_need_linkage): Use GGC to allocate splay tree, struct
20883         alpha_links, strings.  Don't use ggc_add_root.
20884         * ggc-common.c (ggc_splay_alloc): New.
20885         (ggc_splay_dont_free): New.
20886         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
20887         (ggc_mark_tree): Likewise.
20888         (splay_tree_new_ggc): New.
20889         (ggc_splay_alloc): Declare.
20890         (ggc_splay_dont_free): Declare.
20891         * dwarf2asm.c: Include gt-dwarf2asm.h.
20892         (mark_indirect_pool_entry): Delete.
20893         (mark_indirect_pool): Delete.
20894         (indirect_pool): Use gengtype to mark.
20895         (dw2_force_const_mem): Don't use ggc_add_root.
20896         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
20897         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
20898         (gt-dwarf2asm.h): Depend on s-gtype.
20899
20900         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
20901
20902         * tree.h (union tree_type_symtab): Mark `die' field.
20903         * Makefile.in (dwarf2out.o): Update dependencies.
20904         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
20905         hash tables.
20906         (dw_cfi_oprnd1_desc): New function.
20907         (dw_cfi_oprnd2_desc): New function.
20908         (indirect_string_alloc): Delete.
20909         (debug_str_do_hash): New function.
20910         (debug_str_eq): New function.
20911         (mark_limbo_die_list): Delete.
20912         (dwarf2out_init): Don't call ggc_add_root.
20913
20914 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
20915
20916         The following changes are merged from itanium-sched-branch:
20917
20918         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
20919
20920         * doc/md.texi: Clarify assignment of units to automata description.
20921
20922         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
20923
20924         * genautomata.c (unit_decl): Remove members
20925         `the_same_automaton_unit' and
20926         `the_same_automaton_message_reported_p'.
20927         (process_unit_to_form_the_same_automaton_unit_lists,
20928         form_the_same_automaton_unit_lists_from_regexp,
20929         form_the_same_automaton_unit_lists, the_same_automaton_lists):
20930         Remove them.
20931         (annotation_message_reported_p): New global variable.
20932         (check_unit_distribution_in_reserv,
20933         check_regexp_units_distribution): New functions.
20934         (check_unit_distributions_to_automata): Rewrite it.
20935
20936         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
20937
20938         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
20939         Use continue instead of break if cycle is too big.
20940
20941         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
20942
20943         * genautomata.c (check_unit_distributions_to_automata): Output at
20944         most one message for a unit.
20945         (process_unit_to_form_the_same_automaton_unit_lists): Check
20946         automaton of units instead of units themself.
20947
20948         * doc/md.texi: Describe the constraint about assigning unit to
20949         automata.
20950
20951         2002-12-20  Jan Hubicka  <jH@suse.cz>
20952                     Vladimir Makarov  <vmakarov@redhat.com>
20953
20954         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
20955         and `in_set_p'.
20956         (gen_cpu_unit): Initialize the new members.
20957         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
20958         up `min_occ_cycle_num'.
20959         (evaluate_max_reserv_cycles): Change the function call.
20960         (CLEAR_BIT): New macro.
20961         (states_union, state_shift): Use the mask.
20962         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
20963         (form_reservs_matter): New function.
20964         (make_automaton): Call the function and use the mask.
20965         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
20966         account.
20967
20968         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
20969
20970         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
20971
20972         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
20973
20974         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
20975         for Itanium.
20976
20977         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
20978
20979         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
20980         default cpu.
20981
20982         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
20983                 2002-10-31  Dale Johannesen <dalej@apple.com>
20984
20985         * haifa-sched.c (find_set_reg_weight): New function.
20986         (find_insn_reg_weight): Use the new function.
20987         (schedule_block): Do sorting ready queue always
20988         after insn issue.
20989
20990         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
20991
20992         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
20993
20994         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
20995
20996         * haifa-sched.c (choice_entry): New structure.
20997         (choice_stack, cycle_issued_insns): New variables.
20998         (max_issue): Rewrite it.
20999         (choose_ready): Set up ready_try for unknown insns too.
21000         (schedule_block): Allocate and free choice_stack.  Set up
21001         and modify cycle_issued_insns.
21002
21003         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
21004         with and without filling the bundle.
21005         (bundling): Combine calls of issue_nops_and_insn.
21006
21007         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
21008
21009         * config/ia64/itanium1.md: New file.
21010
21011         * config/ia64/itanium2.md: New file.
21012
21013         * config/ia64/ia64.md: Move DFA descriptions into the new files.
21014         Remove the old pipeline description.
21015
21016         * config/ia64/ia64.c (ia64_override_options): Add aliases of
21017         itanium processor names.
21018
21019         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
21020
21021         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
21022         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
21023
21024         * config/ia64/ia64.md: Add descriptions for Itanium2.
21025
21026         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
21027
21028         * config/ia64/ia64.h (processor_type): New enumeration.
21029         (ia64_tune, ia64_tune_string): New external declarations.
21030         (TARGET_OPTIONS): Add option `tune='.
21031
21032         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
21033         variables.
21034         (ia64_override_options): Set up `ia64_tune'.
21035         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
21036         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
21037         (bundling): Add nops for MM-insns only for Itanium.
21038         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
21039         Itanium.
21040
21041         * config/ia64/ia64.md (cpu): New attribute.
21042         (DFA description): Enable it only for Itanium.
21043
21044         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
21045                     Richard Henderson  <rth@redhat.com>
21046
21047         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
21048         MASK_EARLY_STOP_BITS.
21049         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
21050         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
21051         `early-stop-bits'.
21052
21053         * config/ia64/ia64.c (ia64_dfa_new_cycle,
21054         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
21055         instead of TARGET_TUNE_STOP_BITS.
21056
21057         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
21058         `-mearly-stop-bits'.
21059
21060         * config/ia64/ia64.c (automata_option "v"): Comment it.
21061
21062         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
21063
21064         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
21065         New macros.
21066         (TARGET_SWITCHES): Add entries for the new option.
21067
21068         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
21069         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
21070         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
21071         global variables.
21072         (ia64_sched_reorder2): Set up `clocks'.
21073         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
21074         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
21075         queue when TARGET_TUNE_STOP_BITS.
21076         (bundling): Insert additional nops for MM-insns.
21077         (final_emit_insn_group_barriers): Add insertion of stop bits
21078         according `stops_p'.
21079         (ia64_reorg): Initiate the new varibales.
21080
21081         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
21082
21083         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
21084
21085         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
21086         insns at the end of block insn scheduling.
21087
21088         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
21089
21090         * sched-deps.c (remove_dependence, group_leader): Remove it.
21091         (add_dependence): Add dependence to group leader to.
21092         (set_sched_group_p): Add dependence to the first insn of the
21093         schedule group too.
21094         (sched_analyze_insn): Make dependence to jump as anti-dependence.
21095         Change true dependence by anti-dependence when
21096         `reg_pending_barrier'.
21097
21098         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
21099         add_branch_dependences): Ignore schedule groups.
21100
21101         * sched-ebb.c (init_ready_list): Ditto.
21102
21103         * (move_insn, set_priorities): Ditto.
21104
21105         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
21106         flag is clear after reload.
21107         (adjust_cost): Change cost only for output dependencies.
21108
21109         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
21110
21111         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
21112
21113         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
21114
21115         * target.h (gcc_target): Add member
21116         `dependencies_evaluation_hook'.
21117
21118         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
21119         macro.
21120         (TARGET_SCHED): Add initiatialization of the new member.
21121
21122         * sched-ebb.c: Include `target.h'.
21123         (schedule_ebb): Call `dependencies_evaluation_hook'.
21124
21125         * sched-rgn.c (schedule_region): Call
21126         `dependencies_evaluation_hook'.
21127
21128         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
21129         New macro.
21130         (ia64_dependencies_evaluation_hook): New function.
21131
21132         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
21133         Describe the new hook.
21134
21135         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
21136
21137         * target.h (gcc_target): Add members
21138         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
21139
21140         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
21141         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
21142         macros.
21143         (TARGET_SCHED): Add initiatialization of the new members.
21144
21145         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
21146         insn scheduling too.
21147         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
21148         initialize `ready_try'.
21149         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
21150         `dfa_new_cycle' says not to do it.
21151
21152         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
21153         bundling.
21154
21155         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
21156
21157         * config/ia64/ia64.c: Include `hashtab.h'.
21158         (ia64_first_cycle_multipass_dfa_lookahead_guard,
21159         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
21160         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
21161         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
21162         bundle_state_eq_p, insert_bundle_state,
21163         initiate_bundle_state_table, finish_bundle_state_table,
21164         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
21165         get_template, get_next_important_insn, bundling): New functions.
21166         (ia64_internal_sched_reorder): Remove it.
21167         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
21168         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
21169         (ia64_safe_itanium_requires_unit0): Remove it.
21170         (group_barrier_needed_p): Place group barrier right before a real
21171         insn.
21172         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
21173         Remove them.
21174         (bundle_name): New variable.
21175         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
21176         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
21177         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
21178         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
21179         temp_dfa_state, prev_cycle_state): New global variables.
21180         (insn_matches_slot, maybe_rotate, finish_last_head,
21181         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
21182         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
21183         find_best_packet, itanium_reorder, dump_current_packet,
21184         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
21185         (sched_data, sched_ready, sched_types): Remove them.
21186         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
21187         `init_insn_group_barriers'.
21188         (ia64_sched_reorder, ia64_sched_reorder2): Call
21189         ia64_dfa_sched_reorder.
21190         (ia64_variable_issue): Rewrite it.
21191         (bundle_state): New structure.
21192         (index_to_bundle_states, bundle_states_num,
21193         allocated_bundle_states_chain, free_bundle_state_chain): New
21194         global variables.
21195         (ia64_sched_finish): Add stop bits and call `bundling' after the
21196         2nd insn scheduling.
21197         (ia64_use_dfa_pipeline_interface): Return zero always.
21198         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
21199         insn scheduling.
21200         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
21201         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
21202         (ia64_reorg): Add bundling insns.
21203
21204         * doc/tm.texi
21205         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
21206         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
21207
21208         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
21209
21210         * config/ia64/ia64.md: Add Itanium1 DFA description.
21211         (itanium_class): Add `nop' and `pre_cycle'.  Add
21212         define_function_unit for `nop'.
21213         (nop): Change attribute `itanium_class'.
21214         (pre_cycle): New define_insn.
21215
21216         * config/ia64/ia64-protos.h (bundling_p): New external variable.
21217         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
21218         ia64_produce_address_p): New function prototypes.
21219
21220         * config/ia64/ia64.c (bundling_p): New global variable.
21221         (ia64_use_dfa_pipeline_interface,
21222         ia64_first_cycle_multipass_dfa_lookahead,
21223         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
21224         functions.
21225         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
21226         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
21227         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
21228         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
21229         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
21230         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
21231         (dfa_pre_cycle_insn): New variable.
21232
21233         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
21234
21235         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
21236         constructions.
21237
21238         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
21239         New function prototypes.
21240
21241         * genattrtab.c (main): Process the new constructions.
21242
21243         * genautomata.c (gen_presence_absence_set,
21244         process_presence_absence_names, process_presence_absence_patterns,
21245         add_presence_absence, check_absence_pattern_sets): Add parameter
21246         `final_p'.
21247         (unit_decl): Add new members `final_presence_list' and
21248         `final_absence_list'.
21249         (unit_pattern_rel_decl): Add new member `final_p'.
21250         (gen_final_presence_set, gen_final_absence_set): New functions.
21251         (process_decls): Use member `final_p'.
21252         (temp_reserv): New global variable.
21253         (reserv_sets_are_intersected): Add processing `final_presence_set'
21254         and `final_absence_set'.
21255         (initiate_states): Allocate `temp_reserv'.
21256         (unit_final_presence_set_table, unit_final_absence_set_table): New
21257         gloabal variables.
21258         (initiate_presence_absence_pattern_sets): Initiate them.
21259         (NDFA_to_DFA): Fix typo.
21260         (output_description): Output `final_presence_set' and
21261         `final_absence_set'.
21262
21263         * doc/md.texi (final_presence_set, final_absence_set): Describe
21264         them.
21265
21266         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
21267
21268         * genautomata.c (transform_3): Process a missing case (nothing on
21269         unit place).
21270
21271         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
21272
21273         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
21274         comments about queried units and the minimization.
21275
21276         * doc/md.texi: Ditto.
21277
21278         * genautomata.c (create_composed_state): Return nonzero if the new
21279         state has been created.
21280         (first_cycle_unit_presence): New function.
21281         (state_is_differed): Add new parameter.  Use the new function.
21282         Take queried units into account.
21283         (partition_equiv_class): Pass additional parameter to
21284         `state_is_differed'.
21285         (merge_states): Process composed states too.
21286         (build_automaton, create_automata, output_min_issue_delay_table,
21287         output_tables, output_statistics): Output more information.
21288         (output_reserved_units_table): Use function
21289         `first_cycle_unit_presence'.
21290         (output_tables): Output table of queried units even if the
21291         minimization is switched on.
21292         (write_automata): Output code for querying units even if the
21293         minimization is switched on.
21294
21295         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
21296
21297         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
21298         syntax of the constructions.
21299
21300         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
21301         extended syntax of the constructions.
21302
21303         * genautomata.c (unit_rel_decl): Rename it to
21304         `unit_pattern_rel_decl'.
21305         (pattern_set_el, pattern_reserv): New structures.
21306         (pattern_set_el_t, pattern_reserv_t): New types.
21307         (gen_presence_absence_set): New function.
21308         (process_presence_absence): Remove it.
21309         (process_presence_absence_names,
21310         process_presence_absence_patterns): New functions.
21311         (get_presence_absence_set): Remove it.
21312         (initiate_presence_absence_sets): Rename it on
21313         `initiate_presence_absence_pattern_sets'.  Use new function
21314         `form_reserv_sets_list'.
21315         (form_reserv_sets_list, check_presence_pattern_sets,
21316         check_absence_pattern_sets, output_pattern_set_el_list): New
21317         functions.
21318         (unit_decl): Change types of members `presence_list' and
21319         `absence_list'.
21320         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
21321         (decl): Change types of members `excl', `presence', and `absence'.
21322         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
21323         at the end of the vector.
21324         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
21325         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
21326         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
21327         (gen_presence_set, gen_absence_set): Use new function
21328         `gen_presence_absence_set'.
21329         (add_presence_absence): Process `pattern_list' instead of
21330         `source_list'.
21331         (process_decls): USe new functions
21332         `process_presence_absence_names' and
21333         `process_presence_absence_patterns'.
21334         (reserv_sets_are_intersected): Use new function
21335         `check_presence_pattern_sets'.
21336         (presence_set, absence_set): Remove them.
21337         (unit_presence_set_table, unit_absence_set_table): New global
21338         variables.
21339         (output_description): Use new function
21340         `output_pattern_set_el_list'.
21341         (generate): Use `initiate_presence_absence_pattern_sets'.
21342
21343         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
21344
21345         * genattr.c (main): Add output of prototype of new interface
21346         function `dfa_clean_insn_cache'.
21347
21348         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
21349         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
21350         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
21351         the generated code.
21352         (write_automata): Call the new function.
21353
21354 2003-01-09  Jan Hubicka  <jh@suse.cz>
21355
21356         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
21357         correctly.
21358
21359 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
21360
21361         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
21362
21363 2003-01-09  J"orn Rennecke <joern.rennecke@superh.com>
21364
21365         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
21366         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
21367         (CONSTRAINT_LEN): Provide default definition.
21368         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
21369         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
21370         (EXTRA_CONSTRAINT_STR): Likewise.
21371         (REG_CLASS_FROM_CONSTRAINT): Define.
21372         * genoutput.c (check_constraint_len, constraint_len): New functions.
21373         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
21374         constraint / modifier.
21375         (gen_insn): Call check_constraint_len.
21376         * local-alloc.c (block_alloc): Update to use new macros / pass
21377         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
21378         * ra-build.c (handle_asm_insn): Likewise.
21379         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21380         (constrain_operands, peep2_find_free_register): Likewise.
21381         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
21382         * regmove.c (find_matches): Likewise.
21383         * reload.c (push_secondary_reload, find_reloads): Likewise.
21384         (alternative_allows_memconst): Likewise.
21385         * reload1.c (maybe_fix_stack_asms): Likewise.
21386         (reload_cse_simplify_operands): Likewise.
21387         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21388         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
21389         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
21390         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
21391         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
21392         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
21393
21394         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
21395
21396 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
21397
21398         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
21399         length.
21400         (*extzv_1_r_h8300hs): Likewise.
21401         (*extzv_1_r_inv_h8300): Likewise.
21402         (*extzv_1_r_inv_h8300hs): Likewise.
21403
21404 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
21405
21406         * config/h8300/h8300.h (PREDICATE_CODES): New.
21407
21408 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
21409
21410         * config/h8300/h8300.md (*addsi3_upper): New.
21411         (*iorsi3_shift): Likewise.
21412         (two splitters): Likewise.
21413         (*addsi3_shift): Likewise.
21414         (two splitters): Likewise.
21415
21416 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
21417
21418         * Makefile.in (optabs.o): Add dependency on basic-block.h.
21419         * basic-block.h (control_flow_insn_p): Fuction was exported.
21420         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
21421         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
21422         notes only when the region is contained in a single basic block.
21423
21424 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
21425
21426         PR inline-asm/8832
21427         * tree.h (expand_asm): New prototype.
21428         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
21429         to do so.
21430         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
21431         down to expand_asm.
21432         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
21433         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
21434         (volatile_refs_p) [ASM_INPUT]: Likewise.
21435         (side_effects_p) [ASM_INPUT]: Likewise.
21436
21437 2003-01-09  Jan Hubicka  <jh@suse.cz>
21438
21439         * i386.md (*mul*): FIx constraints; remove confused comment; fix
21440         athlon_decode attributes
21441         (imul/k8 optimization peep2s): New.
21442
21443         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
21444         * i386.md (type attribute): Add ssecomi.
21445         (unit, memory, prefix attributes): Handle ssecomi.
21446         (cvt?2? patterns): Fix athlon_decode attribute
21447         (comi patterns): Set attribute to ssecomi.
21448
21449         PR target/8343
21450         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
21451
21452 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
21453
21454         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
21455         that match register_operands.
21456         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
21457         register_operand the default case.
21458
21459 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
21460
21461         PR c/8032
21462         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
21463         an empty element, do not advance the pointer to unfilled
21464         fields if there are pending initializers.
21465
21466 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
21467
21468         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
21469         (install-gcc-tooldir, install-cpp, installdirs,
21470         install-common, install-driver, install-info, install-man,
21471         install-headers, install-include-dir, install-headers-tar,
21472         install-headers-cpio, install-headers-cp, install-mkheaders,
21473         install-collect2, uninstall): Prepend $(DESTDIR) to
21474         destination paths in all (un)installation commands.
21475         (install-driver): Rewrite $(LN) commands to support DESTDIR
21476         with "ln" as well as with "ln -s".
21477         (installdirs): Simply use mkinstalldirs.
21478         (install-libgcc, install-multilib): Also pass DESTDIR.
21479         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
21480         installation destination variable ldir.
21481         * config/alpha/t-osf4, config/arm/t-netbsd,
21482         config/ia64/t-hpux, config/mips/t-iris5-6,
21483         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
21484         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
21485         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
21486         in the definition of SHLIB_INSTALL.
21487         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
21488         $(libsubdir) in the installation commands.
21489
21490 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
21491
21492         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
21493         non-optimizing compile.
21494         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
21495         compile.
21496
21497 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
21498
21499         * config/i386/i386.c (ix86_attribute_table): Add new attributes
21500         ms_struct and gcc_struct.
21501         (ix86_handle_struct_attribute): New function.
21502         (ix86_ms_bitfield_layout_p): Update to take new attributes
21503         into account.
21504         * doc/extend.texi: Document new attributes.
21505         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
21506
21507 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
21508
21509         PR optimization/8750
21510         * config/i386/i386.c (ix86_expand_prologue): Don't allow
21511         scheduling pass to move insns across __alloca call.
21512
21513 2003-01-08  Dale Johannesen  <dalej@apple.com>
21514
21515         * config/rs6000/rs6000.md:  Replace *store_multiple_string
21516         with *stmsi[3-8].
21517
21518 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
21519
21520         PR target/9210
21521         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
21522         Set SYMBOL_REF_FLAG on local data sym_ref.
21523
21524 2003-01-08  Dale Johannesen  <dalej@apple.com>
21525
21526         * function.c (assign_parms):  Don't set pretend_args_size if
21527           REG_PARM_STACK_SPACE.
21528           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
21529           pretend_args_size.
21530
21531 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
21532
21533         * gcc.hlp: Delete.
21534
21535 2003-01-09  Jan Hubicka  <jh@suse.cz>
21536
21537         * i386.c  (ix86_expand_int_addcc): Fix thinko.
21538
21539 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
21540
21541         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
21542         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
21543         as hook_bool_tree_hwi_hwi_tree_true.
21544         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
21545         (rs6000_emit_epilogue): Same.
21546         (rs6000_output_mi_thunk): Re-implement as RTL.
21547         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
21548         xcoffout_declare_function if any debugging enabled.
21549
21550 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
21551
21552         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
21553         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
21554         * config/mips/mips.h (enum processor_type): Rename
21555         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
21556         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
21557         Add PROCESSOR_M4K.
21558         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
21559         (ISA_MIPS32R2): New define.
21560         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
21561         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
21562         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
21563         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
21564         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
21565         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
21566         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
21567         compiling MIPS16 code.
21568         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
21569         comment.
21570         (ISA_HAS_SEB_SEH): New define.
21571         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
21572         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
21573         processor_type value renaming.  Add support for MIPS32R2.
21574         Clean up comments, and move "sb1" entry with other MIPS64 CPU
21575         entries.
21576         (override_options): Reimplement -mipsN option handling so that
21577         it will work correctly for -mips32r2.  Avoid branch-likely
21578         instructions on MIPS32R2.
21579         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
21580         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
21581         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
21582         (extendhisi2_hw, extendqisi2_hw): New.
21583         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
21584         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
21585         MIPS32R2, and MIPS64.
21586         (LINK_SPEC): Pass -mips32r2 to linker.
21587         * config/mips/t-isa3264: Built -mips32r2 multilibs.
21588         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
21589         for mips32r2 in the -march description.  Alphabetically sort
21590         CPU names in the -march description.  Add long-missed -mips32
21591         and -mips64 to MIPS option summary.
21592
21593         * config.gcc: Update copyright years to include 2003.
21594         * config/mips/mips.c: Likewise.
21595         * config/mips/mips.h: Likewise.
21596         * config/mips/mips.md: Likewise.
21597         * config/mips/netbsd.h: Likewise.
21598         * doc/invoke.texi: Likewise.
21599
21600 2003-01-08  Andreas Schwab  <schwab@suse.de>
21601
21602         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
21603         variable.
21604         * configure: Regenerated.
21605
21606 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
21607
21608         * config/h8300/h8300.c (output_logical_op): Replace byte/word
21609         extraction of det with b0, b1, w0, w2, etc.
21610         (compute_logical_op_length): Likewise.
21611         (compute_logical_op_cc): Likewise.
21612
21613 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
21614
21615         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
21616         HIGH on all variants.
21617
21618 2003-01-08  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
21619
21620         * Makefile.in (PARTITION_H): New.
21621         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
21622         * basic-block.h: Include hard-reg-set.h.
21623
21624 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
21625
21626         * arm.h (ENABLE_XF_PATTERNS): Delete.
21627         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
21628         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
21629         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
21630         (cmpxf_trap): Delete.
21631         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
21632
21633 2003-01-08  Jan Hubicka  <jh@suse.cz>
21634
21635         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
21636         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
21637         (add??cc): New expanders.
21638         * i386.c (expand_int_addcc): New function.
21639         * i386-protos.h (expand_int_addcc): Declare.
21640
21641         * alias.c (memory_modified_1): New static function.
21642         (memory_modified): New static varaible.
21643         (memory_modified_in_insn_p): New global function.
21644         * rtl.h (memory_modified_in_insn_p): Declare.
21645         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
21646         references.
21647
21648         * expr.h (emit_conditional_add): Declare.
21649
21650 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
21651
21652         PR other/8947
21653         * doc/invoke.texi (-malign-double): Explain that the option breaks
21654         binary compatibility.
21655
21656 2003-01-08  Andreas Schwab  <schwab@suse.de>
21657
21658         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
21659         should come from the generic *-*-linux* entry.
21660
21661 2003-01-07  Jan Hubicka  <jh@suse.cz>
21662
21663         * cselib.c (cselib_current_insn_in_libcall): New static variable.
21664         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
21665         we are inside libcall.
21666         * cselib.h (elt_loc_list): Add in_libcall.
21667         * gcse.c (do_local_cprop): Do not copy propagate using insns
21668         in libcalls.
21669
21670 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
21671
21672         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
21673         not normally affect to issue rate.
21674
21675 2003-01-07  Jan Hubicka  <jh@suse.cz>
21676
21677         * genopinit.c (optabs): Add addc_optab.
21678         * ifcvt.c (noce_try_store_flag): Rename to ...
21679         (noce_try_addcc): ... this one; handle generic conditional increment.
21680         (noce_process_if_block): Update noce_try_addcc call.
21681         * optabs.c (emit_conditional_add): New.
21682         (init_obtabs): Initialize addc_optab.
21683         * optabs.h (optab_index): Add OTI_addcc.
21684         (addcc_optab): New macro.
21685         * md.texi: Document addMcc
21686
21687         PR target/8322
21688         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
21689         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
21690         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
21691
21692         * reload1.c (delete_output_reload): Avoid repeated attempts
21693         to delete insn.
21694
21695 2003-01-07  Andreas Schwab  <schwab@suse.de>
21696
21697         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
21698         Move --enable-initfini-array check ...
21699         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
21700         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
21701         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
21702         * configure: Rebuild.
21703
21704 2003-01-07  Richard Henderson  <rth@redhat.com>
21705
21706         * alias.c (find_base_value): Only use new_reg_base_value shortcut
21707         if the register is set once.
21708
21709 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
21710
21711         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
21712         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
21713         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
21714
21715 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
21716             Sunil Davasam  <sunil.k.davasam@intel.com>
21717
21718         PR libstdc++/9076
21719         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
21720         DW_CFA_same_value, read next and ignore.
21721
21722 2003-01-07  Richard Henderson  <rth@redhat.com>
21723
21724         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
21725
21726 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
21727
21728         * cfg.c: Include alloc-pool.h
21729         (edge_pool): New pool.
21730         (bb_pool): New pool.
21731         (first_deleted_edge): Remove.
21732         (first_deleted_block): Remove.
21733         (init_flow): Alloc/free the pools.
21734         (free_edge): Use pools.
21735         (alloc_block): Ditto.
21736         (expunge_block): Ditto.
21737         (cached_make_edge): Ditto.
21738
21739         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
21740
21741 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
21742
21743         * et-forest.c: Include alloc-pool.h.
21744         (struct et_forest): Add node_pool and occur_pool.
21745         (et_forest_create): Create the new pools.
21746         (et_forest_delete): Delete them.
21747         (et_forest_add_node): Allocate and free using pools.
21748         (et_forest_add_edge): Ditto.
21749         (et_forest_remove_node): Ditto.
21750         (et_forest_remove_edge): Ditto.
21751
21752         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
21753
21754 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
21755
21756         * config/h8300/h8300.c (output_logical_op): Simplify and
21757         optimize the handling of SImode.
21758         * config/h8300/h8300.c (compute_logical_op_length): Update
21759         accordingly.
21760         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
21761
21762 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
21763
21764         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
21765         big-endian correction to indirect arguments too.
21766
21767 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
21768
21769         Segher Boessenkool  <segher@koffie.nl>
21770
21771         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
21772         (alt_reg_names): Ditto, fix formatting.
21773         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
21774
21775 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
21776
21777         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
21778         (output_logical_op): Constify intval and det.
21779         (compute_logical_length): Likewise.
21780         (compute_logical_cc): Likewise.
21781         (output_a_shift): Constify mask.
21782         (h8300_encode_label): Constify len.
21783
21784 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
21785
21786         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
21787         (h8300_expand_epilogue): Likewise.
21788
21789 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
21790
21791         Segher Boessenkool  <segher@koffie.nl>
21792
21793         * config/rs6000/altivec.md: Remove spaces from assembler
21794         instruction argument lists.
21795
21796 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
21797
21798         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
21799         c4x_assembler_function_p.
21800         (c4x_null_epilogue_p): Complement return value, all uses updated.
21801         (c4x_insert_attributes): Add naked.
21802         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
21803         * doc/extend.texi: Update C4x function attributes.
21804
21805 2003-01-06  Richard Henderson  <rth@redhat.com>
21806
21807         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
21808         properly when changing "local-ness".
21809         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
21810
21811 2003-01-06  Dale Johannesen  <dalej@apple.com>
21812
21813         * config/darwin-protos.h:  Add prototypes for new section functions.
21814
21815 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
21816
21817         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
21818         to EABI.
21819
21820 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
21821
21822         * hwint.h: If the current compiler has no 64-bit type at all,
21823         make HOST_WIDEST_INT 32 bits.
21824
21825 2003-01-06  Eric Christopher  <echristo@redhat.com>
21826
21827         * config/mips/mips.md (movdf_internal2): Fix constraints.
21828
21829 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
21830
21831         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
21832
21833 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
21834
21835         * config/mips/mips.md (leadi): Use dla rather than la.
21836
21837 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
21838
21839         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
21840         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
21841
21842 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
21843
21844         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
21845         redefinition.
21846
21847 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
21848
21849         * config/h8300/h8300.md (*extzv_8_23): New.
21850
21851 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21852
21853         * pa64-hpux.h (JCR_SECTION_NAME): Define.
21854         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
21855         USE_EH_FRAME_REGISTRY when defining.
21856
21857 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
21858
21859         * config/h8300/h8300.c (output_a_shift): Do not output a
21860         variable shift.
21861         * config/h8300/h8300.md (two splitters): New.
21862
21863 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
21864
21865         * config/mips/mips.md: Disable the movstrsi define_split.
21866
21867 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21868
21869         * alloc-pool.c: Don't include "libiberty.h".
21870         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
21871         * convert.c (convert_to_real): Hide unused variable.
21872
21873 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21874
21875         * Makefile.in (gtyp-gen.h): Const-ify.
21876         * gcov-dump.c (tag_table): Likewise.
21877
21878 2003-01-04  Bruce Korb  <bkorb@gnu.org>
21879
21880         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
21881         of *both* the file name and the fix name.
21882
21883 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
21884
21885         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
21886         collect2.
21887         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
21888         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
21889         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
21890         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
21891         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
21892         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
21893         elfos.h.
21894         (EH_FRAME_IN_DATA_SECTION): Delete define.
21895         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
21896         (STARTFILE_SPEC): Use crtbegin.o.
21897         (ENDFILE_SPEC): Use crtend.o.
21898         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
21899         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
21900         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
21901         DTOR_LIST_BEGIN): Define.
21902         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
21903         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
21904         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
21905
21906 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
21907
21908         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
21909         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
21910         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
21911         Cleanup handling of replacement text.
21912         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
21913
21914 2003-01-04  Bruce Korb  <bkorb@gnu.org>
21915
21916         * fixinc/tests/base/math.h: removed obsolete results
21917         * fixinc/tests/base/stdlib.h: ditto
21918         * fixinc/tests/base/sys/param.h: ditto
21919         * fixinc/tests/base/sys/stat.h: ditto
21920         * fixinc/tests/base/time.h: ditto
21921         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
21922         * fixinc/tests/base/sys/byteorder.h: ditto
21923         * fixinc/inclhack.def: Remove superfluous backslashes
21924
21925 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
21926
21927         * config/h8300/h8300-protos.h: Add prototypes for
21928         the new functions defined below.
21929         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
21930         define.
21931         (dosize): Emit RTL instead of assembly code.
21932         (push): Likewise.
21933         (pop): Likewise.
21934         (h8300_output_function_prologue): Remove.
21935         (h8300_expand_prologue): New.
21936         (h8300_expand_epilogue): New.
21937         (h8300_output_function_epilogue): Do only the reset of
21938         pragma_saveall.
21939         * config/h8300/h8300.md (push_h8300): New.
21940         (push_h8300hs): Likewise.
21941         (pop_h8300): Likewise.
21942         (pop_h8300hs): Likewise.
21943         (*stm_h8300s_2): Change the name to stm_h8300s_2.
21944         (*stm_h8300s_3): Change the name to stm_h8300s_3.
21945         (*stm_h8300s_4): Change the name to stm_h8300s_4.
21946         (*ldm_h8300s_2): New.
21947         (*ldm_h8300s_3): Likewise.
21948         (*ldm_h8300s_4): Likewise.
21949         (return): Likewise.
21950         (*return_1): Likewise.
21951         (prologue): Likewise.
21952         (epilogue): Likewise.
21953         (monitor_prologue): Likewise.
21954
21955 2003-01-03  Dale Johannesen  <dalej@apple.com>
21956
21957         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
21958           machopic_picsymbol_stub1.
21959           (EXTRA_SECTION_FUNCTIONS):  Ditto.
21960         * rs6000/rs6000.c:  Update copyright.
21961           (machopic_output_stub):  Use them.  Remove an insn from stub code.
21962
21963 2003-01-02  Jason Merrill  <jason@redhat.com>
21964
21965         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
21966
21967         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
21968         static/external decls.
21969
21970         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
21971         outermost scope.
21972         * c-decl.c (c_make_fname_decl): Push the decls there, too.
21973
21974 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
21975
21976         * config/h8300/h8300-protos.h: Add a prototype for
21977         h8300_current_function_interrupt_function_p.
21978         * config/h8300/h8300.c (interrupt_handler): Remove.
21979         (os_task): Likewise.
21980         (monitor): Likewise.
21981         (pragma_interrupt): New.
21982         (WORD_REG_USED): Use
21983         h8300_current_function_interrupt_function_p.
21984         (dosize): Likewise.
21985         (h8300_output_function_prologue): Likewise.
21986         Do not set interrupt_handler, os_task, monitor.
21987         (h8300_output_function_prologue): Use
21988         h8300_current_function_interrupt_function_p.
21989         Do not set interrupt_handler, os_task, monitor.
21990         (h8300_current_function_interrupt_function_p): New.
21991         (h8300_pr_interrupt): Set pragma_interrupt.
21992         (h8300_insert_attributes): Reset pragma_interrupt.
21993
21994 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
21995
21996         * doc/install.texi (Configuration): Fix markup for reference to
21997         gcc/config.gcc.
21998
21999 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
22000
22001         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
22002         (*iorhi3_two_qi): Likewise.
22003         (*iorsi3_zexthi): Likewise.
22004         (*xorhi3_zextqi): Likewise.
22005         (*xorsi3_zexthi): Likewise.
22006         (*xorsi3_zextqi): Likewise.
22007
22008 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
22009
22010         * config/h8300/h8300.c (stack_pointer_operand): New.
22011         (const_int_gt_2_operand): Likewise.
22012         (const_int_ge_8_operand): Likewise.
22013         * config/h8300/h8300.md (a splitter): Likewise.
22014         (a peephole2): Likewise.
22015         * config/h8300/h8300-protos.h: Add prototypes for the new
22016         functions above.
22017
22018 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
22019
22020         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
22021         objc/objc-act.h: Fix copyright years.
22022
22023 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
22024
22025         * doc/passes.texi: Fix documentation for -fssa-ccp
22026
22027 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
22028
22029         * gccbug.in: Update for new categories.
22030
22031 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
22032
22033         * config/h8300/h8300.md: Reorder some patterns.
22034
22035 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
22036
22037         * config/h8300/h8300.c (output_logical_op): Fix a warning.
22038
22039 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
22040
22041         * config/darwin-protos.h, config/c4x/c4x-protos.h,
22042         config/cris/cris-protos.h, config/i370/i370-protos.h,
22043         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
22044         config/v850/v850-protos.h: Use struct, and don't conditionally
22045         compile on GCC_C_PRAGMA_H.
22046
22047 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
22048
22049         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
22050         * config/h8300/h8300-protos.h: Likewise.
22051         * config/sh/sh-protos.h: Likewise.
22052
22053 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
22054
22055         * config/arm/arm-protos.h: Use struct cpp_reader instead of
22056         cpp_reader.
22057         * config/h8300/h8300-protos.h: Likewise.
22058         * config/sh/sh-protos.h: Likewise.
22059
22060 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
22061
22062         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
22063         arm_pr_long_calls_off): Use struct.
22064         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
22065         : Similarly.
22066         Don't include cpplib.h.
22067         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
22068         sh_pr_nosave_low_regs): Similarly.
22069
22070 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
22071
22072         * config/h8300/h8300.c: Include cpplib.h.
22073
22074 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
22075
22076         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
22077           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
22078           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
22079           "GCC" in the copyright header.
22080
22081 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
22082
22083         * c-pragma.c (c_register_pragma): New.
22084         (init_pragma): Use it.
22085         * c-pragma.h (cpp_register_pragma): Don't declare.
22086         (c_register_pragma): New.
22087         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
22088         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
22089         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
22090         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
22091         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
22092         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
22093         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
22094         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
22095         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
22096         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
22097         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
22098         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
22099
22100 See ChangeLog.8 for earlier changes.