OSDN Git Service

a2ab54f71e6ad6f32634cd7f9cea78c3109ea22a
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-02-25  Nick Clifton  <nickc@redhat.com>
2
3         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
4         of fourth arg is 'fndecl' not 'indirect'.  Update comment
5         describing the function's parameters.
6
7 Mon Feb 24 22:08:22 CET 2003  Jan Hubicka  <jh@suse.cz>
8
9         * combine.c (simplify_shift_const):  Fix previous patch.
10
11 2003-02-24  Jeff Law  <law@redhat.com>
12
13         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
14         alternative.
15         (testsi_1, testhi_1, testqi_1): Likewise.
16
17 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18
19         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
20         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
21         * doc/extend.texi (Tru64 Pragmas): Reflect this.
22
23         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
24         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>. 
25         * fixinc/fixincl.x: Regenerate.
26         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
27         testcase.
28         Fixes PR c/5059, c/6126, other/9671.
29         
30 2003-02-24  Roger Sayle  <roger@eyesopen.com>
31
32         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
33         from handle_braces in "%{...}".
34
35 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
36
37         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
38         (prepare_move_operands): Handle TLS operands.
39         (tls_symbolic_operand): New.
40         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
41         (legitimize_pic_address): Do nothing for the TLS symbol.
42         (sh_encode_section_info): Handle TLS case.
43         (sh_strip_name_encoding): Drop TLS encoding.
44         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
45         * config/sh/sh.h (SH_TLS_ENCODING): Define.
46         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
47         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
48         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
49         * config/sh/sh.md: Define TLS UNSPEC constants.
50         (type): Add tls_load.
51         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
52         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
53         ("tls_initial_exec"): New insn.
54         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
55         ("load_gbr"): New insn.
56
57         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
58         * configure: Regenerate.
59
60 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
61
62         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
63         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
64         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
65         (enum block_op_methods): Reorder for better store_expr optimization.
66         * expr.c (store_expr): Test bit 1 of "want_value" for call param
67         stores, test bit 0 for original want_value meaning.  Pass
68         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
69         recursive calls, and calls to expand_param.
70         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
71         expected, set target to 0 rather than to subtarget.  Formatting.
72
73 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
74
75         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
76
77 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
78
79         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
80         new default behavior.
81         * ggc-common.c: Include sys/resource.h.
82         (ggc_rlimit_bound): New function.
83         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
84         defaults to account for rlimits.
85
86 2003-02-22  Richard Henderson  <rth@redhat.com>
87
88         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
89
90 2003-02-22  Kelley Cook <kelley@dwhoops.info>
91
92         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
93         (ix86_tune_string): Rename from ix86_cpu_string.
94
95 2003-02-22  Kelley Cook <kelleycook@comcast.net>
96
97         * config/i386/i386.c: Replace "mcpu" with "mtune".
98         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
99         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
100         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
101         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
102
103 2003-02-23  Andreas Schwab  <schwab@suse.de>
104
105         * config.gcc: Delete references to m68k/t-linux and
106         m68k/t-linux-aout.
107         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
108
109 Sat Feb 22 20:22:19 CET 2003  Jan Hubicka  <jh@suse.cz>
110
111         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
112         of track scheduling patch.
113
114 Sat Feb 22 19:29:28 CET 2003  Jan Hubicka  <jh@suse.cz>
115
116         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
117         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
118
119 Sat Feb 22 12:42:16 CET 2003  Jan Hubicka  <jh@suse.cz>
120
121         * c-decl.c (c_expand_body_1): Fix.
122
123 Sat Feb 22 03:13:36 CET 2003  Jan Hubicka  <jh@suse.cz>
124
125         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
126
127         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
128         when not optimizing.
129         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
130         when not expensive.
131         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
132         optimizing;  Delete trivially dead insns early; fix optimize check.
133
134         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
135         dependency on cgraph.h
136         * c-decl.c: Include cgraph.h
137         (finish_function): Update call of tree_inlinable_function_p.
138         * c-objc-common.c: Include cgraph.h
139         * cgraph.h: New file.
140         * cgraphunit.c: New file.
141         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
142         (cgraph_nodes, cgraph_n_nodes): Globalize.
143         (cgraph_finalize_function, cgraph_finalize_compilation_unit
144         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
145         Move into cgraphunit.c
146         * tree-inline.c: Include cgraph.h
147         * tree-inline.c: Include cgraph.h
148
149 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
150
151         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
152         for copying a register.
153
154 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
155
156         PR other/3782
157         * toplev.c (process_options): If flag_detailed_statistics is set,
158         then set time_report as well.
159
160         PR c/8828
161         * jump.c (never_reached_warning): Don't fall through BARRRIER
162         insns.  Update comments to reflect what the function really does.
163
164 2003-02-21  Roger Sayle  <roger@eyesopen.com>
165
166         * fold-const.c (omit_one_operand): No longer static.
167         * tree.h (omit_one_operand): Prototype here.
168         (div_and_round_double): Keep fold-const.c prototypes together.
169         * builtins.c (builtin_mathfn_code): Handle binary built-in
170         funtions, such as "pow" and "atan2".
171         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
172         Simplify optimizations using "type" the builtin's return type.
173
174 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
175
176         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
177         Fix functionalization typo.
178
179         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
180         in an asm.
181
182 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
183
184         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
185         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
186         documentation.
187         * ggc-common.c: Include params.h
188         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
189         init_ggc_heuristics): New functions.
190         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
191         init_ggc_heuristics): Prototype.
192         * toplev.c (print_version):  Output GGC heuristics.
193         (parse_options_and_default_flags): Call init_ggc_heuristics.
194
195 Sat Feb 22 02:35:07 CET 2003  Jan Hubicka  <jh@suse.cz>
196
197         * i386.c (def_builtin):  Special case 64bit builtins.
198         (MASK_SSE164, MASK_SSE264): New constants.
199         (builtin_description): Add 64bit builtins.
200         (ix86_init_mmx_sse_builtins): Likewise.
201         * i386.h (enum ix86_builtins): Likewise.
202         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
203         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
204         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
205         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
206         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
207         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
208         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
209
210 Sat Feb 22 00:48:22 CET 2003  Jan Hubicka  <jh@suse.cz>
211
212         * i386.c (builtin_description): Add __builtin_ia32_paddq and
213         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
214          and __builtin_ia32_psubq128.
215         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
216         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
217         (mmx_adddi3, mmx_subdi3): New.
218         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
219         * xmmintrin.h (_mm_movepi64_pi64): New.
220         (_mm_add_epi64, _mm_sub_epi64): fix.
221         (_mm_mul_pu16): Rename to...
222         (_mm_mul_su32): ... this one.
223
224         * builtins.c (expand_builtin_expect):  Do not predict
225         flag_guess_branch_prob is not set.
226         * c-semantics.c (expand_stmt): Likewise.
227         * predict.c (predict_insn): Likewise.
228         * stmt.c (expand_continue_loop): Likewise.
229         * toplev.c (rest_of_compilation): Do not call
230         note_prediction_to_br_prob and note_prediction_to_br_prob
231         when not optimizing.
232
233 Fri Feb 21 23:10:13 CET 2003  Jan Hubicka  <jh@suse.cz>
234
235         * cfgrtl.c (commit_edge_insertions):  Call
236         find_many_sub_basic_block only when some code has been emitted.
237         (commit_edge_insertions_watch_calls): Bring into sync with
238         commit_edge_insertions
239
240 Fri Feb 21 20:41:29 2003  J"orn Rennecke <joern.rennecke@superh.com>
241
242         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
243
244         * sh.md (binary_sf_op): Use extra constant operand instead of
245         negating constant operand 4.
246         * sh.c (sh_expand_binop_v2sf): Supply it.
247
248 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
249
250         * cpphash.h (struct lexer_state): Add directive_wants_padding.
251         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
252         for directives of type INCL.
253         (glue_header_name, parse_include): Use get_token_no_padding.
254         * cppmacro.c (replace_args): If directive_wants_padding,
255         provide padding tokens.
256
257 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
258
259         * config/h8300/h8300.md (a peephole2): New.
260
261 Fri Feb 21 11:05:44 CET 2003  Jan Hubicka  <jh@suse.cz>
262
263         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
264         (commit_edge_insertions): Call find_many_sub_basic_blocks
265
266         * reg-stack.c (convert_regs): Cleax aux for blocks.
267
268 Fri Feb 21 10:29:52 CET 2003  Jan Hubicka  <jh@suse.cz>
269
270         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
271
272 2003-02-21  Glen Nakamura  <glen@imodulo.com>
273
274         PR optimization/8613
275         * builtins.c (expand_builtin): Emit postincrements before expanding
276         builtin functions.
277
278 2003-02-21  Ben Elliston  <bje@redhat.com>
279
280         PR other/5634
281         * doc/install.texi (Configuration): Explain using $HOME instead of
282         the ~ metacharacter when referring to home directories.
283
284 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
285
286         * configure.in (TARGET_SYSTEM_ROOT): Set default to
287         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
288         '${exec_prefix}' (in addition to the expansion thereof) as
289         relocatable.
290         * configure: Rebuilt.
291
292 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
293
294         * config/h8300/h8300.md (addhi3_incdec): Change the name to
295         *addhi3_incdec.
296         (addsi3_incdec): Change the name to *addsi3_incdec.
297
298 2003-02-20  Roger Sayle  <roger@eyesopen.com>
299
300         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
301
302 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
303
304         PR fortran/9038
305         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
306         options to be ignored.
307         (c_common_decode_option): Ignore them when preprocessing.
308
309 Thu Feb 20 21:41:19 CET 2003  Jan Hubicka  <jh@suse.cz>
310
311         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
312         global variables.
313         (lang_independent_options):  Add -fsched2-use-superblocks
314         -fsced2-use-traces.
315         (rest_of_compilation): Deal with it.
316         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
317         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
318         Declare.
319         * rtl.h (reg_to_stack):  Update prototype.
320         * reg-stack.c (reg_to_stack): Return when something has changed;
321         update liveness when executing after superblock scheduling.
322
323         * combine.c (simplify_shift_const):  Simplify few special cases
324         into constants.
325
326 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
327
328         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
329         (add.,subf.,neg.): Change attribute to fast_compare.
330         All DFA descriptions updated.
331
332 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
333
334         Change base class access representation.
335         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
336         TREE_VIA_PRIVATE): Remove.
337         (BINFO_BASEACCESSES): New binfo elt.
338         (BINFO_BASEACCESS): New accessor.
339         (BINFO_ELTS): Increase.
340         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
341         (access_public_node, access_protected_node,
342         access_private_node): New global nodes.
343         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
344         * dbxout.c (dbxout_type): Adjust.
345         * dwarf2out.c (gen_inheritance_die): Add access parameter.
346         (gen_member_die): Adjust.
347         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
348         (output_type): Adjust.
349         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
350
351         Change base class access representation. Share virtual base
352         binfos.
353         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
354         call.
355         * cp/class.c (build_base_path): Likewise.
356         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
357         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
358         (make_new_vtable): Adjust.
359         (force_canonical_binfo_r): Delete.
360         (force_canonical_binfo): Delete.
361         (mark_primary_virtual_base): Delete.
362         (dfs_unshared_virtual_bases): Delete.
363         (mark_primary_bases): Adjust.
364         (maybe_warn_about_overly_private_class): Adjust.
365         (dfs_base_derived_from): Delete.
366         (base_derived_from): Follow the inheritance chain.
367         (struct find_final_overrider_data): Add vpath member.
368         (dfs_find_final_overrider): Adjust.
369         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
370         (find_final_overrider): Adjust.
371         (update_vtable_entry_for_fn): Adjust.
372         (modify_all_vtables): Adjust.
373         (walk_subobject_offsets): Adjust.
374         (layout_nonempty_base_or_field): Adjust.
375         (layout_empty_base): Remove last parameter. Adjust.
376         (build_base_field): Adjust.
377         (build_base_fields): Adjust.
378         (propagate_binfo_offsets): Remove last parameter. Adjust.
379         (dfs_set_offset_for_unshared_vbases): Delete.
380         (layout_virtual_bases): Adjust.
381         (finish_struct_1): Adjust.
382         (init_class_processing): Don't init access nodes.
383         (dfs_get_primary_binfo): Delete.
384         (get_primary_binfo): Adjust.
385         (dump_class_hierarchy_r): Remove most derived arg, add IGO
386         parameter. Adjust.
387         (dump_class_hierarchy): Adjust.
388         (finish_vtbls): Adjust.
389         (get_original_base): Delete.
390         (build_vtt_inits): Adjust.
391         (dfs_build_secondary_vptr_vtt_inits): Adjust.
392         (dfs_ctor_vtable_bases_queue_p): Adjust.
393         (build_ctor_vtbl_group): Adjust.
394         (dfs_accumulate_vtbl_inits): Adjust.
395         (build_vtbl_initializer): Adjust.
396         (build_vbase_offset_vtbl_entries): Adjust.
397         (add_vcall_offset_vtbl_entries_1): Adjust.
398         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
399         (access_*_node): Remove.
400         (CANONICAL_BINFO): Delete.
401         (BINFO_UNSHARED_MARKED): Remove.
402         (BINFO_MARKED): Set LANG_FLAG_0 directly.
403         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
404         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
405         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
406         Delete.
407         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
408         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
409         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
410         Delete.
411         (BINFO_DEPENDENT_BASE_P): New.
412         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
413         index.
414         (markedp, unmarkedp): Adjust.
415         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
416         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
417         find_vbase_instance, binfo_for_vbase): Delete.
418         (copied_binfo, original_binfo): Declare.
419         (finish_base_specifier): Add virtual_p arg.
420         (unshare_base_binfos): Delete.
421         (copy_base_binfos): Declare.
422         (reverse_path): Delete.
423         * cp/decl.c (xref_basetypes): Access and virtuality passed
424         differently. Don't copy direct base binfos here. Call
425         copy_base_binfos.
426         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
427         (initialize_vtbl_ptrs): Adjust.
428         (expand_member_init): Adjust.
429         * cp/parser.c (cp_parser_base_specifier): Adjust.
430         * cp/pt.c (instantiate_class_template): Adjust.
431         (get_template_base_recursive): Adjust.
432         * cp/rtti.c (get_pseudo_ti_init): Adjust.
433         (get_pseudo_ti_desc): Adjust.
434         * cp/tree.c (unshare_base_binfos): Rename to ...
435         (copy_base_binfos): ... here, reimplement.
436         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
437         (reverse_path): Remove.
438         * cp/typeck.c (get_delta_difference): Adjust error messages.
439         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
440         * cp/search.c (lookup_base_r): Adjust.
441         (dynamic_cast_base_recurse): Adjust.
442         (canonical_binfo): Remove.
443         (dfs_canonical_queue): Remove.
444         (dfs_assert_unmarked_p): Remove.
445         (assert_canonical_unmarked): Remove.
446         (shared_marked_p, shared_unmarked_p): Remove.
447         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
448         (dfs_access_in_type): Adjust.
449         (access_in_type): Adjust.
450         (dfs_accessible_queue_p): Adjust.
451         (dfs_accessible_p): Adjust.
452         (is_subobject_of_p_1, is_subobject_of_p): Remove.
453         (struct lookup_field_info): Remove from_dep_base_p field.
454         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
455         (lookup_field_r): Remove dependent base code.
456         (lookup_member): Likewise.
457         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
458         (dfs_unmarked_real_bases_queue_p): Remove.
459         (dfs_marked_real_bases_queue_p): Remove.
460         (dfs_skip_vbases): Remove.
461         (dfs_get_pure_virtuals): Adjust.
462         (markedp, unmarkedp): Adjust.
463         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
464         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
465         (dfs_unmark): Adjust.
466         (dfs_get_vbase_types):Remove.
467         (dfs_build_inheritance_graph_order): Remove.
468         (get_vbase_types): Remove
469         (dfs_find_vbase_instance): Remove.
470         (find_vbase_instance): Remove.
471         (dfs_debug_unmarkedp): Adjust.
472         (dependent_base_p): Remove.
473         (dfs_push_type_decls): Adjust.
474         (dfs_push_decls): Adjust.
475         (dfs_no_overlap_yet): Adjust.
476         (copied_binfo): New function.
477         (original_binfo): New function.
478         (binfo_for_vbase): Remove.
479
480         Change base class access representation.
481         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
482         (add_interface_do): Likewise.
483
484 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
485
486         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
487         * config/rs6000/power4.md (power4-store,power4-vecstore): New
488         insn reservations.
489         (power4-fpstore): Compact.
490
491 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
492
493         * config/h8300/h8300.md (*iorsi3_w): New.
494
495 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
496
497         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
498         * rtl.c (reg_note_name): Likewise.
499         * rtl.h (enum reg_note): Likewise.
500         * doc/invoke.texi: Likewise.
501         * doc/rtl.texi: Likewise.
502
503 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
504
505         * bb-reorder.c (find_traces_1_round): Fix comment typo.
506
507 2003-02-19  Roger Sayle  <roger@eyesopen.com>
508
509         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
510         addition in the presence of signaling NaNs.
511
512 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
513
514         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
515
516 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
517
518         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
519         ORing with 0xffff??00 with the highest bit of the ?? part set.
520         (compute_logical_op_length): Update.
521         (compute_logical_op_cc): Likewise.
522
523 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
524
525         * bb-reorder.c (find_traces_1_round): Fixed condition for small
526         destination block with multiple predecessors.
527         (connect_traces): Check whether the block is a start of trace.
528
529 Wed Feb 19 19:00:24 CET 2003  Jan Hubicka  <jh@suse.cz>
530
531         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
532         * function.c (assign_params): Likewise.
533         * arm-protos.h (arm_init_cumulative_args): Update prototype.
534         * arm.c (arm_init_cumulative_args): Update function.
535         * arm.h (INIT_CUMULATIVE_ARGS): Update.
536         * avr-protos.h (init_cumulative_args): Update prototype.
537         * avr.c (init_cumulative_args): Update function.
538         * avr.h (INIT_CUMULATIVE_ARGS): Update.
539         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
540         * d30v.c (d30v_init_cumulative_args): Update function.
541         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
542         * frv-protos.h (frv_init_cumulative_args): Update prototype.
543         * frv.c (frv_init_cumulative_args): Update function.
544         * frv.h (INIT_CUMULATIVE_ARGS): Update.
545         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
546         * pa.h (INIT_CUMULATIVE_ARGS): Update.
547         * sparc-protos.h (init_cumulative_args): Update prototype.
548         * sparc.c (init_cumulative_args): Update function.
549         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
550         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
551
552 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
553
554         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
555         (*ashiftsi_sextqi_7): Likewise.
556
557 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
558
559         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
560         ISO C99 and C++.
561
562         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
563         for C++ on IRIX 6.5.1[89].
564         * fixinc/tests/base/internal/sgimacros.h: New file.
565
566         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
567         * fixinc/tests/base/internal/wchar_core.h: New file.
568
569         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
570         socklen_t definition.
571         * fixinc/fixincl.x: Regenerate.
572         * fixinc/tests/base/sys/socket.h: New file.
573         Fixes PR libgcj/9652.
574
575 Wed Feb 19 17:22:51 CET 2003  Jan Hubicka  <jh@suse.cz>
576
577         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
578
579 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
580
581         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
582         align_jumps_max_skip and align_loops_max_skip.
583
584 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
585
586         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
587         test size if named section.
588
589 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
590
591         * expr.c (expand_expr): Use gen_int_mode for the argument
592         to gen_rtx_MULT.
593
594 Wed Feb 19 14:22:42 CET 2003  Jan Hubicka  <jh@suse.cz>
595
596         * i386.md (cosxf2):  Fix conditional.
597
598 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
599
600         * config/h8300/h8300.md (extendqisi2): Change to an expander.
601         (*extendqisi2_h8300): New.
602         (*extendqisi2_h8300hs): Likewise.
603
604 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
605
606         * config/h8300/h8300-protos.h: Update the prototype for
607         split_adds_subs.  Remove the prototypes for
608         const_int_le_2_operand and const_int_le_6_operand.
609         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
610         (const_int_le_2_operand): Remove.
611         (const_int_le_6_operand): Likewise.
612         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
613         for const_int_le_2_operand and const_int_le_6_operand.
614         * config/h8300/h8300.md: Update all uses of split_adds_subs.
615         (a peephole2): New.
616
617 Tue Feb 18 23:50:59 CET 2003  Jan Hubicka  <jh@suse.cz>
618
619         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
620         (cgraph_expand_function): Rewrite.
621
622 2003-02-18  Matt Austern <austern@apple.com>
623
624         * toplev.c, langhooks.c, langhooks-def.h: Move
625         write_global_declarations from toplev.c to langhooks.c.
626
627 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
628
629         * config/h8300/h8300.c (general_operand_src): Always check
630         MODE.
631         (general_operand_dst): Likewise.
632
633 2003-02-18  Roger Sayle  <roger@eyesopen.com>
634
635         * convert.c (convert_to_real): Also optimize (float)log(x) into
636         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
637
638 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
639
640         * config/sh/sh.c (unspec_caller_rtx_p): New.
641         (sh_cannot_copy_insn_p): New.
642         (TARGET_CANNOT_COPY_INSN_P): New.
643
644 2003-02-18  Richard Henderson  <rth@redhat.com>
645
646         * c-common.c (handle_used_attribute): Accept static data too.
647
648 2003-02-18  Nick Clifton  <nickc@redhat.com>
649             Aldy Hernandez  <aldyh@redhat.com>
650
651         * testsuite/gcc.dg/20030218-1.c: New.
652
653         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
654
655         * target-def.h (TARGET_INITIALIZER): Add
656         TARGET_VECTOR_TYPES_COMPATIBLE.
657         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
658
659         * target.h (struct gcc_target): Add field vector_types_compatible.
660
661         * c-typeck.c (comptypes): Take into account
662         TARGET_VECTOR_TYPES_COMPATIBLE.
663         (convert_for_assignment): Same.
664
665         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
666         (rs6000_spe_vector_types_compatible): New.
667         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
668
669 2003-02-19  Andreas Schwab  <schwab@suse.de>
670
671         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
672         * toplev.c: Include langhooks-def.h.
673
674 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
675
676         * config/mips/mips.h (enum processor_type): Sort entries
677         alphabetically.
678         * config/mips/mips.md (define_attr cpu): Sync with processor_type
679         enum values, including adding entries that were missing.
680
681 Tue Feb 18 20:15:54 2003  J"orn Rennecke <joern.rennecke@superh.com>
682
683         * sh.c (calc_live_regs): Also check GET_CODE when checking if
684         initial value for PR_REG is still the PR_REG register.
685
686 2003-02-18  Jim Wilson  <wilson@redhat.com>
687
688         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
689         instruction in output template.
690         (bsp_value): Change output template from string to C code, add %,
691         before actual instruction.
692         (flushrs): Mark as not predicable.
693
694 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
695
696         * inclhack.def (netbsd_bogus_semicolon): New fix.
697         * fixincl.x: Rebuilt.
698         * tests/base/ctype.h: Update.
699
700 2003-02-18  Roger Sayle  <roger@eyesopen.com>
701
702         * fold-const.c (negate_expr_p): New function to determine whether
703         an expression can be negated cheaply.
704         (fold) [MINUS_EXPR]: Use it to determine whether to transform
705         -A - B into -B - A for floating point types.
706
707 2003-02-18  Roger Sayle  <roger@eyesopen.com>
708
709         * sbitmap.c (sbitmap_resize): New function.
710         * sbitmap.h (sbitmap_resize): Prototype here.
711         * recog.c (split_all_insns): Use sbitmap_resize.
712
713 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
714
715         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
716         insn length.
717         (extendqisi2): Likewise.
718         (*extendhisi2_h8300): Likewise.
719
720 2003-02-18  Matt Austern <austern@apple.com>
721
722         * langhooks.h, langhooks-def.h: introduce new langhook,
723         final_write_globals, with write_global_declarations as default.
724         * toplev.c: Move invocation of wrapup_global_declarations from
725         compile_file to new function, write_global_declarations.  Change
726         compile_file to use final_write_globals hook.  Change
727         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
728         conditional.
729
730 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
731
732         * pa.md: Correct and enhance comment.
733
734 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
735
736         * gcc.c (validate_switches): Don't scan past closing '}'.
737
738 2003-02-18  Ben Elliston  <bje@redhat.com>
739
740         PR c++/1607
741         * doc/extend.texi (Function Attributes): Document the effect of
742         the C++ "this" parameter on the counting of arguments for the
743         "format" and "format_arg" attributes.
744
745 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
746
747         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
748         (__ev_stdw): Same.
749         (__ev_stdh): Same.
750
751 Mon Feb 17 16:16:54 CET 2003  Jan Hubicka  <jh@suse.cz>
752
753         * recog.c (split_all_insns):  Fix memory overflow.
754
755 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
756
757         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
758         (cmphi): Likewise.
759         (*cmphi_h8300): Likewise.
760         (*cmphi_h8300hs): Likewise.
761         (cmpsi): Likewise.
762         (7 peephole2): Likewise.
763
764 Sun Feb 16 23:07:52 CET 2003  Jan Hubicka  <jh@suse.cz>
765
766         * c-typeck.c (build_c_cast):  Fold constant variables into
767         initial values.
768
769 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
770
771         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
772         (Binaries): Ditto for Sinix/Reliant Unix.
773
774 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
775
776         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
777         not overlap the final result register.
778
779 2003-02-16 Arend Bayer <arend.bayer@web.de>
780            Richard Henderson  <rth@redhat.com>
781
782         PR c/8068
783         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
784         rearrange mult arguments for less recursion.
785         (extract_muldiv): New.  Prevent runaway recursion.
786
787 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
788
789         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
790         MASK_ALIGN_DOUBLE.
791
792 2003-02-15  Roger Sayle  <roger@eyesopen.com>
793
794         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
795         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
796         (ext_80387_constants_table): Global table of 80387 special constants
797         guarded by ext_80387_constants_init flag when not initialized.
798         (init_ext_80387_constants): New function to initialize this table.
799         (standard_80387_constant_p): Extend to recognize extra 80387
800         constants, in XFmode, on processors where this is a win.
801         (standard_80387_constant_opcode): New function to return the
802         opcode associated with standard_80387_constant_p.
803         (standard_80387_constant_rtx): New function to return the XFmode
804         CONST_DOUBLE associated with standard_80387_constant_p.
805         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
806
807         * config/i386/i386-protos.h (standard_80387_constant_opcode):
808         Prototype here.
809         (standard_80387_constant_rtx): Likewise.
810
811         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
812         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
813         *movtf_integer): Simplify using new standard_80387_constant_opcode.
814
815 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
816
817         * doc/invoke.texi (Optimize Options): Correct @option syntax.
818
819 2003-02-15  Richard Henderson  <rth@redhat.com>
820
821         * Makefile.in (cfglayout.o): Depend on TARGET_H.
822         * cfglayout.c: Include target.h.
823         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
824         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
825         * target.h (struct gcc_target): Add cannot_copy_insn_p.
826
827         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
828         (TARGET_CANNOT_COPY_INSN_P): New.
829         (override_options): Revert 2003-02-08 hack.
830
831 2003-02-15  Richard Henderson  <rth@redhat.com>
832
833         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
834         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
835
836 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
837
838         * config/rs6000/rs6000.h (processor_type): Add PPC440.
839         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
840         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
841         TARGET_SCHED_VARIABLE_ISSUE): Define.
842         (rs6000_use_dfa_pipeline_interface): New function.
843         (rs6000_multipass_dfa_lookahead): New Function.
844         (rs6000_variable_issue): New function.
845         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
846         (rs6000_issue_rate): Add PPC440.
847         * config/rs6000/rs6000.md (unspec list): Correct typo.
848         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
849         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
850         cmp, delayed_cr, mfcr, mtcr.
851         (automata_option): Set "ndfa".
852         (extendMMNN2): Update attributes.
853         (movcc_internal1): Discourage move to non-cr0.  Update
854         attributes.
855         (movMM_update): Update attributes.
856         (cmpMM_internal): Update attributes.
857         (sCC CR materialization): Update attributes.
858         (branch patterns): Do not discourage non-cr0.
859         (cr logical patterns): Prefer destructive register allocation.
860         Update attributes.
861         (movesi_from_cr): Update attribute.
862         (mtcrf_operation): Update attribute.
863         (mtcrfsi): Update attribute.
864         * config/rs6000/40x.md: New file.
865         * config/rs6000/603.md: New file.
866         * config/rs6000/6xx.md: New file.
867         * config/rs6000/7450.md: New file.
868         * config/rs6000/7xx.md: New file.
869         * config/rs6000/mpc.md: New file.
870         * config/rs6000/power4.md: New file.
871         * config/rs6000/rios1.md: New file.
872         * config/rs6000/rios2.md: New file.
873         * config/rs6000/rs64.md: New file.
874         [Some DFA descriptions based on work by Michael Hayes]
875
876 2003-02-15  Richard Henderson  <rth@redhat.com>
877
878         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
879         successors with multiple predecessors.
880         (connect_traces): Try harder to copy traces of length 1.
881
882         * function.h (struct function): Add computed_goto_common_label,
883         computed_goto_common_reg.
884         * function.c (free_after_compilation): Zap them.
885         * stmt.c (expand_computed_goto): Use them to produce one
886         indirect branch per function.
887
888 2003-02-15  Richard Henderson  <rth@redhat.com>
889
890         * cfgcleanup.c: Include params.h.
891         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
892         too many outgoing edges from a block.
893         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
894         * params.def (max-crossjump-edges): New.
895         * doc/invoke.texi: Document it.
896
897 2003-02-15  Richard Henderson  <rth@redhat.com>
898
899         * recog.c (split_all_insns): Include new blocks in life update;
900         do a global life update.
901
902 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
903
904         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
905         Update copyright.
906         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
907         -mno-cygwin case.
908
909 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
910
911         PR optimization/7702
912         * reload1.c (reload_cse_simplify_set): Honor
913         CANNOT_CHANGE_MODE_CLASS.
914
915 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
916
917         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
918         function.
919         * config/mn10300/mn10300-protos.h: Declare it.
920         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
921         attribute cc of instructions that may use clr.
922
923 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
924
925         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
926         (x - (x & y)) is found.
927
928 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
929
930         * configure.in: Fix typo.
931         * configure: Regenerate.
932
933 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
934
935         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
936
937 2003-02-13  Adam Nemet  <anemet@lnxw.com>
938
939         PR opt/2391
940         * combine.c: Fix spelling in comment.
941         (cached_nonzero_bits): New function.
942         (cached_num_sign_bit_copies): New function.
943         (nonzero_bits_with_known): New macro.
944         (num_sign_bit_copies_with_known): New macro.
945         (nonzero_bits1): Rename from nonzero_bits.  Add three new
946         arguments.  Change calls from nonzero_bits to
947         nonzero_bits_with_known.
948         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
949         three new arguments.  Change calls from num_sign_bit_copies to
950         num_sign_bit_copies_with_known.
951         (nonzero_bits): New macro.
952         (num_sign_bit_copies): New macro.
953         (update_table_tick): Don't traverse identical subexpression more
954         than once.
955         (get_last_value_validate): Likewise.
956
957 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
958
959         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
960         * function.h (struct emit_status): Length of regno_pointer_align
961         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
962         not regno_pointer_align_length (i.e. length actually used, not
963         length as allocated)
964
965         * config/i386/i386.c (struct stack_local_entry): New.
966         (struct machine_function): Replace huge array with alist.
967         (assign_386_stack_local): Change to match.
968
969 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
970
971         * inclhack.def (hpux_long_double): Tighten select and add bypass
972         regexp.
973         * fixincl.x: Rebuilt.
974
975 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
976
977         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
978         edge and block ends with a jump insn it must be simple jump.
979
980 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
981
982         * Makefile.in (PREPROCESSOR_DEFINES): Add
983         @TARGET_SYSTEM_ROOT_DEFINE@.
984         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
985         is specified or if building a cross compiler.
986         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
987         if the sysroot is under $exec_prefix.
988         * configure: Regenerated.
989         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
990         defined.
991         (struct default_include): Add add_sysroot field.
992         (cpp_SYSROOT): Declare.
993         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
994         field.
995         (cpp_SYSROOT): New variable.
996         * cppinit.c (cpp_create_reader): Initialize
997         CPP_OPTION (pfile, sysroot).
998         (init_standard_includes): Handle add_sysroot.  Do not
999         add unrelocated copies of relocated directories.
1000         (COMMAND_LINE_OPTIONS): Add -isysroot.
1001         (cpp_handle_option): Handle -isysroot.
1002         * cpplib.h (struct cpp_options): Add sysroot member.
1003         * gcc.c (The Specs Language): Update description of %I.
1004         (target_system_root_changed): New variable.
1005         (process_command): Conditionalize make_relative_prefix call
1006         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
1007         target_system_root_changed.
1008         (do_spec_1): Add -isysroot to %I.
1009         * doc/invoke.texi (Spec Files): Update description of %I.
1010         * doc/install.texi (--with-sysroot): Update comment about
1011         relocation.
1012
1013 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
1014
1015         * config/h8300/h8300.md (a peephole2): New.
1016
1017 2003-02-13  Robert Lipe <robertlipe@usa.net>
1018             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1019
1020         * doc/install.texi (Specific): Update three SCO-related URLs.
1021
1022 2003-02-13  Andreas Schwab  <schwab@suse.de>
1023
1024         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
1025         Parenthesize properly.
1026         (NPREDECESORS): Parenthesize properly.
1027
1028 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1029
1030         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
1031
1032 2003-02-12  Roger Sayle  <roger@eyesopen.com>
1033
1034         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
1035         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
1036
1037         * reg-stack.c (subst_stack_regs_pat): Add support for binary
1038         UNSPEC instructions (e.g. "fpatan").
1039
1040 2003-02-12  Mike Stump  <mrs@apple.com>
1041
1042         * varray.c (element_size): Remove.
1043         (uses_ggc): Remove.
1044         (element): Add.
1045         (varray_init): Use new interface.
1046         (varray_grow): Use new interface.
1047         (varray_clear): Use new interface.
1048
1049 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
1050
1051         * config/rs6000/spe.h: Add casts to the arguments of the following
1052         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
1053         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
1054         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
1055         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
1056         __ev_get_u16, __ev_get_s16.
1057
1058 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
1059
1060         * config/h8300/h8300.md (a peephole2): New.
1061
1062 Wed Feb 12 22:47:18 CET 2003  Jan Hubicka  <jh@suse.cz>
1063
1064         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
1065         (OBJS): Add callgraph.o
1066         (callgraph.o): New.
1067         * c-decl.c (expand_body_1): Break out from ...
1068         (expand_body): This one;  change calling convention
1069         (finish_function): Move some of expand_body logic here.
1070         (c_expand_deferred_function): Update call of expand_body
1071         (c_expand_stmt): Use c_expand_body_1.
1072         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
1073         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
1074         * c-tree.h (c_expand_body): Declare.
1075         * callgraph.c: New file.
1076         * flags.h (flag_unit_at_a_time): Declare.
1077         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
1078         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
1079         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
1080         * langhooks.h (struct lang_hooks_for_callgraph): New.
1081         (struct lang_hooks): Add callgraph field.
1082         * toplev.c (flag_unit_at_a_time): New.
1083         (lang_independent_options): Add flag_unit_at_a_time.
1084         (process_options): Disable unit-at-a-time mode for frontends not
1085         supporting callgraph.
1086         * tree-inline.c (typedef struct inline_data): Add "decl"
1087         (expand_call_inline): Update callgraph.
1088         (optimize_inline_calls): Set id.decl.
1089         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
1090         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
1091         cgraph_calls_p): Declare.
1092         * invoke.texi (-funit-at-a-time): Document
1093
1094 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
1095
1096         * config/rs6000/spe.h: Fix misc formatting.
1097         (__ev_create_ufix32_fs): Cast ev argument.
1098         (__ev_create_sfix32_fs): Same.
1099         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
1100         (__ev_get_ufix32_fs_internal): Same.
1101
1102 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
1103
1104         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
1105         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
1106
1107 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
1108
1109         * cpplib.c (do_include_common): Move warnings for
1110         #include_next and #import out to callers.  Use early-return
1111         instead of nested ifs.  Don't do check_eol here.
1112         (parse_include): Do check_eol here with the rest of the
1113         parsing stuff.
1114         (do_include_next, do_import): Now handle warnings.
1115
1116 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1117
1118         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
1119
1120 Wed Feb 12 15:19:42 CET 2003  Jan Hubicka  <jh@suse.cz>
1121
1122         * predict.c (estimate_probability):  Fix roundoff error.
1123
1124 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
1125
1126         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
1127         (two peephole2): New.
1128
1129 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
1130
1131         * config/h8300/h8300.md (several peephole2): Replace
1132         find_regno_note with peep2_reg_dead_p.
1133
1134 2003-02-11  Richard Henderson  <rth@redhat.com>
1135
1136         * gcse.c (lookup_set): Remove unused argument PAT.  Update
1137         both callers.
1138
1139 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
1140
1141         * diagnostic.c (real_abort): New.
1142         (diagnostic_report_diagnostic): Call real_abort on error.
1143         * diagnostic.h (diagnostic_abort_on_error): New.
1144         (struct diagnostic_context): Add abort_on_error field.
1145         * toplev.c (setup_core_dumping): New.
1146         (decode_d_option): Handle 'H' case.
1147         * doc/invoke.texi (Debugging Options): Document -dH.
1148
1149 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
1150
1151         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
1152         which refers to obsolete directories.
1153
1154 2003-02-11  Richard Henderson  <rth@redhat.com>
1155
1156         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
1157
1158 Mon Oct 21 17:07:47 CEST 2002  Jan Hubicka  <jh@suse.cz>
1159
1160         * i386.c (contains_128bit_aligned_vector_p): New function.
1161         (ix86_function_arg_boundary): Properly align vector modes.
1162
1163 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
1164
1165         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
1166         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
1167         as a SET pattern.
1168
1169 2003-02-11  Roger Sayle  <roger@eyesopen.com>
1170
1171         * builtins.c:  Fix failure caused by commiting wrong patch.
1172
1173 2003-02-11  Dale Johannesen  <dalej@apple.com>
1174         * ra-build.c (compare_and_free_webs):  Relax checking.
1175         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
1176         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
1177
1178 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
1179
1180         PR optimization/9651
1181         * rtlanal.c (may_trap_p): Handle FIX.
1182
1183 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
1184
1185         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
1186         * doc/invoke.texi: Extra alias.
1187
1188 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
1189
1190         * config/rs6000/host-darwin.c: Fix comment.
1191
1192 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
1193
1194         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
1195         predicate for mod result.
1196
1197 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1198
1199         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
1200         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
1201         * fixincl.x: Rebuilt.
1202         * tests/base/stdlib.h: Update.
1203         * tests/base/ctype.h: New file.
1204
1205 Tue Feb 11 20:44:45 CET 2003  Jan Hubicka  <jh@suse.cz>
1206
1207         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
1208
1209 2003-02-11  Richard Henderson  <rth@redhat.com>
1210
1211         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
1212         appropriated as globals.
1213         (ix86_expand_clrstr): Similarly.
1214         * config/i386/i386.md (cmpstrsi): Similarly.
1215
1216 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
1217
1218         * config/h8300/h8300.md (a peephole2): Add a case of 255.
1219
1220 2003-02-11  Roger Sayle  <roger@eyesopen.com>
1221
1222         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
1223         (pow_optab, atan2_optab): Define corresponding macros.
1224         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
1225         * genopinit.c (optabs): Implement pow_optab and atan2_optab
1226         using pow?f3 and atan2?f3 patterns.
1227         * builtins.c (expand_errno_check): New function to update errno
1228         if necessary, split out from expand_builtin_mathfn.
1229         (expand_builtin_mathfn): Use expand_errno_check.
1230         (expand_builtin_mathfn_2): New function to handle expanding binary
1231         math functions, reusing the code in expand_errno_check.
1232         (expand_builtin): Handle the pow and atan2 math built-ins,
1233         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
1234         expand_builtin_mathfn_2.
1235
1236         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
1237
1238 Tue Feb 11 19:03:22 MET 2003  Jan Hubicka  <jh@suse.cz>
1239
1240         * combine.c (combine_simplify_rtx): Fix folding of
1241         nested float_truncates.
1242
1243 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
1244
1245         * config/h8300/h8300.md (a peephole2): Fix a typo.
1246
1247 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
1248
1249         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
1250         register number.
1251
1252 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
1253
1254         * config/h8300/h8300-protos.h: Add a prototype for
1255         gtuleu_operator.
1256         * config/h8300/h8300.c (gtuleu_operator): New.
1257         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
1258         * config/h8300/h8300.md (a peephole2): New.
1259
1260 Tue Feb 11 13:32:12 CET 2003  Jan Hubicka  <jh@suse.cz>
1261
1262         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
1263
1264 Tue Feb 11 10:02:54 CET 2003  Jan Hubicka  <jh@suse.cz>
1265
1266         * predict.c (choose_function_section): Choose sections correctly.
1267
1268 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1269
1270         * reload1.c (first_label_num): New.
1271         (reload): Index offsets_known_at and offsets_at using difference of
1272         label number and first label number.  Don't use offset pointers.
1273         (set_label_offsets, set_initial_label_offsets): Likewise.
1274
1275 2003-02-10  Roger Sayle  <roger@eyesopen.com>
1276
1277         * mips-tfile.c (init_file): Add missing initializers in the
1278         "#ifdef __alpha" case.
1279         (file_offset, max_file_offset): Declare as unsigned long.
1280         (write_varray): Cast to "unsigned long" in comparisons against
1281         either file_offset or max_file_offset.
1282         (write_object): Likewise.
1283         (read_seek): Likewise.
1284         (copy_object): Likewise. Declare "ifd" as int to match its use
1285         in add_ext_symbol, and avoid signed/unsigned conditional warning.
1286
1287 2003-02-10  Nick Clifton  <nickc@redhat.com>
1288             Aldy Hernandez  <aldyh@redhat.com>
1289
1290         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
1291         override options which have been specified on the command line.
1292
1293 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
1294
1295         * config/h8300/h8300.md (abssf2): New.
1296         (*abssf2_h8300): Likewise.
1297         (*abssf2_h8300hs): Likewise.
1298
1299 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
1300
1301         * tree.c (build_tree_list):  Fix parameter names in comment.
1302
1303 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
1304
1305         * config/rs6000/ppc64-fp.c: New file.
1306         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
1307
1308 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
1309
1310         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
1311         * bb-reorder.c (make_reorder_chain): Deleted.
1312         (make_reorder_chain_1): Deleted.
1313         (find_traces): New function.
1314         (rotate_loop): New function.
1315         (mark_bb_visited): New function.
1316         (find_traces_1_round): New function.
1317         (copy_bb): New function.
1318         (bb_to_key): New function.
1319         (better_edge_p): New function.
1320         (connect_traces): New function.
1321         (copy_bb_p): New function.
1322         (get_uncond_jump_length): New function.
1323         (reorder_basic_blocks): Use new functions (Software Trace Cache).
1324         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
1325         boundaries.
1326
1327 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
1328
1329         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
1330
1331 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
1332
1333         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
1334         (DECL_LIVE_RANGE_RTL): Remove.
1335
1336 2003-02-10  Nick Clifton  <nickc@redhat.com>
1337
1338         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
1339         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
1340         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
1341         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
1342         config/arm/freebsd.h, config/arm/linux-elf.h,
1343         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
1344         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
1345         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
1346         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
1347         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
1348         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
1349         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
1350         and reformat as appropriate.
1351
1352 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
1353
1354         * config/h8300/clzsi2.c: Remove.
1355         * config/h8300/ctzsi2.c: Likewise.
1356         * config/h8300/paritysi2.c: Likewise.
1357         * config/h8300/popcountsi2.c: Likewise.
1358         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
1359         ctzsi2, paritysi2, and popcountsi2.
1360
1361 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
1362             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
1363
1364         PR c/7741
1365         * c-decl.c (duplicate_decls): Discard the initializer of the
1366         new decl when the types are conflicting.
1367
1368 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
1369
1370         * Makefile.in (sreal.o): Added.
1371         (predict.o): Depends on sreal.h instead of real.h.
1372         * sreal.c: New file.
1373         * sreal.h: New file.
1374         * predict.c: Use sreal.c instead of real.c.
1375
1376 2003-02-10  Nick Clifton  <nickc@redhat.com>
1377
1378         * Contributed support for the Cirrus EP9312 "Maverick"
1379         floating point co-processor.  Written by Aldy Hernandez
1380         <aldyh@redhat.com>.
1381         (config/arm/arm.c): Add Cirrus support.
1382         (config/arm/arm.h): Likewise.
1383         (config/arm/aout.h): Likewise.
1384         (config/arm/arm.md): Likewise.
1385         (config/arm/arm-protos.h): Likewise.
1386         (config.gcc): Likewise.
1387         (doc/invoke.texi): Describe new -mcpu value and new
1388         -mcirrus-fix-invalid-insns switch,
1389         (cirrus.md): New file.
1390
1391 Mon Feb 10 11:40:18 CET 2003  Jan Hubicka  <jh@suse.cz>
1392
1393         * combine.c (combine_simplify_rtx): Simplify using
1394         (float_truncate (float x)) is (float x)
1395         (float_extend (float_extend x)) is (float_extend x).
1396
1397 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
1398
1399         * calls.c (try_to_integrate): Tidy stack_usage_map access.
1400         (emit_library_call_value_1): Likewise.  Formatting.
1401         (store_one_arg): Likewise.
1402
1403 2003-02-09  Nick Clifton  <nickc@redhat.com>
1404             Aldy Hernandez  <aldyh@redhat.com>
1405
1406         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
1407         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
1408         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
1409         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
1410         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
1411         docs.  Add range test for immediate value.
1412
1413 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
1414
1415         Rename spe_evxor to xorv2si3.
1416         (xorv4hi3): New.
1417         (xorv1di3): New.
1418
1419 2003-02-10  Glen Nakamura  <glen@imodulo.com>
1420
1421         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
1422         tag.
1423
1424 Mon Feb 10 00:29:17 CET 2003  Jan Hubicka  <jh@suse.cz>
1425
1426         * i386.c (vector_move_operand): New predicate.
1427         (ix86_expand_vector_move): Be happy about 0.
1428         * i386.h (PREDICATE_CODES): Add sse-move_operand.
1429         * i386.md (mov*_internal): Add 'C' alternative.
1430
1431 Sun Feb  9 23:58:33 CET 2003  Jan Hubicka  <jh@suse.cz>
1432
1433         * i386.md (floathi*): Deal with SSE.
1434
1435 Sun Feb  9 23:54:59 CET 2003  Jan Hubicka  <jh@suse.cz>
1436
1437         * simplify-rtx.c (simplify_unary_operation,
1438         simplify_binary_operation):  Deal with vector modes
1439         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
1440
1441 2002-02-09  Richard Sandiford  <rsandifo@redhat.com>
1442
1443         * toplev.c (rest_of_compilation): Recompute register usage after
1444         split_all_insns.
1445
1446 2003-02-09  Richard Henderson  <rth@redhat.com>
1447
1448         * libgcc-std.ver (__clztf2): New.
1449         (__ctztf2, __popcounttf2, __paritytf2): New.
1450         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
1451         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
1452         adjust code to match the different type sizes.
1453         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
1454         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
1455
1456         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
1457         TImode; select word_mode and twice that.
1458         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
1459         select the modes from float, double, and long double.
1460         (init_optabs): Remove duplicate initializations.
1461
1462 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
1463
1464         * doc/install.texi: Squeeze and streamline section on
1465         testing and regression checking.
1466
1467 Sun Feb  9 13:33:34 CET 2003  Jan Hubicka  <jh@suse.cz>
1468
1469         * i386.md (ahi?v*3): Set third operand type to TImode.
1470         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
1471
1472         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
1473         integer mode.
1474
1475         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
1476         Change code so they are arithmetic expressions now.
1477         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
1478         simplify_ternary_operation): Deal with VEC_* expressions.
1479
1480         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
1481
1482 Sat Feb  8 00:21:22 CET 2003  Jan Hubicka  <jh@suse.cz>
1483
1484         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
1485         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
1486         possibly got duplicated.
1487
1488 2003-02-08  Richard Henderson  <rth@redhat.com>
1489
1490         * config/alpha/alpha.c (override_options): Turn off explicit
1491         relocs until post-peep2 code duplication resolved.
1492
1493 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
1494
1495         * optabs.c (expand_unop): Widen clz properly when clz is done
1496         via libcall.
1497
1498 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
1499
1500         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
1501         * config/h8300/crti.asm: Likewise.
1502         * config/h8300/crtn.asm: Likewise.
1503         * config/h8300/ctzsi2.c: Likewise.
1504         * config/h8300/fixunssfsi.c: Likewise.
1505         * config/h8300/h8300-protos.h: Likewise.
1506         * config/h8300/h8300.c: Likewise.
1507         * config/h8300/h8300.h: Likewise.
1508         * config/h8300/h8300.md: Likewise.
1509         * config/h8300/paritysi2.c: Likewise.
1510         * config/h8300/popcountsi2.c: Likewise.
1511         * config/h8300/rtems.h: Likewise.
1512
1513 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1514
1515         * doc/invoke.texi: Documentation for my previous commit.
1516         * doc/passes.texi: Ditto.
1517
1518 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1519
1520         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
1521         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
1522         Declare.
1523         (DLTHE_FLAG_UPDATE_FREQ): New.
1524         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
1525         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
1526         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
1527         fix_bb_placement, fix_bb_placements, place_new_loop,
1528         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
1529         New static functions.
1530         (fix_loop_placement, can_duplicate_loop_p,
1531         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
1532         New functions.
1533
1534         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
1535         unswitch_loops): Declare.
1536         * loop-init.c: New file.
1537         * loop-unswitch.c: New file.
1538         * Makefile.in (loop-init.o, loop-unswitch.o): New.
1539         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
1540         * toplev.c (DFI_loop2): New dump.
1541         (flag_unswitch_loops): New.
1542         (lang_independent_options): Add it.
1543         (rest_of_compilation): Call new loop optimizer.
1544         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
1545
1546 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
1547
1548         * config/h8300/clzsi2.c: New.
1549         * config/h8300/ctzsi2.c: Likewise.
1550         * config/h8300/paritysi2.c: Likewise.
1551         * config/h8300/popcountsi2.c: Likewise.
1552         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
1553
1554 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
1555
1556         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
1557         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
1558         (ctzsi2): New pattern.
1559         (ffssi2): Use clz instead of unspec.
1560         (clzdi2): Rename from cntlzd2.
1561         (ctzdi2): New pattern.
1562         (ffsdi2): Use clz instead of unspec.
1563
1564 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
1565
1566         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
1567         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
1568         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
1569         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
1570
1571 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
1572
1573         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
1574
1575 2003-02-07  Richard Henderson  <rth@redhat.com>
1576
1577         PR 9226
1578         * gcse.c (local_cprop_find_used_regs): New.
1579         (local_cprop_pass): Use it.
1580
1581 2003-02-07  Fred Fish  <fnf@intrinsity.com>
1582
1583         * mips-tfile.c (parse_def): Parenthesize assignments to fix
1584         precedence bugs.
1585
1586 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
1587
1588         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
1589
1590 2003-02-07  Roger Sayle  <roger@eyesopen.com>
1591
1592         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
1593         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
1594         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
1595         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
1596         builtin functions (and their __builtin_* variants).
1597         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
1598         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
1599         when not optimizing.
1600
1601         * doc/extend.texi: Document new pow and atan2 builtins, and
1602         their float and long double variants.  Realphabetize builtins.
1603
1604 Fri Feb  7 23:24:28 CET 2003  Jan Hubicka  <jh@suse.cz>
1605
1606         * i386.md (sse2_nandv2di3): Fix.
1607
1608 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
1609
1610         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
1611         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
1612         definition.
1613         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
1614         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
1615
1616 Fri Feb  7 22:22:40 CET 2003  Jan Hubicka  <jh@suse.cz>
1617
1618         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
1619
1620 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
1621
1622         * cfg.c (dump_flow_info): Add back accidently deleted line.
1623
1624 2003-02-07  Andrey Petrov <petrov@netbsd.org>
1625
1626         * optabs.c (expand_float): Search wider integer modes first.
1627
1628 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
1629
1630         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
1631         based on preprocessor flag.
1632
1633 2003-02-07  Roger Sayle  <roger@eyesopen.com>
1634             Richard Henderson  <rth@redhat.com>
1635
1636         * gcse.c (implicit_sets): New.
1637         (compute_hash_table_work): Include them in hash table.
1638         (find_implicit_sets, fis_get_condition): New.
1639         (one_cprop_pass): Allocate and free implicit_sets; call
1640         find_implicit_sets before building hash table.
1641
1642 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
1643
1644         * config/t-netbsd (USER_H): Revert previous change.
1645
1646 2003-02-07  Gabor Greif  <ggreif@lucent.com>
1647
1648         * doc/c-tree.texi (Namespaces): Fix typo.
1649
1650 Fri Feb  7 02:18:57 CET 2003  Jan Hubicka  <jh@suse.cz>
1651
1652         * regrename.c (do_replace, find_oldest_value_reg,
1653         copyprop_hardreg_forward_1): Update register attributes.
1654
1655 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
1656
1657         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
1658         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
1659         variables starting with underscore.
1660         (struct unit_usage): New structure.
1661         (unit_usages, cycle_alt_unit_usages): New global variables.
1662         (check_unit_distribution_in_reserv): Remove it.
1663         (store_alt_unit_usage): New function.
1664         (check_regexp_units_distribution): Rewrite it.
1665
1666 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1667
1668         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
1669         target_cpu_default.
1670         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
1671         if not MASK_NO_SPACE_REGS.
1672         (output_call): Adjust return pointer, don't load new space register
1673         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
1674         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
1675         TARGET_NO_SPACE_REGS is true.
1676         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
1677         conditions.
1678         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
1679         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
1680         true.  Use bve when TARGET_64BIT is true.
1681
1682 2003-02-06  Richard Henderson  <rth@redhat.com>
1683
1684         * combine.c (nonzero_bits): Fix double break.
1685
1686 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
1687             Richard Henderson <rth@redhat.com>
1688
1689         PR c/9530
1690         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
1691         from functions that return a float to functions that don't.
1692
1693 Thu Feb  6 00:18:38 CET 2003  Jan Hubicka  <jh@suse.cz>
1694
1695         * i386.c (x86_inter_unit_moves): New variable.
1696         (ix86_secondary_memory_needed): Fix 64bit case, honor
1697         TARGET_INTER_UNIT_MOVES
1698         * i386.h (x86_inter_unit_moves): Declare.
1699         (TARGET_INTER_UNIT_MOVES): New macro.
1700         * i386.md (movsi_1): Cleanup constraints; disable
1701         when not doing inter-unit moves.
1702         (movsi_1_nointernunit): New.
1703         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
1704         (movdi_1_rex64_nointerunit): New.
1705         (mivsf_1): disable when not doing inter-unit moves.
1706         (movsf_1_nointerunit): New.
1707
1708         * basic-block.h (inside_basic_block_p):  Declare.
1709         * cfgbuild.c (inside_basic_block_p): Make global.
1710         * haifa-sched.c (unlink_other_notes0: Deal with NOT_INSN_BASIC_BLOCK.
1711         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
1712         update CFG.
1713         (fix_basic_block_boundaries, add_missing_bbs): New.
1714         (rank): Use profile.
1715         (scheudle_ebbs): Rely on CFG; update coments.
1716
1717 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
1718
1719         * Makefile.in (host_hook_obj): New.
1720         (OBJS): Add $(host_hook_obj).
1721         (host_default.o): New rule.
1722         * config.gcc (host_hook_obj): New, default to host-default.o.
1723         (powerpc-*-darwin*): Use host-darwin.o.
1724         (out_host_hook_obj): New.
1725         * configure: Regenerate.
1726         * configure.in: Print information about out_host_hook_obj, substitute
1727         into output files.
1728         * host-default.c: New file.
1729         * hosthooks.h: New file.
1730         * toplev.c (general_init): Call host_hooks.extra_signals.
1731         * config/rs6000/host-darwin.c: New file.
1732         * config/rs6000/x-darwin: New file.
1733         * doc/hostconfig.texi: Add documentation for new host hook.
1734         Rearrange existing documentation.
1735
1736 2003-02-05  Roger Sayle  <roger@eyesopen.com>
1737
1738         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
1739         with *targetm.delegitimize_address.
1740         (rtl_for_decl_location): Likewise.
1741         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
1742         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
1743
1744         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
1745         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
1746         prototype.
1747         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
1748         i386_simplify_dwarf_addr.  Made static.  Prototyped.
1749         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
1750         i386_simplify_dwarf_addr to ix86_delegitimize_address.
1751         (ix86_find_base_term): Likewise.
1752         (maybe_get_pool_constant): Likewise.
1753
1754         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
1755         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
1756         prototype.
1757         * config/s390/s390.c (s390_delegitimize_address): Renamed from
1758         s390_simplify_dwarf_addr.  Made static.  Prototyped.
1759         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
1760
1761 2003-02-05  Richard Henderson  <rth@redhat.com>
1762
1763         PR c/8602
1764         * integrate.c (output_inline_function): Reset input_filename
1765         and lineno from the decl before rest_of_compilation.
1766
1767 2003-02-05  Richard Henderson  <rth@redhat.com>
1768
1769         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
1770         (CTZ_DEFINED_VALUE_AT_ZERO): New.
1771         * doc/rtl.texi, doc/tm.texi: Document them.
1772
1773         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
1774         of the value at zero properly.
1775         * fold-const.c (tree_expr_nonnegative_p): Likewise.
1776         * simplify-rtx.c (simplify_unary_operation): Likewise.
1777
1778         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
1779         (CTZ_DEFINED_VALUE_AT_ZERO): New.
1780
1781         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
1782         (TARGET_EXPAND_BUILTIN): Remove.
1783         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
1784         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
1785         (enum arm_builtins): Remove.
1786         * config/arm/arm.md (UNSPEC_CLZ): Remove.
1787         (clzsi2): Rename from clz; use clz instead of unspec.
1788         (ctzsi2): New.
1789         * config/arm/arm-protos.h: Update.
1790
1791 Wed Feb  5 23:12:57 CET 2003  Jan Hubicka  <jh@suse.cz>
1792
1793         * i386-protos.h (x86_emit_floatuns):  Declare.
1794         * i386.c (x86_emit_floatuns): New global function.
1795         * i386.md (floatunssisf2, floatunsdisf2,
1796         floatunsdidf2):  New patterns.
1797
1798 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1799
1800         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
1801
1802 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
1803
1804         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
1805           config/ia64/linux.h
1806
1807 2002-02-05  Roger Sayle  <roger@eyesopen.com>
1808
1809         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
1810
1811 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
1812
1813         PR optimization/8555
1814         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
1815         instead of aborting.
1816
1817 2003-02-04  Richard Henderson  <rth@redhat.com>
1818
1819         * config/i386/i386.md (UNSPEC_BSF): Remove.
1820         (ffssi2): Split into cmove and no_cmove insns and splitters;
1821         lose pentium float trick for now.
1822         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
1823         (ctzsi2, clzsi2, bsr): New.
1824
1825 2003-02-04  Richard Henderson  <rth@redhat.com>
1826
1827         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
1828         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
1829         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
1830         (ffsdi2): Use popcount instead of unspec.
1831         (popcountdi2): Rename from *popcnt.
1832         (ctzdi2, clzdi2, getf_exp_tf): New.
1833
1834 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
1835
1836         * genconfig.c (main): Generate CC0_P.
1837         * rtl.h (CC0_P): Remove.
1838
1839 2003-02-04  Richard Henderson  <rth@redhat.com>
1840
1841         * libgcc2.h, libgcc2.c (__ffsSI2): New.
1842         (__ffsDI2): Rename from __ffsdi2.
1843         * mklibgcc.in (lib2funcs): Add _ffssi2.
1844
1845 2003-02-04  Richard Henderson  <rth@redhat.com>
1846
1847         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
1848         rounds with a "bit table" lookup.
1849
1850 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
1851
1852         * reload.c (find_reloads): Do not use the mode specified in the insn
1853         pattern as reload mode for address operands.  Do not generate optional
1854         reloads for operands where a mandatory reload was already pushed.
1855
1856 2003-02-04  Richard Henderson  <rth@redhat.com>
1857
1858         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
1859         builtins instead of inline assembly.
1860
1861 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
1862
1863         PR c/9376
1864         * libgcc2.c (__subvdi3): Fix typo.
1865
1866 Tue Feb  4 21:46:05 CET 2003  Jan Hubicka  <jh@suse.cz>
1867
1868         * i386.md (movti_rex64):  Fix constraint.
1869
1870 Tue Feb  4 18:40:42 CET 2003  Jan Hubicka  <jh@suse.cz>
1871
1872         * i386.md (vector push splitters):  Fix typo in resolving conflict.
1873
1874 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
1875
1876         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
1877
1878 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
1879
1880         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
1881         for recent libstdc++.  Remove formatting cruft.
1882
1883 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
1884
1885         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
1886         attribute even if input file name is absolute, but one of the
1887         includes is relative.
1888
1889 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
1890
1891         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
1892         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
1893         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
1894
1895 2003-02-03  Richard Henderson  <rth@redhat.com>
1896
1897         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
1898         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
1899         return type to "int".  Shuffle declarations and undef int trap.
1900         * libgcc2.h: Remove their declarations.
1901         * optabs.c (expand_unop): Force outmode to int for bitops.
1902
1903 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
1904
1905         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
1906         coprocessor registers before floating-point registers.
1907         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
1908         to account for a previously removed register.
1909         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
1910         Delete unused macros.
1911
1912 Mon Feb  3 21:19:11 CET 2003  Jan Hubicka  <jh@suse.cz>
1913
1914         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
1915         (mov*_internal): Fix predicates; require one of operands to not be
1916         memory.
1917         (SSE?MMX move expanders):  Fix predicates; force one of operands to
1918         register.
1919         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
1920         (movups/movupd/movdqu patterns): Force one of operands to not be
1921         memory.
1922
1923 2002-02-03  Roger Sayle  <roger@eyesopen.com>
1924
1925         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
1926         takes a single rtx and returns it unmodified.
1927         * hooks.h (hook_rtx_rtx_identity): Prototype here.
1928         * target.h (struct gcc_target): Add "delegitimize_address"
1929         field to target structure.
1930         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
1931         for delegitimize_address target using hook_rtx_rtx_identity.
1932         (TARGET_INITIALIZER): Initialize delegitimize_address field
1933         using TARGET_DELEGITIMIZE_ADDRESS macro.
1934         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
1935         extensions of constant pool references.  Use delegitimize_address
1936         to undo the obfuscation of "-fpic".
1937         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
1938
1939         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
1940         i386_simplify_dwarf_addr.
1941         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
1942         (maybe_get_pool_constant): Likewise.
1943
1944 Mon Feb  3 16:01:17 CET 2003  Jan Hubicka  <jh@suse.cz>
1945
1946         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
1947
1948 Mon Feb  3 01:30:11 CET 2003  Jan Hubicka  <jh@suse.cz>
1949
1950         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
1951
1952 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1953
1954         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
1955         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
1956
1957 2003-02-02  Andreas Schwab  <schwab@suse.de>
1958
1959         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
1960
1961 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
1962
1963         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
1964         (epilogue_insns): Likewise.
1965
1966 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1967
1968         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
1969
1970 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1971
1972         * pa-protos.h (attr_length_millicode_call): Remove second argument.
1973         (attr_length_indirect_call, attr_length_indirect_call,
1974         attr_length_save_restore_dltp): New prototypes.
1975         * pa.c (attr_length_millicode_call): Remove second argument.  Check
1976         INSN_ADDRESSES_SET_P in distance calculation.
1977         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
1978         INSN_ADDRESSES.
1979         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
1980         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
1981         Call attr_length_call directly.
1982         (attr_length_indirect_call, output_indirect_call,
1983         attr_length_save_restore_dltp): New functions.
1984         * pa.md (attr_length_millicode_call): Drop second argument from all
1985         patterns.
1986         (return_internal_pic): Delete.
1987         (return_external_pic): Remove use of PIC register and pic operand and
1988         flag checks.
1989         (epilogue): Use return_internal for both normal and pic code.
1990         (call, call_value): Emit new 32-bit pic patterns for symref and
1991         indirect calls.  Remove uses for arg pointer and pic register.
1992         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
1993         call_reg_pic_post_reload, call_val_symref_pic,
1994         call_val_symref_pic_post_reload, call_val_reg_pic,
1995         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
1996         Implement define_split and define_peephole2 patterns for pre reload
1997         patterns.
1998         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
1999         call_value_internal_reg_64bit): Shorten names.
2000         (all call patterns): Explicitly indicate registers used and clobbered.
2001         Use attr_length_indirect_call and attr_length_save_restore_dltp for
2002         attribute length calculation.  Move code generation for indirect calls
2003         to output_indirect_call.
2004         (sibcall, sibcall_value): Don't restore PIC register.
2005         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
2006         register retore.
2007
2008 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2009
2010         * doc/install.texi (Testing): Simplify and compress instructions
2011         concerning Dejagnu.
2012
2013 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2014
2015         * collect2.c (pexecute_pid): Rename to pid.
2016         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
2017         pid.
2018
2019 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
2020
2021         * doc/extend.texi (Function Attributes): Remove documentation
2022         for PowerPC Windows NT function attributes..
2023
2024 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
2025
2026         * dwarf2out.c (gen_type_die): Check for typedefs before calling
2027         for TYPE_MAIN_VARIANT.
2028
2029 2003-02-01  Richard Henderson  <rth@redhat.com>
2030
2031         * libgcc2.c: Include auto-host.h.
2032         (ATTRIBUTE_HIDDEN): New.
2033         (__clz_tab): Don't declare here for clz and ctz.
2034         (__clzsi2, __clzdi2): Use count_leading_zeros.
2035         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
2036         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
2037         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
2038         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
2039
2040 2003-02-01  Richard Henderson  <rth@redhat.com>
2041
2042         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
2043         to the conditional.
2044         (ashlsi3_1_zext splitter): Likewise.
2045
2046 2003-02-01  Richard Henderson  <rth@redhat.com>
2047
2048         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
2049         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
2050         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
2051         return type to Wtype.
2052
2053         * libgcc-std.ver (GCC_3.4): Fix inheritance.
2054
2055         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
2056         expander input constraint.
2057
2058 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2059
2060         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
2061         OTI_parity.
2062         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
2063         * optabs.c (widen_clz, expand_parity): New.
2064         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
2065         for libcalls to clz, ctz, popcount, and parity.
2066         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
2067         parity_optab, and set up libfunc handlers.
2068         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
2069         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
2070         __popcount_tab): New.
2071         * libgcc2.h: Declare them.
2072         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
2073         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
2074         and parity_optab.
2075         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
2076         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
2077         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
2078         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
2079         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
2080         BUILT_IN_PARITYLL): New.
2081         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
2082         and add optab argument.
2083         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
2084         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
2085         * expr.c (expand_expr): Handle them.
2086         * fold-const.c (tree_expr_nonnegative_p): Likewise.
2087         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
2088         * reload1.c (eliminate_regs): Handle them.
2089         (elimination_effects): Likewise.
2090         * function.c (instantiate_virtual_regs_1): Likewise
2091         * genattrtab.c (check_attr_value): Likewise.
2092         * simplify-rtx.c (simplify_unary_operation): Likewise.
2093         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
2094         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
2095         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
2096         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
2097         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
2098         __builtin_arm_clz.
2099         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
2100         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
2101         * doc/extend.texi (Other Builtins): Add new builtins.
2102         * doc/md.texi (Standard Names): Add new patterns.
2103
2104 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
2105
2106         * reload.c: Revert 2003-01-31 change.
2107
2108 Sat Feb  1 14:14:40 CET 2003  Jan Hubicka  <jh@suse.cz>
2109
2110         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
2111
2112 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
2113
2114         * flags.h (flag_volatile): Remove declaration.
2115         (flag_volatile_global, flag_volatile_static): Likewise.
2116         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
2117         * toplev.c (flag_volatile): Remove definition.
2118         (flag_volatile_global, flag_volatile_static): Likewise.
2119         (f_options): Remove corresponding entries here.
2120         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
2121         or flag_volatile_static.
2122         * doc/invoke.texi: Remove documentation of -fvolatile,
2123         -fvolatile-global and -fvolatile-static.
2124
2125 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2126
2127         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
2128         updating of total_code_bytes from prologue to epilogue.
2129
2130 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
2131
2132         * reload.c (find_reloads): Do not use the mode specified in the insn
2133         pattern as reload mode for address operands.  Do not generate optional
2134         reloads for operands where a mandatory reload was already pushed.
2135         Generate optional reloads only in the final pass though find_reloads.
2136         (have_replacement_p): New function.
2137
2138 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2139
2140         * doc/install.texi (Testing): Remove a reference to our obsolete
2141         /testresults web pages and strip redundant information concerning
2142         test results.
2143         (Binaries): Refer to Microsoft Windows instead of listing all
2144         possible variants.
2145
2146 Sat Feb  1 00:28:30 CET 2003  Jan Hubicka  <jh@suse.cz>
2147
2148         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
2149         RTL chain.
2150
2151         * combine.c (simplify_set): Reverse order of ragumetns to
2152         REG_CANNOT_CHANGE_MODE_P
2153         * df.c (df_def_record_1): Likewise.
2154         * recog.c (register_operand): Likewise.
2155         * simplify-rtx.c (simplify_subreg): Likewise.
2156         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
2157         CANNOT_CHANGE_MODE_CLASS.
2158         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
2159         Likewise.
2160         * reload.c (push_reload): Likewise.
2161         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
2162         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
2163         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
2164         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
2165         * mips.c (mips_cannot_change_mode_class): Update.
2166         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
2167         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
2168         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
2169         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
2170         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
2171         * sh.c (sh_cannot_change_mode_class): Update.
2172         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
2173         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
2174
2175 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
2176
2177         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
2178         change to LINK_COMMAND_SPEC in gcc.c.
2179
2180 2003-01-31  Jan Hubicka  <jh@suse.cz>
2181
2182         PR c/9506
2183         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
2184
2185 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2186
2187         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
2188         duplicated code.
2189
2190 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
2191
2192         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
2193         (BINFO_ELTS): New #define.
2194         * stor-layout.c (finalize_record_size): Don't set them.
2195         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
2196         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
2197         (BINFO_LANG_ELTS): New #define.
2198         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
2199         * java/class.c (make_class): Use BINFO_ELTS.
2200         (set_super_info): Likewse.
2201         (add_interface_do): Likewise.
2202         * objc/objc-act.c (start_class): Use BINFO_ELTS.
2203
2204 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
2205
2206         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
2207         (times): Don't ever declare if not HAVE_TIMES.
2208         (clock): Don't ever declare if not HAVE_CLOCK.
2209
2210 2003-01-30  Richard Henderson  <rth@redhat.com>
2211
2212         * flow.c (update_life_info): Zap life info after cleanup_cfg.
2213         (regno_uninitialized): Use correct live at function entry set.
2214         (regno_clobbered_at_setjmp): Likewise.
2215
2216         * expr.c (store_expr): Promote all MEM intermediates to regs.
2217
2218 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
2219
2220         * config/arm/arm.c: Fix comment typos.
2221         * config/arm/arm.h: Likewise.
2222         * config/arm/netbsd-elf.h: Likewise.
2223         * config/arm/netbsd.h: Likewise.
2224
2225 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
2226
2227         * gengtype.c (struct walk_type_data): Add needs_cast_p.
2228         (walk_type): Set needs_cast_p in walk_type_data.
2229         (write_types_process_field): Supply casts when required to suppress
2230         warnings.
2231         (write_root): Cast gt_pch_n_S to suppress warning.
2232         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
2233         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
2234         when they might exist.
2235         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
2236         insn-conditions.o, and rs6000.o.
2237
2238 2003-01-30  Richard Henderson  <rth@redhat.com>
2239
2240         * ggc-page.c (G.context_depth_allocations): New.
2241         (G.context_depth_collections): New.
2242         (alloc_page): Set G.context_depth_allocations.
2243         (ggc_collect): Set G.context_depth_collections.
2244         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
2245         (ggc_pop_context): Early exit for no allocations or collections.
2246
2247 2003-01-30  Richard Henderson  <rth@redhat.com>
2248
2249         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
2250
2251 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
2252
2253         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
2254         size, the link register is always saved if any other register is
2255         saved.
2256
2257 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
2258
2259         * config/h8300/h8300-protos.h: Update the prototype for
2260         compute_plussi_cc.
2261         (cpp_reader): Declare before it is used.
2262         * config/h8300/h8300.c (compute_plussi_cc): Change the return
2263         type to int.
2264         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
2265         see an unknown H8 variant.
2266
2267 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
2268
2269         PR target/9316
2270         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
2271         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
2272         * config/rs6000/t-rtems: New file. multilib variants to match OS.
2273         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
2274         rs6000/t-ppcgas so we get the desired multilibs.
2275
2276 2003-01-30  Nick Clifton  <nickc@redhat.com>
2277
2278         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
2279         when popping saved IP register off the stack.
2280
2281 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
2282
2283         * config/rs6000/aix43.h: Fix comment typos.
2284         * config/rs6000/aix51.h: Likewise.
2285         * config/rs6000/aix52.h: Likewise.
2286         * config/rs6000/altivec.h: Likewise.
2287         * config/rs6000/rs6000.c: Likewise.
2288         * config/rs6000/rs6000.h: Likewise.
2289         * config/rs6000/rs6000.md: Likewise.
2290         * config/rs6000/spe.md: Likewise.
2291
2292 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
2293
2294         * c-common.c (builtin_define_float_constants): Define
2295         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
2296
2297 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
2298
2299         * config/sh/lib1funcs.asm: Fix comment typos.
2300         * config/sh/linux.h: Likewise.
2301         * config/sh/sh.c: Likewise.
2302         * config/sh/sh.md: Likewise.
2303
2304 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
2305
2306         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
2307
2308 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
2309
2310         * config/fp-bit.h (__make_dp): Declare if TMODES.
2311
2312 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
2313
2314         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
2315         general_operand_src and general_operand_dst.
2316
2317 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
2318
2319         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
2320         Return true for variable sized types.
2321         (rs6000_va_arg): Handle variable sized types passed by reference
2322         on non-SVR4 ABI.
2323
2324 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
2325
2326         * arm.c (arm_legtimize_address): New function.
2327         * arm-protos.h (arm_legtimize_address): Add prototype.
2328         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
2329         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
2330         do ... while (0)
2331
2332 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
2333
2334         PR bootstrap/9296
2335         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
2336         depended on it being defined until now.
2337
2338 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
2339
2340         PR target/9295
2341         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
2342         RTEMS code knows which C++ initialization style the toolset
2343         configuration is using.
2344
2345 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
2346
2347         PR bootstrap/9293
2348         * config/m68k/t-crtstuff: Replace spaces with tabs, add
2349          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
2350
2351 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
2352
2353         PR bootstrap/9292
2354         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
2355         RTEMS threads.
2356         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
2357
2358 2003-01-29  Nick Clifton  <nickc@redhat.com>
2359
2360         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
2361         not $(srcdir).
2362
2363 2003-01-29  Andrew Haley  <aph@redhat.com>
2364
2365         * tree-inline.c (walk_tree): Add CHAR_TYPE.
2366
2367 Wed Jan 29 10:26:12 CET 2003  Jan Hubicka  <jh@suse.cz>
2368
2369         * i386.md (subdi3_carry_rex64): Fix typo.
2370
2371 2003-01-28  Stan Shebs  <shebs@apple.com>
2372
2373         * coretypes.h (cpp_reader): Forward declare struct.
2374         * c-pragma.h (cpp_reader): Remove forward declaration.
2375         * hashtable.h (cpp_reader): Likewise.
2376         * scan.h (cpp_reader): Likewise.
2377         * tree.h (cpp_reader): Likewise.
2378         * config/darwin-protos.h (cpp_reader): Likewise.
2379         * config/arm/arm-protos.h (cpp_reader): Likewise.
2380         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
2381         struct cpp_reader in prototypes.
2382
2383 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
2384
2385         * doc/install.texi: Add documentation for installation into
2386         tooldirs and with DESTDIR.
2387
2388 2003-01-28  Richard Henderson  <rth@redhat.com>
2389
2390         * config.gcc (ia64*-*-aix*): Remove.
2391         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
2392         * config/ia64/unwind-aix.c: Remove file.
2393
2394 2003-01-28  Andreas Schwab  <schwab@suse.de>
2395
2396         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
2397         register.
2398         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
2399         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
2400         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
2401         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
2402         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
2403         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
2404         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
2405
2406 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
2407
2408         * combine.c (nonzero_bits): Fix check for negative divide operands.
2409
2410 2003-01-28  Richard Henderson  <rth@redhat.com>
2411
2412         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
2413         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
2414
2415 2003-01-28  Richard Henderson  <rth@redhat.com>
2416
2417         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
2418
2419         * config/cris/cris.c (cris_address_cost): Make static.
2420         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
2421         * config/cris/cris.h (ADDRESS_COST): Remove.
2422         * config/cris/cris-protos.h: Update.
2423
2424 2003-01-23  Mike Stump  <mrs@apple.com>
2425
2426         * regclass.c (init_reg_autoinc): New function.
2427         (regclass): Move initialization of forbidden_inc_dec_class from
2428         here...
2429         (init_regs): to here.  Avoids reinitialization for each function,
2430         saving compilation time.
2431
2432 2003-01-28  Jason Merrill  <jason@redhat.com>
2433
2434         * cpplib.h (struct cpp_options): Add warn_deprecated field.
2435         * cppinit.c (cpp_create_reader): Turn it on by default.
2436         * c-opts.c (c_common_decode_option): Set it.
2437         * cpplib.c (do_pragma_once): Only complain about #pragma once
2438         if warn_deprecated is set.
2439
2440 2003-01-28  Dale Johannesen  <dalej@apple.com>
2441
2442         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
2443         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
2444         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
2445
2446 2003-01-28  Richard Henderson  <rth@redhat.com>
2447
2448         * target.h (targetm.address_cost): New.
2449         * target-def.h (TARGET_ADDRESS_COST): New.
2450         (TARGET_RTX_COSTS): Uncomment.  Oops.
2451         * cse.c (address_cost): Use new target hook.
2452         (default_address_cost): New.
2453         * output.h (default_address_cost): Declare.
2454         * hooks.c (hook_int_rtx_0): New.
2455         * hooks.h (hook_int_rtx_0): Declare.
2456         * loop.c (combine_givs_p): Remove if 0 code.
2457         * system.h (ADDRESS_COST): Poison.
2458
2459         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
2460         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
2461         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
2462         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
2463         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
2464         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
2465         config/xtensa/xtensa.c, config/xtensa/xtensa.h
2466         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
2467         (ADDRESS_COST): Remove.
2468
2469         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
2470         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
2471         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
2472         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
2473         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
2474         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
2475         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
2476         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
2477         config/mips/mips.c, config/mips/mips.h,
2478         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
2479         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
2480         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
2481         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
2482         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
2483         config/vax/vax.c, config/vax/vax.h
2484         (foo_address_cost): Make static.
2485         (TARGET_ADDRESS_COST): New.
2486         (ADDRESS_COST): Remove.
2487
2488         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
2489         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
2490         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
2491         config/stormy16/stormy16.h
2492         (ADDRESS_COST): Move code ...
2493         (foo_address_cost): ... here.
2494         (TARGET_ADDRESS_COST): New.
2495
2496         * config/m32r/m32r.c (m32r_address_cost): Remove.
2497         * config/m32r/m32r-protos.h: Update.
2498
2499         * config/mmix/mmix.c (mmix_address_cost): Remove.
2500         * config/mmix/mmix-protos.h: Update.
2501
2502         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
2503         mn10300_address_cost; move unsig allocation ...
2504         (mn10300_address_cost): ... here.
2505         (TARGET_ADDRESS_COST): New.
2506         * config/mn10300/mn10300-protos.h: Update.
2507         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
2508
2509         * doc/tm.texi: Update.
2510
2511 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
2512
2513         * haifa-sched.c (schedule_insn): Return necessary cycle advance
2514         after issuing the insn.
2515         (rank_for_schedule): Make a insn with /S the highest priority
2516         insn.
2517         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
2518         (choose_ready): Check SCHED_GROUP_P.
2519         (schedule_block): Advance cycle after issuing insn if it is
2520         necessary.  Don't reorder insns if there is an insn with /S.
2521         (set_priorities): Ignore schedule groups.
2522
2523         * sched-deps.c (remove_dependence, group_leader): Remove the
2524         functions.
2525         (add_dependence): Ignore schedule groups.
2526         (set_sched_group_p): Don't make copy of dependencies from previous
2527         insn of the schedule group.  Add anti-dependency to the previous
2528         insn of the schedule group.
2529         (compute_forward_dependences): Ignore schedule groups.
2530
2531         * sched-ebb.c (init_ready_list): Ignore schedule groups.
2532
2533         * sched-rgn.c (init_ready_list): Ditto.
2534         (can_schedule_ready_p): Ditto.
2535
2536 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
2537
2538         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
2539         register to another one.
2540
2541 2003-01-28  Richard Henderson  <rth@redhat.com>
2542
2543         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
2544
2545 2003-01-28  Roger Sayle  <roger@eyesopen.com>
2546
2547         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
2548
2549 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
2550
2551         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
2552         class contains a floating-point register, return the size of the
2553         mode in half words.
2554
2555 Tue Jan 28 12:15:13 CET 2003  Jan Hubicka  <jh@suse.cz>
2556
2557         * i386.c (ix86_carry_flag_operator):  New predicate.
2558         (fcmov_operator): Fix whitespace.
2559         (ix86_expand_carry_flag_compare):  Deal with floating point.
2560         (ix86_expand_int_movcc): Deal with fp; update insn expansion
2561         (ix86_expand_int_addcc): Likewise.
2562         (ix86_expand_strlensi_unroll_1): likewsie.
2563         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
2564         * i386.md (add?i_carry_rex64): Use new predicate.
2565         (sub?i3_carry_rex64): Likewise.
2566         (x86_mov?icc_0_m1*): Likewise.
2567
2568 2003-01-28  Andreas Schwab  <schwab@suse.de>
2569
2570         * cfgloopmanip.c (create_preheader): Initialize src to avoid
2571         warning.
2572
2573         * expmed.c (emit_store_flag): Fix cast to avoid sign
2574         comparison warning.
2575
2576         * combine.c (force_to_mode): Add cast to fix warning when
2577         STORE_FLAG_VALUE is negative.
2578
2579 2003-01-27  Richard Henderson  <rth@redhat.com>
2580
2581         * Makefile.in (cse.o): Depend on TARGET_H.
2582         * cse.c (rtx_cost): Use targetm.rtx_costs.
2583         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
2584         * doc/tm.texi: Update.
2585
2586         * target.h (targetm.rtx_costs): New.
2587         * target-def.h (TARGET_RTX_COSTS): New.
2588         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
2589         * hooks.h: Update.
2590
2591         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
2592         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
2593         * config/alpha/alpha.h (PROCESSOR_MAX): New.
2594         (CONST_COSTS, RTX_COSTS): Remove.
2595
2596         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
2597         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
2598         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
2599         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
2600         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2601         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
2602         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
2603         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
2604         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
2605         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
2606         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
2607         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
2608         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
2609         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
2610         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
2611         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
2612         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2613         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
2614         config/v850/v850.c, config/v850/v850.h,
2615         config/xtensa/xtensa.c, config/xtensa/xtensa.h
2616         (CONST_COSTS, RTX_COSTS): Move code ...
2617         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
2618
2619         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
2620         (arm_rtx_costs, TARGET_RTX_COSTS): New.
2621         * config/arm/arm-protos.h: Update.
2622         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
2623
2624         * config/avr/avr.h (CONST_COSTS): Move code ...
2625         * config/avr/avr.c (avr_rtx_costs): ... here.
2626         (default_rtx_costs): Make static.
2627         * config/avr/avr-protos.h: Update.
2628
2629         * config/h8300/h8300.c (const_costs): Make static.
2630         (h8300_and_costs, h8300_shift_costs): Likewise.
2631         * config/h8300/h8300-protos.h: Update.
2632
2633         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
2634         (CONST_COSTS): Move code ...
2635         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
2636         default_rtx_costs; update for signature change.
2637         * config/ip2k/ip2k-protos.h: Update.
2638
2639         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
2640         (CONST_COSTS): Move code ...
2641         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
2642         (TARGET_RTX_COSTS): New.
2643         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
2644         * config/m68hc11/m68hc11-protos.h: Update.
2645
2646         * config/m68k/m68k.c (const_int_cost): Make static.
2647         * config/m68k/m68k-protos.h: Update.
2648
2649         * config/mcore/mcore.c (mcore_const_costs): Make static.
2650         (mcore_and_cost, mcore_ior_cost): Likewise.
2651         * config/mcore/mcore-protos.h: Update.
2652
2653         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
2654         (mmix_rtx_cost_recalculated): Remove.
2655         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
2656         * config/mmix/mmix-protos.h: Update.
2657
2658         * config/sh/sh.c (shiftcosts): Make static.
2659         (addsubcosts, andcosts, multcosts): Likewise.
2660         * config/sh/sh-protos.h: Update.
2661
2662         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
2663         (sparc_rtx_costs): Make static; update for change in signature.
2664         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
2665         * config/sparc/sparc-protos.h: Update.
2666
2667         * config/v850/v850.c (const_costs): Make static.
2668         * config/v850/v850-protos.h: Update.
2669
2670         * config/vax/vax.h (RTX_COSTS): Remove.
2671         (CONST_COSTS): Move code ...
2672         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
2673         from vax_rtx_cost.
2674         (vax_rtx_costs, TARGET_RTX_COSTS): New.
2675
2676 2003-01-27  Richard Henderson  <rth@redhat.com>
2677
2678         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
2679         * config/vax/vax-protos.h: Update.  Really.
2680
2681 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
2682
2683         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
2684         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
2685         zero if no hardware floating point.
2686         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
2687         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
2688         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
2689         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
2690         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
2691         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
2692         even FP registers on N32 and N64.
2693         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
2694         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
2695         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
2696         even-register-like alignment to 128-bit arguments.
2697         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
2698         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
2699         on N32 or N64.
2700         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
2701         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
2702         (TPBIT): Set to tp-bit.c.
2703         (tp-bit.c): Create out of fp-bit.c.
2704
2705 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2706
2707         * c-parse.in: Remove '%expect 32' directive in objc mode.
2708
2709 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
2710
2711         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
2712         (LIBGCOV): New variable.
2713         (libgcc.mk): Add LIBGCOV.
2714         (LIBGCC_DEPS): Add libgcov.c.
2715         (libgcov.a): New target.
2716         (clean): Remove libgcov.a.
2717         (install-libgcc): Do libgcov too.
2718         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
2719         with libgcov.a.
2720         * libgcc2.c (L_gcov): Move into ...
2721         * libgcov.c: ... here. New file.
2722         * mklibgcc.in: Add libgcov rules.
2723         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
2724
2725         * doc/invoke.texi (profile-arcs, test-coverage): Update and
2726         clarify.
2727
2728         * profile.c (index_counts_file): Remove duplicate check for open file.
2729
2730 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
2731
2732         * gcc/doc/invoke.texi (Optimization Options): Group together
2733         optional and experimental flags.  Move trapv and bounds-check
2734         out of this section.  Group floating point flags together.
2735         (Code Gen Options): Move trapv and bounds-check to here.
2736
2737 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
2738
2739         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
2740
2741 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
2742
2743         PR optimization/9090
2744         * function.c (purge_addressof_1): After pushing an addressed register
2745         onto the stack, simplify the result.
2746
2747 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2748
2749         * doc/extend.texi: Fix typo.
2750
2751 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2752
2753         * doc/cppopts.texi: Fix typo.
2754         * doc/objc.texi: Likewise.
2755         * doc/passes.texi: Likewise.
2756
2757 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
2758
2759         * real.c (ibm_extended_format): Add 53 to minimum exponent.
2760         (encode_ibm_extended): Adjust.
2761
2762 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
2763
2764         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
2765         timevar_id enumerations.
2766
2767 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
2768
2769         * combine.c: Fix formatting.
2770
2771 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
2772
2773         * doc/gccint.texi: Update the copyright.
2774
2775 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
2776
2777         * doc/cpp.texi: Fix typos.
2778         * doc/extend.texi: Likewise.
2779         * doc/gty.texi: Likewise.
2780         * doc/install.texi: Likewise.
2781         * doc/passes.texi: Likewise.
2782         * doc/rtl.texi: Likewise.
2783         * doc/tm.texi: Likewise.
2784
2785 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
2786
2787         * config/ia64/fde-glibc.c: Fix comment typos.
2788         * config/ia64/hpux.h: Likewise.
2789         * config/ia64/ia64.c: Likewise.
2790         * config/ia64/ia64.h: Likewise.
2791         * config/ia64/unwind-ia64.c: Likewise.
2792
2793 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
2794
2795         * config/i386/i386-modes.def: Fix comment typos.
2796         * config/i386/i386.c: Likewise.
2797         * config/i386/i386.md: Likewise.
2798
2799 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2800
2801         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
2802         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
2803         ASM_FINISH_DECLARE_OBJECT before defining it.
2804         * toplev.c (rest_of_decl_compilation):  Don't define
2805         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
2806         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
2807         parameters for DWARF2 targets because they _are_ used.
2808
2809 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
2810
2811         * fp-bit.h: Define macros for TFmode floating-point constants
2812         in IBM-extended TFmode types.
2813         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
2814         widths.
2815         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
2816         TFmode type.
2817
2818         * config/fp-bit.h: Define macros for TFmode floating-point
2819         constants in IEEE quad TFmode type.  Declare functions according
2820         to L_ macros.
2821         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
2822         (TFtype, TItype, UTItype): Define if TMODES is defined.
2823         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
2824         (F_T_BITOFF, D_T_BITOFF): Define.
2825         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
2826         guaranteed to be wide enough.
2827         * config/fp-bit.c: Check for L_ macros for tf functions.
2828         (__thenan_tf): New.
2829         (nan): Adjust.
2830         (pack_d, unpack_d): Support IEEE 854 quad type.
2831         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
2832         from FRAC_NBITS, FRAC_BITS and NGARDS.
2833         (usi_to_float): Cast constants to be shifted to fractype
2834         instead of assuming long long is wide enough.
2835         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
2836
2837 2003-01-26  Andreas Jaeger  <aj@suse.de>
2838
2839         * df.c: Remove prototype of unused function df_regno_rtl_debug.
2840
2841 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
2842
2843         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
2844         (DBBIT_FUNCS): Added _df_to_tf.
2845         (TPBIT_FUNCS): New.
2846         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
2847         (LIBGCC_DEPS): Added TPBIT.
2848         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
2849
2850         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
2851         been able to move the result to target.
2852
2853         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
2854         for the appropriate mode.
2855
2856         * calls.c (emit_library_call_value_1): Handle return values
2857         in a PARALLEL.
2858
2859         * rtl.c (get_mode_alignment): Moved to...
2860         * stor-layout.c: ... here.
2861
2862         * print-rtl.c (print_rtx): Don't print MEM details in
2863         GENERATOR_FILEs.
2864
2865 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
2866
2867         * df.h: Update comments, tidy formatting.
2868         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
2869         REVERSE, UNION, INTERSECTION.  All uses updated.
2870         (OLD_DF_INTERFACE): Remove.
2871         (struct insn_info): Remove commented out insn field.
2872         * df.c: Update comments, tidy formatting.
2873         (df_def_table_realloc): Remove.
2874
2875
2876 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
2877
2878         * calls.c (save_fixed_argument_area): Tidy.
2879         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
2880         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
2881         call chain loop at 1 if !try_tail_call.  Formatting.
2882         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
2883         Use save_fixed_argument_area and restore_fixed_argument_area.
2884
2885 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
2886
2887         * df.c (df_uses_record): Handle CC0.
2888
2889 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
2890
2891         * reload.c (maybe_memory_address_p): New function.
2892         (find_reloads_address): Use it instead of memory_address_p.
2893
2894 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
2895
2896         * final.c (shorten_branches): Align the address of code label
2897         when computing initial lengths and addresses.
2898
2899 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
2900
2901         * config/m68hc11/m68hc11.md: Fix a comment typo.
2902
2903 2003-01-25  Andreas Jaeger  <aj@suse.de>
2904
2905         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
2906         TARGET_MACHO.
2907
2908 2003-01-25  Roger Sayle  <roger@eyesopen.com>
2909
2910         * gcse.c (bypass_last_basic_block): New global variable.
2911         (bypass_block):  Use redirect_edge_and_branch_force to redirect
2912         fall-through edges.  Use bypass_last_basic_block to determine
2913         which blocks have valid PRE information.
2914         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
2915
2916 Sat Jan 25 22:31:59 CET 2003  Jan Hubicka  <jh@suse.cz>
2917
2918         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
2919
2920 Sat Jan 25 21:04:33 CET 2003  Jan Hubicka  <jh@suse.cz>
2921                               Eric Botcazou <ebotcazou@libertysurf.fr>
2922         PR opt/8492
2923         * gcse.c (one_cprop_pass): Delete unreachable blocks.
2924
2925 2003-01-25  Richard Henderson  <rth@redhat.com>
2926
2927         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
2928         from ia64_aix_select_rtx_section.
2929         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
2930         instead of saving and restoring flag_pic.
2931         (ia64_rwreloc_unique_section): Similarly.
2932         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
2933         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
2934         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
2935         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
2936
2937 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
2938
2939         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
2940         comment.
2941
2942 2002-01-25  Richard Henderson  <rth@redhat.com>
2943
2944         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
2945
2946 2002-01-25  Kelley Cook <kelleycook@comcast.net>
2947
2948         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
2949
2950 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
2951
2952         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
2953         type for bitmaps.  Use unsigned long.
2954         (nBITMAP_WORD_BITS): New macro.
2955         (BITMAP_WORD_BITS): New macro.
2956         (rest of file): Use it.
2957         * bitmap.c: Use it.
2958
2959 2003-01-25  Richard Henderson  <rth@redhat.com>
2960
2961         2002-02-19  Robert Lipe  <robertlipe@usa.net>
2962         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
2963
2964 2002-01-25  Roger Sayle  <roger@eyesopen.com>
2965
2966         * builtins.c (purge_builtin_constant_p): Scan insn stream
2967         sequentially rather than by basic block.
2968         * function.c (purge_addressof): Simplify test with INSN_P.
2969
2970 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
2971
2972         * combine.c (simplify_comparison, case AND): Remove a redundant test.
2973
2974 2002-01-25  Roger Sayle  <roger@eyesopen.com>
2975
2976         * function.h (struct function): New field calls_constant_p.
2977         (current_function_calls_constant_p): New macro for above.
2978         * function.c (prepare_function_start): Initialize calls_eh_return
2979         and calls_constant_p.
2980         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
2981         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
2982         when the current_function_calls_constant_p.
2983         * integrate.c (expand_inline_function): Set calls_constant_p if
2984         the function being inlined has calls_constant_p set.
2985
2986 2002-01-25  Roger Sayle  <roger@eyesopen.com>
2987
2988         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
2989         optimizing, even if flag_gcse is true.
2990         * toplev.c (rest_of_compilation): purge_builtin_constant_p
2991         only needs to be called when "optimize > 0 && flag_gcse".
2992
2993 2003-01-25  Roger Sayle  <roger@eyesopen.com>
2994
2995         * stmt.c (emit_case_bit_tests): New routine to implement suitable
2996         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
2997         (case_bit_test_cmp): New comparison function for "qsort" to order
2998         case_bit_tests by decreasing number of destination nodes.
2999         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
3000         (expand_end_case_type): Use emit_case_bit_tests to implement
3001         suitable switch statments.
3002         (CASE_USE_BIT_TESTS): New target macro to disable the above.
3003         * Makefile.in (stmt.o): Add dependency on optab.h.
3004         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
3005
3006 2003-01-23  Andreas Schwab  <schwab@suse.de>
3007
3008         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
3009         __do_global_ctors_aux hidden global and don't put it in
3010         .init_array.
3011         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
3012         instead so that it comes first.
3013
3014 Sat Jan 25 16:11:22 CET 2003  Jan Hubicka  <jh@suse.cz>
3015
3016         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
3017         subreg is read/modify.
3018
3019 Sat Jan 25 15:55:08 CET 2003  Jan Hubicka  <jh@suse.cz>
3020
3021         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
3022         do libcall for large blocks.
3023         * i386.md (comi patterns): Set type to ssecomi.
3024         (sse2_unpck?pd): Fix mode of vec_select.
3025
3026         * cse.c: Include except.h
3027         (cse_set_around_loop):  Do not create new basic blocks.
3028         * Makefile.in (cse.o): Add dependnecy on except.h
3029
3030 Sat Jan 25 12:05:17 CET 2003  Jan Hubicka  <jh@suse.cz>
3031
3032         * builtins.c (fold_trunc_transparent_mathfn): New function.
3033         (fold_builtin): Use it.
3034         * convert.c (convert_to_real): Re-enable code to convert
3035         math functions; add support for floor familly functions.
3036
3037 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3038
3039         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
3040         dependencies on coretypes.h and $(TM_H).
3041
3042 Sat Jan 25 11:10:03 CET 2003  Jan Hubicka  <jh@suse.cz>
3043
3044         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
3045
3046 2002-01-24  Stuart Hastings  <stuart@apple.com>
3047
3048         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
3049
3050 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
3051
3052         * config/c4x/c4x.md (UNSPEC_BU): New constants.
3053         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
3054         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
3055         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
3056         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
3057         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
3058         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
3059         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
3060
3061 Fri Jan 24 23:44:12 CET 2003  Jan Hubicka  <jh@suse.cz>
3062
3063         * emit-rtl.c (reg_attrs_htab): New static variable.
3064         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
3065         functions.
3066         (reg_rtx): Do not maintain regno_decl.
3067         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
3068         set_mem_attrs_from_reg): New global function.
3069         (init_emit): Do not initialize regno_decl.
3070         (init_emit_once): initialize reg_attrs_htab.
3071         * final.c (alter_subreg): Do not replace REG by SUBREG.
3072         (gen_mem_expr_from_op): Improve output.
3073         (output_asm_operands): Likewise.
3074         * function.c (assign_params): Do not set REGNO_DECL.
3075         * function.h (struct function): Kill regno_decl.
3076         (REGNO_DECL): Kill.
3077         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
3078         * print_rtl.c (print_rtx): Output REG information.
3079         * regclass.c (reg_scan_mark_refs): Update attrs.
3080         * reload1.c (alter_reg): Likewise.
3081         * simplify_rtx.c (simplify_subreg): Likewise.
3082         * stmt.c (expand_decl): Likewise.
3083         * rtl.def (REG): Add new field.
3084         * rtl.h (struct reg_attrs): New.
3085         (rtunion_def): At rtreg.
3086         (X0MEMATTR): Add checking.
3087         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
3088         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
3089         Declare.
3090         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
3091
3092 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
3093
3094         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
3095         (xtensa_emit_call, print_operand): Fix printf format strings
3096         to avoid compile warnings.
3097         (xtensa_function_prologue, xtensa_function_epilogue): Change type
3098         of "size" argument to HOST_WIDE_INT to fix compile warnings.
3099         * config/xtensa/xtensa-protos.h
3100         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
3101
3102 Fri Jan 24 23:03:32 CET 2003  Jan Hubicka  <jh@suse.cz>
3103
3104         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
3105         (implicit_built_in_decls): New global array.
3106         (mathfn_built_in): New global function.
3107         (fold_trunc_transparent_mathfn): New static function
3108         (expand_builtin_strstr, expand_bultin_strchr,
3109         expand_builtin_strpbrk, expand_builtin_strcpy,
3110         expand_builtin_strncpy, expand_bultin_strcmp,
3111         expand_bultin_strncat, expand_builtin_fputs): Use
3112         implicint_built_in_decls.
3113         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
3114         * builtins.def: Fix comments.
3115         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
3116         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
3117         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
3118         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
3119         (DEF_C99_C90RES_BULTIN): New.
3120         (*f, *l builtins): Update.
3121         * c-common.c (DEF_BUILTIN): Initialize implicit array.
3122         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
3123         * convert.c (strip_float_extensions): New global function.
3124         * tree.h (DEF_BUILTIN): Accept 10 arguments.
3125         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
3126         Declare.
3127         * java/builtins.c (define_builtin): Handle implicit.
3128         (DEF_BUILTIN): Update.
3129         * tm.texi (TARGET_C99_FUNCTIONS): Document.
3130         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
3131         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
3132         when using glibc2.
3133
3134 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
3135
3136         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
3137         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
3138         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
3139         * config/xtensa/crti.asm: New file.
3140         * config/xtensa/crtn.asm: New file.
3141         * config/xtensa/t-elf: New file.
3142         * config/xtensa/t-linux: New file.
3143         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
3144         Move various CFLAGS settings to new t-elf file.
3145
3146 2003-01-24  Richard Henderson  <rth@redhat.com>
3147
3148         PR optimization/4382
3149         * tree-inline.c (find_builtin_longjmp_call_1): New.
3150         (find_builtin_longjmp_call): New.
3151         (inlinable_function_p): Use it.
3152
3153 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3154
3155         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
3156         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
3157         * config/i386/i386.c (function_arg_pass_by_reference): New.
3158         (ix86_va_arg): Support arguments passed by reference.
3159
3160 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3161
3162         * cfgloopanal.c: New file.
3163         * cfgloopmanip.c: New file.
3164         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
3165         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
3166         cfglayout.o): Add dependency on cfgloop.h.
3167         (cfgloop.o): Add flags.h dependency.
3168         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
3169         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
3170         (struct loop, struct loops, flow_loops_find, flow_loops_update,
3171         flow_loops_free, flow_loops_dump, flow_loop_dump,
3172         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
3173         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
3174         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
3175         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
3176         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
3177         find_common_loop, verify_loop_structure): Declarations moved to ...
3178         * cfgloop.h: New file.
3179         * bb-reorder.c (reorder_basic_blocks): Modified.
3180         * cfglayout.c: Include cfgloop.h.
3181         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
3182         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
3183         (break_superblocks): New static function.
3184         (cfg_layout_finalize): Use it.
3185         (cfg_layout_split_block): New function.
3186         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
3187         fields.
3188         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
3189         changed.
3190         (cfg_layout_split_block): Declare.
3191         * cfgloop.c: Include cfgloop.h and flags.h.
3192         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
3193         get_loop_body): Avoid signed versus unsigned comparison warnings.
3194         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
3195         loop_latch_edge): Modified.
3196         (verify_loop_structure): Modified to use flags stored in loop structure;
3197         check irreducible loops.
3198         (cancel_loop, cancel_loop_tree): New functions.
3199         (estimate_probability): Use loop analysis code for predictions.
3200         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
3201         warnings.
3202         * doloop.c: Include cfgloop.h.
3203         * loop.c: Include cfgloop.h.
3204         * predict.c: Include cfgloop.h.
3205         * toplev.c: Include cfgloop.h.
3206         * unroll.c: Include cfgloop.h.
3207         * tracer.c (tracer): Modified.
3208
3209 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
3210
3211         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
3212
3213 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
3214
3215         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
3216         * configure: Regenerate.
3217
3218         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
3219         (tls_symbolic_reference_mentioned_p): Add prototype.
3220         (s390_tls_get_offset): Add prototype.
3221         (emit_pic_move): Remove prototype, replace by ...
3222         (emit_symbolic_move): .. this new prototype.
3223
3224         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
3225         (tls_model_chars): New global variable.
3226         (s390_encode_section_info): Encode TLS model.
3227         Use targetm.binds_local_p to check for local symbols.
3228         (s390_strip_name_encoding): New function.
3229         (TARGET_STRIP_NAME_ENCODING): Define.
3230
3231         (get_thread_pointer): New function.
3232         (legitimize_tls_address): New function.
3233         (legitimize_address): Call it.
3234         (emit_pic_move): Remove, replace by ...
3235         (emit_symbolic_move): ... this new function.
3236
3237         (larl_operand): Handle TLS operands.
3238         (legitimate_constant_p): Likewise.
3239         (s390_decompose_address): Likewise.
3240         (s390_cannot_force_const_mem): New function.
3241         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3242
3243         (s390_output_symbolic_const): Handle TLS unspecs.
3244         (print_operand): New code 'J'.
3245         (machine_function): Add struct member 'some_ld_name'.
3246         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
3247
3248         (enum s390_builtin): New type.
3249         (code_for_builtin_64, code_for_builtin_31): New global variables.
3250         (s390_init_builtins, s390_expand_builtin): New functions.
3251         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3252
3253         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
3254         (ASM_OUTPUT_LABELREF): Define.
3255         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
3256
3257         * config/s390/s390.md: Define TLS UNSPEC constants.
3258         ("movdi", "movsi"): Handle TLS operands.
3259         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
3260         ("*tls_load_64", "*tls_load_31"): New insns.
3261         ("call_value_tls", "call_value_tls_exp"): New expanders.
3262         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
3263         "bas_tls_64", "bas_tls_31"): New insns.
3264
3265 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
3266
3267         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
3268         spe ABI is configured, if requested.
3269
3270 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3271
3272         * doc/passes.texi: Fix typo.
3273
3274 2003-01-24  Andreas Schwab  <schwab@suse.de>
3275
3276         * stor-layout.c (excess_unit_span): Only define if used.
3277
3278 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
3279
3280         * gcc/doc/invoke.texi (Optimization Options): List -O levels
3281         for each optimization flag.
3282
3283 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
3284
3285         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
3286
3287 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3288
3289         * doc/bugreport.texi: Use @command instead of @code for commands.
3290         * doc/collect2.texi: Likewise.
3291         * doc/headerdirs.texi: Likewise.
3292         * doc/invoke.texi: Likewise.
3293         * doc/standards.texi: Likewise.
3294         * doc/tm.texi: Likewise.
3295         * doc/trouble.texi: Likewise.
3296
3297 2003-01-24  Nick Clifton  <nickc@redhat.com>
3298
3299         * config/arm/arm.c (use_return_insn): Do not use a single return
3300         instruction for interrupt handelrs which have to create a stack
3301         frame.
3302         (arm_expand_prologue): Do not pre-bias the return address of
3303         interrupt handlers which create a stack frame.
3304
3305 2003-01-24  Nick Clifton  <nickc@redhat.com>
3306
3307         * Add sh2e support:
3308
3309         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
3310
3311                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
3312                 med_cbranches.  Fix logic in short_cbranches.
3313
3314         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
3315
3316                 * config/sh/sh.md (delay for cbranch): Don't annul delay
3317                 slots on SH2e.
3318                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
3319                 cbranch with unfilled delay slot on SH2e.
3320                 (output_branch): Fill with a nop the delay slot of a
3321                 branch that required a delay slot but didn't get one.
3322
3323         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
3324
3325                 * doc/invoke.texi (SH options): Document -m2e.
3326                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
3327                 * config/sh/lib1funcs.asm: Likewise.
3328                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
3329                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
3330                 not __sh1__.
3331                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
3332                 SH2E up.
3333                 (SH3E_BIT): Renamed to...
3334                 (SH_E_BIT): ... this.  Replace all uses.
3335                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
3336                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
3337                 (TARGET_SWITCHES): Added 2e.
3338                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
3339                 (processor_type): Added PROCESSOR_SH2E.
3340                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
3341                 TARGET_SH2E, except in sqrtsf2_i.
3342                 (attribute cpu): Added sh2e.
3343                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
3344                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
3345                 * config.gcc: Add sh2e target support.
3346
3347 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
3348
3349         Rename -W to -Wextra.
3350         * c-decl.c:  Update comments.
3351         * c-typeck.c:  Likewise.
3352         * flags.h:  Likewise.
3353         * function.c:  Likewise.
3354         * stmt.c:  Likewise.
3355         * toplev.c:  Update comments.
3356         (W_options):  Add 'extra'.
3357         (display_help):  Remove '-W'.
3358         (decode_W_option):  Special warn_uninitialized treatment in the case
3359         of -Wextra.
3360         * doc/invoke.texi:  Update with new entries.
3361
3362 2003-01-23  Richard Henderson  <rth@redhat.com>
3363
3364         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
3365         in no-else-block case.  Add commentary.
3366
3367 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3368
3369         * configure.in: Revert last change.
3370
3371 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3372
3373         * configure.in: Don't include ansidecl.h in tconfig.h.
3374         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
3375         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
3376         ATTRIBUTE_UNUSED.
3377
3378         * configure: Regenerate.
3379
3380 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3381
3382         PR java/6748
3383         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
3384         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
3385         kernels.
3386
3387 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3388
3389         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
3390
3391 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
3392
3393         * genattrtab.c (write_attr_get): Mark 'insn' paramter
3394         as ATTRIBUTE_UNUSED.
3395
3396 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
3397
3398         * arm.c (thumb_base_register_rtx_p): New function.
3399         (thumb_index_register_rtx_p): New function.
3400         (thumb_legitimate_address_p): New function.
3401         (thumb_legitimate_offset_p): New function.
3402         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
3403         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
3404         definitions.
3405         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
3406         (THUMB_LEGITIMATE_OFFSET): Delte.
3407         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
3408         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
3409         (thumb_legitimate_offset_p): Likewise.
3410
3411 2003-01-23  Andreas Schwab  <schwab@suse.de>
3412
3413         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
3414
3415 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3416
3417         * fixinc/Makefile.in (FL_LIST): Revert last change.
3418
3419 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3420
3421         PR other/7341
3422         * invoke.texi (ftest-coverage): Fix broken cross-reference.
3423         Change @code to @command for gcov command.
3424
3425         * gcc.texi: Adjust title of gcov section.
3426         Adjust copyright.
3427         * gcov.texi: Likewise.
3428
3429 2003-01-22  Roger Sayle  <roger@eyesopen.com>
3430
3431         PR optimization/8423
3432         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
3433         its argument is constant, or 0 if !flag_gcse.
3434         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
3435         if it's argument is constant.
3436         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
3437         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
3438         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
3439         * builtins.c (purge_builtin_constant_p): New function to force
3440         instantiation of any remaining CONSTANT_P_RTX nodes.
3441         * rtl.h (purge_builtin_constant_p): Prototype here.
3442         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
3443         pass after GCSE and before loop.
3444         (flag_gcse): No longer static.
3445         * flags.h (flag_gcse): Prototype here.
3446
3447 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
3448
3449         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
3450         introduced by last change.
3451
3452 2003-01-22  Andreas Schwab  <schwab@suse.de>
3453
3454         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
3455
3456 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
3457
3458         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
3459         request a scratch reg on H8S when the shift count is 8.
3460
3461 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
3462
3463         * config/s390/s390-protos.h (preferred_la_operand_p):
3464         Remove second parameter.
3465         * config/s390/s390.c (preferred_la_operand_p): Likewise.
3466         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
3467         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
3468         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
3469         Add peepholes to transform ADD to LOAD ADDRESS.
3470
3471 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
3472
3473         * arm.c (arm_address_register_rtx_p): New function.
3474         (arm_legitimate_address_p): New function.
3475         (arm_legitimate_index_p): New function.
3476         (legitimize_pic_address): Use arm_legitimate_index_p.
3477         * arm-protos.h (arm_legtimate_address_p): Add prototype.
3478         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
3479         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
3480
3481 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
3482
3483         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
3484         * config/s390/2064.md (define_bypass): Correct 'Load' and
3485         'Load-address' bypass values.
3486
3487 2003-01-22  Andreas Schwab  <schwab@suse.de>
3488
3489         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
3490
3491 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
3492
3493         * genautomata.c (output_internal_insn_latency_func,
3494         output_print_reservation_func): Short circuit when there is no
3495         automaton to generate code for.
3496
3497 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3498
3499         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
3500         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
3501
3502 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
3503
3504         * config/rs6000/rs6000.md: Remove warning.
3505         (builtin_setjmp_receiver): Likewise.
3506         * config/darwin.c (update_stubs): Slightly improve terrible hack
3507         with identifiers.  Add comment pointing out problems with it.
3508         (update_non_lazy_ptrs): Likewise.
3509
3510 2003-01-21  Richard Henderson  <rth@redhat.com>
3511
3512         * dwarf2out.c (lookup_filename): Fix printf format warning.
3513         * system.h (fread_unlocked, fwrite_unlocked): Undef.
3514
3515         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
3516         (fixincl.o-warn, gnu-regex.o-warn): New.
3517         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
3518         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
3519         * fixinc/fixincl.c (process): Fix printf format warning.
3520
3521 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
3522
3523         * dwarf2out (output_file_names): Don't crash if called
3524         with empty file_table.
3525
3526 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
3527
3528         * genautomata.c (output_internal_insn_latency_func): Add
3529         missing break statement to generated code.
3530
3531 2003-01-21  Roger Sayle  <roger@eyesopen.com>
3532
3533         * stmt.c (same_case_target_p): New function to determine whether
3534         two case labels branch to the same target.  Split out from...
3535         (group_case_nodes): ... here.  Use same_case_target_p instead.
3536         (strip_default_case_nodes): Remove explicit case nodes
3537         that branch to the default destination.
3538         (expand_end_case_type): Call strip_default_case_nodes after
3539         group_case_nodes, to simplify the case-list before we count it.
3540         Only generate table_label RTX when actually needed.  Try to share
3541         thiscase->exit_label and thiscase->data.case_stmt.default_label
3542         when a switch has no explicit default case.  Simplify test for
3543         constant index.
3544
3545 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
3546
3547         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
3548         \t.
3549         (*negsf2_h8300hs): Likewise.
3550         (*addsi3_lshiftrt_16_zexthi): Likewise.
3551         (*iorhi3_lshiftrt_8): Likewise.
3552
3553 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
3554
3555         * dwarf2out.c (fde_table_in_use): Mark GTY.
3556         (dwarf2out_cfi_label_num): New variable, marked GTY.
3557         (dwarf2out_cfi_label): Use it instead of static label_num.
3558         * emit-rtl.c (label_num): Mark GTY.
3559
3560 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
3561
3562         * config/h8300/h8300.c (output_plussi): Support H8/300.
3563         (compute_plussi_length): Likewise.
3564         (compute_plussi_cc): Likewise.
3565         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
3566         output assembly instructions.
3567
3568 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3569
3570         * calls.c (fix_unsafe_tree): Prototype.
3571
3572         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
3573         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
3574         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
3575         c-parse.o-warn): Add -Wno-error.
3576         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
3577
3578         * configure.in (--enable-werror): Add new flag.
3579         * doc/install.texi (--enable-werror): Document.
3580         * configure: Regenerate.
3581
3582         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
3583
3584 2003-01-21  Andreas Schwab  <schwab@suse.de>
3585
3586         * genautomata.c (output_internal_insn_latency_func): Fix missing
3587         close paren in output.
3588
3589 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
3590
3591         * genautomata.c: Space savings in generated code:
3592         (output_dfa_insn_code_func): Split out the table-enlargement
3593         path to an out-of-line static function, dfa_insn_code_enlarge.
3594         (output_internal_insn_latency_func): Use a lookup table for the
3595         default latencies.
3596         (output_print_reservation_func): Use a lookup table for the
3597         strings.
3598
3599 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
3600
3601         PR opt/7507
3602         * calls.c (fix_unsafe_tree): Split out from ...
3603         (expand_call): ... here.  Use it on the function address too.
3604
3605 2003-01-20  Richard Henderson  <rth@redhat.com>
3606
3607         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
3608
3609 2003-01-20  Richard Henderson  <rth@redhat.com>
3610
3611         PR opt/7154
3612         * stmt.c (expand_asm_operands): Validize memory operands.
3613
3614 2003-01-20  Richard Henderson  <rth@redhat.com>
3615
3616         PR opt/8848
3617         * ifcvt.c (noce_process_if_block): Correct arguments to
3618         modified_between_p for no-else-block case.
3619
3620 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
3621
3622         * config/h8300/h8300.c (const_costs): Remove a warning.
3623         (output_plussi): Likewise.
3624         (compute_plussi_length): Likewise.
3625         (compute_plussi_cc): Likewise.
3626
3627 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
3628
3629         * config/h8300/h8300.md (addsi_h8300): Remove the last
3630         alternative.
3631
3632 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
3633
3634         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
3635
3636 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3637
3638         * system.h (__NO_STRING_INLINES): Define.
3639
3640 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3641
3642         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
3643         is not a scalar int mode.
3644
3645 2003-01-20  Roger Sayle  <roger@eyesopen.com>
3646
3647         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
3648         insn's notes following a substitution inside a libcall.
3649
3650 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
3651
3652         * configure.in: Check for system-provided 'uchar' type.
3653         * configure, config.in: Regenerate.
3654         * cpphash.h: Only typedef 'uchar' if the system doesn't.
3655
3656 2003-01-20  Richard Henderson  <rth@redhat.com>
3657
3658         * expr.h (MUST_PASS_IN_STACK): Move implementation...
3659         * calls.c (default_must_pass_in_stack): ... here.
3660
3661 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
3662
3663         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
3664
3665         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
3666
3667         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
3668         Wrap up definition of `insn_alts'.
3669
3670         * genattrtab.c (main): Wrap up `insn_alts'.
3671
3672 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3673
3674         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
3675         prototyping.
3676         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
3677
3678         * config.in, configure: Regenerate.
3679
3680 2003-01-20  Nick Clifton  <nickc@redhat.com>
3681
3682         * config/arm/arm.md (sibcall_epilogue): Add an
3683         UNSPEC_PROLOGUE_USE to prevent the link register from being
3684         considered dead.
3685
3686 Mon Jan 20 14:36:23 CET 2003  Jan Hubicka  <jh@suse.cz>
3687
3688         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
3689
3690 2003-01-20  Andreas Schwab  <schwab@suse.de>
3691
3692         * system.h: Don't declare strsignal if the decl test hasn't been
3693         run yet.
3694
3695 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
3696
3697         * config/h8300/h8300.c (notice_update_cc): Don't assume that
3698         recog_data.operands[0] is always associated with cc0.
3699
3700 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
3701
3702         * collect2.c (ldgetname): Expand declaration to prototype.
3703         * read-rtl.c (atoll): Add prototype.
3704         * system.h (strsignal): Also declare if no declaration found.
3705
3706 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
3707
3708         * config.gcc (mips64*-*-linux*): Added.
3709         * config/mips/linux64.h, config/mips/t-linux64: New file.
3710         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
3711         * config/mips/mips.c (override_options): Use it.
3712         * config/mips/mips.h (TARGET_SWITCHES): Added...
3713         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
3714         * Makefile.in (SPECS): New.
3715         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
3716         * gcc.c (process_command): Move self-spec processing past spec
3717         file loading.
3718         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
3719         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
3720         CRTSTUFF_T_CFLAGS.
3721         (SPECS): Document.
3722         * doc/invoke.texi (-mabi-fake-default): Document.
3723
3724 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
3725
3726         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
3727         z_reg, z_reg_qi): Declare static and GTY().
3728         (da_reg): Remove.
3729         (create_regs_rtx): Don't create da_reg.
3730         ("gt-m68hc11.h"): Include for GTY roots.
3731         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
3732         and GTY() here.
3733         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
3734         (m68hc11_soft_tmp_reg): Likewise.
3735         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
3736
3737 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
3738
3739         * basic-block.h: Fix comment formatting.
3740         * calls.c: Likewise.
3741         * combine.c: Likewise.
3742         * convert.c: Likewise.
3743         * gcov.c: Likewise.
3744         * haifa-sched.c: Likewise.
3745         * libgcc2.c: Likewise.
3746         * loop.c: Likewise.
3747         * profile.c: Likewise.
3748         * system.h: Likewise.
3749
3750 2003-01-18  Roger Sayle  <roger@eyesopen.com>
3751
3752         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
3753
3754 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3755
3756         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
3757
3758 2003-01-17  Dale Johannesen  <dalej@apple.com>
3759
3760         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
3761           (*floatunssidf2_internal):  Ditto.
3762
3763 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
3764
3765         * alias.c: Fix comment typos.
3766         * basic-block.h: Likewise.
3767         * c-common.c: Likewise.
3768         * c-common.h: Likewise.
3769         * c-decl.c: Likewise.
3770         * c-opts.c: Likewise.
3771         * c-pragma.c: Likewise.
3772         * c-pretty-print.h: Likewise.
3773         * cfg.c: Likewise.
3774         * cfganal.c: Likewise.
3775         * cfgbuild.c: Likewise.
3776         * cfgcleanup.c: Likewise.
3777         * cfglayout.c: Likewise.
3778         * cfgrtl.c: Likewise.
3779         * convert.c: Likewise.
3780         * cpphash.h: Likewise.
3781         * cpplex.c: Likewise.
3782         * cpplib.h: Likewise.
3783         * df.h: Likewise.
3784         * diagnostic.c: Likewise.
3785         * diagnostic.h: Likewise.
3786         * dwarf2.h: Likewise.
3787
3788 2003-01-17  Stan Shebs  <shebs@apple.com>
3789
3790         * config/darwin-protos.h: Forward-declare struct cpp_reader.
3791
3792 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
3793
3794         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
3795         mistake in last checkin.
3796
3797 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
3798
3799         * et-forest.c: Fix comment typos.
3800         * et-forest.h: Likewise.
3801         * except.c: Likewise.
3802         * expr.c: Likewise.
3803         * flags.h: Likewise.
3804         * flow.c: Likewise.
3805         * gcc.c: Likewise.
3806         * gcse.c: Likewise.
3807         * genattrtab.c: Likewise.
3808         * genautomata.c: Likewise.
3809         * gengtype.c: Likewise.
3810         * genrecog.c: Likewise.
3811         * global.c: Likewise.
3812         * gthr-rtems.h: Likewise.
3813
3814 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3815
3816         * i386.c (x86_function_profiler): Fix format specifier.
3817
3818 2003-01-17  Richard Henderson  <rth@redhat.com>
3819
3820         * gengtype.c (walk_type): Allow paramN_is.
3821
3822 2003-01-17  Nick Clifton  <nickc@redhat.com>
3823
3824         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
3825
3826 2003-01-16  Richard Henderson  <rth@redhat.com>
3827
3828         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
3829
3830 2003-01-16  Richard Henderson  <rth@redhat.com>
3831
3832         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
3833         (alpha_next_sequence_number): Likewise.
3834         (alpha_this_literal_sequence_number): Likewise.
3835         (alpha_this_gpdisp_sequence_number): Likewise.
3836         (struct alpha_funcs, alpha_funcs_num): Likewise.
3837         (struct alpha_links): Fix branch merge error.
3838         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
3839
3840 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
3841
3842         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
3843         R. Ghazi.
3844
3845 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
3846
3847         * ifcvt.c: Fix comment typos.
3848         * lcm.c: Likewise.
3849         * libgcc2.c: Likewise.
3850         * local-alloc.c: Likewise.
3851         * loop.c: Likewise.
3852         * predict.c: Likewise.
3853         * ra-build.c: Likewise.
3854         * ra.c: Likewise.
3855         * ra-colorize.c: Likewise.
3856         * ra.h: Likewise.
3857         * ra-rewrite.c: Likewise.
3858         * regmove.c: Likewise.
3859         * reload.h: Likewise.
3860         * rtlanal.c: Likewise.
3861         * toplev.c: Likewise.
3862         * tree.h: Likewise.
3863         * unwind-dw2-fde-glibc.c: Likewise.
3864         * vmsdbgout.c: Likewise.
3865
3866 2003-01-16  Richard Henderson  <rth@redhat.com>
3867
3868         * dwarf2out.c (struct file_table): Remove.
3869         (FILE_TABLE_INCREMENT): Remove.
3870         (file_table): Make a varray; mark for GC.  Update all users.
3871         (file_table_last_lookup_index): Extract from struct file_table.
3872         (output_file_names): Fix unsigned compare warnings.
3873         (add_name_attribute): Remove inline marker.
3874         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
3875         (lookup_filename): Don't manage size of file_table.
3876         (init_file_table): Allocate file_table with GC.
3877         (dwarf2out_init): Don't record main_input_filename here.
3878         (dwarf2out_finish): Do it here instead.
3879
3880 2003-01-16  Bruce Korb  <bkorb@gnu.org>
3881
3882         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
3883
3884 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
3885
3886         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
3887         instead of rotldi3_mextr.
3888
3889 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
3890
3891         * haifa-sched.c (move_insn): Restore moving all schedule group.
3892         (set_priorities): Restore taking SCHED_GROUP_P into account.
3893
3894         * sched-deps.c (add_dependence): Restore processing the last group
3895         insn.
3896         (remove_dependence, group_leader): Restore the functions.
3897         (set_sched_group_p): Restore adding dependencies from previous insn
3898         in the group.
3899         (compute_forward_dependences): Restore usage of group_leader.
3900
3901         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
3902         account.
3903
3904         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
3905         account.
3906         (can_schedule_ready_p): Ditto.
3907         (add_branch_dependences): Restore skipping over the group insns.
3908
3909 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
3910
3911         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
3912         68HC12 pre/post inc/dec side effects.
3913
3914 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
3915
3916         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
3917
3918 Thu Jan 16 21:50:25 2003  J"orn Rennecke <amylaar@onetel.net.uk>
3919
3920         * sh.md (mshflo_w_x): Fix description of operation.
3921
3922 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
3923
3924         * config/rs6000/rs6000.h: Mention Altivec registers in
3925         commentary.  Fix typo.
3926
3927 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
3928
3929         * config/rs6000/rs6000.md (movti_string): Remove clobber.
3930         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
3931         generate PARALLEL with clobber for TARGET_POWER.
3932
3933 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3934
3935         * ra-colorize.c (colorize_one_web): Initialize variable.
3936         * regmove.c (fixup_match_1): Likewise.
3937         * reload1.c (reload_as_needed): Likewise.
3938         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
3939
3940 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3941
3942         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
3943
3944 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3945
3946         * dbxout.c (lastfile, cwd): Fix `unused' warning.
3947         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
3948         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
3949         is_main_source, file_table, decl_die_table_in_use,
3950         abbrev_die_table_in_use, line_info_table_in_use,
3951         separate_line_info_table_in_use, pubname_table_in_use,
3952         arange_table_in_use, ranges_table_in_use,
3953         current_function_has_inlines): Likewise.
3954         * flow.c (life_analysis): Likewise.
3955         * genemit.c (gen_insn): Likewise.
3956         * protoize.c (cplus_suffix): Likewise.
3957
3958         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
3959         * arm.h (ROUND_UP_WORD): Likewise.
3960
3961         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
3962         warning.
3963         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
3964         init_emit_once): Likewise.
3965         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
3966         Likewise.
3967         * function.c (assign_stack_temp_for_type): Likewise.
3968         * loop.c (loop_invariant_p): Likewise.
3969         * recog.c (push_operand): Likewise.
3970         * regclass.c (init_reg_sets_1): Likewise.
3971         * reload.c (update_auto_inc_notes): Likewise.
3972         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
3973         * stmt.c (expand_asm_operands): Likewise.
3974         * stor-layout.c (start_record_layout): Likewise.
3975
3976 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
3977
3978         * config/c4x/c4x.md (epilogue): Correct last patch.
3979
3980 2003-01-15  Richard Henderson  <rth@redhat.com>
3981
3982         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
3983         also check that GP is being used.
3984         (alpha_find_lo_sum_using_gp): New.
3985         (alpha_does_function_need_gp): Use get_attr_usegp.
3986         * config/alpha/alpha-protos.h: Update.
3987         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
3988         as needed.
3989
3990 2003-01-15  Roger Sayle  <roger@eyesopen.com>
3991
3992         * gcse.c (one_cprop_pass): Change function arguments to take both
3993         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
3994         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
3995         (bypass_jumps): New function to perform separate jump bypassing pass.
3996         * rtl.h (bypass_jumps): Add function prototype.
3997         * timevar.def (TV_BYPASS): New timing variable.
3998         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
3999         (dump_file): New entry for the bypass RTL dump file.
4000         (rest_of_compilation): Insert new jump bypassing optimization
4001         pass after loop.
4002         * doc/passes.texi: Document new pass.
4003
4004 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4005
4006         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
4007         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
4008         * pa.h (TARGET_SOM_SDEF): Define.
4009         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
4010
4011 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
4012
4013         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
4014         allocate 4-bytes of locals on 68HC11.
4015         (expand_epilogue): Likewise.
4016         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
4017
4018 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
4019
4020         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
4021         and -mshort-double to the assembler to specify the ABI.
4022         (LINK_SPEC): Likewise.
4023         (CPP_SPEC): Pass HCS12 specific define.
4024         (MASK_M68S12): New define.
4025         (TARGET_M68S12): Likewise.
4026         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
4027         (TARGET_VERSION): Update.
4028         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
4029         (LINK_SPEC): Update.
4030         (ASM_SPEC): Update.
4031         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
4032         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
4033
4034 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
4035
4036         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
4037         the return code.
4038
4039 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
4040
4041         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
4042         flag before setting it.
4043
4044 2003-01-15  Roger Sayle  <roger@eyesopen.com>
4045
4046         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
4047         when loop condition is known true, i.e.  "while (1) { ... }".
4048         (genrtl_for_stmt): Similarly for "for" statements.
4049
4050 2003-01-15  Roger Sayle  <roger@eyesopen.com>
4051
4052         * real.c (real_sqrt): Return a bool result indicating whether
4053         a floating point exception or trap should be raised.
4054         * real.h (real_sqrt): Update function prototype.
4055         * builtins.c (fold_builtin): Only fold non-trapping square
4056         roots unless we're ignoring errno and trapping math.
4057
4058 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
4059
4060         * expr.h (emit_conditional_add): Add PARAMS to declaration.
4061         * gengtype-lex.l (malloc, realloc): Move defines after include of
4062         system.h.  Remove duplicate include of system.h.
4063
4064 2003-01-15  Roger Sayle  <roger@eyesopen.com>
4065
4066         PR middle-end/9009
4067         * optabs.c (expand_unop):  When manipulating the FP sign bit
4068         using integer operations, account for targets with different
4069         integer and FP word orders.
4070         (expand_abs): Likewise.
4071
4072 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
4073
4074         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
4075         file extension in section name.
4076
4077 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
4078
4079         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
4080         constant offset.
4081
4082 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
4083
4084         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
4085         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
4086         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
4087         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
4088
4089 Wed Jan 15 12:23:21 CET 2003  Jan Hubicka  <jh@suse.cz>
4090
4091         PR f/9258
4092         * global.c (struct allocno): Add no_stack_reg.
4093         (global_conflicts): Set no_stack_reg.
4094         (find_reg): Use it.
4095
4096         * convert.c (convert_to_real): Fold - and abs only when profitable.
4097         * fold-const.c (fold): Fold truncates in - and abs.
4098
4099 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
4100
4101         Segher Boessenkool  <segher@koffie.nl>
4102
4103         * predict.c (real_inv_br_prob_base): New variable.
4104         (propagate_freq): Use multiply by reciprocal instead of
4105         division.  Don't divide by 1.0 at all.
4106         (estimate_bb_frequencies): Similar.
4107
4108 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
4109
4110         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
4111         * configure: Rebuilt.
4112
4113 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
4114
4115         * config/s390/s390.c (s390_safe_attr_type): New function.
4116         (s390_use_dfa_pipeline_interface): New function, return true for z900.
4117         (s390_issue_rate): New function.
4118         (s390_agen_dep_p): New function.
4119         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
4120         (s390_adjust_cost): Return 'cost' if new DFA is used.
4121         (s390_adjust_priority): Delete function.
4122         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
4123         * config/s390/s390.md (atype attribute): Attribute 'atype' default
4124         determined by 'op_type'.
4125         (type attribute): Added more type attributes.
4126         * config/s390/2064.md: New DFA description for z900 pipeline.
4127
4128 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
4129
4130         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
4131         forced to memory.  Fixes PR bootstrap/9036.
4132
4133         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
4134         to set $gp before the call.
4135
4136 2003-01-14  Richard Henderson  <rth@redhat.com>
4137
4138         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
4139         for force_const_mem.
4140
4141 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4142
4143         * genattr.c (main): Rearrange output to avoid prototype warning.
4144         * genautomata.c (transform_3): Fix ambiguous-else warning.
4145         * local-alloc.c (requires_inout): Add parentheses around
4146         assignment used as truth-value.
4147         * timevar.c: Move system includes above local includes.  Include
4148         toplev.h
4149         * Makefile.in (timevar.o): Depend on toplev.h.
4150
4151 2003-01-14  Denis Chertykov  <denisc@overta.ru>
4152
4153         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
4154         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
4155
4156         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
4157         attributes.
4158         (TARGET_ATTRIBUTE_TABLE): New macro.
4159         (valid_machine_type_attribute): Remove.
4160         (valid_machine_decl_attribute): Remove.
4161         (ip2k_handle_progmem_attribute): New function.
4162         (ip2k_handle_fndecl_attribute): New function.
4163
4164 2003-01-10  Andrew Haley  <aph@redhat.com>
4165
4166         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
4167         registers to be in correct order.  Add rip.
4168
4169 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
4170
4171         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
4172         (*iorsi3_and_lshiftrt_9_sb): Likewise.
4173
4174 Tue Jan 14 00:45:33 CET 2003  Jan Hubicka  <jh@suse.cz>
4175
4176         * convert.c (strip_float_extensions):  Look for narrowest type handling
4177         FP constants.
4178
4179         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
4180         float1 CMP float2.
4181         * convert.c (strip_float_extensions): Make global.
4182         * tree.h (strip_float_extensions): Declare.
4183
4184 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4185
4186         * timevar.def: define TV_NAME_LOOKUP.
4187         * timevar.c (timevar_pop): Be verbose when aborting.
4188
4189 2003-01-13  Andreas Schwab  <schwab@suse.de>
4190
4191         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
4192         $(parsedir), just move the temporary file at the end.
4193         ($(parsedir)/gengtype-yacc.c): Likewise.
4194
4195 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
4196
4197         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
4198         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
4199         splitting.
4200         * configure: Rebuilt.
4201
4202 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4203
4204         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
4205         internal_mcount): Don't use PARAMS.
4206         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
4207         ISO C style.
4208         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
4209
4210 2003-01-13  Andreas Schwab  <schwab@suse.de>
4211
4212         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
4213         directive.
4214
4215 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
4216
4217         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
4218         (*iorsi3_and_lshiftrt_n_sb): Likewise.
4219
4220 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
4221
4222         PR c++/9264
4223         * c-lex.c (c_lex): Set the token value to error_mark_node for
4224         invalid numeric constants.
4225
4226 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4227
4228         * c-pch.c (asm_file_startpos): Change to `long'.
4229         (pch_init): Use ftell, not ftello.
4230         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
4231         Use `long' instead of `off_t'.
4232         (c_common_read_pch): Likewise.
4233         * ggc-common.c (gt_pch_save): Use long/ftell instead of
4234         off_t/ftello.
4235
4236 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
4237
4238         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
4239
4240 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
4241
4242         * arm-protos.h (struct cpp_reader): Add declaration.
4243
4244 Sat Jan 11 11:02:58 CET 2003  Jan Hubicka  <jh@suse.cz>
4245
4246         PR target/9068
4247         * i386.c (output_fp_compare): Fix typo.
4248
4249 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
4250
4251         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
4252
4253 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
4254
4255         * Makefile.in (parsedir): New variable.
4256         (docobjdir): New variable.
4257         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
4258         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
4259         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
4260         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
4261         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
4262         Use docobjdir.
4263         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
4264         objc.maintainer-clean): Use parsedir.
4265
4266         * varasm.c (struct constant_descriptor_rtx): Remove unused
4267         `label' field.
4268
4269         * toplev.c (documented_lang_options): Document -Winvalid-pch.
4270
4271 2003-01-10  Richard Henderson  <rth@redhat.com>
4272
4273         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
4274         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
4275
4276 2003-01-10  Richard Henderson  <rth@redhat.com>
4277
4278         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
4279         not INTEGRAL_MODE_P when widening extensions.
4280
4281 2003-01-10  Richard Henderson  <rth@redhat.com>
4282
4283         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
4284
4285 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
4286
4287         * ggc-page.c (ggc_collect): Avoid overflow computing
4288         min_expand.
4289
4290         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
4291         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
4292         Remove calls.
4293         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
4294
4295 Fri Jan 10 22:05:35 CET 2003  Jan Hubicka  <jh@suse.cz>
4296
4297         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
4298         with weird operands.
4299
4300 2003-01-10  Dale Johannesen <dalej@apple.com>
4301
4302         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
4303         parameters.  Call check_sibcall_argument_overlap if indicated.
4304         (check_sibcall_argument_overlap):  Add mark_stored_args_map
4305         parameter.  Don't mark parameter area as clobbered if not set.
4306         (expand_call):  Adjust calls to above.
4307
4308 2003-01-10 Kelley Cook <kelleycook@comcast.net>
4309
4310         * configure.in (linker read-only and read-write section mixing):
4311         Squelch some assembler warnings.
4312         * configure: Likewise.
4313
4314 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
4315
4316         * doc/invoke.texi: Document -mtune, delete -mcpu
4317         option for S/390 and zSeries.
4318         * config/s390/s390.c (s390_tune_string) New variable.
4319         (s390_cpu_string) Delete variable.
4320         (override_options): Use s390_tune_string instead of
4321         s390_cpu_string.
4322         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
4323
4324 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
4325
4326         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
4327
4328 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
4329
4330         * jump.c (next_nonnote_insn_in_loop): New function.
4331         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
4332         next_nonnote_insn.
4333         (duplicate_loop_exit_test). Likewise.
4334
4335 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
4336
4337         Merge from pch-branch:
4338
4339         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
4340
4341         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
4342         load.
4343
4344         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
4345
4346         * cpplib.c (count_registered_pragmas): New function.
4347         (save_registered_pragmas): New function.
4348         (_cpp_save_pragma_names): New function.
4349         (restore_registered_pragmas): New function.
4350         (_cpp_restore_pragma_names): New function.
4351         * cpphash.h (_cpp_save_pragma_names): Prototype.
4352         (_cpp_restore_pragma_names): Likewise.
4353         * cpppch.c (struct save_macro_item): Split from save_macro_data.
4354         (struct save_macro_data): New field 'saved_pragmas'.
4355         (save_macros): Update for changes to struct save_macro_data.
4356         (cpp_prepare_state): Call _cpp_save_pragma_names, update
4357         for changes to struct save_macro_data.
4358         (cpp_read_state): Call _cpp_restore_pragma_names, update
4359         for changes to struct save_macro_data.
4360
4361         * cpppch.c (cpp_read_state): Restore the hashtable references
4362         in the cpp_reader.
4363
4364         * tree.h (built_in_decls): Mark for PCH.
4365
4366         * dbxout.c (lastfile): Don't mark for PCH.
4367
4368         * ggc.h: Document PCH calls into memory managers.
4369
4370         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
4371
4372         * doc/invoke.texi (Precompiled Headers): Document the
4373         directory form of PCH.
4374         * cppfiles.c (validate_pch): New function.
4375         (open_file_pch): Search suitably-named directories for PCH files.
4376
4377         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
4378
4379         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
4380         reorder options.
4381         (Type Information): Mention that the information is also
4382         used to implement PCH.
4383         * doc/passes.texi (Passes): Improve documentation of
4384         language-specific files.
4385
4386         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
4387
4388         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
4389         (struct walk_type_data): Add reorder_fn field.
4390         (walk_type): Process 'reorder' option.
4391         (write_types_process_field): Reorder parameters to gt_pch_note_object,
4392         call reorder_note_routine.
4393         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
4394         (ggc_wtd): Update for change to struct write_types_data.
4395         (pch_wtd): Likewise.
4396         * ggc.h (gt_pch_note_object): Reorder parameters.
4397         (gt_handle_reorder): New definition.
4398         (gt_pch_note_reorder): New prototype.
4399         * ggc-common.c (struct ptr_data): Add reorder_fn.
4400         (gt_pch_note_object): Reorder parameters.
4401         (gt_pch_note_reorder): New.
4402         (gt_pch_save): Call reorder_fn.
4403         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
4404
4405         * dbxout.c (cwd): Don't mark for PCH.
4406
4407         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
4408
4409         * gengtype.c (finish_root_table): Fix some warnings.
4410         (write_root): Handle TYPE_STRING.
4411         * ggc.h (gt_ggc_m_S): Add prototype.
4412         * stringpool.c (gt_ggc_m_S): New function.
4413
4414         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
4415
4416         * dwarf2out.c (dw2_string_counter): New.
4417         (AT_string_form): Use it.
4418         (same_dw_val_p): Update for removal of hashtable.h hash tables.
4419
4420         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
4421
4422         * dbxout.c: Include gt-dbxout.h.
4423         (lastfile): Mark for PCH/GGC.
4424         (cwd): Likewise.
4425         (struct typeinfo): Likewise.
4426         (typevec): Likewise.
4427         (typevec_len): Likewise.
4428         (next_type_number): Likewise.
4429         (struct dbx_file): Likewise.
4430         (current_file): Likewise.
4431         (next_file_number): Likewise.
4432         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
4433         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
4434         (dbxout_end_source_file): Don't free struct dbx_file.
4435         (dbxout_type): Use GGC to allocate typevec.
4436         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
4437         (GTFILES): Add dbxout.c.
4438         (gt-dbxout.h): New rule.
4439
4440         * Makefile.in (c-pch.o): Add debug.h as dependency.
4441         * c-pch.c: Include debug.h.
4442         (pch_init): Call start_source_file to keep nesting right.
4443         (c_common_read_pch): Add orig_name parameter.  Call
4444         start_source_file debug hook.  Call end_source_file debug hook.
4445         * c-common.h (c_common_read_pch): Update prototype.
4446         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
4447         callback.
4448         * cppfiles.c (struct include_file): Add new field `header_name'.
4449         (find_or_create_entry): Default it to `name'.
4450         (open_file_pch): Set it to the original header file searched for.
4451         (stack_include_file): Don't stack an empty buffer, just handle
4452         PCH files immediately.  Pass header_name field to read_pch callback.
4453
4454         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
4455
4456         * function.c (funcdef_no): Mark to be saved in a PCH.
4457
4458         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
4459
4460         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
4461
4462         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
4463
4464         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
4465
4466         * optabs.h (code_to_optab): Add GTY marker.
4467
4468         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
4469
4470         * Makefile.in (GTFILES): Add cpplib.h.
4471         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
4472         * c-decl.c (build_compound_literal): Don't use var_labelno.
4473         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
4474         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
4475         * varasm.c (const_labelno): Use gengtype to mark.
4476         (var_labelno): Likewise.
4477         (in_section): Likewise.
4478         (in_named_name): Likewise.
4479         (struct in_named_entry): Likewise.
4480         (in_named_htab): Likewise.
4481         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
4482         (init_varasm_once): Use GGC to allocate in_named_htab.
4483         * config/darwin.c (current_pic_label_num): Mark for PCH.
4484
4485         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
4486
4487         * ggc-simple.c (init_ggc_pch): New stub procedure.
4488         (ggc_pch_count_object): Likewise.
4489         (ggc_pch_total_size): Likewise.
4490         (ggc_pch_this_base): Likewise.
4491         (ggc_pch_alloc_object): Likewise.
4492         (ggc_pch_prepare_write): Likewise.
4493         (ggc_pch_write_object): Likewise
4494         (ggc_pch_finish): Likewise.
4495         (ggc_pch_read): Likewise.
4496
4497         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
4498
4499         * c-pch.c (c_common_write_pch): Write the macro definitions after
4500         the GCed data.
4501         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
4502         definitions after the GCed data.
4503         * cpplib.c (save_macros): New.
4504         (reset_ht): New.
4505         (cpp_write_pch_deps): Split out of cpp_write_pch.
4506         (cpp_write_pch_state): Split out of cpp_write_pch.
4507         (cpp_write_pch): Delete.
4508         (struct save_macro_data): Delete.
4509         (cpp_prepare_state): New.
4510         (cpp_read_state): Erase and restore initial macro definitions.
4511         * cpplib.h (struct save_macro_data): Forward-declare.
4512         (cpp_write_pch_deps): Prototype.
4513         (cpp_write_pch_state): Prototype.
4514         (cpp_write_pch): Delete prototype.
4515         (cpp_prepare_state): Prototype.
4516         (cpp_read_state): Add fourth argument.
4517
4518         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
4519
4520         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
4521         (write_array): Remove warning.
4522
4523         * gengtype.c (contains_scalar_p): New.
4524         (finish_root_table): Add the table to all languages, even if it's
4525         empty.
4526         (write_roots): Output gt_pch_scalar_rtab.
4527         * ggc-common.c (gt_pch_save): Write out scalars.
4528         (gt_pch_restore): Read scalars back.
4529
4530         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
4531         (struct page_entry): Delete pch_page field.
4532         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
4533         (clear_marks): Likewise.
4534         (sweep_pages): Likewise.
4535         (poison_pages): Likewise.
4536         (ggc_print_statistics): Likewise.
4537         (ggc_pch_read): Don't free objects read from a PCH.
4538         Properly set up in_use_p and page_tails.
4539
4540         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
4541
4542         * gengtype.c (struct write_types_data): New.
4543         (struct walk_type_data): Make `cookie' const; add extra
4544         prev_val item; add `orig_s' field.
4545         (walk_type): Update prev_val[3].
4546         (write_types_process_field): New.
4547         (write_func_for_structure): Take write_types_data structure.
4548         (write_types): New.
4549         (ggc_wtd): New.
4550         (pch_wtd): New.
4551         (write_types_local_process_field): New.
4552         (gc_mark_process_field): Delete.
4553         (write_local_func_for_structure): New.
4554         (gc_mark_func_name): Delete.
4555         (write_gc_types): Delete.
4556         (write_local): New.
4557         (finish_root_table): Don't include 'ggc_' in PFX.
4558         (write_root): Rename from write_root.  Fill pchw field of structures.
4559         (write_array): New.
4560         (write_roots): Rename from write_gc_roots.  Split out to write_array.
4561         Update to changes to other routines.  Write gt_pch_cache_rtab table.
4562         (main): Write PCH walking routines.
4563         * ggc-common.c: Include toplev.h, sys/mman.h.
4564         (ggc_mark_roots): For cache hashtables, also mark the hash table
4565         and the array of entries.
4566         (saving_htab): New.
4567         (struct ptr_data): New.
4568         (POINTER_HASH): New.
4569         (gt_pch_note_object): New.
4570         (saving_htab_hash): New.
4571         (saving_htab_eq): New.
4572         (struct traversal_state): New.
4573         (call_count): New.
4574         (call_alloc): New.
4575         (compare_ptr_data): New.
4576         (relocate_ptrs): New.
4577         (write_pch_globals): New.
4578         (struct mmap_info): New.
4579         (gt_pch_save): New.
4580         (gt_pch_restore): New.
4581         * ggc-page.c (ROUND_UP_VALUE): New.
4582         (ROUND_UP): New.
4583         (struct page_entry): Add field `pch_page'.
4584         (init_ggc): Use ROUND_UP.
4585         (struct ggc_pch_data): Declare.
4586         (init_ggc_pch): New.
4587         (ggc_pch_count_object): New.
4588         (ggc_pch_total_size): New.
4589         (ggc_pch_this_base): New.
4590         (ggc_pch_alloc_object): New.
4591         (ggc_pch_prepare_write): New.
4592         (ggc_pch_write_object): New.
4593         (ggc_pch_finish): New.
4594         (ggc_pch_read): New.
4595         * ggc.h (gt_pointer_operator): New.
4596         (gt_note_pointers): New.
4597         (gt_pch_note_object): New prototype.
4598         (gt_pointer_walker): New.
4599         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
4600         (LAST_GGC_ROOT_TAB): Update.
4601         (gt_pch_cache_rtab): Declare.
4602         (gt_pch_scalar_rtab): Declare.
4603         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
4604         (LAST_GGC_CACHE_TAB): Update.
4605         (gt_pch_save_stringpool): Declare.
4606         (gt_pch_restore_stringpool): Declare.
4607         (gt_pch_p_S): Declare.
4608         (gt_pch_n_S): Declare.
4609         (struct ggc_pch_data): Forward-declare.
4610         (init_ggc_pch): Declare.
4611         (ggc_pch_count_object): Declare.
4612         (ggc_pch_total_size): Declare.
4613         (ggc_pch_this_base): Declare.
4614         (ggc_pch_alloc_object): Declare.
4615         (ggc_pch_prepare_write): Declare.
4616         (ggc_pch_write_object): Declare.
4617         (ggc_pch_finish): Declare.
4618         (ggc_pch_read): Declare.
4619         (gt_pch_save): Declare.
4620         (gt_pch_restore): Declare.
4621         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
4622         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
4623         const_double_htab, mem_attrs_htab using GGC.
4624         * c-pch.c: Include ggc.h.
4625         (pch_init): Allow reading PCH file back.
4626         (c_common_write_pch): Call gt_pch_save.
4627         (c_common_read_pch): Call gt_pch_restore.
4628         * c-parse.in (init_reswords): Delete now-untrue comment.
4629         Allocate ridpointers using GGC.
4630         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
4631         calling expand_deferred_fns.
4632         * c-common.h (ridpointers): Mark for GTY machinery.
4633         * Makefile.in (stringpool.o): Update dependencies.
4634         (c-pch.o): Update dependencies.
4635         (ggc-common.o): Update dependencies.
4636         * stringpool.c: Include gt-stringpool.h.
4637         (gt_pch_p_S): New.
4638         (gt_pch_n_S): New.
4639         (struct string_pool_data): New.
4640         (spd): New.
4641         (gt_pch_save_stringpool): New.
4642         (gt_pch_restore_stringpool): New.
4643         * tree.c (init_ttree): Make type_hash_table allocated using GC.
4644
4645         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
4646
4647         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
4648         (output_mangled_typename): Don't pass size_t to printf.
4649
4650         * tree.h (union tree_type_symtab): Add tag to `address' field.
4651         (union tree_decl_u2): Add tag to 'i' field.
4652         * varasm.c (union rtx_const_un): Add tags to all fields.
4653         * gengtype.c (struct walk_type_data): New.
4654         (output_escaped_param): Take struct walk_type_data parameter.
4655         (write_gc_structure_fields): Delete.
4656         (walk_type): New.
4657         (write_gc_marker_routine_for_structure): Delete.
4658         (write_func_for_structure): New.
4659         (gc_mark_process_field): New.
4660         (gc_mark_func_name): New.
4661         (gc_counter): Delete.
4662         (write_gc_types): Use write_func_for_structure.
4663         (write_gc_roots): Use walk_type.
4664
4665         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
4666
4667         * ggc-common.c (ggc_mark_roots): Delete 'x'.
4668         (ggc_splay_dont_free): Fix warning about unused 'x'.
4669         (ggc_print_common_statistics): Remove warnings.
4670
4671         2002-10-01  Mike Stump  <mrs@apple.com>
4672
4673         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
4674         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
4675
4676         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
4677             Catherine Moore  <clm@redhat.com>
4678
4679         * Makefile (c-pch.o): Update dependencies.
4680         (LIBCPP_OBJS): Add cpppch.o.
4681         (cpppch.o): New.
4682         * c-common.c (c_common_init): Don't call pch_init here.
4683         * c-common.h (c_common_read_pch): Update prototype.
4684         * c-lex.c (c_common_parse_file): Call pch_init here.
4685         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
4686         (c_common_decode_option): Handle them.
4687         * c-pch.c: Include c-pragma.h.
4688         (save_asm_offset): Delete.
4689         (pch_init): Move contents of save_asm_offset into here, call
4690         cpp_save_state.
4691         (c_common_write_pch): Call cpp_write_pch.
4692         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
4693         cpp_valid_state.
4694         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
4695         * cppfiles.c (stack_include_file): Update for change to
4696         parameters of cb.read_pch.
4697         * cpphash.h (struct cpp_reader): Add `savedstate' field.
4698         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
4699         `restore_pch_deps' fields.
4700         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
4701         (cpp_save_state): Prototype.
4702         (cpp_write_pch): Prototype.
4703         (cpp_valid_state): Prototype.
4704         (cpp_read_state): Prototype.
4705         * cpppch.c: New file.
4706         * flags.h (version_flag): Remove prototype.
4707         * mkdeps.c (deps_save): New.
4708         (deps_restore): New.
4709         * mkdeps.h (deps_save): Prototype.
4710         (deps_restore): Prototype.
4711         * toplev.c (late_init_hook): Delete.
4712         (version_flag): Make static again.
4713         (compile_file): Don't call late_init_hook.
4714         * toplev.h (late_init_hook): Delete.
4715         * doc/cppopts.texi: Document -fpch-deps.
4716         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
4717
4718         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
4719
4720         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
4721         callers.
4722         (c_common_valid_pch): Rename from c_valid_pch, change callers.
4723         (c_common_read_pch): Rename from c_read_pch, change callers.
4724
4725         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
4726         a space between it and its argument.
4727
4728         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
4729
4730         * c-pch.c: New file.
4731         * toplev.h (late_init_hook): Declare.
4732         * toplev.c (late_init_hook): Define.
4733         (version_flag): Make globally visible.
4734         (compile_file): Call late_init_hook.
4735         (init_asm_output): Make output file seekable.
4736         * gcc.c (default_compilers): Update c-header rule.
4737         * flags.h (version_flag): Declare.
4738         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
4739         fields.
4740         * cppfiles.c (struct include_file): Add 'pch' field.
4741         (INCLUDE_PCH_P): New.
4742         (open_file_pch): New.
4743         (stack_include_file): Handle PCH files specially.
4744         (find_include_file): Call open_file_pch instead of open_file.
4745         (_cpp_read_file): Explain why open_file is used instead of
4746         open_file_pch.
4747         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
4748         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
4749         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
4750         in cpplib callbacks.
4751         * c-common.c (pch_file): Correct comment.
4752         (allow_pch): Define.
4753         (c_common_init): Call pch_init.
4754         * c-common.h (allow_pch): Declare.
4755         (pch_init): Declare.
4756         (c_valid_pch): Declare.
4757         (c_read_pch): Declare.
4758         (c_write_pch): Declare.
4759         * Makefile.in (c-pch.o): New.
4760         (C_AND_OBJC_OBJS): Add c-pch.o.
4761         * doc/invoke.texi (Precompiled Headers): Add index entries,
4762         complete truncated paragraph.
4763
4764         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
4765
4766         * c-common.c: (pch_file): Define.
4767         * c-common.h (pch_file): Declare.
4768         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
4769         (missing_arg): Require --output-pch= to have an argument.
4770         (c_common_decode_option): Handle --output-pch=.
4771         * gcc.c: Document new %V.
4772         (default_compilers): Handle compiling C header files.
4773         (do_spec_1): Implement %V.
4774         (main): Handle "gcc foo.h" without trying to run linker.
4775         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
4776         (Overall Options): Document what the driver does with header files,
4777         document new -x option possibilities.
4778         (Invoking G++): More documentation for PCH.
4779         (Precompiled Headers): New.
4780
4781         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
4782
4783         * ggc.h: Don't include varray.h.  Rearrange functions to be more
4784         organized.
4785         (ggc_add_root): Delete.
4786         (ggc_mark_rtx): Delete.
4787         (ggc_mark_tree): Delete.
4788         (struct ggc_statistics): Remove contents.
4789         * ggc-common.c: Remove unneeded includes.
4790         (struct ggc_root): Delete.
4791         (roots): Delete.
4792         (ggc_add_root): Delete.
4793         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
4794         (ggc_print_common_statistics): Remove most of the contents.
4795         * Makefile.in (GGC_H): No longer uses varray.h.
4796         (ggc-common.o): Update dependencies.
4797         (c-parse.o): Add varray.h to dependencies.
4798         (c-common.o): Add varray.h.
4799         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
4800         (mark_ident_hash): Rename to ggc_mark_stringpool.
4801         (init_stringpool): Don't use ggc_add_root.
4802         * c-parse.in: Include varray.h.
4803         * c-common.c: Include varray.h.
4804         * objc/Make-lang.in (objc-act.o): Add varray.h.
4805         * objc/objc-act.c: Include varray.h.
4806
4807         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
4808
4809         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
4810         (dw_cfi_oprnd1_desc): Likewise.
4811
4812         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
4813
4814         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
4815         move out of ifdef.
4816         (alpha_links): Use gengtype to mark; move out of ifdef.
4817         (mark_alpha_links_node): Delete.
4818         (mark_alpha_links): Delete.
4819         (alpha_need_linkage): Use GGC to allocate splay tree, struct
4820         alpha_links, strings.  Don't use ggc_add_root.
4821         * ggc-common.c (ggc_splay_alloc): New.
4822         (ggc_splay_dont_free): New.
4823         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
4824         (ggc_mark_tree): Likewise.
4825         (splay_tree_new_ggc): New.
4826         (ggc_splay_alloc): Declare.
4827         (ggc_splay_dont_free): Declare.
4828         * dwarf2asm.c: Include gt-dwarf2asm.h.
4829         (mark_indirect_pool_entry): Delete.
4830         (mark_indirect_pool): Delete.
4831         (indirect_pool): Use gengtype to mark.
4832         (dw2_force_const_mem): Don't use ggc_add_root.
4833         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
4834         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
4835         (gt-dwarf2asm.h): Depend on s-gtype.
4836
4837         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
4838
4839         * tree.h (union tree_type_symtab): Mark `die' field.
4840         * Makefile.in (dwarf2out.o): Update dependencies.
4841         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
4842         hash tables.
4843         (dw_cfi_oprnd1_desc): New function.
4844         (dw_cfi_oprnd2_desc): New function.
4845         (indirect_string_alloc): Delete.
4846         (debug_str_do_hash): New function.
4847         (debug_str_eq): New function.
4848         (mark_limbo_die_list): Delete.
4849         (dwarf2out_init): Don't call ggc_add_root.
4850
4851 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
4852
4853         The following changes are merged from itanium-sched-branch:
4854
4855         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
4856
4857         * doc/md.texi: Clarify assignment of units to automata description.
4858
4859         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
4860
4861         * genautomata.c (unit_decl): Remove members
4862         `the_same_automaton_unit' and
4863         `the_same_automaton_message_reported_p'.
4864         (process_unit_to_form_the_same_automaton_unit_lists,
4865         form_the_same_automaton_unit_lists_from_regexp,
4866         form_the_same_automaton_unit_lists, the_same_automaton_lists):
4867         Remove them.
4868         (annotation_message_reported_p): New global variable.
4869         (check_unit_distribution_in_reserv,
4870         check_regexp_units_distribution): New functions.
4871         (check_unit_distributions_to_automata): Rewrite it.
4872
4873         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
4874
4875         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
4876         Use continue instead of break if cycle is too big.
4877
4878         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
4879
4880         * genautomata.c (check_unit_distributions_to_automata): Output at
4881         most one message for a unit.
4882         (process_unit_to_form_the_same_automaton_unit_lists): Check
4883         automaton of units instead of units themself.
4884
4885         * doc/md.texi: Describe the constraint about assigning unit to
4886         automata.
4887
4888         2002-12-20  Jan Hubicka  <jH@suse.cz>
4889                     Vladimir Makarov  <vmakarov@redhat.com>
4890
4891         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
4892         and `in_set_p'.
4893         (gen_cpu_unit): Initialize the new members.
4894         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
4895         up `min_occ_cycle_num'.
4896         (evaluate_max_reserv_cycles): Change the function call.
4897         (CLEAR_BIT): New macro.
4898         (states_union, state_shift): Use the mask.
4899         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
4900         (form_reservs_matter): New function.
4901         (make_automaton): Call the function and use the mask.
4902         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
4903         account.
4904
4905         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
4906
4907         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
4908
4909         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
4910
4911         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
4912         for Itanium.
4913
4914         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
4915
4916         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
4917         default cpu.
4918
4919         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
4920                 2002-10-31  Dale Johannesen <dalej@apple.com>
4921
4922         * haifa-sched.c (find_set_reg_weight): New function.
4923         (find_insn_reg_weight): Use the new function.
4924         (schedule_block): Do sorting ready queue always
4925         after insn issue.
4926
4927         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
4928
4929         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
4930
4931         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
4932
4933         * haifa-sched.c (choice_entry): New structure.
4934         (choice_stack, cycle_issued_insns): New variables.
4935         (max_issue): Rewrite it.
4936         (choose_ready): Set up ready_try for unknown insns too.
4937         (schedule_block): Allocate and free choice_stack.  Set up
4938         and modify cycle_issued_insns.
4939
4940         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
4941         with and without filling the bundle.
4942         (bundling): Combine calls of issue_nops_and_insn.
4943
4944         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
4945
4946         * config/ia64/itanium1.md: New file.
4947
4948         * config/ia64/itanium2.md: New file.
4949
4950         * config/ia64/ia64.md: Move DFA descriptions into the new files.
4951         Remove the old pipeline description.
4952
4953         * config/ia64/ia64.c (ia64_override_options): Add aliases of
4954         itanium processor names.
4955
4956         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
4957
4958         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
4959         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
4960
4961         * config/ia64/ia64.md: Add descriptions for Itanium2.
4962
4963         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
4964
4965         * config/ia64/ia64.h (processor_type): New enumeration.
4966         (ia64_tune, ia64_tune_string): New external declarations.
4967         (TARGET_OPTIONS): Add option `tune='.
4968
4969         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
4970         variables.
4971         (ia64_override_options): Set up `ia64_tune'.
4972         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
4973         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
4974         (bundling): Add nops for MM-insns only for Itanium.
4975         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
4976         Itanium.
4977
4978         * config/ia64/ia64.md (cpu): New attribute.
4979         (DFA description): Enable it only for Itanium.
4980
4981         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
4982                     Richard Henderson  <rth@redhat.com>
4983
4984         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
4985         MASK_EARLY_STOP_BITS.
4986         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
4987         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
4988         `early-stop-bits'.
4989
4990         * config/ia64/ia64.c (ia64_dfa_new_cycle,
4991         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
4992         instead of TARGET_TUNE_STOP_BITS.
4993
4994         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
4995         `-mearly-stop-bits'.
4996
4997         * config/ia64/ia64.c (automata_option "v"): Comment it.
4998
4999         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
5000
5001         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
5002         New macros.
5003         (TARGET_SWITCHES): Add entries for the new option.
5004
5005         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
5006         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
5007         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
5008         global variables.
5009         (ia64_sched_reorder2): Set up `clocks'.
5010         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
5011         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
5012         queue when TARGET_TUNE_STOP_BITS.
5013         (bundling): Insert additional nops for MM-insns.
5014         (final_emit_insn_group_barriers): Add insertion of stop bits
5015         according `stops_p'.
5016         (ia64_reorg): Initiate the new varibales.
5017
5018         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
5019
5020         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
5021
5022         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
5023         insns at the end of block insn scheduling.
5024
5025         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
5026
5027         * sched-deps.c (remove_dependence, group_leader): Remove it.
5028         (add_dependence): Add dependence to group leader to.
5029         (set_sched_group_p): Add dependence to the first insn of the
5030         schedule group too.
5031         (sched_analyze_insn): Make dependence to jump as anti-dependence.
5032         Change true dependence by anti-dependence when
5033         `reg_pending_barrier'.
5034
5035         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
5036         add_branch_dependences): Ignore schedule groups.
5037
5038         * sched-ebb.c (init_ready_list): Ditto.
5039
5040         * (move_insn, set_priorities): Ditto.
5041
5042         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
5043         flag is clear after reload.
5044         (adjust_cost): Change cost only for output dependencies.
5045
5046         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
5047
5048         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
5049
5050         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
5051
5052         * target.h (gcc_target): Add member
5053         `dependencies_evaluation_hook'.
5054
5055         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
5056         macro.
5057         (TARGET_SCHED): Add initiatialization of the new member.
5058
5059         * sched-ebb.c: Include `target.h'.
5060         (schedule_ebb): Call `dependencies_evaluation_hook'.
5061
5062         * sched-rgn.c (schedule_region): Call
5063         `dependencies_evaluation_hook'.
5064
5065         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
5066         New macro.
5067         (ia64_dependencies_evaluation_hook): New function.
5068
5069         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
5070         Describe the new hook.
5071
5072         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
5073
5074         * target.h (gcc_target): Add members
5075         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
5076
5077         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
5078         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
5079         macros.
5080         (TARGET_SCHED): Add initiatialization of the new members.
5081
5082         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
5083         insn scheduling too.
5084         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
5085         initialize `ready_try'.
5086         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
5087         `dfa_new_cycle' says not to do it.
5088
5089         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
5090         bundling.
5091
5092         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
5093
5094         * config/ia64/ia64.c: Include `hashtab.h'.
5095         (ia64_first_cycle_multipass_dfa_lookahead_guard,
5096         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
5097         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
5098         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
5099         bundle_state_eq_p, insert_bundle_state,
5100         initiate_bundle_state_table, finish_bundle_state_table,
5101         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
5102         get_template, get_next_important_insn, bundling): New functions.
5103         (ia64_internal_sched_reorder): Remove it.
5104         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
5105         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
5106         (ia64_safe_itanium_requires_unit0): Remove it.
5107         (group_barrier_needed_p): Place group barrier right before a real
5108         insn.
5109         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
5110         Remove them.
5111         (bundle_name): New variable.
5112         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
5113         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
5114         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
5115         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
5116         temp_dfa_state, prev_cycle_state): New global variables.
5117         (insn_matches_slot, maybe_rotate, finish_last_head,
5118         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
5119         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
5120         find_best_packet, itanium_reorder, dump_current_packet,
5121         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
5122         (sched_data, sched_ready, sched_types): Remove them.
5123         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
5124         `init_insn_group_barriers'.
5125         (ia64_sched_reorder, ia64_sched_reorder2): Call
5126         ia64_dfa_sched_reorder.
5127         (ia64_variable_issue): Rewrite it.
5128         (bundle_state): New structure.
5129         (index_to_bundle_states, bundle_states_num,
5130         allocated_bundle_states_chain, free_bundle_state_chain): New
5131         global variables.
5132         (ia64_sched_finish): Add stop bits and call `bundling' after the
5133         2nd insn scheduling.
5134         (ia64_use_dfa_pipeline_interface): Return zero always.
5135         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
5136         insn scheduling.
5137         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
5138         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
5139         (ia64_reorg): Add bundling insns.
5140
5141         * doc/tm.texi
5142         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
5143         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
5144
5145         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
5146
5147         * config/ia64/ia64.md: Add Itanium1 DFA description.
5148         (itanium_class): Add `nop' and `pre_cycle'.  Add
5149         define_function_unit for `nop'.
5150         (nop): Change attribute `itanium_class'.
5151         (pre_cycle): New define_insn.
5152
5153         * config/ia64/ia64-protos.h (bundling_p): New external variable.
5154         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
5155         ia64_produce_address_p): New function prototypes.
5156
5157         * config/ia64/ia64.c (bundling_p): New global variable.
5158         (ia64_use_dfa_pipeline_interface,
5159         ia64_first_cycle_multipass_dfa_lookahead,
5160         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
5161         functions.
5162         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5163         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5164         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5165         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
5166         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
5167         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
5168         (dfa_pre_cycle_insn): New variable.
5169
5170         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
5171
5172         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
5173         constructions.
5174
5175         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
5176         New function prototypes.
5177
5178         * genattrtab.c (main): Process the new constructions.
5179
5180         * genautomata.c (gen_presence_absence_set,
5181         process_presence_absence_names, process_presence_absence_patterns,
5182         add_presence_absence, check_absence_pattern_sets): Add parameter
5183         `final_p'.
5184         (unit_decl): Add new members `final_presence_list' and
5185         `final_absence_list'.
5186         (unit_pattern_rel_decl): Add new member `final_p'.
5187         (gen_final_presence_set, gen_final_absence_set): New functions.
5188         (process_decls): Use member `final_p'.
5189         (temp_reserv): New global variable.
5190         (reserv_sets_are_intersected): Add processing `final_presence_set'
5191         and `final_absence_set'.
5192         (initiate_states): Allocate `temp_reserv'.
5193         (unit_final_presence_set_table, unit_final_absence_set_table): New
5194         gloabal variables.
5195         (initiate_presence_absence_pattern_sets): Initiate them.
5196         (NDFA_to_DFA): Fix typo.
5197         (output_description): Output `final_presence_set' and
5198         `final_absence_set'.
5199
5200         * doc/md.texi (final_presence_set, final_absence_set): Describe
5201         them.
5202
5203         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
5204
5205         * genautomata.c (transform_3): Process a missing case (nothing on
5206         unit place).
5207
5208         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
5209
5210         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
5211         comments about queried units and the minimization.
5212
5213         * doc/md.texi: Ditto.
5214
5215         * genautomata.c (create_composed_state): Return nonzero if the new
5216         state has been created.
5217         (first_cycle_unit_presence): New function.
5218         (state_is_differed): Add new parameter.  Use the new function.
5219         Take queried units into account.
5220         (partition_equiv_class): Pass additional parameter to
5221         `state_is_differed'.
5222         (merge_states): Process composed states too.
5223         (build_automaton, create_automata, output_min_issue_delay_table,
5224         output_tables, output_statistics): Output more information.
5225         (output_reserved_units_table): Use function
5226         `first_cycle_unit_presence'.
5227         (output_tables): Output table of queried units even if the
5228         minimization is switched on.
5229         (write_automata): Output code for querying units even if the
5230         minimization is switched on.
5231
5232         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
5233
5234         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
5235         syntax of the constructions.
5236
5237         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
5238         extended syntax of the constructions.
5239
5240         * genautomata.c (unit_rel_decl): Rename it to
5241         `unit_pattern_rel_decl'.
5242         (pattern_set_el, pattern_reserv): New structures.
5243         (pattern_set_el_t, pattern_reserv_t): New types.
5244         (gen_presence_absence_set): New function.
5245         (process_presence_absence): Remove it.
5246         (process_presence_absence_names,
5247         process_presence_absence_patterns): New functions.
5248         (get_presence_absence_set): Remove it.
5249         (initiate_presence_absence_sets): Rename it on
5250         `initiate_presence_absence_pattern_sets'.  Use new function
5251         `form_reserv_sets_list'.
5252         (form_reserv_sets_list, check_presence_pattern_sets,
5253         check_absence_pattern_sets, output_pattern_set_el_list): New
5254         functions.
5255         (unit_decl): Change types of members `presence_list' and
5256         `absence_list'.
5257         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
5258         (decl): Change types of members `excl', `presence', and `absence'.
5259         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
5260         at the end of the vector.
5261         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
5262         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
5263         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
5264         (gen_presence_set, gen_absence_set): Use new function
5265         `gen_presence_absence_set'.
5266         (add_presence_absence): Process `pattern_list' instead of
5267         `source_list'.
5268         (process_decls): USe new functions
5269         `process_presence_absence_names' and
5270         `process_presence_absence_patterns'.
5271         (reserv_sets_are_intersected): Use new function
5272         `check_presence_pattern_sets'.
5273         (presence_set, absence_set): Remove them.
5274         (unit_presence_set_table, unit_absence_set_table): New global
5275         variables.
5276         (output_description): Use new function
5277         `output_pattern_set_el_list'.
5278         (generate): Use `initiate_presence_absence_pattern_sets'.
5279
5280         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
5281
5282         * genattr.c (main): Add output of prototype of new interface
5283         function `dfa_clean_insn_cache'.
5284
5285         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
5286         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
5287         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
5288         the generated code.
5289         (write_automata): Call the new function.
5290
5291 Thu Jan  9 22:47:38 CET 2003  Jan Hubicka  <jh@suse.cz>
5292
5293         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
5294         correctly.
5295
5296 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
5297
5298         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
5299
5300 Thu Jan  9 17:26:40 2003  J"orn Rennecke <joern.rennecke@superh.com>
5301
5302         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
5303         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
5304         (CONSTRAINT_LEN): Provide default definition.
5305         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
5306         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
5307         (EXTRA_CONSTRAINT_STR): Likewise.
5308         (REG_CLASS_FROM_CONSTRAINT): Define.
5309         * genoutput.c (check_constraint_len, constraint_len): New functions.
5310         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
5311         constraint / modifier.
5312         (gen_insn): Call check_constraint_len.
5313         * local-alloc.c (block_alloc): Update to use new macros / pass
5314         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
5315         * ra-build.c (handle_asm_insn): Likewise.
5316         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
5317         (constrain_operands, peep2_find_free_register): Likewise.
5318         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
5319         * regmove.c (find_matches): Likewise.
5320         * reload.c (push_secondary_reload, find_reloads): Likewise.
5321         (alternative_allows_memconst): Likewise.
5322         * reload1.c (maybe_fix_stack_asms): Likewise.
5323         (reload_cse_simplify_operands): Likewise.
5324         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
5325         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
5326         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
5327         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
5328         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
5329         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
5330
5331         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
5332
5333 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
5334
5335         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
5336         length.
5337         (*extzv_1_r_h8300hs): Likewise.
5338         (*extzv_1_r_inv_h8300): Likewise.
5339         (*extzv_1_r_inv_h8300hs): Likewise.
5340
5341 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
5342
5343         * config/h8300/h8300.h (PREDICATE_CODES): New.
5344
5345 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
5346
5347         * config/h8300/h8300.md (*addsi3_upper): New.
5348         (*iorsi3_shift): Likewise.
5349         (two splitters): Likewise.
5350         (*addsi3_shift): Likewise.
5351         (two splitters): Likewise.
5352
5353 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
5354
5355         * Makefile.in (optabs.o): Add dependency on basic-block.h.
5356         * basic-block.h (control_flow_insn_p): Fuction was exported.
5357         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
5358         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
5359         notes only when the region is contained in a single basic block.
5360
5361 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
5362
5363         PR inline-asm/8832
5364         * tree.h (expand_asm): New prototype.
5365         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
5366         to do so.
5367         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
5368         down to expand_asm.
5369         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
5370         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
5371         (volatile_refs_p) [ASM_INPUT]: Likewise.
5372         (side_effects_p) [ASM_INPUT]: Likewise.
5373
5374 Thu Jan  9 12:00:36 CET 2003  Jan Hubicka  <jh@suse.cz>
5375
5376         * i386.md (*mul*): FIx constraints; remove confused comment; fix
5377         athlon_decode attributes
5378         (imul/k8 optimization peep2s): New.
5379
5380         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
5381         * i386.md (type attribute): Add ssecomi.
5382         (unit, memory, prefix attributes): Handle ssecomi.
5383         (cvt?2? patterns): Fix athlon_decode attribute
5384         (comi patterns): Set attribute to ssecomi.
5385
5386         PR target/8343
5387         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
5388
5389 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
5390
5391         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
5392         that match register_operands.
5393         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
5394         register_operand the default case.
5395
5396 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
5397
5398         PR c/8032
5399         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
5400         an empty element, do not advance the pointer to unfilled
5401         fields if there are pending initializers.
5402
5403 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
5404
5405         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
5406         (install-gcc-tooldir, install-cpp, installdirs,
5407         install-common, install-driver, install-info, install-man,
5408         install-headers, install-include-dir, install-headers-tar,
5409         install-headers-cpio, install-headers-cp, install-mkheaders,
5410         install-collect2, uninstall): Prepend $(DESTDIR) to
5411         destination paths in all (un)installation commands.
5412         (install-driver): Rewrite $(LN) commands to support DESTDIR
5413         with "ln" as well as with "ln -s".
5414         (installdirs): Simply use mkinstalldirs.
5415         (install-libgcc, install-multilib): Also pass DESTDIR.
5416         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
5417         installation destination variable ldir.
5418         * config/alpha/t-osf4, config/arm/t-netbsd,
5419         config/ia64/t-hpux, config/mips/t-iris5-6,
5420         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
5421         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
5422         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
5423         in the definition of SHLIB_INSTALL.
5424         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
5425         $(libsubdir) in the installation commands.
5426
5427 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5428
5429         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
5430         non-optimizing compile.
5431         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
5432         compile.
5433
5434 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
5435
5436         * config/i386/i386.c (ix86_attribute_table): Add new attributes
5437         ms_struct and gcc_struct.
5438         (ix86_handle_struct_attribute): New function.
5439         (ix86_ms_bitfield_layout_p): Update to take new attributes
5440         into account.
5441         * doc/extend.texi: Document new attributes.
5442         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
5443
5444 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
5445
5446         PR optimization/8750
5447         * config/i386/i386.c (ix86_expand_prologue): Don't allow
5448         scheduling pass to move insns across __alloca call.
5449
5450 2003-01-08  Dale Johannesen  <dalej@apple.com>
5451
5452         * config/rs6000/rs6000.md:  Replace *store_multiple_string
5453         with *stmsi[3-8].
5454
5455 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
5456
5457         PR target/9210
5458         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
5459         Set SYMBOL_REF_FLAG on local data sym_ref.
5460
5461 2003-01-08  Dale Johannesen  <dalej@apple.com>
5462
5463         * function.c (assign_parms):  Don't set pretend_args_size if
5464           REG_PARM_STACK_SPACE.
5465           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
5466           pretend_args_size.
5467
5468 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
5469
5470         * gcc.hlp: Delete.
5471
5472 Thu Jan  9 00:57:15 CET 2003  Jan Hubicka  <jh@suse.cz>
5473
5474         * i386.c  (ix86_expand_int_addcc): Fix thinko.
5475
5476 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
5477
5478         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
5479         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
5480         as hook_bool_tree_hwi_hwi_tree_true.
5481         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
5482         (rs6000_emit_epilogue): Same.
5483         (rs6000_output_mi_thunk): Re-implement as RTL.
5484         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
5485         xcoffout_declare_function if any debugging enabled.
5486
5487 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
5488
5489         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
5490         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
5491         * config/mips/mips.h (enum processor_type): Rename
5492         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
5493         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
5494         Add PROCESSOR_M4K.
5495         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
5496         (ISA_MIPS32R2): New define.
5497         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
5498         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
5499         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
5500         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
5501         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
5502         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
5503         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
5504         compiling MIPS16 code.
5505         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
5506         comment.
5507         (ISA_HAS_SEB_SEH): New define.
5508         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
5509         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
5510         processor_type value renaming.  Add support for MIPS32R2.
5511         Clean up comments, and move "sb1" entry with other MIPS64 CPU
5512         entries.
5513         (override_options): Reimplement -mipsN option handling so that
5514         it will work correctly for -mips32r2.  Avoid branch-likely
5515         instructions on MIPS32R2.
5516         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
5517         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
5518         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
5519         (extendhisi2_hw, extendqisi2_hw): New.
5520         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
5521         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
5522         MIPS32R2, and MIPS64.
5523         (LINK_SPEC): Pass -mips32r2 to linker.
5524         * config/mips/t-isa3264: Built -mips32r2 multilibs.
5525         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
5526         for mips32r2 in the -march description.  Alphabetically sort
5527         CPU names in the -march description.  Add long-missed -mips32
5528         and -mips64 to MIPS option summary.
5529
5530         * config.gcc: Update copyright years to include 2003.
5531         * config/mips/mips.c: Likewise.
5532         * config/mips/mips.h: Likewise.
5533         * config/mips/mips.md: Likewise.
5534         * config/mips/netbsd.h: Likewise.
5535         * doc/invoke.texi: Likewise.
5536
5537 2003-01-08  Andreas Schwab  <schwab@suse.de>
5538
5539         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
5540         variable.
5541         * configure: Regenerated.
5542
5543 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
5544
5545         * config/h8300/h8300.c (output_logical_op): Replace byte/word
5546         extraction of det with b0, b1, w0, w2, etc.
5547         (compute_logical_op_length): Likewise.
5548         (compute_logical_op_cc): Likewise.
5549
5550 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
5551
5552         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
5553         HIGH on all variants.
5554
5555 Wed Jan  8 14:06:34 CET 2003  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
5556
5557         * Makefile.in (PARTITION_H): New.
5558         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
5559         * basic-block.h: Include hard-reg-set.h.
5560
5561 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
5562
5563         * arm.h (ENABLE_XF_PATTERNS): Delete.
5564         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
5565         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
5566         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
5567         (cmpxf_trap): Delete.
5568         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
5569
5570 Wed Jan  8 12:10:57 CET 2003  Jan Hubicka  <jh@suse.cz>
5571
5572         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
5573         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
5574         (add??cc): New expanders.
5575         * i386.c (expand_int_addcc): New function.
5576         * i386-protos.h (expand_int_addcc): Declare.
5577
5578         * alias.c (memory_modified_1): New static function.
5579         (memory_modified): New static varaible.
5580         (memory_modified_in_insn_p): New global function.
5581         * rtl.h (memory_modified_in_insn_p): Declare.
5582         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
5583         references.
5584
5585         * expr.h (emit_conditional_add): Declare.
5586
5587 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
5588
5589         PR other/8947
5590         * doc/invoke.texi (-malign-double): Explain that the option breaks
5591         binary compatibility.
5592
5593 2003-01-08  Andreas Schwab  <schwab@suse.de>
5594
5595         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
5596         should come from the generic *-*-linux* entry.
5597
5598 Tue Jan  7 22:29:56 CET 2003  Jan Hubicka  <jh@suse.cz>
5599
5600         * cselib.c (cselib_current_insn_in_libcall): New static variable.
5601         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
5602         we are inside libcall.
5603         * cselib.h (elt_loc_list): Add in_libcall.
5604         * gcse.c (do_local_cprop): Do not copy propagate using insns
5605         in libcalls.
5606
5607 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
5608
5609         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
5610         not normally affect to issue rate.
5611
5612 Tue Jan  7 21:46:57 CET 2003  Jan Hubicka  <jh@suse.cz>
5613
5614         * genopinit.c (optabs): Add addc_optab.
5615         * ifcvt.c (noce_try_store_flag): Rename to ...
5616         (noce_try_addcc): ... this one; handle generic conditional increment.
5617         (noce_process_if_block): Update noce_try_addcc call.
5618         * optabs.c (emit_conditional_add): New.
5619         (init_obtabs): Initialize addc_optab.
5620         * optabs.h (optab_index): Add OTI_addcc.
5621         (addcc_optab): New macro.
5622         * md.texi: Document addMcc
5623
5624         PR target/8322
5625         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
5626         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
5627         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
5628
5629         * reload1.c (delete_output_reload): Avoid repeated attempts
5630         to delete insn.
5631
5632 2003-01-07  Andreas Schwab  <schwab@suse.de>
5633
5634         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
5635         Move --enable-initfini-array check ...
5636         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
5637         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
5638         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
5639         * configure: Rebuild.
5640
5641 2003-01-07  Richard Henderson  <rth@redhat.com>
5642
5643         * alias.c (find_base_value): Only use new_reg_base_value shortcut
5644         if the register is set once.
5645
5646 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
5647
5648         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
5649         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
5650         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
5651
5652 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
5653             Sunil Davasam  <sunil.k.davasam@intel.com>
5654
5655         PR libstdc++/9076
5656         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
5657         DW_CFA_same_value, read next and ignore.
5658
5659 2003-01-07  Richard Henderson  <rth@redhat.com>
5660
5661         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
5662
5663 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
5664
5665         * cfg.c: Include alloc-pool.h
5666         (edge_pool): New pool.
5667         (bb_pool): New pool.
5668         (first_deleted_edge): Remove.
5669         (first_deleted_block): Remove.
5670         (init_flow): Alloc/free the pools.
5671         (free_edge): Use pools.
5672         (alloc_block): Ditto.
5673         (expunge_block): Ditto.
5674         (cached_make_edge): Ditto.
5675
5676         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
5677
5678 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
5679
5680         * et-forest.c: Include alloc-pool.h.
5681         (struct et_forest): Add node_pool and occur_pool.
5682         (et_forest_create): Create the new pools.
5683         (et_forest_delete): Delete them.
5684         (et_forest_add_node): Allocate and free using pools.
5685         (et_forest_add_edge): Ditto.
5686         (et_forest_remove_node): Ditto.
5687         (et_forest_remove_edge): Ditto.
5688
5689         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
5690
5691 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
5692
5693         * config/h8300/h8300.c (output_logical_op): Simplify and
5694         optimize the handling of SImode.
5695         * config/h8300/h8300.c (compute_logical_op_length): Update
5696         accordingly.
5697         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
5698
5699 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
5700
5701         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
5702         big-endian correction to indirect arguments too.
5703
5704 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
5705
5706         Segher Boessenkool  <segher@koffie.nl>
5707
5708         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
5709         (alt_reg_names): Ditto, fix formatting.
5710         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
5711
5712 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
5713
5714         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
5715         (output_logical_op): Constify intval and det.
5716         (compute_logical_length): Likewise.
5717         (compute_logical_cc): Likewise.
5718         (output_a_shift): Constify mask.
5719         (h8300_encode_label): Constify len.
5720
5721 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
5722
5723         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
5724         (h8300_expand_epilogue): Likewise.
5725
5726 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
5727
5728         Segher Boessenkool  <segher@koffie.nl>
5729
5730         * config/rs6000/altivec.md: Remove spaces from assembler
5731         instruction argument lists.
5732
5733 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
5734
5735         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
5736         c4x_assembler_function_p.
5737         (c4x_null_epilogue_p): Complement return value, all uses updated.
5738         (c4x_insert_attributes): Add naked.
5739         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
5740         * doc/extend.texi: Update C4x function attributes.
5741
5742 2003-01-06  Richard Henderson  <rth@redhat.com>
5743
5744         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
5745         properly when changing "local-ness".
5746         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
5747
5748 2003-01-06  Dale Johannesen  <dalej@apple.com>
5749
5750         * config/darwin-protos.h:  Add prototypes for new section functions.
5751
5752 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
5753
5754         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
5755         to EABI.
5756
5757 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
5758
5759         * hwint.h: If the current compiler has no 64-bit type at all,
5760         make HOST_WIDEST_INT 32 bits.
5761
5762 2003-01-06  Eric Christopher  <echristo@redhat.com>
5763
5764         * config/mips/mips.md (movdf_internal2): Fix constraints.
5765
5766 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
5767
5768         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
5769
5770 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
5771
5772         * config/mips/mips.md (leadi): Use dla rather than la.
5773
5774 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
5775
5776         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
5777         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
5778
5779 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
5780
5781         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
5782         redefinition.
5783
5784 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
5785
5786         * config/h8300/h8300.md (*extzv_8_23): New.
5787
5788 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5789
5790         * pa64-hpux.h (JCR_SECTION_NAME): Define.
5791         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
5792         USE_EH_FRAME_REGISTRY when defining.
5793
5794 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
5795
5796         * config/h8300/h8300.c (output_a_shift): Do not output a
5797         variable shift.
5798         * config/h8300/h8300.md (two splitters): New.
5799
5800 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
5801
5802         * config/mips/mips.md: Disable the movstrsi define_split.
5803
5804 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5805
5806         * alloc-pool.c: Don't include "libiberty.h".
5807         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
5808         * convert.c (convert_to_real): Hide unused variable.
5809
5810 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5811
5812         * Makefile.in (gtyp-gen.h): Const-ify.
5813         * gcov-dump.c (tag_table): Likewise.
5814
5815 2003-01-04  Bruce Korb  <bkorb@gnu.org>
5816
5817         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
5818         of *both* the file name and the fix name.
5819
5820 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
5821
5822         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
5823         collect2.
5824         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
5825         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
5826         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
5827         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
5828         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
5829         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
5830         elfos.h.
5831         (EH_FRAME_IN_DATA_SECTION): Delete define.
5832         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
5833         (STARTFILE_SPEC): Use crtbegin.o.
5834         (ENDFILE_SPEC): Use crtend.o.
5835         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
5836         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
5837         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
5838         DTOR_LIST_BEGIN): Define.
5839         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
5840         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
5841         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
5842
5843 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
5844
5845         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
5846         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
5847         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
5848         Cleanup handling of replacement text.
5849         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
5850
5851 2003-01-04  Bruce Korb  <bkorb@gnu.org>
5852
5853         * fixinc/tests/base/math.h: removed obsolete results
5854         * fixinc/tests/base/stdlib.h: ditto
5855         * fixinc/tests/base/sys/param.h: ditto
5856         * fixinc/tests/base/sys/stat.h: ditto
5857         * fixinc/tests/base/time.h: ditto
5858         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
5859         * fixinc/tests/base/sys/byteorder.h: ditto
5860         * fixinc/inclhack.def: Remove superfluous backslashes
5861
5862 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
5863
5864         * config/h8300/h8300-protos.h: Add prototypes for
5865         the new functions defined below.
5866         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
5867         define.
5868         (dosize): Emit RTL instead of assembly code.
5869         (push): Likewise.
5870         (pop): Likewise.
5871         (h8300_output_function_prologue): Remove.
5872         (h8300_expand_prologue): New.
5873         (h8300_expand_epilogue): New.
5874         (h8300_output_function_epilogue): Do only the reset of
5875         pragma_saveall.
5876         * config/h8300/h8300.md (push_h8300): New.
5877         (push_h8300hs): Likewise.
5878         (pop_h8300): Likewise.
5879         (pop_h8300hs): Likewise.
5880         (*stm_h8300s_2): Change the name to stm_h8300s_2.
5881         (*stm_h8300s_3): Change the name to stm_h8300s_3.
5882         (*stm_h8300s_4): Change the name to stm_h8300s_4.
5883         (*ldm_h8300s_2): New.
5884         (*ldm_h8300s_3): Likewise.
5885         (*ldm_h8300s_4): Likewise.
5886         (return): Likewise.
5887         (*return_1): Likewise.
5888         (prologue): Likewise.
5889         (epilogue): Likewise.
5890         (monitor_prologue): Likewise.
5891
5892 2003-01-03  Dale Johannesen  <dalej@apple.com>
5893
5894         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
5895           machopic_picsymbol_stub1.
5896           (EXTRA_SECTION_FUNCTIONS):  Ditto.
5897         * rs6000/rs6000.c:  Update copyright.
5898           (machopic_output_stub):  Use them.  Remove an insn from stub code.
5899
5900 2003-01-02  Jason Merrill  <jason@redhat.com>
5901
5902         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
5903
5904         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
5905         static/external decls.
5906
5907         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
5908         outermost scope.
5909         * c-decl.c (c_make_fname_decl): Push the decls there, too.
5910
5911 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
5912
5913         * config/h8300/h8300-protos.h: Add a prototype for
5914         h8300_current_function_interrupt_function_p.
5915         * config/h8300/h8300.c (interrupt_handler): Remove.
5916         (os_task): Likewise.
5917         (monitor): Likewise.
5918         (pragma_interrupt): New.
5919         (WORD_REG_USED): Use
5920         h8300_current_function_interrupt_function_p.
5921         (dosize): Likewise.
5922         (h8300_output_function_prologue): Likewise.
5923         Do not set interrupt_handler, os_task, monitor.
5924         (h8300_output_function_prologue): Use
5925         h8300_current_function_interrupt_function_p.
5926         Do not set interrupt_handler, os_task, monitor.
5927         (h8300_current_function_interrupt_function_p): New.
5928         (h8300_pr_interrupt): Set pragma_interrupt.
5929         (h8300_insert_attributes): Reset pragma_interrupt.
5930
5931 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5932
5933         * doc/install.texi (Configuration): Fix markup for reference to
5934         gcc/config.gcc.
5935
5936 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
5937
5938         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
5939         (*iorhi3_two_qi): Likewise.
5940         (*iorsi3_zexthi): Likewise.
5941         (*xorhi3_zextqi): Likewise.
5942         (*xorsi3_zexthi): Likewise.
5943         (*xorsi3_zextqi): Likewise.
5944
5945 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
5946
5947         * config/h8300/h8300.c (stack_pointer_operand): New.
5948         (const_int_gt_2_operand): Likewise.
5949         (const_int_ge_8_operand): Likewise.
5950         * config/h8300/h8300.md (a splitter): Likewise.
5951         (a peephole2): Likewise.
5952         * config/h8300/h8300-protos.h: Add prototypes for the new
5953         functions above.
5954
5955 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
5956
5957         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
5958         objc/objc-act.h: Fix copyright years.
5959
5960 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5961
5962         * doc/passes.texi: Fix documentation for -fssa-ccp
5963
5964 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
5965
5966         * gccbug.in: Update for new categories.
5967
5968 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
5969
5970         * config/h8300/h8300.md: Reorder some patterns.
5971
5972 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
5973
5974         * config/h8300/h8300.c (output_logical_op): Fix a warning.
5975
5976 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
5977
5978         * config/darwin-protos.h, config/c4x/c4x-protos.h,
5979         config/cris/cris-protos.h, config/i370/i370-protos.h,
5980         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
5981         config/v850/v850-protos.h: Use struct, and don't conditionally
5982         compile on GCC_C_PRAGMA_H.
5983
5984 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
5985
5986         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
5987         * config/h8300/h8300-protos.h: Likewise.
5988         * config/sh/sh-protos.h: Likewise.
5989
5990 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
5991
5992         * config/arm/arm-protos.h: Use struct cpp_reader instead of
5993         cpp_reader.
5994         * config/h8300/h8300-protos.h: Likewise.
5995         * config/sh/sh-protos.h: Likewise.
5996
5997 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
5998
5999         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
6000         arm_pr_long_calls_off): Use struct.
6001         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
6002         : Similarly.
6003         Don't include cpplib.h.
6004         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
6005         sh_pr_nosave_low_regs): Similarly.
6006
6007 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
6008
6009         * config/h8300/h8300.c: Include cpplib.h.
6010
6011 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
6012
6013         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
6014           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
6015           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
6016           "GCC" in the copyright header.
6017
6018 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
6019
6020         * c-pragma.c (c_register_pragma): New.
6021         (init_pragma): Use it.
6022         * c-pragma.h (cpp_register_pragma): Don't declare.
6023         (c_register_pragma): New.
6024         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
6025         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
6026         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
6027         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
6028         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
6029         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
6030         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
6031         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
6032         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
6033         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
6034         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
6035         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
6036
6037 2002-12-31  Kazu Hirata  <kazu@cs.umass.edu>
6038
6039         * config/h8300/h8300-protos.h: Update the prototypes.
6040         * config/h8300/h8300.c (const_le_2_operand): Change to
6041         const_int_le_2_operand.
6042         (const_int_le_6_operand): Change to const_int_le_6_operand.
6043         * config/h8300/h8300.md (two peepholes): Update the function
6044         names.
6045
6046 2002-12-31  Tom Tromey  <tromey@redhat.com>
6047
6048         * doc/install.texi (Testing): Fixed typo.
6049
6050 2002-12-31  Kazu Hirata  <kazu@cs.umass.edu>
6051
6052         * config/h8300/h8300.h (TRAMPOLINE_TEMPLATE): Remove.
6053         (TRAMPOLINE_SIZE): Support the normal mode.
6054         (INITIALIZE_TRAMPOLINE): Emit the entire trampoline.
6055
6056 2002-12-31  Mark Mitchell  <mark@codesourcery.com>
6057
6058         * c-common.h (pending_lang_change): Declare.
6059
6060 2002-12-31  Jerry Quinn  <jlquinn@optonline.net>
6061
6062         * gcc/doc/invoke.texi (Optimization Options): Clean up -O flag
6063         descriptions.
6064
6065 2002-12-31  Jerry Quinn  <jlquinn@optonline.net>
6066
6067         * gcc/doc/invoke.texi (Optimization Options): List the options
6068         enabled by each -O flag.
6069
6070 2002-12-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6071
6072         * doc/install.texi (Configuration): Explicitly refer
6073         gcc/config.gcc for a list of cpu models.
6074
6075 2002-12-31  Kazu Hirata  <kazu@cs.umass.edu>
6076
6077         * config/h8300/h8300.h: Fix comment typos.
6078
6079 2002-12-30  David Edelsohn  <edelsohn@gnu.org>
6080
6081         * config/rs6000/rs6000.h (WIDEST_HARDWARE_FP_SIZE): Define.
6082
6083 2002-12-30  Tom Tromey  <tromey@redhat.com>
6084
6085         * doc/install.texi (Testing): Mention Jacks.
6086
6087 2002-12-30  Joseph S. Myers  <jsm@polyomino.org.uk>
6088
6089         * doc/gcc.texi, doc/gccint.texi: Update last modification dates.
6090
6091 2002-12-30  Kazu Hirata  <kazu@cs.umass.edu>
6092
6093         * config/h8300/h8300.c (output_logical_op): Use extu.w in more
6094         cases.
6095         (compute_logical_op_length): Update to reflect the change in
6096         output_logical_op.
6097         (compute_logical_op_cc): Likewise.
6098
6099 2002-12-30  Joseph S. Myers  <jsm@polyomino.org.uk>
6100
6101         * doc/service.texi: Uncomment and update FAQ link.
6102
6103 2002-12-30  Andreas Jaeger  <aj@suse.de>
6104
6105         * unwind-dw2-fde.h (last_fde): Add unused attribute for obj.
6106
6107 2002-12-30  Kazu Hirata  <kazu@cs.umass.edu>
6108
6109         * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): New.
6110
6111 2002-12-30  Kazu Hirata  <kazu@cs.umass.edu>
6112
6113         * config/h8300/h8300.c (output_logical_op): Use extu.w if we
6114         are clearing the most significant byte.
6115         (compute_logical_op_length): Update to reflect the change in
6116         output_logical_op.
6117         (compute_logical_op_cc): Likewise.
6118
6119 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
6120
6121         * config/h8300/h8300.md: Give internal names to anonymous
6122         insns.
6123
6124 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
6125
6126         * config/h8300/h8300.md: Reorder some insns.
6127
6128 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
6129
6130         * config/h8300/h8300-protos.h: Add prototypes for
6131         const_int_qi_operand and const_int_hi_operand.
6132         * config/h8300/h8300.c (const_int_qi_operand): New.
6133         (const_int_hi_operand): Likewise.
6134         * config/h8300/h8300.md (three peepholes): New.
6135
6136 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
6137
6138         * doc/cpp.texi, doc/gcc.texi, doc/gccint.texi, doc/install.texi:
6139         Use @copying.
6140
6141 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
6142
6143         * configure.in: Increase makeinfo version requirement to 4.[2-9].
6144         * configure: Regenerate.
6145         * doc/install.texi: Update Texinfo version requirement.
6146
6147 2002-12-28  Andreas Jaeger  <aj@suse.de>
6148
6149         * config/i386/i386.c (x86_function_profiler): Mark labelno as
6150         possibly unused.
6151
6152         * c-parse.in (yyprint): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX for
6153         correct format.
6154
6155 2002-12-27  Kazu Hirata  <kazu@cs.umass.edu>
6156
6157         * config/h8300/h8300.md (*iorhi_shift_8): Change the name to
6158         *iorhi_ashift_8.
6159         (*iorhi_lshiftrt_8): New.
6160
6161 2002-12-27  Joseph S. Myers  <jsm@polyomino.org.uk>
6162
6163         * doc/include/texinfo.tex: Update to version 2002-12-26.16.
6164
6165 2002-12-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6166
6167         * doc/contrib.texi (Contributors): Add Abramo and Roberto Bagnara.
6168
6169 2002-12-26  Kazu Hirata  <kazu@cs.umass.edu>
6170
6171         * config/h8300/h8300-protos.h: Fix comment typos.
6172         Update copyright.
6173         * config/h8300/h8300.c: Fix comment typos.
6174
6175 2002-12-26  Kazu Hirata  <kazu@cs.umass.edu>
6176
6177         * config/h8300/h8300.h (IDENT_ASM_OP): End with a tab.
6178
6179 2002-12-26  Kazu Hirata  <kazu@cs.umass.edu>
6180
6181         * config/i386/athlon.md: Fix comment typos.
6182         * config/i386/crtdll.h: Likewise.
6183         * config/i386/djgpp.h: Likewise.
6184         * config/i386/i386-interix.h: Likewise.
6185         * config/i386/i386.c: Likewise.
6186         * config/i386/i386.h: Likewise.
6187         * config/i386/i386.md: Likewise.
6188         * config/i386/k6.md: Likewise.
6189         * config/i386/mingw32.h: Likewise.
6190         * config/i386/pentium.md: Likewise.
6191         * config/i386/sco5.h: Likewise.
6192         * config/i386/winnt.c: Likewise.
6193         * config/i386/xmmintrin.h: Likewise.
6194
6195 2002-12-26  Jose Renau <renau@cs.uiuc.edu>
6196
6197         * ssa-dce.c (EXECUTE_IF_UNNECESSARY): Verify INSN is an
6198         INSN_P before checking to see if it is dead.
6199         (mark_all_insn_unnecessary): Similarly.
6200         (ssa_eliminate_dead_code): Similarly.
6201         * rtl.h (struct rtx_def): Update comments for in_struct usage
6202         in dead code elimination pass.
6203         (INSN_DEAD_CODE_P): Allow JUMP_INSN and CALL_INSN as well.
6204
6205 2002-12-26  Andreas Schwab  <schwab@suse.de>
6206
6207         * config.gcc (powerpc*-*-*, rs6000-*-*): Fix assignment syntax.
6208
6209 2002-12-25  David Edelsohn  <edelsohn@gnu.org>
6210
6211         * config/rs6000/rs6000.c (rs6000_override_options): Convert to
6212         tartet_flags_explicit.
6213         * config/rs6000/rs6000.h (MASK_MULTIPLE_SET, MASK_STRING_SET): Delete.
6214         Compact target_flags bits.
6215         (TARGET_MULTIPLE_SET, TARGET_STRING_SET): Delete.
6216         (TARGET_SWITCHES): Delete references to *_SET flags.
6217
6218 Wed Dec 25 20:30:53 CET 2002  Jan Hubicka  <jh@suse.cz>
6219
6220         * i386.md (memory attribute): Fix setcc attribute.
6221
6222 2002-12-25  Kazu Hirata  <kazu@cs.umass.edu>
6223
6224         * output.h: Fix comment typos.
6225         * predict.c: Likewise.
6226         * print-tree.c: Likewise.
6227         * profile.c: Likewise.
6228         * ra-build.c: Likewise.
6229         * ra-colorize.c: Likewise.
6230         * ra-debug.c: Likewise.
6231         * ra-rewrite.c: Likewise.
6232         * ra.c: Likewise.
6233         * ra.h: Likewise.
6234         * real.c: Likewise.
6235         * recog.c: Likewise.
6236         * reg-stack.c: Likewise.
6237         * regclass.c: Likewise.
6238
6239 2002-12-25  Kazu Hirata  <kazu@cs.umass.edu>
6240
6241         * config/h8300/h8300.c (print_operand_address): Do not negate
6242         a negative number when printing one.
6243
6244 2002-12-25  Kazu Hirata  <kazu@cs.umass.edu>
6245
6246         * config/h8300/h8300-protos.h: Add prototypes for
6247         output_plussi, compute_plussi_length, and compute_plussi_cc.
6248         * config/h8300/h8300.c (output_plussi): New.
6249         (compute_plussi_length): Likewise.
6250         (compute_plussi_cc): Likewise.
6251         * config/h8300/h8300.md (addsi_h8300h): Call
6252         output_plussi, compute_plussi_length, and compute_plussi_cc.
6253
6254 2002-12-24  Kazu Hirata  <kazu@cs.umass.edu>
6255
6256         * config/h8300/h8300.md (two peepholes): Use match_dup instead
6257         of match_operand in the new patterns.
6258
6259 2002-12-24  Joseph S. Myers  <jsm@polyomino.org.uk>
6260
6261         * doc/include/texinfo.tex: Update to version 2002-11-25.11.
6262
6263 2002-12-24  Nathan Sidwell  <nathan@codesourcery.com>
6264
6265         * configure.in (enable-coverage): Add SELF_COVERAGE.
6266         * profile.c (end_branch_prob): Use SELF_COVERAGE.
6267
6268 2002-12-24  Jim Wilson  <wilson@redhat.com>
6269
6270         * alias.c (record_set): Handle multi-reg hard registers.
6271
6272 2002-12-24  Kazu Hirata  <kazu@cs.umass.edu>
6273
6274         * regmove.c: Fix comment typos.
6275         * reload.c: Likewise.
6276         * reload1.c: Likewise.
6277         * resource.c: Likewise.
6278         * rtl.def: Likewise.
6279         * rtl.h: Likewise.
6280         * rtlanal.c: Likewise.
6281         * sched-deps.c: Likewise.
6282         * sched-rgn.c: Likewise.
6283         * sibcall.c: Likewise.
6284         * simplify-rtx.c: Likewise.
6285         * ssa-ccp.c: Likewise.
6286         * ssa.c: Likewise.
6287         * stmt.c: Likewise.
6288         * stor-layout.c: Likewise.
6289         * system.h: Likewise.
6290         * tlink.c: Likewise.
6291         * toplev.c: Likewise.
6292         * tracer.c: Likewise.
6293         * tree-inline.c: Likewise.
6294         * tree.c: Likewise.
6295         * tree.h: Likewise.
6296         * unroll.c: Likewise.
6297         * varasm.c: Likewise.
6298
6299 2002-12-23  Larin Hennessy  <larin@science.oregonstate.edu>
6300
6301         * doc/install.texi: Remove i386-*-isc, i860-*-bsd,
6302         m68k-altos-sysv, m68k-isi-bsd, m68k-sony-bsd entries.
6303         * doc/invoke.texi: Remove AMD 29K, ARM RISC/iX, Clipper, Convex,
6304         DG/UX entries.
6305         * doc/md.texi: Remove AMD 29K entries.
6306         * doc/trouble.texi: Remove Alliant, DG/UX, Iris 4.0.5F, GAS
6307         1.38.1, NewsOS, RT PC, WE32K entries.
6308
6309 2002-12-23  Aldy Hernandez  <aldyh@redhat.com>
6310
6311         PR/8763
6312         * config/rs6000/altivec.md (mulv4sf3): Rewrite to add -0.0 vector.
6313         (altivec_vspltisw_v4sf): Name pattern.
6314         (altivec_vslw_v4sf): New pattern.
6315
6316 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
6317
6318         * doc/include/gcc-common.texi: Define DEVELOPMENT.
6319
6320 2002-12-23  Mark Mitchell  <mark@codesourcery.com>
6321
6322         * stor-layout.c (update_alignment_for_field): Correct handling of
6323         unnamed bitfields on PCC_BITFIELD_TYPE_MATTERS machines.
6324         * doc/tm.texi (PCC_BITFIELD_TYPE_MATTERS): Note that an unnamed
6325         bitfield does not affect alignment.
6326
6327 2002-12-23  David Edelsohn  <edelsohn@gnu.org>
6328
6329         * expr.c (expand_assignment): Apply special treatment to
6330         ARRAY_TYPE.
6331
6332 2002-12-23  Kazu Hirata  <kazu@cs.umass.edu>
6333
6334         * config/h8300/h8300-protos.h: Update the prototype of
6335         expand_a_shift.
6336         * config/h8300/h8300.c (expand_a_shift): Change the return
6337         type to void.
6338         * config/h8300/h8300.md: Update all the uses of
6339         expand_a_shift.
6340
6341 2002-12-22  Nathan Sidwell  <nathan@codesourcery.com>
6342
6343         * tree.c (save_expr): Allow either side of a dyadic operand to be
6344         constant.
6345
6346         * doc/portability.texi (portability): Update portability goals.
6347
6348 2002-12-23  Kazu Hirata  <kazu@cs.umass.edu>
6349
6350         * config/h8300/h8300.c (output_a_shift): Remove unused code.
6351
6352 2002-12-22  Mark Mitchell  <mark@codesourcery.com>
6353
6354         * stor-layout.c (update_alignment_for_field): Guard use of
6355         ADJUST_FIELD_ALIGN with #ifdef.
6356
6357         * stor-layout.c (update_alignment_for_field): Use
6358         ADJUST_FIELD_ALIGN when computing the alignment for a zero-width
6359         bitfield when PCC_BITFIELD_TYPE_MATTERS.
6360
6361 2002-12-22  Kazu Hirata  <kazu@cs.umass.edu>
6362
6363         * genautomata.c: Fix comment typos.
6364
6365 Sun Dec 22 18:23:44 CET 2002  Jan Hubicka  <jh@suse.cz>
6366
6367         * params.def (tracer-min-branch-probability-feedback): Fix default.
6368         * final.c (compute_alignments): Use profile to avoid code bloat.
6369
6370 2002-12-22  Kazu Hirata  <kazu@cs.umass.edu>
6371
6372         * config/h8300/h8300.c (get_shift_alg): Make shift insn
6373         sequences end with a valid cc0 whenever possible.
6374
6375 2002-12-22  Kazu Hirata  <kazu@cs.umass.edu>
6376
6377         * config/h8300/h8300.md (negsf2): New.
6378         (*negsf2_h8300): Likewise.
6379         (*negsf2_h8300hs): Likewise.
6380
6381 2002-12-21  Geoffrey Keating  <geoffk@apple.com>
6382
6383         * integrate.c (output_inline_function): Don't hold private
6384         pointers to 'struct function' over GC calls.
6385
6386 2002-12-21  Kaz kojima  <kkojima@gcc.gnu.org>
6387
6388         * config/sh/lib1funcs.asm (__fpscr_values): Conditionalize with
6389         NO_FPSCR_VALUES.
6390         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Add -DNO_FPSCR_VALUES.
6391
6392 2002-12-21  Kazu Hirata  <kazu@cs.umass.edu>
6393
6394         * config/h8300/h8300.md (zero_extendqisi2): Correct the
6395         length.
6396
6397 2002-12-21  Kazu Hirata  <kazu@cs.umass.edu>
6398
6399         * config/h8300/h8300.md (*zero_extendqihi2_h8300): Make the
6400         second alternative "#".
6401         (*zero_extendqihi2_h8300hs): Likewise.
6402         (a define_split): New.
6403
6404 2002-12-21  Kazu Hirata  <kazu@cs.umass.edu>
6405
6406         * config/h8300/h8300-protos.h: Update the prototype for
6407         split_adds_subs.
6408         Add prototypes for const_le_2_operand and const_le_6_operand.
6409         * config/h8300/h8300.c (split_adds_subs): Add an argument to
6410         specify whether inc/dec should be used when possible.
6411         (const_le_2_operand): New.
6412         (const_le_6_operand): Likewise.
6413         * config/h8300/h8300.md (two peepholes): New.
6414
6415 2002-12-21  Kazu Hirata  <kazu@cs.umass.edu>
6416
6417         * config/fr30/fr30.md: Fix a comment typo.
6418         * config/i386/i386.c: Likewise.
6419         * config/ip2k/ip2k.h: Likewise.
6420
6421 2002-12-20  Jim Wilson  <wilson@redhat.com>
6422
6423         * config/rs6000/spe.h (__ev_subifw): Reverse arguments.
6424         (__ev_subw, __ev_subiw): New.
6425         (ev_mwlssf, ev_mwlsmf, ev_mwlssfa, ev_mwlsmfa, ev_mwlssfaaw,
6426         ev_mwlsmfaaw, ev_mwlssfanw, ev_mwlsmfanw): Delete.
6427
6428 2002-12-20  John David Anglin  <dave.anglin@nrc.gc.ca>
6429
6430         * pa-linux.h (TARGET_HAS_STUBS_AND_ELF_SECTIONS): Delete define.
6431         * pa32-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete define.
6432         * pa.c (pa_function_ok_for_sibcall): Allow non indirect sibcalls on
6433         TARGET_ELF32.  Add comment on sibcall issues for TARGET_64BIT.
6434
6435 2002-12-20  Kazu Hirata  <kazu@cs.umass.edu>
6436
6437         * config/h8300/h8300-protos.h: Add prototypes for
6438         incdec_operand and eqne_operator.
6439         * config/h8300/h8300.c (incdec_operand): New.
6440         (eqne_operator): Likewise.
6441         * config/h8300/h8300.h (CONST_OK_FOR_M): Likewise.
6442         (CONST_OK_FOR_O): Likewise.
6443         (CONST_OK_FOR_LETTER_P): Use CONST_OK_FOR_M and
6444         CONST_OK_FOR_O.
6445         * config/h8300/h8300.md (UNSPEC_INCDEC): New.
6446         (addhi3_incdec): New.
6447         (addsi3_incdec): Likewise.
6448         (two peepholes): Likewise.
6449
6450 2002-12-20  Kazu Hirata  <kazu@cs.umass.edu>
6451
6452         * config/h8300/h8300.c (dosize): Remove warnings.
6453         (print_operand): Likewise.
6454
6455 2002-12-20  Richard Henderson  <rth@redhat.com>
6456
6457         * config/alpha/alpha.c (decl_has_samegp): New.
6458         (samegp_function_operand): Use it.  Rename from
6459         current_file_function_operand.
6460         (direct_call_operand): Handle -msmall-text via symbol->jump.
6461         (tls_symbolic_operand_1): Use T for tprel64, t for smaller tprel.
6462         (tls_symbolic_operand_type): Likewise.
6463         (alpha_encode_section_info): Likewise.  Handle -msmall-text.
6464         (alpha_function_ok_for_sibcall): Use decl_has_samegp.
6465         (alpha_end_function): Set symbol->jump for functions defined in
6466         the text section.
6467         * config/alpha/alpha-protos.h: Update.
6468         * config/alpha/alpha.h (MASK_SMALL_TEXT, TARGET_SMALL_TEXT): New.
6469         (TARGET_SWITCHES): Add -msmall-text and -mlarge-text.
6470         (PREDICATE_CODES): Update.
6471         * config/alpha/alpha.md (call patterns): Update for
6472         samegp_function_operand rename; use !samegp reloc if
6473         TARGET_EXPLICIT_RELOCS.
6474         * doc/invoke.text: Document -msmall-text and -mlarge-text.
6475
6476 2002-12-20  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
6477
6478         * config/ns32k/ns32k.md (movdi): Use "l" instead of "f" to match
6479         all registers capable of holding a double float.
6480         (*rcond): change name of "reverse branch" insns to
6481         something more meaningful.
6482         (*rbgt, *rblt, *rbge, *rble): Reverse branches to handle IEEE
6483         comparisons properly.
6484         (*ffs): Change operand 0 from write to read-modify-write.
6485         (*ffsssi2): Drop constraints from define_expand.
6486
6487         * config/ns32k/ns32k.h (STORE_RATIO, STORE_BY_PIECES): Avoid using
6488         MOVE_RATIO as default for store operations.
6489
6490         * config/ns32k/ns32k.h (enum reg_class, REG_CLASS_NAMES): Add
6491         LONG_REGS class.
6492         (CANNOT_CHANGE_MODE_CLASS): Can't subreg LONG_REGS.
6493         (GO_IF_LEGITIMATE_ADDRESS): Remove spurious abort().
6494         * config/ns32k/ns32k.c (regclass_map): Add LONG_REGS class.
6495
6496         * config/ns32k/STATUS: New File
6497         * config/ns32k/NOTES: New file.
6498
6499 2002-12-20  Hartmut Penner  <hpenner@de.ibm.com>
6500
6501         * doc/invoke.texi: Document -mzarch, -mesa, -mcpu= and -march=
6502         option for S/390 and zSeries.
6503         * config/s390/s390.c (s390_cpu, s390_cpu_string, s390_arch,
6504         s390_arch_string): New variables.
6505         (override_options): Checking for options and setting of
6506         appropriate target_flags, cpu and arch flags.
6507         * config/s390/s390.h: (processor_type): New enum.
6508         (TARGET_SWITCHES): New switches -mesa/zarch.
6509         * config/s390/s390.md: New attribute 'cpu'.
6510
6511 2002-12-19  Kazu Hirata  <kazu@cs.umass.edu>
6512
6513         * c-pretty-print.h: Fix comment typos.
6514         * integrate.c: Likewise.
6515         * varasm.c: Likewise.
6516         * config/c4x/c4x.h: Likewise.
6517         * config/c4x/c4x.md: Likewise.
6518         * config/fr30/fr30.md: Likewise.
6519         * config/frv/frv.c: Likewise.
6520         * config/h8300/h8300.c: Likewise.
6521         * config/i386/i386.c: Likewise.
6522         * config/i386/i386.h: Likewise.
6523         * config/ia64/ia64.c: Likewise.
6524         * config/ia64/ia64.h: Likewise.
6525         * config/ip2k/ip2k.md: Likewise.
6526         * config/m68hc11/m68hc11-crt0.S: Likewise.
6527         * config/m68hc11/m68hc11.h: Likewise.
6528         * config/m68hc11/m68hc11.md: Likewise.
6529         * config/m68hc11/m68hc12.h: Likewise.
6530         * config/mcore/mcore.md: Likewise.
6531         * config/mips/mips.c: Likewise.
6532         * config/mips/mips.md: Likewise.
6533         * config/mmix/mmix-modes.def: Likewise.
6534         * config/pa/pa.c: Likewise.
6535         * config/rs6000/rs6000.c: Likewise.
6536         * config/rs6000/rs6000.h: Likewise.
6537         * config/rs6000/rs6000.md: Likewise.
6538
6539 2002-12-19  Kazu Hirata  <kazu@cs.umass.edu>
6540
6541         * config/h8300/h8300.md (output_a_shift): Clean up the code to
6542         output shifts using rotation.
6543
6544 2002-12-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6545
6546         * flow.c (allocate_reg_life_data): Reset REG_FREQ.
6547
6548 2002-12-19  Kazu Hirata  <kazu@cs.umass.edu>
6549
6550         * config/h8300/h8300.md (pushqi_h8300): Don't push the stack
6551         pointer.
6552         (pushqi_h8300hs): Likewise.
6553         (pushhi_h8300): Likewise.
6554         (pushhi_h8300hs): Likewise.
6555
6556 Thu Dec 19 23:44:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
6557
6558         * sched-rgn.c (init_regions): Update comment.
6559
6560 2002-12-19  David Edelsohn  <edelsohn@gnu.org>
6561
6562         * config/rs6000/rs6000.md (define_attr type): Remove altivec.
6563         * config/rs6000/altivec.md (movv4si_internal): Set correct instruction
6564         attributes.
6565         (movv8hi_internal,movv16qi_internal,movv4sf_internal): Same.
6566         (get_vrsave_internal,set_vrsave_internal): Same.
6567         (altivec_vspltisb,altivec_vspltish,altivec_vspltisw): Same.
6568         (absv16qi2,absv8hi2,absv4si2,absv4sf2): Same
6569         (altivec_abss_v16qi,altivec_abss_v8hi,altivec_abss_v4si): Same.
6570
6571 2002-12-19  Casper S. Hornstrup  <chorns@users.sourceforge.net>
6572             Danny Smith  <dannysmith@users.sourceforge.net>
6573             Eric Kohl  <ekohl@rz-online.de>
6574
6575         * config/i386/i386.c (ix86_handle_cdecl_attribute): Check for
6576         attributes incompatible with fastcall attribute.
6577         (ix86_handle_regparm_attribute): Likewise.
6578
6579         * config/i386/i386.c (ix86_comp_type_attributes): Check for mismatched
6580         fastcall types.
6581
6582         * config/i386/cygwin.h (TARGET_OS_CPP_BUILTINS): Add fastcall
6583         attributes.
6584         (ASM_OUTPUT_LABELREF): Define as i386_pe_output_labelref.
6585         * config/i386/i386-protos.h (i386_pe_output_labelref): Declare.
6586         * config/i386/winnt.c (i386_pe_mark_dllimport). Add __imp_ prefix in
6587         i386_pe_output_labelref rather than here.
6588         (gen_fastcall_suffix): New function. Decorates a label name with the
6589         fastcall prefix (@) and the stdcall suffix.
6590         (i386_pe_encode_section_info): Call gen_fastcall_suffix() if a symbol
6591         has a fastcall attribute.
6592         (i386_pe_output_labelref): New function. Outputs a label reference.
6593         * config/i386/i386.c (ix86_attribute_table): Accept 'fastcall' as a
6594         valid attribute.
6595         (ix86_return_pops_args): Fastcall functions pop the stack.
6596         (init_cumulative_args): Reserve registers ECX and EDX if function has
6597         fastcall attribute.
6598         (function_arg): Use registers ECX and EDX if function has fastcall
6599         attribute.
6600         * config/i386/i386.h (CUMULATIVE_ARGS): Add fastcall attribute flag.
6601         (DLL_IMPORT_EXPORT_PREFIX): Redefine as '#'.
6602         (FASTCALL_PREFIX): Define as '@'.
6603         * config/i386/mingw32.h (TARGET_OS_CPP_BUILTINS): Add fastcall
6604         attributes.
6605         * doc/extend.texi: Add documentation of fastcall attribute.
6606
6607 2002-12-19  Nathanael Nerode  <neroden@gcc.gnu.org>
6608
6609         * configure.in: FORBUILD when build!=host changed from
6610         ../$build-alias to ../build-$build_alias to match change made
6611         in top directory.
6612         * configure: Regenerated.
6613
6614 2002-12-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
6615
6616         PR optimization/8988
6617         * loop.c (maybe_eliminate_biv): Kill REG_EQUAL notes mentioning
6618         the biv when eliminating.
6619
6620 2002-12-19  Devang Patel  <dpatel@apple.com>
6621         * gcc.c (struct default_compiler): Recognizes input file name with
6622         .CPP extension as C++ source files
6623         * cp/lang-spec.h: Same
6624         * doc/invoke.texi:  Add documentation for .CPP support.
6625
6626 2002-12-19  Aldy Hernandez  <aldyh@redhat.com>
6627
6628         PR 8553
6629         * config/rs6000/altivec.md ("absv8hi2"): Add & to clobbered
6630         registers.
6631         ("absv16qi2"): Same.
6632         ("absv4si2"): Same.
6633         ("absv4sf2"): Same.
6634         ("altivec_abss_v16qi"): Same.
6635         ("altivec_abss_v8hi"): Same.
6636         ("altivec_abss_v4si"): Same.
6637
6638 2002-12-19  Ulrich Weigand  <uweigand@de.ibm.com>
6639
6640         * config/s390/s390.md ("*tsthiCCT", "*tsthiCCT_cconly",
6641         "*tstqiCCT", "*tstqiCCT_cconly"): New insns.
6642
6643 2002-12-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
6644
6645         PR target/8340
6646         * stmt.c (expand_asm_operands): Produce an error when
6647         the PIC register is clobbered.
6648
6649 2002-12-18  Daniel Berlin  <dberlin@dberlin.org>
6650
6651         * Makefile.in (OBJS): Add alloc-pool.o
6652         (alloc-pool.o): New object.
6653
6654         * alloc-pool.c: New file.
6655         * alloc-pool.h: New file.
6656
6657 2002-12-18  Loren James Rittle  <ljrittle@acm.org>
6658
6659         * gcc.c (validate_switches): Robustify against skipping past '\0'.
6660
6661 2002-12-18  Geoffrey Keating  <geoffk@apple.com>
6662
6663         * config.gcc: Set extra_objs in the generic Darwin rule,
6664         not in the machine-specific rules.
6665
6666 2002-12-19  Kazu Hirata  <kazu@cs.umass.edu>
6667
6668         * ChangeLog: Follow spelling conventions.
6669         * ChangeLog.2: Likewise.
6670         * ChangeLog.4: Likewise.
6671         * ChangeLog.5: Likewise.
6672         * cppexp.c: Likewise.
6673         * df.c: Likewise.
6674         * gcov.c: Likewise.
6675         * gengtype.c: Likewise.
6676         * reload1.c: Likewise.
6677         * sched-rgn.c: Likewise.
6678         * stmt.c: Likewise.
6679         * stor-layout.c: Likewise.
6680         * timevar.c: Likewise.
6681         * toplev.c: Likewise.
6682         * tree.h: Likewise.
6683         * varasm.c: Likewise.
6684         * config/fr30/fr30.md: Likewise.
6685         * config/i386/i386.c: Likewise.
6686         * config/ia64/ia64.c: Likewise.
6687         * config/pa/pa.c: Likewise.
6688
6689 2002-12-18  Roger Sayle  <roger@eyesopen.com>
6690
6691         * basic-block.h (flow_bb_inside_loop_p): Correct prototype.
6692
6693 2002-12-18  Aldy Hernandez  <aldyh@redhat.com>
6694
6695         PR 8551
6696         * config/rs6000/altivec.h (vec_cmplt macro): Reverse arguments in
6697         macro.
6698         (vec_cmplt C++ functions): Reverse arguments.
6699
6700 2002-12-18  Geoffrey Keating  <geoffk@apple.com>
6701
6702         * config/rs6000/t-rs6000: Move contents to t-fprules,
6703         add rules for dependencies of rs6000.o and to build rs6000-c.o
6704         * config/rs6000/t-fprules: New file from t-rs6000.
6705         * config/rs6000/t-beos: Remove soft-fp rules.
6706         * config/rs6000/t-ppccomm: Likewise.
6707         * config/rs6000/t-newas: Likewise.
6708         * config/rs6000/t-rs6000-c-rule: Delete.
6709         * config.gcc: Use t-fprules for rs6000/ ports when appropriate.
6710         Use t-rs6000 for all rs6000/ ports instead of t-rs6000-c-rule.
6711         Create generic Darwin rules.
6712
6713         * gengenrtl.c (gencode): Delete unnecessary rtl_obstack declaration.
6714
6715 2002-12-18  Doug Evans  <dje@sebabeach.org>
6716
6717         * m32r/m32r.c (addr24_operand): Fix arg to CONSTANT_POOL_ADDRESS_P
6718         and LIT_NAME_P.
6719         (move_src_operand): Remove compile-time warning.
6720         * m32r/m32r.h (ROUND_ADVANCE_ARG): Ditto.
6721
6722 2002-12-18  Jason Merrill  <jason@redhat.com>
6723
6724         * unwind-dw2-fde.c (frame_downheap): Split out from...
6725         (frame_heapsort): Here.
6726
6727 2002-12-17  Jason Merrill  <jason@redhat.com>
6728
6729         * tree.c (make_node): Don't set TREE_TYPE on 's' class nodes.
6730         (build1): Always set TREE_SIDE_EFFECTS on 's' class nodes.
6731
6732         * gcc.c (do_spec_1) ['W']: End any pending argument from the braces.
6733
6734         * calls.c (expand_call): Don't try to be clever about expanding
6735         the return slot address.
6736
6737 2002-12-18  Kaz kojima  <kkojima@gcc.gnu.org>
6738
6739         * config/sh/linux.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC):
6740         Define.
6741
6742 2002-12-17  Jason Merrill  <jason@redhat.com>
6743
6744         * genmultilib: Use 'cd ./foo'.
6745
6746 2002-12-17  Kazu Hirata  <kazu@cs.umass.edu>
6747
6748         * doc/c-tree.texi: Restore deliberate spelling mistakes.
6749
6750 2002-12-17  Kazu Hirata  <kazu@cs.umass.edu>
6751
6752         * doc/c-tree.texi: Fix typos and follow spelling conventions.
6753         * doc/cpp.texi: Likewise.
6754         * doc/extend.texi: Likewise.
6755         * doc/gty.texi: Likewise.
6756         * doc/install.texi: Likewise.
6757         * doc/invoke.texi: Likewise.
6758         * doc/md.texi: Likewise.
6759         * doc/passes.texi: Likewise.
6760         * doc/rtl.texi: Likewise.
6761         * doc/sourcebuild.texi: Likewise.
6762         * doc/tm.texi: Likewise.
6763
6764 2002-12-17  Jerry Quinn  <jlquinn@optonline.net>
6765
6766         * doc/invoke.texi: Minor spelling and grammar fixes.
6767
6768 2002-12-17  Ulrich Weigand  <uweigand@de.ibm.com>
6769
6770         * config/s390/s390.c (s390_output_constant_pool): Replace
6771         ASM_OUTPUT_INTERNAL_LABEL by (*targetm.asm_out.internal_label).
6772
6773 Tue Dec 17 09:47:57 CET 2002  Jan Hubicka  <jh@suse.cz>
6774
6775         * convert.c (convert_to_real): Disable function transformation for
6776         now.
6777
6778 2002-12-16  Geoffrey Keating  <geoffk@apple.com>
6779
6780         * gcc.c (handle_braces): Allow '@' as a switch name.
6781
6782 2002-12-16  Jason Merrill  <jason@redhat.com>
6783
6784         * calls.c (expand_call): Handle CALL_EXPR_HAS_RETURN_SLOT_ADDR
6785         with special struct-return ABIs.
6786
6787         * c-semantics.c (add_scope_stmt): Abort if the end SCOPE_STMT
6788         doesn't match the begin SCOPE_STMT in partialness.
6789
6790 2002-12-16  Geoffrey Keating  <geoffk@apple.com>
6791
6792         * genmultilib: Create temporary files in unique subdirectory.
6793
6794         * gcc.c (validate_switches): Allow '@' as a switch name.
6795
6796 2002-12-16  Loren J. Rittle  <ljrittle@acm.org>
6797
6798         * Makefile.in (gcov-iov.h): Improve portability.
6799
6800 Mon Dec 16 23:39:19 CET 2002  Jan Hubicka  <jh@suse.cz>
6801
6802         * mips.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not use qpword on API_N32/not
6803         gas
6804         * mips.md (tablejump insn): Likewise.
6805
6806 2002-12-16  Mark Mitchell  <mark@codesourcery.com>
6807
6808         * doc/include/gcc-common.texi: Change version number to 3.4.
6809
6810 2002-12-16  Bruce Korb  <bkorb@gnu.org>
6811
6812         * fixinc/fixlib.h: add: #include <signal.h>
6813         * fixinc/fixincl.c: remove: #include <signal.h>
6814
6815 Mon Dec 16 17:20:04 2002  J"orn Rennecke <joern.rennecke@superh.com>
6816
6817         * sh.h (EXTRA_CONSTRAINT_Z): New macro.
6818         (EXTRA_CONSTRAINT): Use it.
6819         * sh.md (anddi3): Use 'Z' constraint for alternative 2.
6820
6821 2002-12-15  Zack Weinberg  <zack@codesourcery.com>
6822
6823         * config.gcc (need_64bit_hwint): New variable.
6824         (alpha*-*-*, x86_64-*-*, ia64-*-*, mips*-*-*, powerpc*-*-*,
6825         mmix-knuth-mmixware, rs6000*-*-*, sparc64*-*-*, s390*-*-*,
6826         sh*-*-*, hppa*64*-*-linux, parisc*64*-*-linux, hppa*64*-*-hpux11*,
6827         sparcv9-*-solaris2*, sparc*-*-solaris2.[789], ultrasparc-*-freebsd*):
6828         Set it.
6829         (powerpc*-*-darwin*): Unset it.
6830         (alpha-*-interix, alpha64-dec-*vms*, i?86-*-interix3*,
6831         i?86-*-interix*, sparc64-*-openbsd*): Remove references to
6832         deleted/nonexistent xm-*.h headers.
6833         * configure.in: AC_DEFINE NEED_64BIT_HOST_WIDE_INT if the
6834         target set need_64bit_hwint in config.gcc.
6835         * configure, config.in: Regenerate.
6836
6837         * hwint.h: Overhaul.  Don't bother trying int for
6838         HOST_WIDE_INT.  Do try __int64 if long is not enough.  Base
6839         decision to force 64-bit HOST_WIDE_INT on
6840         NEED_64BIT_HOST_WIDE_INT, not (MAX_)LONG_TYPE_SIZE which is
6841         not visible at this point.  Don't allow prior definition of
6842         any macro defined by this file.
6843
6844         * config/alpha/xm-vms.h: Don't define HOST_WIDE_INT or
6845         HOST_BITS_PER_WIDE_INT.
6846         * config/c4x/c4x.h: Adjust redefinition of
6847         HOST_WIDE_INT_PRINT_HEX to match changes to hwint.h.
6848         * config/alpha/xm-alpha-interix.h, config/alpha/xm-vms64.h,
6849         config/i386/xm-i386-interix.h: Delete file.
6850
6851 2002-12-14  Rodney Brown  <rbrown64@csc.com.au>
6852             John David Anglin  <dave@hiauly1.hia.nrc.ca>
6853
6854         * pa.c (output_millicode_call): Convert ASM_OUTPUT_INTERNAL_LABEL.
6855         * pa64-hpux.h (ASM_OUTPUT_INTERNAL_LABEL): Delete define.
6856
6857 2002-12-14  Zack Weinberg  <zack@codesourcery.com>
6858
6859         * mkconfig.sh: Correct comment.  Add copyright boilerplate.
6860
6861 2002-12-14  Zack Weinberg  <zack@codesourcery.com>
6862
6863         * config/t-darwin, config/arm/t-pe, config/arm/t-strongarm-pe,
6864         config/c4x/t-c4x, config/i370/t-i370, config/i386/t-cygwin,
6865         config/i386/t-interix, config/i960/t-960bare, config/ia64/t-ia64,
6866         config/rs6000/t-rs6000-c-rule, config/sparc/t-sol2,
6867         config/v850/t-v850:  Correct dependencies and normalize
6868         compilation commands for files that include coretypes.h and tm.h.
6869
6870         * config/sparc/gmon-sol2.c: Include tconfig.h and tsystem.h,
6871         not config.h and system.h.
6872
6873 Sat Dec 14 20:43:41 CET 2002  Jan Hubicka  <jh@suse.cz>
6874
6875         * i386.c (flags_reg_operand):  New function.
6876         * i386.h (PREDICATE_CODES): Add flags_reg_operand.
6877         * i386.md (cmov splitter, movqicc): Use new predicate.
6878
6879 Sat Dec 14 17:03:17 CET 2002  Jan Hubicka  <jh@suse.cz>
6880
6881         * i386.md (movqicc splitter): Fix template.
6882
6883 2002-12-13  Jason Merrill  <jason@redhat.com>
6884
6885         * tree.h (CALL_EXPR_HAS_RETURN_SLOT_ADDR): New macro.
6886         * calls.c (expand_call): Handle it.
6887         * tree-inline.c (struct inline_data): Remove target_exprs field.
6888         (optimize_inline_calls): Don't initialize it.
6889         (expand_call_inline): Don't modify it.  Handle
6890         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
6891         (declare_return_variable): Take return slot addr.
6892         * langhooks.h (copy_res_decl_for_inlining): Change target_exprs parm
6893         to return_slot_addr.
6894         * langhooks-def.h, langhooks.c: Adjust.
6895         * explow.c (maybe_set_unchanging): Don't set RTX_UNCHANGING_P for
6896         a decl with no DECL_INITIAL.
6897
6898         * expr.c (expand_expr): Don't discard the target of a call which
6899         returns in memory.
6900
6901 2002-12-13  Neil Booth  <neil@daikokuya.co.uk>
6902
6903         * cppinit.c (path_include): Take an environment variable name.
6904         Tidy up.
6905         (init_standard_includes): Simplify environment handling, and
6906         move to ...
6907         (cpp_read_main_file): ...here as -nostdinc should not affect
6908         environment variable paths.
6909
6910 2002-12-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6911
6912         * pa.c (output_millicode_call): Correct typo.
6913         (output_call): Likewise.
6914
6915 Fri Dec 13 21:07:18 2002  Alexandre Oliva  <aoliva@redhat.com>
6916
6917         * config/mn10300/mn10300.c (print_operand) <case N>: Check
6918         operand's range.  Print value directly, without aid from
6919         output_address.
6920         <case U>: New.
6921         <case S>: Make sure argument to fprintf has the right type.
6922         * config/mn10300/mn10300.h (OK_FOR_T): New macro.
6923         (EXTRA_CONSTRAINT): Adjust.
6924         * config/mn10300/mn10300.md: Add new all-QImode pattern for
6925         bclr.  Use %U for immediate operands of bset and bclr.
6926         (iorqi3): New expand, with insns for AM33 and mn10300.
6927
6928 Fri Dec 13 16:02:27 2002  J"orn Rennecke <joern.rennecke@superh.com>
6929
6930         * sh.c (sh_register_operand): New function.
6931         (prepare_move_operands): Use it.
6932         * sh.h (PREDICATE_CODES): Add entry for sh_register_operand.
6933         * sh.md (movsi_media, movsi_media_nofpu): Allow stores of 0.
6934         (movqi_media, movhi_media, movdi_media, movdi_media_nofpu): Likewise.
6935         (movdf_media, movdf_media_nofpu, movv4sf_i, movsf_media): Likewise.
6936         (movsf_media_nofpu, movv2hi_i, movv4hi_i, movv8qi_i): Likewise.
6937         (movv2si_i): Likewise.
6938
6939 2002-12-13  Jim Wilson  <wilson@redhat.com>
6940
6941         * doc/extend.texi (Complex Numbers): Update info on debug info.
6942
6943 2002-12-13  Kazu Hirata  <kazu@cs.umass.edu>
6944
6945         * config/h8300/h8300.md (addhi3_h8300): Remove the last
6946         alternative.
6947
6948 2002-12-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6949
6950         * hooks.h (hook_tree_tree_bool_false): Declare
6951         hook_bool_tree_tree_false instead.
6952
6953 2002-12-12  Devang Patel  <dpatel@apple.com>
6954
6955         * doc/invoke.texi: Document Darwin linker options, -bundle
6956         -bind_at_load, -all_load and -arch_errors_fatal
6957
6958 2002-12-12  Jim Wilson  <wilson@redhat.com>
6959
6960         * dbxout.c (dbxout_fptype_value): New.
6961         (dbxout_type, case COMPLEX_TYPE): Call it.  Use 'R' instead of 'r'.
6962
6963 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
6964
6965         * c-decl.c: Fix a comment typo.
6966         * cfg.c: Likewise.
6967         * cfgcleanup.c: Likewise.
6968         * cfglayout.c: Likewise.
6969         * cfgrtl.c: Likewise.
6970         * c-typeck.c: Likewise.
6971         * dominance.c: Likewise.
6972         * dwarf2asm.c: Likewise.
6973         * dwarfout.c: Likewise.
6974         * expmed.c: Likewise.
6975         * expr.c: Likewise.
6976         * final.c: Likewise.
6977         * flow.c: Likewise.
6978         * function.c: Likewise.
6979         * gcc.c: Likewise.
6980         * genautomata.c: Likewise.
6981         * integrate.c: Likewise.
6982         * loop.c: Likewise.
6983         * loop.h: Likewise.
6984         * output.h: Likewise.
6985         * profile.c: Likewise.
6986         * ra.h: Likewise.
6987         * reload1.c: Likewise.
6988         * reload.c: Likewise.
6989         * sched-rgn.c: Likewise.
6990         * stmt.c: Likewise.
6991         * tree.h: Likewise.
6992         * vmsdbgout.c: Likewise.
6993
6994 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
6995
6996         * config/h8300/h8300.md: Add a new peephole2.
6997
6998 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
6999
7000         * config/h8300/h8300.md (a peephole2): Accept a constant
7001         that's accepted by CONST_OK_FOR_J.
7002
7003 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
7004
7005         * config/h8300/h8300.h (CONST_OK_FOR_J): New.
7006         (CONST_OK_FOR_LETTER_P): Use CONST_OK_FOR_J.
7007         * config/h8300/h8300.md (*addhi_h8300): Add a new alternative.
7008         (*addhi_h8300hs): Likewise.
7009
7010 Thu Dec 12 16:24:59 2002  J"orn Rennecke <joern.rennecke@superh.com>
7011
7012         * sh.c (reg_class_from_letter): No longer const.  Add 'e' entry.
7013         (sh_register_move_cost): Add clause for SImode fp-fp moves.
7014         Increase cost for moves involving multiple general purpose registers.
7015         * sh.h (OVERRIDE_OPTIONS): Set reg_class_from_letter['e'] according to
7016         TARGET_FMOVD.
7017         (HARD_REGNO_MODE_OK): Allow V2SFmode and V4SFmode in general purpose
7018         registers, and SImode in fp registers, for ! TARGET_SHMEDIA.
7019         (enum reg_class reg_class_from_letter): No longer const.
7020         (SECONDARY_OUTPUT_RELOAD_CLASS): Use REGCLASS_HAS_FP_REG /
7021         REGCLASS_HAS_GENERAL_REG.
7022         Handle SImode moves from/to fp registers.
7023         ! TARGET_SHMEDIA && TARGET_FMOVD.
7024         (SECONDARY_INPUT_RELOAD_CLASS): Use REGCLASS_HAS_FP_REG.
7025         * sh.md (movsi_ie): Add alternatives to move from / to fp regisyters.
7026
7027 2002-12-12  Andreas Schwab  <schwab@suse.de>
7028
7029         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Fix typo in last
7030         change and some warnings.
7031
7032 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
7033
7034         * doc/md.texi (pushm): Fix a typo.
7035
7036 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
7037
7038         * config/mips/mips.c (mips_output_conditional_branch): Support
7039         PIC-safe out-of-range branch and branch-likely.
7040         * config/mips/mips.md (attr length): PIC-safe out-of-range
7041         branches are longer.
7042         ("jump"): Support PIC-safe out-of-range-for-branch jumps.  Remove
7043         unused code to support indirect jumps.
7044
7045 2002-12-11  Zack Weinberg  <zack@codesourcery.com>
7046
7047         * Makefile.in (GTFILES): Add $(host_xm_file_list) and
7048         $(tm_file_list).
7049
7050 2002-12-11  David Edelsohn  <edelsohn@gnu.org>
7051
7052         * config/rs6000/t-rs6000-c-rule: Add coretypes.h $(TM_H) dependencies.
7053
7054 Wed Dec 11 15:20:45 CET 2002  Jan Hubicka  <jh@suse.cz>
7055
7056         * i386.md (cmove splitters): Avoid creation of unnecesary subregs.
7057
7058 2002-12-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7059
7060         * pa.h (BIGGEST_ALIGNMENT): Change 32-bit value to 64 bits.
7061         (MAX_PARM_BOUNDARY, STACK_BOUNDARY): Express in terms of
7062         BIGGEST_ALIGNMENT.
7063         (PREFERRED_STACK_BOUNDARY): Express in terms of STACK_BOUNDARY.
7064         (FUNCTION_BOUNDARY): Express in terms of BITS_PER_WORD.
7065
7066 2002-12-11  Kazu Hirata  <kazu@cs.umass.edu>
7067
7068         * doc/invoke.texi: Correct dump file names.
7069
7070 2002-12-09  Steve Ellcey  <sje@cup.hp.com>
7071
7072         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Don't send stripped
7073         name to globalize_label or assemble_name.
7074
7075 Wed Dec 11 20:15:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
7076
7077         * sh.h (REG_CLASS_HAS_GENERAL_REG): Only true for SIBCALL_REGS
7078         if not TARGET_SHMEDIA.
7079
7080 Wed Dec 11 19:05:05 2002  J"orn Rennecke <joern.rennecke@superh.com>
7081
7082         * sh.h (REG_CLASS_HAS_FP_REG): New.
7083         (REGISTER_MOVE_COST) Use it.  Put body into a function and
7084         move it into:
7085         * sh.c (sh_register_move_cost).
7086         * sh-protos.h (sh_register_move_cost): Declare.
7087
7088         * sh.c (sh_expand_builtin): Abort for unexpected nop values.
7089         (sh_adjust_cost): Always return a value.
7090
7091 Wed Dec 11 18:39:52 2002  J"orn Rennecke <joern.rennecke@superh.com>
7092
7093         * sh.h (REG_CLASS_HAS_GENERAL_REG): New.
7094         (REGISTER_MOVE_COST): Use it.
7095
7096 2002-12-11  Richard Henderson  <rth@redhat.com>
7097
7098         * tree.h (MODULE_LOCAL_P): Kill.
7099         * varasm.c (default_binds_local_p_1): Use decl_visibility instead.
7100
7101 2002-12-11  Kazu Hirata  <kazu@cs.umass.edu>
7102
7103         * config/h8300/h8300.md (two define_peephole2): New.
7104
7105 2002-12-11  Kazu Hirata  <kazu@cs.umass.edu>
7106
7107         * config/h8300/h8300.h (CONST_OK_FOR_J): Remove.
7108         (CONST_OK_FOR_K): Likewise.
7109         (CONST_OK_FOR_M): Likewise.
7110         (CONST_OK_FOR_LETTER_P): Do not use the above macros.
7111
7112 2002-12-11  Neil Booth  <neil@daikokuya.co.uk>
7113
7114         * c-common.c (builtin_define_type_max): Handle unsigned
7115         types too.
7116
7117 2002-12-10  David Edelsohn  <edelsohn@gnu.org>
7118
7119         * haifa-sched.c (rank_for_schedule): Correct style.
7120
7121 2002-12-10  Per Bothner  <pbothner@apple.com>
7122
7123         * cpplib.h (struct cpp_hashnode):  Split a non-portably-signed field
7124         directive_index into an unsigned field and a new is_directive field.
7125         * cppinit.c (mark_named_operators):  Update to set new fields.
7126         * cpplex.c (_cpp_lex_direct):  Now directive_field is unsigned.
7127         * cpplib.c [_cpp_handle_directive]:   Test is_directive field.
7128         No longer need to subtract 1 from directive_index.
7129         (_cpp_init_directives):  No longer need to add 1 to directive_index.
7130         * cpptrad.c (scan_out_logical_line):  Use is_directive field.
7131
7132 2002-12-10  Roger Sayle  <roger@eyesopen.com>
7133
7134         * builtins.c (fold_builtin): Remove -funsafe-math-optimizations
7135         check for evaluating sqrt of a constant at compile time.
7136         * simplify-rtx.c (simplify_unary_operation): Likewise.
7137
7138 2002-12-10  Janis Johnson  <janis187@us.ibm.com>
7139
7140         PR other/8882
7141         * doc/tm.texi (PUSH_ARGS): Remove misplaced line.
7142
7143 2002-12-10  Devang Patel  <dpatel@appple.com>
7144
7145         * config/darwin.h(LINK_SPEC): Add darwin specific linker options.
7146         * doc/invoke.texi: Add new "Darwin Options" section.
7147
7148 2002-12-10  Jim Wilson  <wilson@redhat.com>
7149
7150         * rs6000.h (RETURN_IN_MEMORY): If ABI_V4, then TFmode is returned in
7151         memory.
7152
7153 2002-12-10  Andrew Haley  <aph@redhat.com>
7154
7155         * cse.c (cse_insn): Don't cse past a basic block boundary.
7156
7157 2002-12-10  Jakub Jelinek  <jakub@redhat.com>
7158
7159         * config/linux.h (LIB_SPEC): If -pthread, add -lpthread even if
7160         -shared.
7161         * config/alpha/linux-elf.h (LIB_SPEC): Likewise.
7162         * config/alpha/linux.h (LIB_SPEC): Likewise.
7163         * config/arm/linux-elf.h (LIB_SPEC): Likewise.
7164         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
7165         * config/sparc/linux.h (LIB_SPEC): Likewise.
7166         * config/sparc/linux64.h (LIB_SPEC): Likewise.
7167
7168 2002-12-09  Larin Hennessy  <larin@science.oregonstate.edu>
7169
7170         * doc/invoke.texi: Document UltraSparc III option.
7171
7172 2002-12-09  Richard Henderson  <rth@redhat.com>
7173
7174         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
7175         __tune_pentium2__ and __tune_pentium3__ as necessary.
7176
7177 2002-12-09  Richard Henderson  <rth@redhat.com>
7178
7179         * target.h (gcc_target): Add cannot_force_const_mem.
7180         * target-def.h (TARGET_CANNOT_FORCE_CONST_MEM): New.
7181         (TARGET_INITIALIZER): Add it.
7182         * varasm.c (force_const_mem): Fail if cannot_force_const_mem.
7183         * expr.c (emit_move_insn): Be prepared for force_const_mem to fail.
7184         * reload1.c (reload): Likewise.
7185         * hooks.c (hook_bool_rtx_false): New.
7186         * hooks.h: Declare it.
7187
7188         * config/i386/i386.c (ix86_cannot_force_const_mem): New.
7189         (TARGET_CANNOT_FORCE_CONST_MEM): New.
7190         (ix86_expand_move): Remove de-const-pooling hack.
7191
7192 Mon Dec  9 21:33:38 CET 2002  Jan Hubicka  <jh@suse.cz>
7193
7194         * toplev.c (dump_file): Fix order to match reality.
7195
7196 2002-12-08  Geoffrey Keating  <geoffk@apple.com>
7197
7198         * config/rs6000/rs6000.md (load_multiple): Use adjust_address_nv.
7199         (store_multiple): Likewise.
7200
7201 2002-12-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7202
7203         * pa/fptr.c (__canonicalize_funcptr_for_compare): Don't canonicalize
7204         function pointers in page 0.
7205
7206 2002-12-09  Steve Ellcey  <sje@cup.hp.com>
7207
7208         * config/ia64/hpux.h (TARGET_STRUCT_ARG_REG_LITTLE_ENDIAN): Remove
7209         definition
7210         (MEMBER_TYPE_FORCES_BLK): Move.
7211         * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL to pass
7212         aggregate arguments.
7213         (ia64_function_value): Use PARALLEL to return aggregate values.
7214
7215 2002-12-09  Steve Ellcey  <sje@cup.hp.com>
7216
7217         * doc/tm.texi (FUNCTION_ARG_REG_LITTLE_ENDIAN): Remove definition.
7218         * defaults.h (FUNCTION_ARG_REG_LITTLE_ENDIAN): Remove definition.
7219         * calls.c (store_unaligned_arguments_into_pseudos) Remove
7220         FUNCTION_ARG_REG_LITTLE_ENDIAN.
7221         * stmt.c (expand_return): Ditto.
7222         * expr.c (move_block_from_reg): Ditto.
7223         (copy_blkmode_from_reg): Ditto.
7224         * expmed.c (store_bit_field): Ditto.
7225
7226 2002-12-09  Svein E. Seldal  <Svein.Seldal@solidas.com>
7227
7228         * config.gcc: Added tic4x-* target as an alias to c4x-*
7229
7230 Sun Dec  8 14:57:39 CET 2002  Jan Hubicka  <jh@suse.cz>
7231
7232         * i386.c (ix86_expand_int_movcc): Use force_operand instead of
7233         constructing insn directly.
7234
7235 2002-12-06  Per Bothner  <pbothner@apple.com>
7236
7237         * cpplib.h (struct cpp_hashnode):  Change field directive_index from
7238         char to an int bit-field, for hosts where char is unsigned.
7239
7240 2002-12-07  Roger Sayle  <roger@eyesopen.com>
7241             Richard Henderson <rth@redhat.com>
7242
7243         * real.c (ieee_extended_motorola_format,
7244         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
7245         ieee_quad_format, vax_d_format, vax_g_format, i370_double_format):
7246         Provide appropriate values for new signbit field.
7247
7248 2002-12-07  Roger Sayle  <roger@eyesopen.com>
7249
7250         * real.h (real_format): Add signbit field.
7251         * real.c (ieee_single_format, ieee_double_format,
7252         ieee_extended_motorola_format, ieee_extended_intel_96_format,
7253         ieee_extended_intel_128_format, ibm_extended_format,
7254         ieee_quad_format, vax_f_format, vax_d_format,
7255         vax_g_format, i370_single_format, i370_double_format,
7256         c4x_single_format, c4x_extended_format, real_internal_format):
7257         Provide suitable signbit value, or -1 to avoid bit twiddling.
7258
7259         * optabs.c (expand_unop): Try implementing negation of
7260         floating point modes by flipping the sign bit.
7261         (expand_abs): Try implementing abs of floating point modes
7262         by clearing the sign bit.
7263
7264 Sat Dec  7 22:29:47 CET 2002  Jan Hubicka  <jh@suse.cz>
7265
7266         * i386.c (ix86_expand_int_movcc):  Use force_operand instead
7267         of constructing insn directly.
7268
7269 2002-12-07  Kazu Hirata  <kazu@cs.umass.edu>
7270
7271         * config/h8300/h8300.md (*iorhi_shift_8): New.
7272
7273 2002-12-06  Bernd Schmidt  <bernds@redhat.com>
7274
7275         * doc/invoke.texi: Document FRV port options.
7276         * doc/md.texi: Document FRV register classes.
7277
7278 2002-12-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7279
7280         * doc/install.texi (Configuration): Improve description of cases
7281         where `make distclean` may fail; clarify --with-gnu-as; fix grammar.
7282
7283 2002-12-06  Per Bothner  <pbothner@apple.com>
7284
7285         * cpplib.h (NODE_MACRO_ARG):  New flag.
7286         (struct cpp_hashnode):  Give _cpp_hashnode_value tag to value union.
7287         Remove value.operator field.  Move arg_index field to value union.
7288         (directive_index):  Make signed, since also used for C++ operators.
7289         * cppmacro.c (_cpp_save_parameter):  Use NODE_MACRO_ARG flag to
7290         check for duplicate parameter.  Set NODE_MACRO_ARG flag.
7291         Save node->value, and set node->value.arg_index.
7292         (_cpp_create_definition):  For each paramater, restore node->value.
7293         (lex_expansion_token):  Use NODE_MACRO_ARG flag, and moved arg_index.
7294         * cpptrad.c (scan_out_logical_line): Likewise.
7295         (scan_out_logical_line): Check for directive > 0.
7296         * cpplib.c (cpp_handle_directive):  Likewise.
7297         * cpplex.c (_cpp_lex_direct):  Update as value.operator is replaced
7298         by negative of directive_index.
7299         * cppinit.c (mark_named_operators):  Likewise.
7300
7301         * hashtable.h (struct ht_identifier):  Swap fields, for better packing.
7302
7303 2002-12-06 Dhananjay Deshpande <dhananjayd@kpit.com>
7304
7305         * gcc/config/sh/sh.c (calc_live_regs): Save fpscr only if target has
7306         FPU.
7307         (push): Generate push_fpscr.
7308         (pop): Generate pop_fpscr.
7309         * gcc/config/sh/sh.md : Add define_expand "push_fpscr", "pop_fpscr".
7310         (fpu_switch): Add alternative to push fpscr.  Enable for TARGET_SH3E.
7311
7312 Fri Dec  6 19:36:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
7313
7314         * sh.c (dump_table): DImode pool constants need only 32 bit alignment.
7315         DFmode alignment depends on TARGET_FMOVD && TARGET_ALIGN_DOUBLE.
7316
7317 Fri Dec  6 19:17:49 2002  J"orn Rennecke <joern.rennecke@superh.com>
7318
7319         * sh.md (movdi_i): Name.  Remove inappropriate comment.
7320
7321 Fri Dec  6 15:44:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
7322         Merged from basic improvements branch (excerpt):
7323
7324         2002-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
7325         * config/sh/sh.h (SH_DBX_REGISTER_NUMBER): Handle PR_MEDIA_REG.
7326
7327 2002-12-06  Jakub Jelinek  <jakub@redhat.com>
7328
7329         * expr.c (expand_expr) <case COND_EXPR>: Never modify exp in place.
7330
7331 Thu Dec  5 16:58:25 CET 2002  Jan Hubicka  <jh@suse.cz>
7332
7333         * i386.md (dimode peep2s): Re-add "&& 1".
7334
7335 Thu Dec  5 14:10:15 CET 2002  Jan Hubicka  <jh@suse.cz>
7336
7337         * i386.c (ix86_expand_prologue):  Add comment, do not use
7338         fast prologues for cold and normal functions.
7339
7340 Thu Dec  5 00:52:37 CET 2002  Jan Hubicka  <jh@suse.cz>
7341
7342         * i386.c (x86_rep_movl_optimal): New variable.
7343         (ix86_expand_movstr, ix86_expand_clrstr): Use TARGET_REP_MOVL_OPTIMAL
7344         * i386.h (TARGET_REP_MOVL_OPTIMAL): New macro.
7345
7346         * i386.md (negsf2_ifs, negdf2_ifs, negdf2_ifs_rex64, abssf2_ifs,
7347         absdf2_ifs, absdf2_ifs_rex64): Fix constraints.
7348         neg?f2_ifs, abs?f2_ifs splitters): Refuse memory operand; do not
7349         generate unnecesary subregs.
7350
7351 2002-12-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7352
7353         * pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): Move define.
7354         * pa.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): To here.
7355
7356 2002-12-05  Dale Johannesen  <dalej@apple.com>
7357
7358         * tree.c (unsafe_for_reeval):  Consider callee child of CALL_EXPR.
7359
7360 2002-12-05  Danny Smith  <dannysmith@users.sourceforge.net>
7361
7362         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Replace with
7363         PROFILE_HOOK.
7364         * config/i386/mingw32.h (SUBTARGET_PROLOGUE): Don't undef.
7365
7366 2002-12-05  Aldy Hernandez  <aldyh@redhat.com>
7367
7368         * config/rs6000/spe.h (__ev_mwlufi): Remove.
7369         (__ev_mwlufia): Remove.
7370         (__ev_mwlumfaaw): Remove.
7371         (__ev_mwlusfaaw): Remove.
7372         (__ev_mwlumfanw): Remove.
7373         (__ev_mwlusfanw): Remove.
7374
7375 2002-12-05  Kazu Hirata  <kazu@cs.umass.edu>
7376
7377         * config/h8300/h8300.md (*andorsi3_shift_8): New.
7378
7379 2002-12-05  Kazu Hirata  <kazu@cs.umass.edu>
7380
7381         * config/h8300/h8300.c (shift_alg_si): Optimize ashift:HI and
7382         lshiftrt:SI by 28, 29, and 30 bits when !TARGET_H8300.
7383         (get_shift_alg): Return optimal assembly instructions for the
7384         shifts mentioned above.
7385
7386 Wed Dec  4 11:53:07 CET 2002  Jan Hubicka  <jh@suse.cz>
7387
7388         * i386.c (ix86_expand_int_movcc): Force operand into register for QImode
7389         condtiional moves.
7390
7391 2002-12-04  Kazu Hirata  <kazu@cs.umass.edu>
7392
7393         * config/h8300/h8300.c (h8300_init_once): Do not use loop to
7394         implement ashiftrt:HI by 13 bits on H8S.
7395
7396 2002-12-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7397
7398         * pa/fptr.c (__canonicalize_funcptr_for_compare): New file and function.
7399         * pa.md (canonicalize_funcptr_for_compare): Output library call to
7400         canonicalize_funcptr_for_compare_libfunc on TARGET_ELF32.
7401         * pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL,
7402         CTOR_LIST_BEGIN): New defines.
7403         * pa/t-linux (LIB2FUNCS_EXTRA): New define.
7404         (fptr.c): Add make rules.
7405
7406 2002-12-04  Geoffrey Keating  <geoffk@apple.com>
7407
7408         * combine.c (combine_simplify_rtx): Add new canonicalizations.
7409         * doc/md.texi (Insn Canonicalizations): Document new
7410         canonicalizations for multiply/add combinations.
7411         * config/rs6000/rs6000.md: Add and modify floating add/multiply
7412         patterns to ensure they're used whenever they can be.
7413
7414 2002-12-04  Kazu Hirata  <kazu@cs.umass.edu>
7415
7416         * config/h8300/h8300.c: Update the comments related to shifts.
7417
7418 2002-12-04  Chris Demetriou  <cgd@broadcom.com>
7419
7420         * config/mips/mips.md (get_fnaddr): Correct length attribute.
7421
7422 2002-12-04  Kazu Hirata  <kazu@cs.umass.edu>
7423
7424         * config/h8300/h8300.md (*extzv_8_8): New.
7425         (*extzv_8_16): Likewise.
7426
7427 2002-12-04  Jason Merrill  <jason@redhat.com>
7428
7429         PR c++/8461, c++/8625
7430         * integrate.c (copy_decl_for_inlining): Handle explicit invisible
7431         references.
7432         * tree-inline.c (initialize_inlined_parameters): Likewise.
7433
7434         * tree.c (variably_modified_type_p): Just return an error_mark_node.
7435
7436 2002-12-04  Chris Demetriou  <cgd@broadcom.com>
7437
7438         * config/mips/mips.md (get_fnaddr): Avoid placing an "la"
7439         macro instruction in a branch delay slot, to avoid assembler
7440         warnings.
7441
7442 2002-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
7443
7444         PR c/7622
7445         * c-semantics (genrtl_scope_stmt): Do not output inlined
7446         nested functions that contain no code.
7447
7448 Wed Dec  4 15:20:54 CET 2002  Jan Hubicka  <jh@suse.cz>
7449
7450         * cfgrtl.c (force_nonfallthru_and_redirect):  Allow abnormal edge
7451         to be forced into nonfallthru.
7452
7453 2002-12-03  Jason Thorpe  <thorpej@wasabisystems.com>
7454
7455         * config/t-netbsd (USER_H): Set to $(EXTRA_HEADERS).
7456
7457 2002-12-03  Aldy Hernandez  <aldyh@redhat.com>
7458
7459         * config/rs6000/spe.md (*movv1di_const0): New pattern.
7460
7461 2002-12-03  Richard Henderson  <rth@redhat.com>
7462
7463         * libgcc-std.ver: Inherit GCC_3.3 from GCC_3.0.
7464
7465 2002-12-03  Hans-Peter Nilsson  <hp@bitrange.com>
7466
7467         * bitmap.c (bitmap_ior_and_compl, bitmap_union_of_diff):
7468         Initialize tmp.using_obstack to 0.
7469
7470 2002-12-03  Andreas Schwab  <schwab@suse.de>
7471
7472         * config/m68k/m68k.h (EH_RETURN_DATA_REGNO): Define.
7473         (EH_RETURN_STACKADJ_RTX): Define.
7474         (EH_RETURN_HANDLER_RTX): Define.
7475         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7476         * config/m68k/m68k.c (m68k_save_reg): New function.  Handle eh
7477         registers and don't save fixed registers.
7478         (m68k_output_function_prologue): Use it.
7479         (use_return_insn): Likewise.
7480         (m68k_output_function_epilogue): Likewise.
7481
7482 2002-12-03  Kazu Hirata  <kazu@cs.umass.edu>
7483
7484         * config/h8300/h8300.c (single_one_operand): Fix a warning.
7485         (single_zero_operand): Likewise.
7486
7487 2002-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
7488
7489         * Makefile.in configure configure.in dummy-conditions.c fix-header.c
7490         gcov-iov.c gen-protos.c genattr.c genattrtab.c genautomata.c
7491         gencheck.c gencodes.c genconditions.c genconfig.c genconstants.c
7492         genemit.c genextract.c genflags.c gengenrtl.c gengtype-lex.l
7493         gengtype-yacc.y gengtype.c genopinit.c genoutput.c genpeep.c
7494         genpreds.c genrecog.c gensupport.c mkconfig.sh read-rtl.c
7495         scan-decls.c scan.c config/sh/sh.h doc/configfiles.texi
7496         doc/install-old.texi: Replace hconfig.h with bconfig.h.
7497         * Makefile.in: Replace HCONFIG_H with BCONFIG_H.
7498
7499 2002-12-02  Andrew Pinski  <pinskia@physics.uc.edu>
7500
7501         * config/rs6000/rs6000.md (ffssi): Convert to expander.
7502         (ffsdi): Likewise.
7503         (cntlzw2, cntlzd2): New patterns.
7504
7505 2002-12-02  H.J. Lu <hjl@gnu.org>
7506
7507         * config.gcc (mips*-*-netbsd*): Remove mips/t-netbsd.
7508         (mips*-*-linux*): Remove mips/t-linux.
7509
7510 Mon Dec  2 19:26:30 CET 2002  Jan Hubicka  <jh@suse.cz>
7511
7512         * i386.c (ix86_expand_int_movcc):  Avoid overflow.
7513
7514 2002-12-02  Kazu Hirata  <kazu@cs.umass.edu>
7515
7516         * config/h8300/h8300.c (dosize): Replace argument op with
7517         sign.
7518         (h8300_output_function_prologue): Update the call to dosize.
7519         (h8300_output_function_epilogue): Likewise.
7520
7521 2002-12-02  Bob Wilson  <bob.wilson@acm.org>
7522
7523         * config/xtensa/xtensa.h: Delete ifndefs with nothing inside them.
7524
7525 2002-12-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7526
7527         * configure.in: Use "missing" script to generate warning if
7528         flex or bison programs not found, instead of invoking "false".
7529         * configure: Rebuilt.
7530
7531 Mon Dec  2 20:28:48 CET 2002  Jan Hubicka  <jh@suse.cz>
7532
7533         * unroll.c (copy_loop_body): Copy CONST_OR_PURE_CALL_P.
7534
7535 Mon Dec  2 19:42:52 CET 2002  Jan Hubicka  <jh@suse.cz>
7536
7537         * i386.c (ix86_expand_int_movcc):  Avoid overflow.
7538
7539 2002-12-02  Kazu Hirata  <kazu@cs.umass.edu>
7540
7541         * config/h8300/h8300.c (dosize): Output r7/er7 instead of sp.
7542         (push): Likewise.
7543         (pop): Likewise.
7544         (h8300_output_function_prologue): Likewise.
7545         (h8300_output_function_epilogue): Likewise.
7546
7547 Mon Dec  2 14:43:22 2002  J"orn Rennecke <joern.rennecke@superh.com>
7548
7549         * expmed.c (store_bit_field): Use int_mode_for_mode to find
7550         corresponding mode of non-integer mode, unless it is VOIDmode.
7551
7552 2002-12-02  Kazu Hirata  <kazu@cs.umass.edu>
7553
7554         * config/h8300/h8300.md (stm_h8300s_2): New.
7555         (stm_h8300s_3): Likewise.
7556         (stm_h8300s_4): Likewise.
7557         (five define_peephole2): Likewise.
7558
7559 2002-12-02  Kazu Hirata  <kazu@cs.umass.edu>
7560
7561         * ra-build.c: Fix a comment typo.
7562
7563 Sun Dec  1 16:50:47 CET 2002  Jan Hubicka  <jh@suse.cz>
7564
7565         * i386.c (ix86_expand_int_movcc): fix
7566         reversed BRANCH_COST test; be curefull about infinite recursion.
7567
7568 2002-12-01  Kazu Hirata  <kazu@cs.umass.edu>
7569
7570         * config/h8300/h8300.c (h8300_output_function_prologue):
7571         Remove variable idx.
7572         (h8300_output_function_epilogue): Likewise.
7573
7574 2002-12-01  Zack Weinberg  <zack@codesourcery.com>
7575
7576         * config/frv/xm-frv.h: Delete, unnecessary.
7577
7578 2002-12-01  Kazu Hirata  <kazu@cs.umass.edu>
7579
7580         * config/h8300/h8300.md: Add comments for define_peephole2.
7581
7582 2002-12-01  Mark Mitchell  <mark@codesourcery.com>
7583
7584         * builtin-types.def (BT_SIZE): Use size_type_node.
7585         * builtins.c (fold_builtin): Make the builtin strlen returns a
7586         size_t, not a sizetype.
7587         * c-common.c (c_sizeof_or_alignof_type): Use size_type_node, not
7588         c_size_type_node.
7589         (c_alignof_expr): Likewise.
7590         (c_common_nodes_and_builtins): Likewise.
7591         * c-common.h (CTI_C_SIZE_TYPE): Remove.
7592         (c_size_type_node): Likewise.
7593         * c-format.c (T_ST): Use size_type_node, not c_size_type_node.
7594         * tree.h (TI_SIZE_TYPE): New enumeral.
7595         (size_type_node): Likewise.
7596
7597 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
7598
7599         * configure.in: Don't put ${tm_file} into host_xm_file,
7600         build_xm_file, or xm_file.  Do put tm-preds.h into tm_p_file.
7601         Take location of tm-preds.h into account when calculating
7602         tm_p_file_list.
7603         * configure: Regenerate.
7604         * mkconfig.sh: No need for separate TM_DEFINES and XM_DEFINES
7605         arguments.  Do not provide rtx, rtvec, tree, or GTY here.
7606         Remove special case code for tm_p.h and *config.h; add new
7607         special case code for tm.h and tconfig.h. Clean up a bit.
7608
7609         * Makefile.in (tm_file, tm_file_list): New variables set from
7610         @-substitutions.
7611         (GCONFIG_H): Deleted.
7612         (GTM_H, TM_H): New.
7613         (CONFIG_H): Is now just config.h $(host_xm_file_list).
7614         (TM_P_H): Move up with the other mkconfig.sh-generated
7615         headers; don't mention tm-preds.h explicitly.
7616         (tm.h, cs-tm.h): New rule.
7617         (cs-config.h, cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): Adjust
7618         invocations of mkconfig.sh for changes to that program.
7619         (mostlyclean): Delete print-rtl1.c.
7620         (clean): Delete tm.h.
7621         Update dependencies for the files listed below.
7622
7623         * mklibgcc.in:  Add 'coretypes.h $(TM_H)' to libgcc2_c_dep.
7624
7625         * coretypes.h: New file.
7626         * system.h: #define malloc to xmalloc and realloc to xrealloc
7627         when FLEX_SCANNER or YYBISON is defined, independent of the
7628         value of GCC_VERSION.
7629         * alias.c, attribs.c, bb-reorder.c, bitmap.c, builtins.c,
7630         c-aux-info.c, c-common.c, c-convert.c, c-decl.c, c-dump.c,
7631         c-errors.c, c-format.c, c-lang.c, c-lex.c, c-objc-common.c,
7632         c-opts.c, c-parse.in, c-pragma.c, c-pretty-print.c,
7633         c-semantics.c, c-typeck.c, caller-save.c, calls.c, cfg.c,
7634         cfganal.c, cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c,
7635         cfgrtl.c, collect2.c, combine.c, conflict.c, convert.c,
7636         cppdefault.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
7637         cppinit.c, cpplex.c, cpplib.c, cppmacro.c, cppmain.c,
7638         cppspec.c, cpptrad.c, crtstuff.c, cse.c, cselib.c, dbxout.c,
7639         debug.c, df.c, diagnostic.c, doloop.c, dominance.c,
7640         dummy-conditions.c, dwarf2asm.c, dwarf2out.c, dwarfout.c,
7641         emit-rtl.c, errors.c, et-forest.c, except.c, explow.c,
7642         expmed.c, expr.c, final.c, fix-header.c, flow.c, fold-const.c,
7643         function.c, gcc.c, gccspec.c, gcov-dump.c, gcov-iov.c, gcov.c,
7644         gcse.c, gen-protos.c, genattr.c, genattrtab.c, genautomata.c,
7645         gencheck.c, gencodes.c, genconditions.c, genconfig.c,
7646         genconstants.c, genemit.c, genextract.c, genflags.c,
7647         gengenrtl.c, gengtype-lex.l, gengtype-yacc.y, gengtype.c,
7648         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
7649         gensupport.c, ggc-common.c, ggc-none.c, ggc-page.c,
7650         ggc-simple.c, global.c, graph.c, haifa-sched.c, hashtable.c,
7651         hooks.c, ifcvt.c, integrate.c, intl.c, jump.c, langhooks.c,
7652         lcm.c, libgcc2.c, line-map.c, lists.c, local-alloc.c, loop.c,
7653         main.c, mbchar.c, mips-tdump.c, mips-tfile.c, mkdeps.c,
7654         optabs.c, params.c, predict.c, prefix.c, print-rtl.c,
7655         print-tree.c, profile.c, protoize.c, ra-build.c,
7656         ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, read-rtl.c,
7657         real.c, recog.c, reg-stack.c, regclass.c, regmove.c,
7658         regrename.c, reload.c, reload1.c, reorg.c, resource.c,
7659         rtl-error.c, rtl.c, rtlanal.c, sbitmap.c, scan-decls.c,
7660         scan.c, sched-deps.c, sched-ebb.c, sched-rgn.c, sched-vis.c,
7661         sdbout.c, sibcall.c, simplify-rtx.c, ssa-ccp.c, ssa-dce.c,
7662         ssa.c, stmt.c, stor-layout.c, stringpool.c, timevar.c,
7663         tlink.c, toplev.c, tracer.c, tree-dump.c, tree-inline.c,
7664         tree.c, unroll.c, varasm.c, varray.c, varray.h, vmsdbgout.c,
7665         xcoffout.c, config/darwin-c.c, config/darwin.c,
7666         config/fp-bit.c, config/alpha/alpha.c, config/alpha/vms-cc.c,
7667         config/alpha/vms-ld.c, config/arc/arc.c, config/arm/arm.c,
7668         config/arm/pe.c, config/avr/avr.c, config/c4x/c4x-c.c,
7669         config/c4x/c4x.c, config/cris/cris.c, config/d30v/d30v.c,
7670         config/dsp16xx/dsp16xx.c, config/fr30/fr30.c,
7671         config/frv/frv.c, config/h8300/h8300.c, config/i370/i370-c.c,
7672         config/i370/i370.c, config/i386/i386.c, config/i386/winnt.c,
7673         config/i960/i960-c.c, config/i960/i960.c,
7674         config/ia64/ia64-c.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
7675         config/m32r/m32r.c, config/m68hc11/m68hc11.c,
7676         config/m68k/m68k.c, config/m88k/m88k.c, config/mcore/mcore.c,
7677         config/mips/irix6-libc-compat.c, config/mips/mips.c,
7678         config/mmix/mmix.c, config/mn10200/mn10200.c,
7679         config/mn10300/mn10300.c, config/ns32k/ns32k.c,
7680         config/pa/pa.c, config/pdp11/pdp11.c, config/romp/romp.c,
7681         config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
7682         config/s390/s390.c, config/sh/sh.c, config/sparc/gmon-sol2.c,
7683         config/sparc/sparc.c, config/stormy16/stormy16.c,
7684         config/v850/v850-c.c, config/v850/v850.c, config/vax/vax.c,
7685         config/xtensa/xtensa.c, objc/objc-act.c, objc/objc-lang.c:
7686         Include coretypes.h and tm.h.
7687
7688         * genattrtab.c, genconditions.c, genemit.c, genextract.c,
7689         gengenrtl.c, gengtype.c, genopinit.c, genoutput.c, genpeep.c,
7690         genrecog.c: Include coretypes.h and tm.h from the file
7691         generated by this program.
7692
7693         * unwind-dw2-fde-darwin.c, unwind-dw2-fde-glibc.c,
7694         unwind-dw2-fde.c, unwind-dw2.c, unwind-sjlj.c: Include
7695         coretypes.h and tm.h, and tsystem.h when not already included.
7696         No need to include stddef.h nor stdlib.h.
7697
7698         * fixinc/fixlib.h: Include coretypes.h and tm.h.  Do not
7699         include auto-host.h or ansidecl.h/
7700         * fixinc/server.h: Do not include stdio.h, unistd.h, or fixlib.h.
7701         * fixinc/procopen.c: Include server.h after fixlib.h.  Do not
7702         include auto-host.h, ansidecl.h, or system.h.
7703         * fixinc/server.c: Likewise.  Also, do not include signal.h,
7704         and do not redefine volatile.
7705
7706 Sat Nov 30 17:16:46 CET 2002  Jan Hubicka  <jh@suse.cz>
7707
7708         * i386.md (movdf_integer):  Always enable in 64bit.
7709         (movdf_nointeger): Always disable in 64bit.
7710
7711 2002-11-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7712
7713         * cfg.c (dump_flow_info): Use max_reg_num () to determine the largest
7714         pseudo register number plus 1.
7715
7716 Fri Nov 29 20:10:56 2002  J"orn Rennecke <joern.rennecke@superh.com>
7717
7718         * expmed.c (store_bit_field): Use int_mode_for_mode to find
7719         corresponding mode of non-integer mode, unless it is VOIDmode.
7720
7721 2002-11-29  Hans-Peter Nilsson  <hp@bitrange.com>
7722
7723         * cpplib.c (_cpp_test_assertion): Default *value to 0.
7724
7725         * cppexp.c (num_part_mul): Initialize result.unsignedp, to 1.
7726
7727 2002-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
7728
7729         * config/s390/t-crtstuff: New target makefile fragment.
7730         * config.gcc [s390-*-linux, s390x-*-linux]: Use it.
7731
7732 2002-11-29  Kazu Hirata  <kazu@cs.umass.edu>
7733
7734         * config/h8300/h8300.md (movsi_h8300hs): Change the order of
7735         alternatives to correct the length when the memory operand is
7736         either pre_dec or post_inc.
7737
7738 2002-11-29  Kazu Hirata  <kazu@cs.umass.edu>
7739
7740         * config/h8300/h8300.md (an anonymous pattern): Give an
7741         internal name *tst_extzv_bitqi_1_n.
7742         Accept bit_operand instead of bit_memory_operand.
7743         Do not accept bit tests with the MSB.
7744         (*tst_extzv_memqi_1_n): New.
7745
7746 Thu Nov 28 23:56:24 CET 2002  Jan Hubicka  <jh@suse.cz>
7747
7748         * i386.c (ix86_expand_int_movcc): Add copy_rtx to avoid invalid RTX
7749         sharing when operand is SUBREG.
7750
7751 Thu Nov 28 08:57:26 CET 2002  Jan Hubicka  <jh@suse.cz>
7752
7753         * athlon.md (athlon-decodev): New reservation unit.
7754         (athlon-direct0): New reservation.
7755         (athlon-vector): New use athlon-decodev.
7756         (athlon-double, athlon-direct): Better model.
7757         (athlon_imul_k8): Use athlon-direct0.
7758         (athlon_movlpd_load): New insn reservation.
7759
7760 2002-11-28  Kazu Hirata  <kazu@cs.umass.edu>
7761
7762         * config/h8300/h8300.c (h8300_eightbit_constant_address_p):
7763         Fix a comment typo.
7764         (h8300_tiny_constant_address_p): Likewise.
7765
7766 2002-11-28  Michael Matz  <matz@suse.de>
7767
7768         * doc/passes.texi: Mention the other register allocator.
7769
7770 2002-11-28  Kazu Hirata  <kazu@cs.umass.edu>
7771
7772         * config/h8300/h8300.md (6 new peephole2 patterns): New.
7773
7774 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
7775
7776         * config.gcc (x86_64-*-linux*) [tmake_file]: Remove i386/t-crtstuff.
7777         * config/t-linux (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
7778         * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Define.
7779
7780 2002-11-28  Kazu Hirata  <kazu@cs.umass.edu>
7781
7782         * config/h8300/h8300.c (h8300_and_costs): New.
7783         * config/h8300/h8300.h (RTX_COSTS): Use h8300_and_costs.
7784         * config/h8300/h8300-protos.h: Add a prototype for
7785         h8300_and_costs.
7786
7787 Wed Nov 27 20:34:13 CET 2002  Jan Hubicka  <jh@suse.cz>
7788
7789         * i386.c (x86_sse_partial_regs_for_cvtsd2ss): New.
7790         * i386.h (x86_sse_partial_regs_for_cvtsd2ss): Declare.
7791         (TARGET_SSE_PARTIAL_REGS_FOR_CVTSD2SS): New macro.
7792         * i386.md (truncdfsf patterns and splitters): Use
7793         TARGET_SSE_PARTIAL_REGS_FOR_CVTSD2SS
7794
7795 2002-11-27  Zack Weinberg  <zack@codesourcery.com>
7796
7797         * config/rs6000/rs6000.c (altivec_init_builtins): Make the
7798         pointer argument in the prototypes of the following builtins
7799         be (const TYPE *) rather than (TYPE *):
7800          + __builtin_altivec_ld_internal_4sf
7801          + __builtin_altivec_ld_internal_4si
7802          + __builtin_altivec_ld_internal_8hi
7803          + __builtin_altivec_ld_internal_16qi
7804          + __builtin_altivec_lvsl
7805          + __builtin_altivec_lvsr
7806          + __builtin_altivec_lvebx
7807          + __builtin_altivec_lvehx
7808          + __builtin_altivec_lvewx
7809          + __builtin_altivec_lvxl
7810          + __builtin_altivec_lvx
7811          + __builtin_altivec_dst
7812          + __builtin_altivec_dstt
7813          + __builtin_altivec_dstst
7814          + __builtin_altivec_dststt
7815
7816 2002-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7817
7818         * except.c (default_exception_section): Move variable into the
7819         scope where it is used.
7820
7821 2002-11-27  Krister Walfridsson  <cato@df.lth.se>
7822
7823         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Test for
7824         correct version.
7825
7826 2002-11-27  Kazu Hirata  <kazu@cs.umass.edu>
7827
7828         * config/h8300/h8300.h (OK_FOR_U): Remove extra parentheses.
7829
7830 2002-11-27  Kazu Hirata  <kazu@cs.umass.edu>
7831
7832         * config/h8300/h8300.c (h8300_shift_costs): New.
7833         * config/h8300/h8300.h (RTX_COSTS): Use h8300_shift_costs.
7834         * config/h8300/h8300-protos.h: Add a prototype for
7835         h8300_shift_costs.
7836
7837 2002-11-27  Jim Wilson  <wilson@redhat.com>
7838
7839         * config/rs6000/spe.md (spu_evsplatfi, spu_evsplati): Swap operands
7840         in output template.
7841
7842 2002-11-27  Casper S. Hornstrup  <chorns@users.sourceforge.net>
7843
7844         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Define.
7845         * config/i386/winnt.c (i386_pe_dllexport_name_p): Use
7846         DLL_IMPORT_EXPORT_PREFIX, not '@'.
7847         (i386_pe_dllimport_name_p): Likewise.
7848         (i386_pe_mark_dllexport): Likewise.
7849         (i386_pe_mark_dllimport): Likewise.
7850         (i386_pe_encode_section_info): Likewise.
7851         (i386_pe_strip_name_encoding): Likewise.
7852
7853 2002-11-27  Richard Henderson  <rth@redhat.com>
7854
7855         * mkmap-symver.awk (BEGIN): Set sawsymbol false.
7856         (nm && NF == 3): Set sawsymbol true.
7857         (END): Exit if no symbols seen.
7858         (output): Fix map syntax error if no globals for the version.
7859
7860 Wed Nov 27 14:45:46 CET 2002  Jan Hubicka  <jh@suse.cz>
7861
7862         * builtins.def (DEF_C99_BUILTIN): Fix.
7863
7864 2002-11-26  Kaz Kojima  <kkojima@gcc.gnu.org>
7865
7866         * config/sh/lib1funcs.asm (FUNC, ENDFUNC0, ENDFUNC): New macros.
7867         (all): Add .size and .type information.
7868
7869 Tue Nov 26 22:43:50 CET 2002  Jan Hubicka  <jh@suse.cz>
7870
7871         * i386.c (ix86_expand_int_movcc):  Do not emit lea for short mode on
7872         partial_reg_stall target.
7873
7874 Tue Nov 26 22:27:47 CET 2002  Jan Hubicka  <jh@suse.cz>
7875
7876         * i386.md (movhicc): Allow general operand.
7877         (movqicc): New expander.
7878         (movqicc_noc): New pattern.
7879         * i386.c (ix86_expand_carry_flag_compare): New function.
7880         (ix86_expand_int_movcc): Optimize harder using sbb; support more
7881         HImode conversion; support QImode conditional moves
7882
7883 Tue Nov 26 16:30:59 CET 2002  Jan Hubicka  <jh@suse.cz>
7884
7885         * i386.c (FAST_PROLOGUE_INSN_COUNT): Set to 20.
7886         (ix86_expand_prologue): Multiply the count by amount of registers to be
7887         pushed.
7888
7889 Tue Nov 26 15:55:27 CET 2002  Jan Hubicka  <jh@suse.cz>
7890
7891         * i386.c (override_options): Error about wrong -mcpu on x86-64
7892         compilation.
7893
7894 2002-11-26  NIIBE Yutaka  <gniibe@m17n.org>
7895
7896         * config/sh/linux.h (FUNCTION_PROFILER): Implemented.
7897
7898 Tue Nov 26 00:14:20 CET 2002  Jan Hubicka  <jh@suse.cz>
7899
7900         * i386-protos.h (x86_extended_QIreg_mentioned_p,
7901         x86_extended_reg_mentioned_p): Declare.
7902         * i386.c (extended_reg_mentioned_1): New static function.
7903         (x86_extended_QIreg_mentioned_p,
7904         x86_extended_reg_mentioned_p): New global functions.
7905         * i386.h (REX_SSE_REGNO_P): New macro.
7906         * i386.md (prefix_rex): New attribute.
7907         (length attribute): Add rex.
7908
7909 2002-11-26  Andrew Haley  <aph@redhat.com>
7910
7911         * unwind-sjlj.c (_Unwind_FindEnclosingFunction): Rename
7912         from_Unwind_Find_Enclosing_Function.
7913         * unwind-dw2.c (_Unwind_FindEnclosingFunction): Likewise.
7914         * config/ia64/unwind-ia64.c (_Unwind_FindEnclosingFunction): Likewise.
7915         * libgcc-std.ver (_Unwind_FindEnclosingFunction): Rename from
7916         _Unwind_Find_Enclosing_Function, export @@GCC_3.3.
7917         * unwind.h (_Unwind_FindEnclosingFunction): Add.
7918
7919 2002-11-26  Hartmut Penner  <hpenner@de.ibm.com>
7920
7921         * config/s390/s390.c (390_output_constant_pool): Set alignment
7922         before label in 64 bit mode, behind otherwise.
7923
7924 2002-11-26  Richard Henderson  <rth@redhat.com>
7925
7926         * c-common.c (handle_visibility_attribute): Accept "default".
7927         * tree.h (enum symbol_visibility): New.
7928         (decl_visibility): Declare.
7929         * target.h (gcc_target.visibility): Take visibility arg as integer.
7930         * varasm.c (default_assemble_visibility): Likewise.
7931         (decl_visibility): New.
7932         (maybe_assemble_visibility): Use it.
7933         * output.h (default_assemble_visibility): Update prototype.
7934         * config/rs6000/rs6000.c (rs6000_assemble_visibility): Take
7935         visibility arg as integer.
7936         * doc/extend.texi: Document default visibility.
7937
7938 2002-11-26  Kazu Hirata  <kazu@cs.umass.edu>
7939
7940         * config/h8300/h8300.c: Adjust spacing.
7941         * config/h8300/h8300.h: Likewise.
7942
7943 2002-11-26  Richard Henderson  <rth@redhat.com>
7944
7945         * hooks.c (hook_bool_void_false, hook_void_tree_int,
7946         hook_void_FILEptr_constcharptr): Rename so that the return
7947         type is first.
7948         (hook_int_tree_tree_1, hook_void_tree, hook_void_tree_treeptr,
7949         hook_bool_tree_false): New.
7950         * hooks.h: Update.
7951         * langhooks-def.h: Update for renames.
7952         * target-def.h: Likewise.
7953         * tree.c (default_comp_type_attributes,
7954         default_set_default_type_attributes, default_insert_attributes,
7955         default_function_attribute_inlinable_p,
7956         default_ms_bitfield_layout_p): Remove.
7957         * tree.h: Update.
7958
7959 2002-11-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7960
7961         * pa-protos.h (function_value): New prototype.
7962         * pa.c (function_value): Use a PARALLEL to return small aggregates on
7963         TARGET_64BIT.
7964         * pa.h (FUNCTION_VALUE): Use function_value.
7965         * pa.md (call_value_internal_symref, call_value_internal_reg_64bit,
7966         call_value_internal_reg, sibcall_value_internal_symref,
7967         sibcall_value_internal_symref_64bit): Remove =rf constraint on return
7968         value.
7969
7970 2002-11-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7971
7972         * expr.c (gen_group_rtx, emit_group_move): New functions.
7973         * expr.h (gen_group_rtx, emit_group_move): Prototype.
7974         * function.c (expand_function_start): Use gen_group_rtx to create a
7975         PARALLEL rtx to hold the return value when the real return rtx is a
7976         PARALLEL.
7977         (expand_function_end): Use emit_group_move to move the return value
7978         from a PARALLEL to the real return registers.
7979         * rtl.h (REG_FUNCTION_VALUE_P): Allow function values to be returned
7980         in PARALLELs.
7981
7982 2002-11-26  Jason Thorpe  <thorpej@wasabisystems.com>
7983
7984         * config/t-libc-ok: Fix typo.
7985
7986 2002-11-26  Jakub Jelinek  <jakub@redhat.com>
7987
7988         * configure.in: Move AC_CANONICAL_SYSTEM and AC_ARG_PROGRAM back
7989         before AC_PROG_CC.
7990         * configure: Rebuilt.
7991
7992 2002-11-26  Nathan Sidwell  <nathan@codesourcery.com>
7993
7994         * c-decl.c: (start_struct): Commonize flag setting.
7995
7996 2002-11-26  Jason Thorpe  <thorpej@wasabisystems.com>
7997
7998         * config/rs6000/rs6000.h (RS6000_CPU_CPP_ENDIAN_BUILTINS): New.
7999         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Use
8000         RS6000_CPU_CPP_ENDIAN_BUILTINS.
8001         * config/rs6000/netbsd.h (RS6000_CPU_CPP_ENDIAN_BUILTINS): Redefine.
8002
8003 2002-11-26  Hartmut Penner  <hpenner@de.ibm.com>
8004
8005         * config/s390/s390.md (literal_pool_64, literal_pool_31 ): New
8006         insns.
8007         * config/s390/s390.c (struct machine_function): Introduction of
8008         struct machine_function.
8009         (s390_output_symbolic_const): Use of cfun.
8010         (s390_optimize_prolog): Likewise.
8011         (s390_fixup_clobbered_return_reg): Likewise.
8012         (s390_frame_info): Likewise.
8013         (s390_emit_prologue, s390_emit_epilogue): Likewise.
8014         (s390_init_machine_status): New function.
8015         (override_options): call s390_init_machine_status.
8016         * config/s390/s390-protos.h (s390_output_constant_pool): Changed
8017         prototype.
8018
8019 2002-11-26  Jakub Jelinek  <jakub@redhat.com>
8020
8021         * varasm.c (output_constant_pool): For pool constants in mergeable
8022         section ensure each constant is padded to multiple of entity size.
8023
8024 2002-11-26  Jakub Jelinek  <jakub@redhat.com>
8025
8026         * varasm.c (default_exception_section): Move to...
8027         * except.c (default_exception_section): ... here. Make
8028         .gcc_except_table read-only if it is not expected to have any
8029         dynamic relocations and linker handles it.
8030         * dwarf2out.c (default_eh_frame_section): Make .eh_frame read-only
8031         if it is not expected to have any dynamic relocations and linker
8032         handles it.
8033         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Check what ld does
8034         when linking read-only and read-write sections together.
8035         * configure, config.in: Rebuilt.
8036         * crtstuff.c (EH_FRAME_SECTION_CONST): Define.
8037         (__EH_FRAME_BEGIN__, __FRAME_END__): Add it.
8038
8039 Mon Nov 25 18:32:37 CET 2002  Jan Hubicka  <jh@suse.cz>
8040
8041         * i386.md (pushsf_rex64): Fix typo.
8042
8043 2002-11-25  Aldy Hernandez  <aldyh@redhat.com>
8044
8045         * config/rs6000/spe.h (__ev_create_sfix32_fs): Change macro into
8046         new function.
8047         (__ev_create_ufix32_fs): Same.
8048         (__ev_get_sfix32_fs_internal): New.
8049         (__ev_get_sfix32_fs): Define to use function.
8050         (__ev_get_ufix32_fs_internal): New.
8051         (__ev_get_ufix32_fs): Define to use function.
8052         (__ev_get_upper_ufix32_fs): Call __ev_get_ufix32_fs.
8053         (__ev_get_lower_ufix32_fs): Same.
8054         (__ev_get_upper_sfix32_fs): Call __ev_get_sfix32_fs.
8055         (__ev_get_lower_sfix32_fs): Same.
8056         (__ev_set_sfix32_fs_internal): New.
8057         (__ev_set_ufix32_fs_internal): New.
8058         (__ev_set_sfix32_fs): Call __ev_set_sfix32_fs_internal.
8059         (__ev_set_ufix32_fs): Call __ev_set_ufix32_fs_internal.
8060         (__ev_set_upper_sfix32_fs): Call function.
8061         (__ev_set_lower_sfix32_fs): Same.
8062         (__ev_set_upper_ufix32_fs): Same.
8063         (__ev_set_lower_ufix32_fs): Same.
8064
8065 2002-11-25  Douglas B Rupp  <rupp@gnat.com>
8066
8067         * gcc.c (do_spec_1): Reset delete_this_arg to zero.
8068
8069 2002-11-25  Jason Thorpe  <thorpej@wasabisystems.com>
8070
8071         * config/elfos.h (HANDLE_SYSV_PRAGMA): Define as 1.
8072         * config/interix.h (HANDLE_SYSV_PRAGMA): Likewise.
8073         * config/linux-aout.h (HANDLE_SYSV_PRAGMA): Likewise.
8074         * config/lynx-ng.h (HANDLE_SYSV_PRAGMA): Likewise.
8075         * config/lynx.h (HANDLE_SYSV_PRAGMA): Likewise.
8076         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Likewise.
8077         * config/openbsd.h (HANDLE_SYSV_PRAGMA: Likewise.
8078         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Likewise.
8079         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Likewise.
8080         * config/cris/aout.h (HANDLE_SYSV_PRAGMA): Likewise.
8081         * config/d30v/d30v.h (HANDLE_SYSV_PRAGMA): Likewise.
8082         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Likewise.
8083         * config/i386/djgpp.h (HANDLE_SYSV_PRAGMA): Likewise.
8084         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Likewise.
8085         * config/i386/vxi386.h (HANDLE_SYSV_PRAGMA): Likewise.
8086         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Likewise.
8087         * config/m88k/m88k.h (HANDLE_SYSV_PRAGMA): Likewise.
8088         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Likewise.
8089         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Likewise.
8090         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Likewise.
8091         * config/sparc/linux-aout.h (HANDLE_SYSV_PRAGMA): Likewise.
8092         * config/sparc/vxsparc64.h (HANDLE_SYSV_PRAGMA): Likewise.
8093         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Likewise.
8094         * config/alpha/osf.h (HANDLE_SYSV_PRAGMA): Don't undef before
8095         defining.
8096         * config/i386/sco5.h (HANDLE_SYSV_PRAGMA): Likewise.
8097         * config/mips/iris5.h (HANDLE_SYSV_PRAGMA): Likewise.
8098
8099 2002-11-25  Dave Pitts  <dpitts@cozx.com>
8100
8101         * gcc/fixinc/mkfixinc.sh: add i370-*-openedition to bypass fixinc list
8102
8103 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
8104
8105         * config/h8300/h8300.md (an anonymous pattern): New.
8106
8107 2002-11-25  Richard Henderson  <rth@redhat.com>
8108
8109         * alias.c (find_base_value): Use new_reg_base_value if it's live.
8110         (copying_arguments): Make boolean.
8111
8112 2002-11-25  Jason Thorpe  <thorpej@wasabisystems.com>
8113
8114         * gcc.c (static_spec_functions): Add if-exists-else spec
8115         function.
8116         (if_exists_else_spec_function): New function.
8117         * doc/invoke.texi: Document the if-exists-else spec function.
8118
8119         * config/netbsd-elf.h (NETBSD_STARTFILE_SPEC): For -static, use
8120         "%:if-exists-else(crtbeginT%O%s crtbegin%O%s)".
8121
8122 2002-11-25  Jason Thorpe  <thorpej@wasabisystems.com>
8123
8124         * config.gcc (powerpc-*-netbsd*): Replace "svr4.h" with
8125         "netbsd.h netbsd-elf.h" in tm_file.  Set tmake_file to
8126         "${tmake_file} rs6000/t-netbsd".
8127         * config/rs6000/netbsd.h: Rewrite.
8128         * config/rs6000/t-netbsd: New file.
8129
8130 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
8131
8132         * config/h8300/h8300.md (an anonymous pattern): Relax the
8133         condition for the pattern.
8134
8135 2002-11-25  Aldy Hernandez  <aldyh@redhat.com>
8136
8137         * config/rs6000/rs6000.h (enum rs6000_builtins): Remove evmwlssf,
8138         evmwlsmf, evmwlssfa, evmwlsmfa, evmwlssfaaw, evmwlsmfaaw,
8139         evmwlssfanw, evmwlsmfanw.
8140
8141         * config/rs6000/rs6000.c (bdesc_2arg): Same.
8142
8143         * config/rs6000/spe.md: Same for patterns.
8144
8145 2002-11-25  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
8146
8147         PR c/8639
8148         * fold-const.c (extract_muldiv): Don't propagate division unless
8149         both arguments are multiples of C.
8150
8151 2002-11-25  Andrew Haley  <aph@redhat.com>
8152
8153         * libgcc-std.ver (_Unwind_Find_Enclosing_Function): Add.
8154         * config/ia64/unwind-ia64.c (_Unwind_Find_Enclosing_Function): New.
8155         * unwind-sjlj.c (_Unwind_Find_Enclosing_Function): Likewise.
8156         * unwind-dw2.c (_Unwind_Find_Enclosing_Function): Likewise.
8157
8158 Sun Nov 24 10:38:04 CET 2002  Jan Hubicka  <jh@suse.cz>
8159
8160         * i386.c (x86_use_ffreep): New global variable.
8161         * i386.h (x86_use_frfeep): Declare
8162         (TARGET_USE_FFREEP): New macro
8163         * i386.md  (movs?f*): Use freep when asked for.
8164         (push?f): Remove dead code.
8165
8166 2002-11-24  Kazu Hirata  <kazu@cs.umass.edu>
8167
8168         * config/h8300/h8300.c (h8300_init_once): Fix a typo in the
8169         target help message.
8170
8171 2002-11-24  Jason Thorpe  <thorpej@wasabisystems.com>
8172
8173         * config.gcc (*-*-netbsd*1.[7-9]*, *-*-netbsd*[2-9]*): Set
8174         extra_parts to "crtbegin.o crtend.o crtbeginS.o crtendS.o
8175         crtbeginT.o".
8176         (arm*-*-netbsd*, i[34567]86-*-netbsd*, m68k*-*-netbsd*)
8177         (ns32k-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Set extra_parts
8178         to "" for a.out configurations.
8179         * config/t-netbsd (CRTSTUFF_T_CFLAGS): Set to "-fPIC".
8180
8181 2002-11-24  Jason Thorpe  <thorpej@wasabisystems.com>
8182
8183         * config/alpha/netbsd.h (CPP_SUBTARGET_SPEC): Just use
8184         NETBSD_CPP_SPEC directly.
8185         (SUBTARGET_EXTRA_SPECS): Remove netbsd_cpp_spec.  Add
8186         netbsd_endfile_spec.
8187         (ENDFILE_SPEC): Use %(netbsd_endfile_spec).
8188
8189 2002-11-24  Jason Thorpe  <thorpej@wasabisystems.com>
8190
8191         * config/netbsd-elf.h (STARTFILE_SPEC): Rename to
8192         NETBSD_STARTFILE_SPEC.
8193         (STARTFILE_SPEC): Redefine in terms of NETBSD_STARTFILE_SPEC.
8194         (ENDFILE_SPEC): Likewise.
8195         * config/netbsd.h (LIB_SPEC, LIBGCC_SPEC): Likewise.
8196
8197 2002-11-24  Andreas Schwab  <schwab@suse.de>
8198
8199         * Makefile.in (install-driver): Remove versioned link before
8200         trying to create it.
8201
8202         * config/m68k/m68k.c: Fix typo in last change defining
8203         TARGET_ASM_CAN_OUTPUT_MI_THUNK.
8204
8205 2002-11-23  H.J. Lu <hjl@gnu.org>
8206
8207         * aclocal.m4: Include ../config/accross.m4.
8208         (gcc_AC_COMPILE_CHECK_SIZEOF): Removed.
8209         (gcc_AC_C_COMPILE_ENDIAN): Removed.
8210         (gcc_AC_C_FLOAT_FORMAT): Check $ac_cv_c_bigendian
8211         instead of $ac_cv_c_compile_endian.
8212
8213         * configure.in: Replace gcc_AC_COMPILE_CHECK_SIZEOF with
8214         AC_COMPILE_CHECK_SIZEOF.
8215         Replace gcc_AC_C_COMPILE_ENDIAN with AC_C_BIGENDIAN_CROSS.
8216         * configure: Rebuild.
8217
8218 2002-11-23  Kazu Hirata  <kazu@cs.umass.edu>
8219
8220         * config/h8300/h8300.c (print_operand): Update the use of
8221         h8300_tiny_constant_address_p.
8222         (h8300_adjust_insn_length): Likewise.
8223         (h8300_tiny_constant_address_p): Check if the given rtx is a
8224         variable declared with __attribute__ ((tiny_data)).
8225
8226 2002-11-22  Dale Johannesen  <dalej@apple.com>
8227
8228         * toplev.c (rest_of_compilation):  Fix comments.
8229
8230 2002-11-22  Geoffrey Keating  <geoffk@apple.com>
8231
8232         * aclocal.m4 (ac_cv_func_mmap_dev_zero): Darwin does not
8233         allow mmap from /dev/zero.  Don't make decisions for the host
8234         based on presence or absence of /dev/zero on the build machine.
8235         (ac_cv_func_mmap_anon): Darwin does have working MMAP_ANON.
8236         (AC_FUNC_MMAP_FILE): Darwin does have mmap of a file.
8237         * configure: Regenerate.
8238
8239 2002-11-22  Daniel Jacobowitz  <drow@mvista.com>
8240
8241         * gcc.c (make_relative_prefix, split_directories)
8242         (free_split_directories): Removed.
8243
8244 2002-11-22  Daniel Jacobowitz  <drow@mvista.com>
8245
8246         * configure.in: Set insn=nop for DWARF-2 tests on ARM.
8247         * configure: Regenerated.
8248
8249 2002-11-22  Kazu Hirata  <kazu@cs.umass.edu>
8250
8251         * config/h8300/h8300.c (compute_a_shift_length): Fix the insn
8252         length computation when xor.l is output.
8253
8254 2002-11-21  Douglas B Rupp  <rupp@gnat.com>
8255
8256         * alpha.md (movstrdi, clrstrdi): New VMS patterns.
8257         (call_vms_1, call_value_vms_1): Cleanup syntax.
8258
8259 Thu Nov 21 19:20:27 CET 2002  Jan Hubicka  <jh@suse.cz>
8260
8261         * athlon.md (define_atuomaton): Add athlon_load.
8262         (athlon-double): New reservation.
8263         (athlon-ieu0): New CPU unit.
8264         (athlon-load?): Use athlon_load automaton.
8265         (*_k8 reservations): New.
8266         (other insn revervations): Activate for K8.
8267
8268 Thu Nov 21 15:07:42 CET 2002  Jan Hubicka  <jh@suse.cz>
8269
8270         * cfgrtl.c (verify_flow_info):  Accept EDGE_CAN_FALLTHRU flag.
8271
8272 2002-11-21  Jim Wilson  <wilson@redhat.com>
8273
8274         * config/rs6000/rs6000.c (function_arg): Set inner mode of SPE
8275         vectors to SI.
8276
8277 2002-11-21  Bob Wilson  <bob.wilson@acm.org>
8278
8279         * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Declare.
8280         * config/xtensa/xtensa.c (struct machine_function): Add
8281         incoming_a7_copied flag.
8282         (xtensa_copy_incoming_a7): Define.
8283         (xtensa_emit_move_sequence): Use xtensa_copy_incoming_a7.
8284         * config/xtensa/xtensa.md (movdi, movsf, movdf): Ditto.
8285
8286 Thu Nov 21 23:52:04 CET 2002  Jan Hubicka  <jH@suse.cz>
8287
8288         * i386-protos.h (x86_64_sign_extended_value): Fix prototype.
8289         * i386.c (x86_64_general_operand, x86_64_szext_general_operand,
8290         x86_64_nonmemory_operand, x86_64_movabs_operand,
8291         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
8292         ix86_expand_int_movcc): Update call of x86_64_sign_extended_value.
8293         (local_symbolic_operand): Do not care the 64bit limits.
8294         (x86_64_sign_extended_value): Remove allow_rip support.
8295         (legitimate_pic_address_disp_p): Handle all cases allowed
8296         with RIP addressing.
8297         (legitimate_address_p): Use legitimate_pic_address_disp_p for PIC.
8298         (legitimize_pic_address): Reorganize.
8299         * i386.h (EXTRA_CONSTRAINT): Update call of x86_64_sign_extended_value.
8300
8301 2002-11-21  Jason Thorpe  <thorpej@wasabisystems.com>
8302
8303         * config.gcc (arm*-*-netbsdelf*): Enable configuration.
8304         * config/arm/netbsd-elf.h: New file.
8305
8306 2002-11-21  Jason Thorpe  <thorpej@wasabisystems.com>
8307
8308         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
8309         subtarget_asm_float_spec.
8310         (SUBTARGET_ASM_FLOAT_SPEC): Define, moving the
8311         defaults from...
8312         (ASM_SPEC): ...here.  Use subtarget_asm_float_spec.
8313
8314 2002-11-21  Nick Clifton  <nickc@redhat.com>
8315
8316         * config/fr30/fr30.md (movsf_constant_store): Move code to
8317         detect 0.0 into fr30.c.
8318         * config/fr30/fr30-protos.h (fr30_const_double_is_zero):
8319         Prototype.
8320         * config/fr30/fr30.c (fr30_const_double_is_zero): New
8321         function.  Return true if the rtx is 0.0.
8322
8323 2002-11-21  Jason Thorpe  <thorpej@wasabisystems.com>
8324
8325         * config/arm/elf.h (ASM_SPEC, LINK_SPEC): Pass -EL
8326         if -mlittle-endian is specified.
8327
8328 2002-11-21  Richard Earnshaw  <rearnsha@arm.com>
8329
8330         PR optimization/2903
8331         * arm.md (anddi_notzesidi_di): Operand 2 is inverted not operand 1.
8332         (anddi_notsesidi_di): Likewise.
8333
8334 2002-11-21  Kazu Hirata  <kazu@cs.umass.edu>
8335
8336         * config/h8300/h8300.c (print_operand): Use
8337         h8300_eightbit_constant_address_p and
8338         h8300_tiny_constant_address_p.
8339         (h8300_adjust_insn_length): Likewise.
8340         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Remove.
8341         (TINY_CONSTANT_ADDRESS_P): Likewise.
8342         (OK_FOR_U): Use eightbit_constant_address_p.
8343
8344 2002-11-21  Ulrich Weigand  <uweigand@de.ibm.com>
8345
8346         * config/s390/libgcc-libc.ver: Add multilib support.
8347         * config/s390/linux.h (MULTILIB_DEFAULT): Define.
8348         * config/s390/t-linux64 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8349         MULTILIB_OSDIRNAMES, LIBGCC, INSTALL_LIBGCC,
8350         EXTRA_MULTILIB_PARTS): Define.
8351
8352 2002-11-21  Richard Earnshaw  <rearnsha@arm.com>
8353
8354         * arm.c (arm_get_frame_size): A leaf function does not need its
8355         stack padding to an aligned boundary if it has no frame.
8356         (thumb_get_frame_size): Likewise.
8357
8358 Wed Nov 20 22:25:53 CET 2002  Jan Hubicka  <jh@suse.cz>
8359
8360         * x86-64.h (MCOUNT_NAME): Fix typo in my previous patch.
8361         (override_options): Likewise.
8362
8363 Wed Nov 20 19:07:17 CET 2002  Jan Hubicka  <jh@suse.cz>
8364
8365         * config.gcc: Add k8 target alias support
8366         * i386.c (_cost): Declare costs for various variants of divides and
8367         multiplies.
8368         (k8_cost): New.
8369         (m_K8, m_ATHLON_K8): New macros.
8370         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
8371         x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_fiop,
8372         x86_promote_QImode, x86_sub_esp_?, x86_add_esp_?,
8373         x86_integer_DFmode_moves, x86_partial_reg_dependency,
8374         x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
8375         x86_prologue_using_move, x86_epilogue_using_move,
8376         x86_arch_always_fancy_math_387, x86_sse_partial_regs,
8377         x86_sse_typeless_stores): Set for K8
8378         (override_options): Add k8 support; fix athlon alignment;
8379         complain about non-x86-64 capable CPU being used in x86-64 compilation.
8380         (ix86_issue_rate): Set for K8.
8381         (ix86_adjust_cost, ia32_use_dfa_pipeline_interface,
8382         x86_machine_dependent_reorg): Handle K8 like
8383         * i386.h
8384         (x86_costs):  Change mult_init and divide into array.
8385         (TARGET_K8, TARGET_ATHLON): New macros.
8386         (MODE_INDEX): New macro.
8387         (RTX_COST): Use new costs.
8388         (TARGET_CPU_CPP_BUILTINS):  Define __k8__ and __tune_k8__.
8389         (TARGET_CPU_DEFAULT_NAMES): Add k8
8390         (TARGET_CPU_DEFAULT_k8): New constant
8391         (enum processor_type): Add PROCESSOR_K8.
8392         * i386.md (cpu attribute): Add k8.
8393
8394         * invoke.texi: Document -march=k8.
8395
8396         * i386.md (type attribute): Add leave
8397         (mode attribute): Remove unknownfp.
8398         (length_immediate, modrm, memory attributes): Handle leave correctly.
8399         (fp comparison patterns): Determine FP mode.
8400         (leave, leave_rex64): Remove special cases.
8401         * ppro.md (ppro_uops, ppro_p2): Add leave
8402         * pentiun.md (pent_pop): Handle leave too.
8403         * k6.md (k6_load): Handle leave.
8404         * athlon.md (athlon_leave, athlon_pop): Fix.
8405         (athlon_decode): Handle leave.
8406
8407 2002-11-20  Steve Ellcey  <sje@cup.hp.com>
8408
8409         * emit-rtl.c (gen_reg_rtx): Simplify mapping of Complex type
8410         to component type using GET_MODE_INNER.
8411         * expr.c (emit_move_insn_1): Ditto.
8412         * optabs.c (expand_binop): Ditto.
8413         (expand_unop): Ditto.
8414         (expand_complex_abs): Ditto.
8415
8416 2002-11-20  Douglas B Rupp  <rupp@gnat.com>
8417
8418         * hwint.h (HAVE___INT64): Fix typo (was HAVE__INT64).
8419
8420 2002-11-20  DJ Delorie  <dj@redhat.com>
8421
8422         * config/stormy16/stormy16.c (s16builtins,
8423         xstormy16_init_builtins, xstormy16_expand_builtin): New.
8424         * config/stormy16/stormy16.md (divmodhi4, sdivlh, udivlh): New.
8425
8426 2002-11-20  Hans-Peter Nilsson  <hp@bitrange.com>
8427
8428         * Makefile.in (RUN_GEN, VALGRIND_DRIVER_DEFINES): New variables.
8429         (DRIVER_DEFINES): Add $(VALGRIND_DRIVER_DEFINES).
8430         (executing gencheck, genconfigs, genconditions, genflags,
8431         gencodes, genconstants, genemit, genrecog, genopinit, genextract,
8432         genpeep, genattr, genattrtab, genoutput, gengenrtl, genpreds,
8433         gengtype, genprotos): Prepend $(RUN_GEN).
8434         * configure.in: Move host compiler tests before --enable-checking
8435         tests.
8436         (--enable-checking=valgrind): New.
8437         * config.in, configure: Regenerate.
8438         * cppfiles.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
8439         Define as empty.
8440         (read_include_file): When doing the mmap+1 trick,
8441         valgrind-annotate the byte after the mmap:ed area as readable.
8442         (purge_cache): Remove above annotation.
8443         * gcc.c (execute) [ENABLE_VALGRIND_CHECKING]: Arrange to prepend
8444         VALGRIND_PATH -q to each command.
8445
8446         * ggc-common.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
8447         Define as empty.
8448         (ggc_realloc): Update valgrind annotations.
8449         * ggc-page.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
8450         Define as empty.
8451         (alloc_anon, free_page, ggc_alloc, poison_pages): Add machinery to
8452         valgrind-annotate memory.
8453
8454 2002-11-20  Ulrich Weigand  <uweigand@de.ibm.com>
8455
8456         * recog.c (constrain_operands): Prefer exact match over reloadable
8457         EXTRA_MEMORY_CONSTRAINT or EXTRA_ADDRESS_CONSTRAINT.
8458
8459         * reload.c (find_reloads): Always reload EXTRA_ADDRESS_CONSTRAINT
8460         operands in Pmode.
8461
8462 2002-11-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
8463
8464         PR c/8518
8465         * c-decl.c (duplicate_decls): Outline the second definition
8466         of an extern inline function in all cases.
8467
8468 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
8469
8470         * stor-layout.c (place_field): Update rli->offset as well as
8471         rli->bitpos.
8472
8473 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
8474
8475         * sched-deps.c (sched_analyze): Check HARD_REGNO_CALL_PART_CLOBBERED.
8476
8477 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
8478
8479         * config/sh/sh.md (udivsi3): Don't put udivsi3_i4_media instructions
8480         into a libcall block.
8481         (divsi3): Likewise divsi3_i4_media.
8482
8483 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
8484
8485         * global.c (find_reg): Check HARD_REGNO_NREGS before kicking
8486         out another register.
8487
8488 2002-11-20  Jakub Jelinek  <jakub@redhat.com>
8489
8490         * combine.c (force_to_mode): Only replace with (not Y) if all bits in fuller_mask
8491         (not just mask) are set in C.
8492
8493 2002-11-19  Steven Bosscher <steven.bosscher@usafa.af.mil>
8494
8495         * config/mips/vr.h (DRIVER_SELF_SPECS): Change %{<mgp32} to %<mgp32.
8496
8497 2002-11-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8498
8499         * profile.c (index_counts_file): Fix obvious mistake.
8500
8501 2002-11-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8502
8503         * Makefile.in (profile.o): Add hashtab.h dependency.
8504         * gcov-io.h (GCOV_SUMMARY_LENGTH): New.
8505         * profile.c: Include hashtab.h.
8506         (htab_counts_index_hash, htab_counts_index_eq, htab_counts_index_del,
8507         cleanup_counts_index, index_counts_file, struct section_reference,
8508         struct da_index_entry, counts_file_name, counts_file_index): New.
8509         (get_exec_counts, init_branch_prob): Modified.
8510
8511 2002-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
8512
8513         * config.gcc (sh*-*-linux*): Add t-slibgcc-elf-ver and t-linux
8514         to tmake_file. Remove setting gas and gnu_ld here.
8515         * config/sh/libgcc-glibc.ver: New file.
8516         * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
8517         (SHLIB_MAPFILES): New.
8518         * config/sh/linux.h (MD_EXEC_PREFIX): Undefine.
8519         (MD_STARTFILE_PREFIX): Likewise.
8520         (HANDLE_PRAGMA_PACK_PACK_PUSH_POP): Define.
8521         (DWARF2_UNWIND_INFO): Redefine.
8522         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8523         (LINK_EH_SPEC): Redefine.
8524         (MD_FALLBACK_FRAME_STATE_FOR): Define except for SH-media.
8525         (SH_FALLBACK_FRAME_FLOAT_STATE): Define.
8526         (SH_DWARF_FRAME_GP0, SH_DWARF_FRAME_FP0, SH_DWARF_FRAME_XD0,
8527         SH_DWARF_FRAME_BT0, SH_DWARF_FRAME_PR, SH_DWARF_FRAME_PR_MEDIA,
8528         SH_DWARF_FRAME_GBR, SH_DWARF_FRAME_MACH, SH_DWARF_FRAME_MACL,
8529         SH_DWARF_FRAME_PC, SH_DWARF_FRAME_SR, SH_DWARF_FRAME_FPUL,
8530         SH_DWARF_FRAME_FPSCR): Likewise.
8531         * config/sh/sh-protos.h (sh_set_return_address): Declare.
8532         * config/sh/sh.c (calc_live_regs): Count EH_RETURN_DATA_REGNO
8533         registers if the current function calls EH return.
8534         (sh_expand_epilogue): Handle EH stack adjustments.
8535         (sh_set_return_address): New function.
8536         * config/sh/sh.h (SH_DBX_REGISTER_NUMBER): Handle PR_MEDIA_REG.
8537         Don't abort even if the number is mapped to -1.
8538         (EH_RETURN_DATA_REGNO): Define.
8539         (EH_RETURN_STACKADJ_RTX): Define.
8540         * config/sh/sh.md (UNSPEC_EH_RETURN): New.
8541         (eh_return): New pattern.
8542         (eh_set_ra_di, eh_set_ra_si): Likewise.
8543         Add splitter to perform EH return after reload.
8544
8545 Tue Nov 19 12:52:07 2002  J"orn Rennecke <joern.rennecke@superh.com>
8546
8547         * stor-layout.c (excess_unit_span): New function.
8548         (place_field): Use it.
8549
8550 2002-11-19  Andreas Schwab  <schwab@suse.de>
8551
8552         * unwind.h (_Unwind_GetTextRelBase): Revert last change, this is
8553         not valid in C++.
8554
8555 2002-11-19  Nathanael Nerode  <neroden@gcc.gnu.org>
8556
8557         * configure.in, Makefile.in: Correct BUILD/HOST confusion.
8558         * configure: Regenerate.
8559
8560 Tue Nov 19 00:11:44 CET 2002  Jan Hubicka  <jh@suse.cz>
8561
8562         * convert.c (strip_float_extensions): New function.
8563         (convert_to_real): Optimize some cases.
8564
8565 2002-11-19  Andreas Jaeger  <aj@suse.de>
8566
8567         * loop.c (record_giv): Initialize not_replaceable.
8568         (check_final_value): Likewise.
8569
8570 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
8571
8572         * config/h8300/h8300.c (h8300_init_once): Replace 1 with
8573         MASK_H8300S.
8574
8575 2002-11-19  Vijay L. Khuspe  <vijayk1@kpit.com>
8576
8577         * config/h8300/h8300.c (h8300_init_once): Allow -mn switch
8578         only if -mh or -ms present.
8579         (h8300_eightbit_constant_address_p): Support the normal mode.
8580         (h8300_tiny_constant_address_p): Likewise.
8581         * config/h8300/h8300.h (TARGET_NORMAL_MODE): New.
8582         (POINTER_SIZE): Add 16 bit pointer for the normal mode.
8583         (Pmode): Evaluate to HImode for the normal mode.
8584         (SIZE_TYPE): Evaluate to unsigned int for normal mode.
8585         (PTRDIFF_TYPE): Evaluate to int for the normal mode.
8586         (ASM_WORD_OP): Evaluate to word for the normal mode.
8587         * config/h8300/h8300.md (tablejump_normal_mode): New.
8588         (indirect_jump_normal_mode): New.
8589         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Pass -mn option to
8590         directory.
8591         (MULTILIB_DIRNAMES): Create target dependent directory
8592         'normal'.
8593         (MULTILIB_EXCEPTIONS): Don't turn on -mn on H8/300.
8594         * doc/invoke.texi (gccoptlist): Describe the new switch -mn.
8595
8596 Tue Nov 19 23:50:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8597
8598         * i386.md (length_immediate): Do not refer to insn address.
8599         (jcc*, jmp patterns):  Compute length explicitly.
8600
8601 2002-11-19 Eric Botcazou <ebotcazou@libertysurf.fr>
8602
8603         PR c/8588
8604         * optabs.c (expand_binop): Convert CONST_INTs in shift
8605         operations too.
8606
8607 2002-11-19  Roger Sayle  <roger@eyesopen.com>
8608
8609         * gcse.c (gcse_emit_move_after): Correct typo in REG_EQUAL note.
8610
8611 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
8612
8613         * config/h8300/h8300.md (an anonymous pattern): Relax the
8614         condition to accept the same operands and/or subregs.
8615
8616 2002-11-19  Daniel Jacobowitz  <drow@mvista.com>
8617
8618         * config/sh/sh.c (gen_shl_and): Revert previous patch.
8619         * config/sh/sh.md (ashrdi3+1, ashrdi3+2): Predicate on
8620         reload_completed.
8621
8622 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
8623
8624         * config/h8300/h8300.c (print_operand): Update the use of
8625         EIGHTBIT_CONSTANT_ADDRESS_P.
8626         (h8300_adjust_insn_length): Likewise.
8627         (h8300_eightbit_constant_address_p): Check if the given rtx is
8628         a variable with __attribute__((eightbit_data)).
8629         * config/h8300/h8300.h (OK_FOR_U): Update the use of
8630         EIGHTBIT_CONSTANT_ADDRESS_P.
8631
8632 2002-11-19  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8633
8634         * doc/contrib.texi (Contributors): Add self as second contact in
8635         addition to Jeff Law.
8636
8637 2002-11-19  Andreas Jaeger  <aj@suse.de>
8638
8639         * tree-inline.c: Move prototpyes of find_alloca_call_1 and
8640         find_alloca_call to right place.
8641
8642 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
8643
8644         * cppfiles.c: Fix formatting.
8645
8646 2002-11-19  Jason Thorpe  <thorpej@wasabisystems.com>
8647
8648         * gcc.c (The Specs Language): Document spec functions.
8649         (static_spec_functions, lookup_spec_function)
8650         (eval_spec_function, handle_spec_function)
8651         (if_exists_spec_function, alloc_args): New.
8652         (execute): Abort if processing_spec_function is true.
8653         (do_spec_1): Hand off spec to handle_spec_function if %:
8654         is encountered.  If processing_spec_function is true,
8655         end any pending argument when the end of the string is reached.
8656         (main): Use alloc_args to allocate the initial argument vector.
8657         * gcc.h (struct spec_function): New.
8658         (lang_specific_spec_functions): New extern.
8659
8660         * config/netbsd-elf.h (STARTFILE_SPEC): Add if-exists(crti%O%s).
8661         (ENDFILE_SPEC): Add if-exists(crtn%O%s).
8662         * config/alpha/netbsd.h (ENDFILE_SPEC): Likewise.
8663
8664         * doc/invoke.texi: Document spec functions.
8665
8666         * cppspec.c (lang_specific_spec_functions): New.
8667         * gccspec.c: Likewise.
8668
8669 2002-11-18  Steve Ellcey  <sje@cup.hp.com>
8670
8671         * config/ia64/hpux_longdouble.h (FIXUNS_TRUNCTFSI2_LIBCALL): New.
8672         (FIXUNS_TRUNCTFDI2_LIBCALL): New.
8673         (fixunstfsi_libfunc): Change.
8674         (fixunstfdi_libfunc): Change.
8675         (sdiv_optab): Don't zero out SImode handler.
8676         (udiv_optab): Don't zero out SImode handler.
8677         (smod_optab): Don't zero out SImode handler.
8678         (umod_optab): Don't zero out SImode handler.
8679
8680 2002-11-18  Neil Booth  <neil@daikokuya.co.uk>
8681
8682         PR preprocessor/8524
8683         * cpplib.c (run_directive): Remove previous kludge to _Pragma.
8684         Add a new one in its place, which hopefully works.
8685         (skip_rest_of_line): Change test for bottom-of-context-stack.
8686
8687 Mon Nov 18 21:29:03 CET 2002  Jan Hubicka  <jh@suse.cz>
8688
8689         * i386.md (addqi_1_slp): Fix output template.
8690         (subqi_1_slp): Fix type.
8691
8692 Sun Nov 17 00:01:28 CET 2002  Jan Hubicka  <jh@suse.cz>
8693
8694         * calls.c (alloca_call_p): New global function.
8695         * tree.h (alloca_call_p): New.
8696         * tree-inline.c (inlinable_function_p):  Do not inline when
8697         function calls alloca.
8698         (find_alloca_call, find_alloca_call_1): New functions.
8699
8700 2002-11-18  Kazu Hirata  <kazu@cs.umass.edu>
8701
8702         * config/h8300/h8300.md (*andorqi3): Use bor between bld and
8703         bst.  Update the insn length.
8704         (*andorhi3): Likewise.
8705         (*andorsi3): Likewise.
8706
8707 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
8708
8709         * config/sh/sh-protos.h (sh_mark_label): Declare.
8710         * config/sh/sh.c (sh_mark_label): New function, taken from
8711         movdi_const, but fixing the case when the address has an addend.
8712         * config/sh/sh.md (movdi_const, movdi_const_32bit): Use it.
8713
8714 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
8715
8716         * config/sh/sh.c (pool_node): New field: part_of_sequence_p.
8717         (add_constant): Set it.
8718         (dump_table): Don't reorder a constant if part_of_sequence_p.
8719         (machine_dependent_reorg): Assume that float constants will
8720         stay in their original order if used as a sequence.
8721
8722 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
8723
8724         * config/sh/sh.c (calc_live_regs): Update check for PIC liveness
8725         in compact code.
8726
8727 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
8728
8729         * config/sh/sh.md (initialize_trampoline): Do not force the
8730         trampoline address into R0_REGS here.
8731
8732 Sun Nov 17 14:01:09 CET 2002  Jan Hubicka  <jh@suse.cz>
8733
8734         * i386.md (negsf2_ifs, negdf2_ifs, negdf2_ifs_rex64, abssf2_ifs,
8735         absdf2_ifs, absdf2_ifs_rex64): Fix constraints.
8736         (neg?f2_ifs, abs?f2_ifs splitters): Refuse memory operand; do not
8737         generate unnecesary subregs.
8738
8739 2002-11-17  Kazu Hirata  <kazu@cs.umass.edu>
8740
8741         * df.c: Fix formatting.
8742
8743 2002-11-17  Kazu Hirata  <kazu@cs.umass.edu>
8744
8745         * config/h8300/h8300.md (two anonymous patterns): Fix insn
8746         lengths.
8747
8748 2002-11-17  Daniel Jacobowitz  <drow@mvista.com>
8749
8750         * sh.c (gen_shl_and): Don't create a zero_extend if the operand
8751         is not an arith_reg_operand.
8752
8753 2002-11-17  Graham Stott  <graham.stott@btinternet.com>
8754
8755         * real.c (real_to_decimal): Fix buffer overrun when buffer size
8756         is smaller than representation.
8757
8758 2002-11-17  Kazu Hirata  <kazu@cs.umass.edu>
8759
8760         * builtins.c: Fix formatting.
8761
8762 Sat Nov 16 16:49:58 CET 2002  Jan Hubicka  <jh@suse.cz>
8763
8764         * i386.md (truncdfsf2_1_sse, truncdfsf2_1_sse_nooverlap, truncdfsf2_2,
8765         floats?dff2_i387):
8766         Work around regclass stupidity.
8767         (truncdfsf_2_1_sse splitter):  Accept !TARGET_PARTIAL_SSE_REGS
8768
8769 Sat Nov 16 02:17:48 CET 2002  Jan Hubicka  <jh@suse.cz>
8770
8771         * i386.md (fop_df_6): New pattern.
8772         (fop_xf_4, fop_xf_5): Handle both SF and DFmode extensions.
8773         (fop_xf_6): Rewrite
8774         (fop_xf_7): Delete.
8775         (fop_tf_4, fop_tf_5): Handle both SF and DFmode extensions.
8776         (fop_tf_6): Rewrite
8777         (fop_tf_7): Delete.
8778
8779 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
8780
8781         * config/h8300/h8300.md (two anonymous patterns): Fix typos.
8782
8783 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
8784
8785         * config/h8300/h8300.md: Fix formatting.
8786
8787 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
8788
8789         * config/h8300/h8300.md: Replace spaces with tabs.
8790         * config/h8300/t-h8300: Remove a trailing empty line.
8791
8792 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
8793
8794         * tlink.c: Fix formatting.
8795
8796 2002-11-16  David Edelsohn  <edelsohn@gnu.org>
8797
8798         PR 8362
8799         * config/rs6000/rs6000.c (rs6000_outout_load_multiple): New function.
8800         * config/rs6000/rs6000.md (movti_string): Remove output modifier
8801         when scratch register never needed.
8802         (ldmsi[3-8]): New patterns.
8803
8804 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
8805
8806         * hard-reg-set.h: Follow spelling conventions.
8807         * real.c: Likewise.
8808         * target.h: Likewise.
8809
8810 2002-11-16  Jakub Jelinek  <jakub@redhat.com>
8811
8812         * config/i386/x86-64.h (MCOUNT_NAME): Change into string literal.
8813
8814 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
8815
8816         * optabs.c: Fix formatting.
8817
8818 Sat Nov 16 02:06:02 CET 2002  Jan Hubicka  <jh@suse.cz>
8819
8820         * athlon.md, k6.md, pentium.md, ppro.md: Handle shift1, rotate1
8821         * i386.md (attribute type): Add type shift1 and rotate1.
8822         (*_slp): Rewrite to have just two operands to avoid reload problems.
8823
8824 2002-11-15  Kazu Hirata  <kazu@cs.umass.edu>
8825
8826         * config/h8300/h8300.md (4 anonymous patterns): New.
8827
8828 2002-11-15  Geoffrey Keating  <geoffk@apple.com>
8829
8830         * params.def (GGC_MIN_HEAPSIZE): Fix GGC_ALWAYS_COLLECT problem.
8831         * doc/invoke.texi: Correct description of what needs to be done to
8832         force collection at every ggc_collect call.
8833
8834 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
8835
8836         * config/s390/s390.c (optimization_options): Set
8837         flag_asynchronous_unwind_tables to 1 by default.
8838
8839 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
8840
8841         * config/s390/s390.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8842
8843 Fri Nov 15 14:54:19 CET 2002  Jan Hubicka  <jh@suse.cz>
8844
8845         * i386-protos.h (x86_function_profiler): New function
8846         * i386.h (MCOUNT_NAME): New.
8847         (PROFILE_COUNT_REGISTER): New.
8848         (FUNCTION_PROFILER): Move offline to ...
8849         * i386.c (x86_function_profiler) ... here; fix 64bit support
8850         * beos-elf.h (FUNCTION_PROFILER): Kill.
8851         (MCOUNT_NAME): New.
8852         * freebsd-aout.h (FUNCTION_PROFILER): Kill.
8853         (MCOUNT_NAME): New.
8854         (PROFILE_COUNT_REGISTER): New.
8855         * linux.h (FUNCTION_PROFILER): Kill.
8856         (MCOUNT_NAME): New.
8857         * x86-64.h (FUNCTION_PROFILER): Kill.
8858         (MCOUNT_NAME): New.
8859         * freebsd.h (FUNCTION_PROFILER): Kill.
8860         (MCOUNT_NAME): New.
8861
8862 2002-11-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
8863
8864         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG,
8865         FUNCTION_ARG_PASS_BY_REFERENCE): Define.
8866         * config/arm/arm.c (arm_va_arg,
8867         arm_function_arg_pass_by_reference): New.
8868         * config/arm/arm-protos.h: Add prototypes.
8869
8870 2002-11-14  Kazu Hirata  <kazu@cs.umass.edu>
8871
8872         * gthr-single.h: Fix formatting.
8873
8874 2002-11-14  Zack Weinberg  <zack@codesourcery.com>
8875
8876         * tree.c (tree_vec_elt_check_failed): New function.
8877         * tree.h (TREE_VEC_ELT_CHECK): New checking macro.
8878         (TREE_VEC_ELT): Use it.
8879
8880         * tree-inline.c (optimize_inline_calls): Don't copy a
8881         zero-length vector.
8882
8883 2002-11-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8884
8885         * diagnostic.c (sorry): Don't repeat "sorry, unimplemented" text.
8886
8887 2002-11-14  Jakub Jelinek  <jakub@redhat.com>
8888
8889         * varasm.c (output_addressed_constants) [MINUS_EXPR]: Clear reloc if
8890         both operands contain local relocations.
8891         (categorize_decl_for_section): Don't use mergeable sections if
8892         initializer has any relocations.
8893
8894 2002-11-14  Kazu Hirata  <kazu@cs.umass.edu>
8895
8896         * gthr-vxworks.h: Fix formatting.
8897
8898 2002-11-13  Janis Johnson  <janis187@us.ibm.com>
8899
8900         * doc/install.texi (Testing): Document extra Java testing.
8901         * doc/sourcebuild.texi (Test Suites): Document libgcj testing.
8902
8903 2002-11-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8904
8905         * pa64-hpux.h (LINK_SPEC): Move "+Accept TypeMismatch" switch to the
8906         beginning of the spec.
8907         (LDD_SUFFIX, PARSE_LDD_OUTPUT): Delete.
8908         (LD_INIT_SWITCH, LD_FINI_SWITCH): Define but don't enable.  Add comment
8909         regarding problems with global constructors when using GNU ld.
8910
8911 2002-11-13  Kazu Hirata  <kazu@cs.umass.edu>
8912
8913         * gthr-solaris.h: Fix formatting.
8914
8915 2002-11-13  Kazu Hirata  <kazu@cs.umass.edu>
8916
8917         * gthr-posix.h: Fix formatting.
8918
8919 2002-11-12  Devang Patel <dpatel@apple.com>
8920         * gcc.c (display_help): Two new options -Xpreprocessor and -Xassembler.
8921         (process_command): Same.
8922         * doc/invoke.texi: Info about these two new options.
8923
8924 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
8925
8926         * config/h8300/h8300.md (*andorsi3): New.
8927
8928 2002-11-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8929
8930         * doc/install.texi (powerpc-*-linux-gnu*): Update binutils requirement.
8931
8932 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
8933
8934         * config/h8300/h8300.c (tiny_constant_address_p): Parenthesize
8935         expressions appropriately.
8936
8937 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
8938
8939         * gthr-win32.h: Fix formatting.
8940
8941 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
8942
8943         * config/h8300/h8300.c (single_one_operand): Correctly compute
8944         mask when mode is SImode.
8945         (single_zero_operand): Likewise.
8946         * config/h8300/h8300.md (two new anonymous insns): New.
8947
8948 2002-11-12  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8949
8950         * doc/contrib.texi (Contributors): Use GCJ instead of gcj to refer
8951         to that entire project.
8952
8953 2002-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8954
8955         * config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Restore old
8956         directories.
8957
8958 2002-11-11  Zack Weinberg  <zack@codesourcery.com>
8959
8960         * params.def (ggc-min-expand, ggc-min-heapsize): New parameters.
8961         * doc/invoke.texi: Document them.
8962
8963         * ggc-page.c: Include params.h.  Remove definitions of
8964         GGC_MIN_EXPAND_FOR_GC, GGC_MIN_LAST_ALLOCATED.  Replace
8965         GGC_POISON with ENABLE_GC_CHECKING in ifdefs, delete #define.
8966         (init_gcc): Don't set G.allocated_last_gc here.
8967         (ggc_collect): Use PARAM_VALUE (GGC_MIN_HEAPSIZE) and
8968         PARAM_VALUE (GGC_MIN_EXPAND) to decide whether or not to
8969         perform collection.
8970         * ggc-simple.c: Similarly.
8971         * Makefile.in (ggc-common.o, ggc-simple.o): Add $(PARAMS_H) to
8972         dependencies.
8973
8974 2002-11-11  Kazu Hirata  <kazu@cs.umass.edu>
8975
8976         * gthr-dce.h: Fix formatting.
8977
8978 2002-11-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8979
8980         PR c/8467
8981         * stmt.c (tail_recursion_args): Handle DECL_MODE differing from the
8982         mode of DECL_RTL case.
8983
8984 2002-11-11  Janis Johnson  <janis187@us.ibm.com>
8985
8986         * doc/contrib.texi: Merge in the list from the libstdc++ web pages.
8987
8988 Mon Nov 11 12:06:08 CET 2002  Jan Hubicka  <jh@suse.cz>
8989
8990         * i386.c (construct_container): Fix handling of SSE_CLASS.
8991
8992 2002-11-10  Joel Sherrill <joel@gcc.gnu.org>
8993
8994         * config/m68k/t-crtstuff (crti.o): Use this...
8995         ($(T)crti.o): ... instead.
8996         (crtn.o): Use this...
8997         ($(T)crtn.o): ... instead.
8998
8999 2002-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
9000
9001         PR c/8439
9002         * recog.c (validate_replace_rtx_1) [PLUS]: Simplify only
9003         if there is something new to be simplified.
9004
9005 2002-11-10  H.J. Lu <hjl@gnu.org>
9006
9007         * calls.c (PUSH_ARGS_REVERSED): Define only if not defined.
9008         * expr.c (PUSH_ARGS_REVERSED): Likewise.
9009
9010         * config/i386/i386.h (PUSH_ARGS_REVERSED): Set to 1.
9011
9012 2002-11-10  Zack Weinberg  <zack@codesourcery.com>
9013
9014         * config/rs6000/sysv4.h: Define NO_IMPLICIT_EXTERN_C here...
9015         * config/rs6000/linux.h, config/rs6000/linux64.h,
9016         config/rs6000/windiss.h: ... not here.
9017
9018 2002-11-10  Jason Thorpe  <thorpej@wasabisystems.com>
9019
9020         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define
9021         __ABICALLS__ if TARGET_ABICALLS.
9022
9023 Sun Nov 10 18:49:21 CET 2002  Jan Hubicka  <jh@suse.cz>
9024
9025         * i386.h (MIN_UNITS_PER_WORD): Define to 8 for x86-64 libgcc.
9026
9027 2002-11-10  Joseph S. Myers  <jsm@polyomino.org.uk>
9028
9029         * c-decl.c (grokdeclarator): Make error for duplicate type
9030         qualifiers into a pedwarn, disabled for C99.
9031
9032 2002-11-10  Hans-Peter Nilsson  <hp@bitrange.com>
9033
9034         * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Define the same
9035         as FUNCTION_ARG_PASS_BY_REFERENCE.
9036
9037 2002-11-09  Zack Weinberg  <zack@codesourcery.com>
9038
9039         * doc/install.texi: Add *-*-vxworks* specific installation
9040         instructions.
9041
9042         * config/vxlib.c: Rewrite using generation numbers to identify
9043         valid TSD keys.
9044
9045 Sat Nov  9 00:10:54 CET 2002  Jan Hubicka  <jh@suse.cz>
9046
9047         * i386.c (x86_machine_dependent_reorg): Fix even more side cases.
9048
9049 2002-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9050
9051         * pa.h (STARTING_FRAME_OFFSET): Change offset for TARGET_64BIT to 16.
9052
9053         * config.gcc (hppa*64*-*-linux*): Shorten lines in tm_file define.
9054         (hppa*64*-*-hpux11*): Likewise.  Use elfos.h with gas.
9055         * pa.c (output_millicode_call): Use symbol difference rather than
9056         $PIC_pcrel$0 when using HP assembler.
9057         * pa64-hpux.h (TARGET_GAS): Define to 1 or 0 depending on whether or
9058         not elfos.h (i.e., gas) is being used.
9059         (ASM_FILE_START, STRING_ASM_OP, TEXT_SECTION_ASM_OP,
9060         DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_COMMON,
9061         ASM_OUTPUT_ALIGNED_LOCAL, GLOBAL_ASM_OP, ASM_DECLARE_FUNCTION_NAME,
9062         ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL,
9063         ASM_OUTPUT_INTERNAL_LABEL, ASM_GENERATE_INTERNAL_LABEL): Define when
9064         using elfos.h.
9065         (TARGET_ASM_GLOBALIZE_LABEL): Undefine when using elfos.h.
9066         (DWARF2_ASM_LINE_DEBUG_INFO): Delete.
9067         (ASM_FILE_START): Add standard .SPACE and .SUBSPA defines when not
9068         using elfos.h.
9069         (TEXT_SECTION_ASM_OP, READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
9070         BSS_SECTION_ASM_OP): New HP style defines when not using elfos.h.
9071         (TARGET_ASM_NAMED_SECTION, MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL):
9072         Don't define when not using elfos.h.
9073         (ASM_DECLARE_RESULT): Don't define.
9074         * doc/install.texi (hppa*-hp-hpux*): Remove statement that HP assembler
9075         doesn't work on hppa64-hp-hpux11.
9076         (hppa*-hp-hpux11): Update.
9077
9078 2002-11-09  Jason Thorpe  <thorpej@wasabisystems.com>
9079
9080         * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Don't pass -KPIC
9081         to the assembler if -mno-abicalls was specified.
9082
9083 2002-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9084
9085         * pa-linux.h (PREFERRED_DEBUGGING_TYPE, DWARF2_ASM_LINE_DEBUG_INFO,
9086         ASM_OUTPUT_DEF): Delete.
9087
9088 2002-11-09  Neil Booth  <neil@daikokuya.co.uk>
9089
9090         * c-opts.c (COMMAND_LINE_OPTIONS): Fix -Wimplicit.
9091
9092 2002-11-08  Roger Sayle  <roger@eyesopen.com>
9093
9094         * real.c (real_sqrt): Update comment with bibliographic reference.
9095
9096 Fri Nov  8 13:33:58 CET 2002  Jan Hubicka  <jh@suse.cz>
9097
9098         * i386.md (sse_loadss, sse2_loadsd): Fix expander.
9099
9100 Fri Nov  8 13:25:41 CET 2002  Jan Hubicka  <jh@suse.cz>
9101
9102         * i386.c (x86_machine_dependent_reorg): Fix handling of empty functions.
9103
9104 Fri Nov  8 13:01:42 CET 2002  Jan Hubicka  <jh@suse.cz>
9105
9106         * builtins.c (expand_builtin_mathfn): Handle floor/ceil/trunc/round/nearbyint
9107         (expand_builtin): Likewise.
9108         * builtins.def: Add
9109         __builtin_floor, __builtin_floorf, __builtin_floorl
9110         __builtin_ceil, __builtin_ceilf, __builtin_ceill
9111         __builtin_round, __builtin_roundf, __builtin_roundl
9112         __builtin_trunc, __builtin_truncf, __builtin_truncl
9113         __builtin_nearbyint, __builtin_nearbyintf, __builtin_nearbyintl.
9114         * genopinit.c (optabs): Initialize the new optabs.
9115         * optab.c (init_optabs): Likewise.
9116         * optabs.h (optab_index): Add OTI_floor, OTI_ceil, OTI_trunc,
9117         OTI_round, OTI_nearbyint.
9118         (floor_optab, ceil_optab, trunc_optab, round_optab, nearbyint_optab): New.
9119         * doc/md.texi: Document new named patterns.
9120         * doc/extend.texi (builtin functions)  Document
9121         floor, floorf, floorl, ceil, ceilf,
9122         ceill, round, roundf, roundl, trunc,
9123         truncf, truncl, nearbyint, nearbyintf, nearbyintl.
9124
9125 Fri Nov  8 11:36:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9126
9127         * i386.md (sse_movdfcc, sse_movsfcc): Fix typo in previous patch.
9128
9129 2002-11-08  Dale Johannesen  <dalej@apple.com>
9130
9131         * dbxout.c (dbxout_type):  Fix stabs info for vector types.
9132
9133 2002-11-08  Neil Booth  <neil@daikokuya.co.uk>
9134
9135         PR preprocessor/8497
9136         PR preprocessor/8501
9137         * cpptrad.c (scan_out_logical_line): A '#' from a macro doesn't
9138         start a directive.  In assembler, #NUM is not a line directive.
9139
9140 2002-11-08  Neil Booth  <neil@daikokuya.co.uk>
9141
9142         * cppmain.c (cpp_preprocess_file): Loop to pop any -included
9143         buffers.
9144
9145 2002-11-08  Kazu Hirata  <kazu@cs.umass.edu>
9146
9147         * config/h8300/h8300.md (two anonymous test insns): New.
9148
9149 Fri Nov  8 11:20:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9150
9151         * jump.c (mark_jump_label): Handle subregs of label_refs.
9152
9153 Thu Nov  7 21:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
9154
9155         * i386.md (sse_movdfcc, sse_movsfcc): Avoid overactive matching.
9156         * i386.c (ix86_expand_fp_movcc): Match the reversed cases.
9157
9158 2002-11-07  David Mosberger  <davidm@hpl.hp.com>
9159
9160         * config/ia64/crtend.asm: Include "auto-host.h".
9161         [HAVE_INITFINI_ARRAY]: Invoke __do_global_ctors_aux via .init_array.
9162         * config/ia64/crtbegin.asm: Similarly.
9163         * config/ia64/t-ia64 (crtbegin.o): Include from current directory.
9164         (crtend.o, crtbeginS.o, crtendS.o): Likewise.
9165
9166         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): New.
9167         * configure.in: Use it if --enable-initfini-array not specified.
9168         * doc/install.texi (Configuration): Document --enable-initfini-array.
9169         * configure, config.in: Rebuild.
9170
9171 2002-11-07  Jason Thorpe  <thorpej@wasabisystems.com>
9172
9173         * config/arm/arm-protos.h (arm_get_frame_size)
9174         (thumb_get_frame_size): New prototypes.
9175         * config/arm/arm.c (arm_get_frame_size)
9176         (thumb_get_frame_size): New functions.
9177         (use_return_insn, arm_output_epilogue, arm_output_function_epilogue)
9178         (arm_compute_initial_elimination_offset, arm_expand_prologue): Use
9179         arm_get_frame_size.
9180         (thumb_expand_prologue, thumb_expand_epilogue): Use
9181         thumb_get_frame_size.
9182         * config/arm/arm.h (PREFERRED_STACK_BOUNDARY): Define.
9183         (machine_function): Add frame_size member.
9184         (THUMB_INITIAL_ELIMINATION_OFFSET): Use thumb_get_frame_size.
9185
9186 2002-11-07  Richard Earnshaw  <rearnsha@arm.com>
9187
9188         * arm.c (bit_count): Make argument unsigned long.  Return unsigned.
9189         Adjust code to use portable unsigned bit manipulation.
9190         (insn_flags, tune_flags): Change type to unsigned.
9191         (struct processors): Make flags unsigned long.
9192         (arm_override_options): Change type of count and current_bit_count
9193         to unsigned.
9194
9195 2002-11-07  Richard Earnshaw  <rearnsha@arm.com>
9196
9197         * arm/elf.h (TYPE_OPERAND_FMT): Prefix type with %.
9198
9199 Thu Nov  7 15:50:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
9200
9201         * sh.h (DWARF_FRAME_RETURN_COLUMN): Use DWARF_FRAME_REGNUM.
9202
9203 Thu Nov  7 11:18:01 CET 2002  Jan Hubicka  <jh@suse.cz>
9204
9205         * reg-stack.c (compensate_edge): Fix sanity check.
9206
9207 2002-11-05  Geoffrey Keating  <geoffk@apple.com>
9208
9209         * config.gcc: Don't create crtbegin, crtend on Darwin; do create
9210         crt2.o.  Rearrange t-darwin makefiles.
9211         * crtstuff.c [OBJECT_FORMAT_MACHO]: Delete.
9212         * unwind-dw2-fde-darwin.c: New.
9213         * unwind-dw2-fde-glibc.c: Correct comment.
9214         * unwind-dw2-fde.c (__register_frame_info_bases)
9215         [DWARF2_OBJECT_END_PTR_EXTENSION]: Clear fde_end.
9216         (classify_object_over_fdes): Use last_fde.
9217         (add_fdes): Likewise.
9218         (linear_search_fdes): Likewise.
9219         * unwind-dw2-fde.h (struct object)
9220         [DWARF2_OBJECT_END_PTR_EXTENSION]: Add fde_end field.
9221         (last_fde): New.
9222         * config/darwin.h (STARTFILE_SPEC): Include crt2.o not crtbegin.o.
9223         (ENDFILE_SPEC): No crtend.o.
9224         * config/t-darwin: New.
9225         * config/i386/t-darwin: Delete.
9226         * config/darwin-crt2.c: New.
9227         * config/rs6000/t-darwin: Delete contents duplicated in t-rs6000
9228         or config/t-darwin.
9229
9230 2002-11-06  Douglas B Rupp  <rupp@gnat.com>
9231
9232         * config/i386/i386-interix.h (TARGET_SUBTARGET_DEFAULT): Or
9233         MASK_MS_BITFIELD_LAYOUT
9234         (SUBTARGET_OVERRIDE_OPTIONS): Warn about and turn off
9235         MS bitfields for Objective-C.
9236         (PCC_BIT_FIELD_TYPE_TEST, GROUP_BITFIELDS_BY_ALIGN): Remove
9237         defines.
9238
9239         * config/i386/i386.c (ix86_ms_bitfield_layout): New function.
9240         (TARGET_MS_BITFIELD_LAYOUT_P): Define to above function.
9241         (TARGET_USE_MS_BITFIELD_LAYOUT): Define.
9242
9243         * config/i386/i386.h (MASK_MS_BITFIELD_LAYOUT: New mask.
9244         TARGET_USE_MS_BITFIELD_LAYOUT): New macro.
9245         (TARGET_SWITCHES): Add above mask.
9246
9247         * testsuite/gcc.dg/bf-ms-layout.c: New test case.
9248         * testsuite/gcc.dg/bf-no-ms-layout.c: New test case.
9249         * testsuite/gcc.dg/i386-bitfield1.c (dg-options): Add appropriate
9250         flags for interix.
9251
9252 Wed Nov  6 18:54:47 2002  Alexandre Oliva  <aoliva@redhat.com>
9253
9254         * config/mips/mips.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output
9255         .gpword/.gpdword for ABI_N32 and ABI_64 too, if using the GNU
9256         assembler.
9257         * config/mips/mips.md (tablejump_internal3): Output .cpadd
9258         before jump on ABI_N32 too.
9259         (tablejump_internal4): Ditto on ABI_64.  Increase maximum
9260         length to match.
9261
9262 Wed Nov  6 17:16:48 CET 2002  Jan Hubicka  <jh@.suse.cz>
9263
9264         * i386.md (negsf splitter): Accept memory operand in second register.
9265         (abssf/absdf splitters): Simplify
9266         (sse_loadss, sse_loadsd): Turn into expander.
9267
9268 2002-11-06  David Edelsohn  <edelsohn@gnu.org>
9269
9270         PR target/8480
9271         * config/rs6000/rs6000.md (movdi_internal64): Discourage
9272         FPR to FPR moves.
9273
9274 2002-11-06  Janis Johnson  <janis187@us.ibm.com>
9275
9276         * doc/contrib.texi: Merge in the list from the Java web pages.
9277
9278 2002-11-06  David O'Brien  <obrien@FreeBSD.org>
9279
9280         * config/sparc/freebsd: Fix typo.
9281
9282 2002-11-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9283
9284         * pa64-hpux.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Define.
9285
9286 2002-11-06  Alexandre Oliva  <aoliva@redhat.com>
9287
9288         * config/mips/mips.md (call_value_multiple_internal2): Use dla for
9289         non-SImode addresses.
9290
9291 Tue Nov  5 14:34:36 CET 2002  Jan Hubicka  <jh@suse.cz>
9292
9293         * i386.md (float_truncate SSE splitter): Ensure that operand is not
9294         stack register.
9295         (float SSE splitters): Reorder conditional.
9296
9297 2002-11-05  Bob Wilson  <bob.wilson@acm.org>
9298
9299         * config/xtensa/elf.h (LIB_SPEC): Add "-lhal".
9300
9301 2002-11-05  John David Anglin  <dave2hiauly1.hia.nrc.ca>
9302
9303         * pa64-hpux.h (LIB_SPEC): Fix p and pg options.
9304         (STARTFILE_SPEC): Remove p and pg options.
9305
9306 2002-11-05  Andrew Haley  <aph@redhat.com>
9307
9308         * fold-const.c (fold): Don't transform (a0 op compound(a1,a2))
9309         to (compound(a1,a0 op a2)) if a0 or a1 have side effects.
9310
9311 2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
9312
9313         * config/mips/mips.h (CANNOT_CHANGE_MODE_CLASS): Move comment to...
9314         * config/mips/mips.c (mips_cannot_change_mode_class): ...here.
9315
9316 2002-11-04  Zack Weinberg  <zack@codesourcery.com>
9317
9318         * gthr-vxworks.h: Rewritten from scratch.
9319         * config/vxlib.c: New file.
9320         * config/t-vxworks: Add config/vxlib.c to LIB2FUNCS_EXTRA.
9321         * config/rs6000/t-vxworks: Add config/vxlib.c to
9322         LIB2FUNCS_EXTRA here too, because of clash with
9323         config/rs6000/t-ppccomm.
9324
9325 2002-11-04  Dale Johannesen  <dalej@apple.com>
9326
9327         * doloop.c (doloop_modify_runtime):  Fix loop count computation
9328         for unrolled loops.
9329         * loop.c (loop_invariant_p):  Support calling from unroller.
9330
9331 2002-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
9332
9333         * config/s390/s390.c (s390_decompose_address): Use arg_pointer_rtx
9334         for comparison.
9335
9336 2002-11-04  Aldy Hernandez  <aldyh@redhat.com>
9337
9338         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): New.
9339
9340         * config/rs6000/rs6000.h (CLASS_CANNOT_CHANGE_MODE_P): Remove.
9341         (CLASS_CANNOT_CHANGE_MODE): Remove.
9342         (CANNOT_CHANGE_MODE_CLASS): New.
9343
9344         * config/alpha/alpha.h: Same.
9345
9346         * config/ia64/ia64.h: Same.
9347
9348         * config/mips/mips.h: Same.
9349
9350         * config/s390/s390.h: Same.
9351
9352         * config/sh/sh.h: Same.
9353
9354         * config/pa/pa64-regs.h: Same.
9355
9356         * config/sh/sh-protos.h (sh_cannot_change_mode_class): Add prototype.
9357
9358         * config/sh/sh.c (sh_cannot_change_mode_class): New.
9359
9360         * config/mips/mips-protos.h (mips_cannot_change_mode_class): Add
9361         prototype.
9362
9363         * config/mips/mips.c (mips_cannot_change_mode_class): New.
9364
9365         * doc/tm.texi (Register Classes): Remove
9366         CLASS_CANNOT_CHANGE_MODE and CLASS_CANNOT_CHANGE_MODE_P.
9367         Document CANNOT_CHANGE_MODE_CLASS.
9368
9369         * reload.c (push_reload): Use CANNOT_CHANGE_MODE_CLASS.
9370         (push_reload): Same.
9371
9372         * simplify-rtx.c (simplify_subreg): Same.
9373
9374         * reload1.c (choose_reload_regs): Same.
9375
9376         * recog.c (register_operand): Same.
9377
9378         * regrename.c (mode_change_ok): Change to use new
9379         CANNOT_CHANGE_MODE_CLASS infrastructure.
9380
9381         * regclass.c (cannot_change_mode_set_regs): New.
9382         Declare subregs_of_mode.
9383         (regclass): Use subregs_of_mode.
9384         Remove references to reg_changes_mode.
9385         (init_reg_sets_1): Remove class_can_change_mode and
9386         reg_changes_mode code.
9387         (invalid_mode_change_p): New.
9388         (dump_regclass): Use invalid_mode_change_p instead of
9389         class_can_change_mode.
9390         (regclass): Same.
9391         (record_operand_costs): Do not set reg_changes_mode.
9392
9393         * local-alloc.c (struct qty): Remove changes_mode field.
9394         (alloc_qty): Remove changes_mode initialization.
9395         (update_qty_class): Remove set of changes_mode.
9396         (find_free_reg): Use subregs_of_mode.
9397
9398         * global.c (find_reg): Use subregs_of_mode info.
9399
9400         * rtl.h (cannot_change_mode_set_regs): New prototype.
9401         (invalid_mode_change_p): Same.
9402         (REG_CANNOT_CHANGE_MODE_P): New macro.
9403
9404         * flow.c (mark_used_regs): Calculate subregs_of_mode.  Remove
9405         REG_CHANGES_MODE.
9406         (life_analysis): Clear subregs_of_mode.
9407
9408         * combine.c (subst): Pass class to CLASS_CANNOT_CHANGE_MODE_P.
9409         Remove use of CLASS_CANNOT_CHANGE_MODE.
9410         (simplify_set): Same.
9411         (gen_lowpart_for_combine): Calculate subregs_of_mode.  Remove
9412         REG_CHANGES_MODE.
9413
9414         * regs.h: Add extern for subregs_of_mode;
9415         Include hard-reg-set and basic-block.
9416         (REG_CHANGES_MODE): Delete.
9417
9418 2002-11-03  Roger Sayle  <roger@eyesopen.com>
9419
9420         * real.c (real_sqrt): New function to calculate square roots.
9421         * real.h (real_sqrt): Add function prototype.
9422         * builtins.c (fold_builtin): Fold sqrt of constant argument.
9423         * simplify-rtx.c (simplify_unary_operation): Simplify sqrt
9424         of constant argument.
9425
9426 2002-11-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9427
9428         * jump.c (never_reached_warning): Don't set contains_insn until the
9429         first line note is seen.
9430
9431 2002-11-03  David Edelsohn  <edelsohn@gnu.org>
9432
9433         * config/rs6000/rs6000.md (movti_string): Use string instructions.
9434
9435 2002-11-03  Roger Sayle  <roger@eyesopen.com>
9436
9437         PR c/7128
9438         * c-typeck.c (c_expand_asm_operands): Defend against
9439         error_mark_nodes in the output argument to avoid ICE.
9440
9441 2002-11-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
9442
9443         PR middle-end/8408
9444         * genrecog.c (preds): Handle ADDRESSOF.
9445         (validate_pattern): Mark it as an lvalue.
9446
9447 2002-11-02  David Edelsohn  <edelsohn@gnu.org>
9448
9449         * config/rs6000/rs6000.c (rs6000_override_options): Use string
9450         instructions when optimizing for size.
9451
9452 2002-11-02  Kazu Hirata  <kazu@cs.umass.edu>
9453
9454         * config/h8300/h8300.h: Fix comment typos.
9455         * config/h8300/h8300.md: Likewise.
9456         * config/h8300/lib1funcs.asm: Likewise.
9457
9458 2002-11-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9459
9460         Revert this change:
9461
9462         *doc/install.texi (Installing GCC: Configuration): Clarify
9463         the only supported ways to configure gcc.
9464
9465 2002-11-01  Kazu Hirata  <kazu@cs.umass.edu>
9466
9467         * config/h8300/h8300.md (anonymous and:QI pattern): Use 'n'
9468         instead of 'O' for the constraint for the second operand.
9469
9470 2002-11-01  Mark Mitchell  <mark@codesourcery.com>
9471
9472         PR c++/8391
9473         * toplev.c (rest_of_compilation): Do not refuse to output code for
9474         an inline function in a local class.
9475
9476 2002-11-01  David O'Brien  <obrien@FreeBSD.org>
9477
9478         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Define __arch64__.
9479         (TRANSFER_FROM_TRAMPOLINE): Reformat.
9480         Add comment.
9481
9482 2002-11-01  Kazu Hirata  <kazu@cs.umass.edu>
9483
9484         * config/h8300/h8300.h (CAN_ELIMINATE): Simplify.
9485
9486 2002-11-01  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
9487
9488         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): New.
9489
9490 2002-11-01  Steve Ellcey  <sje@cup.hp.com>
9491
9492         * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): Remove.
9493         (MASK_INLINE_DIV_THR): Remove.
9494         (TARGET_INLINE_DIV_LAT): Remove.
9495         (TARGET_INLINE_DIV_THR): Remove.
9496         (TARGET_INLINE_DIV): Remove.
9497         (MASK_INLINE_FLOAT_DIV_LAT): New macro.
9498         (MASK_INLINE_FLOAT_DIV_THR): New macro.
9499         (MASK_INLINE_INT_DIV_LAT): New macro.
9500         (MASK_INLINE_INT_DIV_THR): New macro.
9501         (TARGET_INLINE_FLOAT_DIV_LAT): New macro.
9502         (TARGET_INLINE_FLOAT_DIV_THR): New macro.
9503         (TARGET_INLINE_INT_DIV_LAT): New macro.
9504         (TARGET_INLINE_INT_DIV_THR): New macro.
9505         (TARGET_INLINE_FLOAT_DIV): New macro.
9506         (TARGET_INLINE_INT_DIV): New macro.
9507         * config/ia64/ia64.md (divsi3): Change to use new macros.
9508         (modsi3): Ditto.
9509         (udivsi3): Ditto.
9510         (umodsi3): Ditto.
9511         (divsi3_internal): Ditto.
9512         (divdi3): Ditto.
9513         (moddi3): Ditto.
9514         (udivdi3): Ditto.
9515         (umoddi3): Ditto.
9516         (divdi3_internal_lat): Ditto.
9517         (divdi3_internal_thr): Ditto.
9518         (divsf3): Ditto.
9519         (divsf3_internal_lat): Ditto.
9520         (divsf3_internal_thr): Ditto.
9521         (divdf3): Ditto.
9522         (divdf3_internal_lat): Ditto.
9523         (divdf3_internal_thr): Ditto.
9524         (divtf3): Ditto.
9525         (divtf3_internal_lat): Ditto.
9526         (divtf3_internal_thr): Ditto.
9527         * config/ia64/ia64.c (ia64_override_options): Change
9528         to check new macros for conflicts in settings.
9529         * doc/invoke.texi (-minline-divide-min-latency): Remove.
9530         (-minline-divide-max-throughput): Remove.
9531         (-minline-float-divide-min-latency): New.
9532         (-minline-float-divide-max-throughput): New.
9533         (-minline-int-divide-min-latency): New.
9534         (-minline-int-divide-max-throughput): New.
9535
9536 2002-11-01  Richard Earnshaw  (rearnsha@arm.com)
9537
9538         PR target/7856
9539         * arm.c (use_return_insn): Don't use a return insn if there are
9540         saved integer regs, but LR is not one of them.
9541
9542 Fri Nov  1 10:33:15 CET 2002  Jan Hubicka  <jh@suse.cz>
9543
9544         * expr.c (emit_move_insn):  Use SCALAR_FLOAT_MODE_P
9545         * machmode.h (SCALAR_FLOAT_MODE_P): New macro.
9546
9547 Thu Oct 31 18:20:50 CET 2002  Jan Hubicka  <jh@suse.cz>
9548
9549         * i386.md (sse_loadss, sse_loadsd):  Canonicalize; add expander
9550         (movps, movpd splitters): Use canonical form.
9551         (movv2di): Fix merge problem.
9552
9553 Thu Oct 31 16:22:31 CET 2002  Jan Hubicka  <jh@suse.cz>
9554
9555         * i386.md (negdf2_ifs_rex64): Don't allow GPR operand.
9556
9557 2002-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
9558
9559         PR optimization/6162
9560         * doc/md.texi: Document restriction on commutative operand
9561         specification.
9562
9563 2002-10-31  Eric Christopher  <echristo@redhat.com>
9564
9565         * explow.c (convert_memory_address): Use shallow_copy_rtx.
9566
9567 2002-10-31  Steve Ellcey  <sje@cup.hp.com>
9568
9569         * expmed.c (store_bit_field): Check FUNCTION_ARG_REG_LITTLE_ENDIAN.
9570
9571 2002-10-31  Steve Ellcey  <sje@cup.hp.com>
9572
9573         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Set for non-floats.
9574
9575 Thu Oct 31  Dale Johannesen  <dalej@apple.com>
9576
9577         * config/rs6000/darwin.h:  Correct formatting in previous.
9578
9579 Thu Oct 31  Dale Johannesen  <dalej@apple.com>
9580
9581         * config/rs6000/darwin.h:  Enable -falign-xxx options.
9582
9583 Thu Oct 31 18:08:00 CET 2002  Jan Hubicka  <jh@suse.cz>
9584
9585         * i386.c (override_options): Set defaults for flag_omit_frame_pointer,
9586         flag_asynchronous_unwind_tables, flag_pcc_struct_return.
9587         * i386.c (optimization_options): Set flag_omit_frame_pointer,
9588         flag_asynchronous_unwind_tables, flag_pcc_struct_return to 2.
9589         Do not clear -momit-leaf-frame-pointer when profiling.
9590         (ix86_frame_pointer_required): Frame pointer is always required when
9591         profiling.
9592
9593 Thu Oct 31 16:09:44 CET 2002  Jan Hubicka  <jh@suse.cz>
9594
9595         * i386.md (negdf2_ifs_rex64): Don't allow GPR operand.
9596
9597 Thu Oct 31 12:45:55 2002  J"orn Rennecke <joern.rennecke@superh.com>
9598
9599         * sh.h (binary_logical_operator): Declare.
9600         * sh.c (binary_logical_operator): New function.
9601         * sh.md (xordi3+1): New combiner splitter pattern.
9602
9603 2002-10-31  David O'Brien  <obrien@FreeBSD.org>
9604
9605         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Define
9606         __enable_execute_stack function.
9607
9608 2002-10-30  Zack Weinberg  <zack@codesourcery.com>
9609
9610         * gthr.h, gthr-dce.h, gthr-posix.h, gthr-rtems.h,
9611         gthr-solaris.h, gthr-win32.h: Remove __gthread_key_dtor.
9612         * unwind-sjlj.c (fc_key_dtor): Delete.
9613         (fc_key_init): Adjust __gthread_key_create call to match.
9614
9615 2002-10-30  Aldy Hernandez  <aldyh@redhat.com>
9616
9617         * c-common.c: Add GTY to vector_type_node_list.
9618
9619 2002-10-30  John David Anglin  <dave@hiauly.hia.nrc.ca>
9620
9621         * pa-linux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
9622         * pa-protos.h (attr_length_millicode_call, attr_length_call,
9623         pa_init_machine_status): Declare new global functions.
9624         * pa.c (void copy_fp_args, length_fp_args, get_plabel): Declare and
9625         implement new functions.
9626         (attr_length_millicode_call, attr_length_call): Implement.
9627         (total_code_bytes): Change type to long.
9628         (pa_output_function_prologue): Compute total_code_bytes on TARGET_64BIT.
9629         Reset counter if flag_function_sections.
9630         (output_deferred_plabels): Set output alignment to 3 for TARGET_64BIT.
9631         (output_cbranch): Move call to gen_label_rtx.
9632         (output_millicode_call): Rewrite adding long TARGET_64BIT call, expose
9633         delay slot in all variants, shorten pc-relative calls.
9634         (output_call): Rewrite adding long TARGET_64BIT call, improved delay
9635         slot usage and exposure, various new call variants, and shortened
9636         sequences for some variants on TARGET_PA_20.
9637         Miscellaneous format changes.
9638         * pa.h (total_code_bytes): Change type to long.
9639         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_LONG_ABS_CALL,
9640         TARGET_LONG_PIC_SDIFF_CALL, TARGET_LONG_PIC_PCREL_CALL): Define.
9641         (TARGET_SWITCHES): Add "-mlong-calls" and "-mno-long-calls" options.
9642         (EXTRA_CONSTRAINT, GO_IF_LEGITIMATE_ADDRESS,
9643         LEGITIMIZE_RELOAD_ADDRESS): Don't use long floating point loads and
9644         stores on TARGET_ELF32.
9645         *pa.md (define_delay): Allow insns in delay on TARGET_PORTABLE_RUNTIME.
9646         (unnamed patterns for mulsi3, divsi3, udivsi3, modsi3, umodsi3 and
9647         canonicalize_funcptr_for_compare expanders): Calculate attribute length
9648         attr_length_millicode_call().
9649         (call_internal_symref, call_value_internal_symref): Clobber register 1.
9650         Calculate attribute length using attr_length_call().
9651         (call_internal_reg_64bit, call_value_internal_reg_64bit): Move gp load
9652         to delay slot.
9653         (sibcall, sibcall_value): Rewrite.
9654         (sibcall_internal_symref, sibcall_value_internal_symref): Clobber
9655         register 1.  Use attr_length_call().
9656         (sibcall_internal_symref_64bit, sibcall_value_internal_symref_64bit):
9657         New patterns.
9658         (unamed pattern for canonicalize_funcptr_for_compare): Rewrite.
9659         * som.h (MEMBER_TYPE_FORCES_BLK): Define.
9660         * t-pa64 (TARGET_LIBGCC2_CFLAGS): Add "-mlong-calls".
9661         * doc/invoke.texi (mlong-calls): Document.
9662
9663 2002-10-30  Roger Sayle  <roger@eyesopen.com>
9664
9665         * fold-const.c (fold_binary_op_with_conditional_arg):  Improve
9666         handling of cases where one or both branches of the conditional
9667         have void type, i.e. throw an exception or don't return.
9668         (fold): Only apply (and undo) type conversion to the non-void
9669         branches of a COND_EXPR.
9670
9671 2002-10-30  Mark Mitchell  <mark@codesourcery.com>
9672
9673         PR c++/8333
9674         * varasm.c (asm_output_aligned_bss): Do not call
9675         ASM_GLOBALIZE_LABEL.
9676
9677 2002-10-30  David Edelsohn  <edelsohn@gnu.org>
9678             Torbjorn Granlund  <tege@swox.com>
9679
9680         * config/rs6000/rs6000.md (load_toc_v4_PIC_1): Use preferred form
9681         for addressibility.
9682         (load_toc_v4_PIC_1b): Same.
9683
9684 2002-10-30  Kazu Hirata  <kazu@cs.umass.edu>
9685
9686         * config/h8300/h8300.c (h8300_eightbit_constant_address_p):
9687         Truncate the addresses for H8/300 using HImode.
9688
9689 Tue Oct 29 23:28:10 CET 2002  Jan Hubicka  <jh@suse.cz>
9690
9691         * i386.md (negdf splitter): Fix construction of the constant.
9692
9693 Tue Oct 29 20:47:06 CET 2002  Jan Hubicka  <jh@suse.cz>
9694
9695         * i386.md (negsf, negdf): Reorganize to use vector modes
9696         for SSE variants.
9697         (abssf, absdf): Use force_reg.
9698         (movv4sf, movv2df): New splitters.
9699         * i386.h (PREDICATE_CODES): add zero_extended_scalar_load_operand
9700         * i386.c (zero_extended_scalar_load_operand
9701
9702         * i386-protos.h (ix86_expand_call): Update prototype.
9703         * i386.c (ix86_function_ok_for_sibcall): Handle 64bit
9704         (ix86_expand_call): Use r11 for indirect sibcalls.
9705         * i386.md (call, call_value, untyped_call, call_value_pop):
9706         update x86_expand_call call.
9707         (sibcall, sibcall_value): new patterns
9708         (call_rex64, call_value_rex64): Do not accept sibcalls.
9709         (sibcall_rex64, sibcall_value_rex64,
9710         sibcall_rex64_v, sibcall_value_rex64_v): New.
9711
9712 Tue Oct 29 15:37:39 CET 2002  Jan Hubicka  <jh@suse.cz>
9713
9714         * toplev.c (rest_of_compilation): Reorganize way reg_scan is called
9715         before final pass.
9716
9717 2002-10-29  Hans-Peter Nilsson  <hp@bitrange.com>
9718
9719         * toplev.c (rest_of_type_compilation): Return early in case of
9720         errors.
9721         (check_global_declarations): Don't call debug_hooks->global_decl
9722         in case of errors.
9723
9724 2002-10-28  Andreas Bauer  <baueran@in.tum.de>
9725
9726         * doc/c-tree.texi (Tree overview): Fix typos.
9727
9728 2002-10-29  Phil Edwards  <pme@gcc.gnu.org>
9729
9730         * Makefile.in (gnucompare*):  Only record bad comparisons
9731         if there really was a bad comparison.
9732
9733 Tue Oct 29 19:32:16 CET 2002  Jan Hubicka  <jh@suse.cz>
9734
9735         * i386.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'H'
9736         * i386.md (movsf*, movdf*): Use 'C' instead of 'H'
9737         * md.texi (machine dependent constraints): Document 'C'
9738
9739         * simplify-rtx.c (simplify_subreg): Fix const_int->vector subregging.
9740
9741         * i386.c (ix86_expand_vector_move): Fix.
9742
9743         * i386.c (ix86_expand_builtin): Use sse2_maskmovdqu_rex64.
9744         * i386.md (sse2_maskmovdqu_rex64): New pattern
9745
9746         PR target/8322
9747         * xmmintrin.h (_mm_stream_pi, _mm_stream_pd): Fix cast.
9748         (ix86_init_mmx_sse_builtins): Fix type.
9749
9750 2002-10-29  Jason Thorpe  <thorpej@wasabisystems.com>
9751
9752         * gthr-posix.h: Include <unistd.h> for feature tests.
9753         (sched_get_priority_max, sched_get_priority_min)
9754         (pthread_getschedparam, pthread_setschedparam): Only use
9755         if _POSIX_THREAD_PRIORITY_SCHEDULING is defined.
9756         (__gthread_objc_thread_set_priority): Don't treat all nonzero
9757         returns from sched_get_priority_max and sched_get_priority_min
9758         as an error.
9759
9760 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
9761
9762         * config/h8300/h8300.h (TARGET_DEFAULT): Make it
9763         MASK_QUICKCALL.
9764
9765 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
9766
9767         * config/h8300/h8300.c (h8300_eightbit_constant_address_p): New.
9768         (h8300_tiny_constant_address_p): Likewise.
9769         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Use
9770         h8300_eightbit_constant_address_p.
9771         (TINY_CONSTANT_ADDRESS_P): Use h8300_tiny_constant_address_p.
9772         * config/h8300/h8300-protos.h: Add the prototypes for the two
9773         new functions.
9774
9775 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
9776
9777         * reload1.c (update_eliminables): Unconditionally check if
9778         frame_pointer_needed has changed.
9779
9780 Tue Oct 29 15:37:39 CET 2002  Jan Hubicka  <jh@suse.cz>
9781
9782         * toplev.c (rest_of_compilation): Reorganize way reg_scan is called
9783         before final pass.
9784
9785 2002-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
9786
9787         PR optimization/8334
9788         * expr.c (expand_expr) [PLUS]: Don't use simplify_binary_operation;
9789         check for zero operands explicitly.
9790
9791 2002-10-29  Richard Sandiford  <rsandifo@redhat.com>
9792
9793         * config/mips/mips.md (extv, extzv, insv): Set size of referenced
9794         memory after adjusting to BLKmode.
9795
9796 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
9797
9798         * config/h8300/h8300.h (MASK_*): New.
9799         (TARGET_*): Use MASK_*.
9800
9801 2002-10-28  Zack Weinberg  <zack@codesourcery.com>
9802
9803         * config.gcc (*-*-vxworks, powerpc-wrs-vxworks*): New stanzas.
9804         * config/t-vxworks, config/vxworks.h, config/rs6000/t-vxworks,
9805         config/rs6000/vxworks.h: New files.
9806         * config/rs6000/sysv4.h: Rip out -mvxworks and all related code.
9807
9808         * config.gcc (alpha*-*-vxworks*, arm-*-vxworks*,
9809         i?86-wrs-vxworks*, i960-wrs-vxworks* [all],
9810         m68k-wrs-vxworks*, mips-wrs-vxworks, powerpc-wrs-vxworks*,
9811         powerpcle-wrs-vxworks*, sparc*-wrs-vxworks* [all],
9812         sparc-*-vxsim*): Delete stanzas.
9813         * gthr-vxworks.h: Rip out all substantive code and just
9814         include gthr-single.h.
9815
9816         * config/alpha/vxworks.h, config/arm/vxarm.h,
9817         config/i386/vxi386.h, config/i960/t-vxworks960,
9818         config/i960/vx960-coff.h, config/i960/vx960.h,
9819         config/m68k/t-vxworks68, config/m68k/vxm68k.h,
9820         config/mips/vxworks.h, config/rs6000/vxppc.h,
9821         config/sparc/t-vxsparc, config/sparc/t-vxsparc64,
9822         config/sparc/vxsim.h, config/sparc/vxsparc.h,
9823         config/sparc/vxsparc64.h: Delete files.
9824
9825 2002-10-28  Jason Thorpe  <thorpej@wasabisystems.com>
9826
9827         * config.gcc (*-*-netbsd*): Add NETBSD_ENABLE_PTHREADS to
9828         tm_defines if pthreads are enabled.
9829         * config/netbsd.h (LIB_SPEC): Only support the -pthread option
9830         if NETBSD_ENABLE_PTHREADS is defined.
9831
9832 2002-10-28  Kazu Hirata  <kazu@cs.umass.edu>
9833
9834         * ChangeLog.1: Fix typos.
9835         * cse.c: Fix a comment typo.
9836         * reload1.c: Likewise.
9837
9838 2002-10-27  Hans-Peter Nilsson  <hp@bitrange.com>
9839
9840         * fixinc/inclhack.def (libc1_G_va_list): Correct test_text.
9841         * fixinc/tests/base/_G_config.h: New file.
9842
9843 2002-10-27  Kazu Hirata  <kazu@cs.umass.edu>
9844
9845         * combine.c: Fix comment formatting.
9846         * loop.c: Likewise.
9847         * real.c: Likewise.
9848         * regclass.c: Likewise.
9849         * regmove.c: Likewise.
9850         * regrename.c: Likewise.
9851         * reg-stack.c: Likewise.
9852         * reload1.c: Likewise.
9853         * reload.c: Likewise.
9854         * reload.h: Likewise.
9855         * unroll.c: Likewise.
9856
9857 2002-10-27  Kazu Hirata  <kazu@cs.umass.edu>
9858
9859         * reload1.c (reload): Fix a comment typo.
9860
9861 Sun Oct 27 10:15:24 CET 2002  Jan Hubicka  <jh@suse.cz>
9862
9863         * linux64.h (DEFAULT_PCC_STRUCT_RETURN):  Define.
9864
9865 2002-10-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9866
9867         * Makefile.in (dwarf2out.o): Add dependendcy on hashtab.h.
9868         * dwarf2out.c: Include hashtab.h.
9869         (is_main_source): New static variable.
9870         (attr_checksum, die_checksum): Modified to handle die references.
9871         (same_loc_p, same_dw_val_p, same_attr_p, same_die_p, same_die_p_wrap,
9872         unmark_all_dies, htab_cu_hash, htab_cu_eq, htab_cu_del, check_duplicate_cu,
9873         record_comdat_symbol_number): New static functions.
9874         (output_comp_unit, compute_section_prefix, is_type_die, break_out_includes,
9875         mark_dies, unmark_dies, dwarf2out_start_source_file): Modified.
9876         * toplev.c (rest_of_decl_compilation): Call of dwarf2out_decl for type
9877         declarations added.
9878
9879 2002-10-26  Kazu Hirata  <kazu@cs.umass.edu>
9880
9881         * config/h8300/h8300.c (initial_offset): Change to
9882         h8300_initial_elimination_offset.
9883         * config/h8300/h8300.h (INITIAL_ELIMINATION_OFFSET): Use
9884         h8300_initial_elimination_offset.
9885         * config/h8300/h8300-protos.h: Update the prototype.
9886
9887 2002-10-26  Hans-Peter Nilsson  <hp@bitrange.com>
9888
9889         * config/mmix/mmix.h (LIBCALL_VALUE): Use
9890         MMIX_RETURN_VALUE_REGNUM, not MMIX_OUTGOING_RETURN_VALUE_REGNUM.
9891         (FUNCTION_VALUE_REGNO_P): Similar, but move code to...
9892         * config/mmix/mmix.c (mmix_function_value_regno_p): New.
9893         * config/mmix/mmix-protos.h: Remove needless ifdefs on TREE_CODE
9894         and RTX_CODE.
9895         (mmix_function_value_regno_p): Declare.
9896
9897         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Replace unsigned_fix,
9898         invalid for floating point mode result, with fix.
9899
9900 Fri Oct 25 00:04:21 2002  Alexandre Oliva  <aoliva@redhat.com>
9901
9902         * Makefile.in (GCC_FOR_TARGET): Add -L$(objdir)/../ld.
9903         (STAGE2_FLAGS_TO_PASS): Pass GCC_FOR_TARGET.
9904         (stage1_build): Likewise.
9905
9906 2002-10-25  Mike Stump  <mrs@apple.com>
9907
9908         Fixes gcc.dg/warn-1.c.
9909         * c-typeck.c (warn_for_assignment): Don't print argument number,
9910         if zero.
9911
9912 Sat Oct 26 01:44:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
9913
9914         * toplev.c (dump_file_index): Add DFI_ce3.
9915         (dump_file_info): Likewise.
9916         (rest_of_compilation): Run first ifcvt pass before tracer.
9917
9918 2002-10-25  Steve Ellcey  <sje@cup.hp.com>
9919
9920         * config/ia64/hpux.h (BITS_BIG_ENDIAN): Remove.
9921
9922 2002-10-25  Richard Henderson  <rth@redhat.com>
9923
9924         * real.c (real_to_decimal): If the >1 tens reduction loop results
9925         in a negative exponent, fall into the <1 pten computation.
9926
9927 2002-10-25  Zack Weinberg  <zack@codesourcery.com>
9928
9929         PR middle-end/6994
9930         * c-objc-common.c (inline_forbidden_p): Can not inline
9931         functions containing structures or unions containing VLAs.
9932         * tree-inline.c (walk_tree): For all class 't' nodes, walk
9933         TYPE_SIZE and TYPE_SIZE_UNIT.
9934         (copy_tree_r): Copy types if they are variably modified.
9935
9936 2002-10-25  Ulrich Weigand  <uweigand@de.ibm.com>
9937
9938         * config/s390/s390.md: Remove old-style peepholes.
9939
9940 2002-10-25  Ulrich Weigand  <uweigand@de.ibm.com>
9941
9942         * config/s390/s390.c (s390_decompose_address): Do not range check the
9943         displacement if base or index is the argument pointer register.
9944
9945 2002-10-24  Hans-Peter Nilsson  <hp@bitrange.com>
9946
9947         PR other/3337
9948         PR bootstrap/6763
9949         PR bootstrap/8122
9950         * fixinc/inclhack.def (libc1_G_va_list): New fix.
9951         * fixinc/fixincl.x: Regenerate.
9952         * config/i386/linux.h: Move MD_FALLBACK_FRAME_STATE_FOR inside
9953         ifndef IN_LIBGCC2.  Wrap it together with signal.h and
9954         sys/ucontext.h inclusion in ifndef USE_GNULIBC_1.
9955         * configure.in (gcc_AC_CHECK_DECLS): Check vasprintf too.
9956         * config.in, configure: Regenerate.
9957
9958 2002-10-24  Igor Shevlyakov <igor@microunity.com>
9959
9960         * varasm.c (struct rtx_const): Array size 16 for V16QImode.
9961
9962 2002-10-24  Richard Henderson  <rth@redhat.com>
9963
9964         * config/i386/i386.c (x86_output_mi_thunk): Fix x86_64 pic jump.
9965
9966 2002-10-24  Kazu Hirata  <kazu@cs.umass.edu>
9967
9968         * config/h8300/h8300.c (initial_offset): Simplify by using
9969         round_frame_size.
9970
9971 2002-10-24  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9972
9973         * doc/install.texi (avr): Update required binutils version.
9974
9975 2002-10-24  Theodore A. Roth  <troth@openavr.org>
9976
9977         * doc/install.texi: Point avr users at more up-to-date information.
9978
9979 2002-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
9980
9981         * config/s390/s390.md (movdi, movsi, movhi, movqi): Add peepholes2
9982         to pull operands out of the literal pool where possible.
9983
9984 2002-10-24  Denis Chertykov  <denisc@overta.ru>
9985
9986         * config/avr/avr.c (init_cumulative_args): Test fntype for zero.
9987
9988 2002-10-24  Steve Ellcey  <sje@cup.hp.com>
9989
9990         * expr.c (convert_move): If unsignedp is less then zero there
9991         is no equivalent code.
9992
9993 2002-10-24  Zack Weinberg  <zack@codesourcery.com>
9994
9995         * tree.def: Delete mention of nonexistent ARRAY_TYPE fields.
9996
9997 2002-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
9998
9999         * config/s390/s390.h: Rework comments; re-sort target macro definitions
10000         according to the sequence they are defined in the manual.
10001         (POINTER_BOUNDARY): Remove.
10002
10003 2002-10-24  Kazu Hirata  <kazu@cs.umass.edu>
10004
10005         * config/h8300/h8300.c (round_frame_size): Replace 8 with
10006         BITS_PER_UNIT.
10007
10008 2002-10-24  Kazu Hirata  <kazu@cs.umass.edu>
10009
10010         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Make it
10011         64-bit safe.
10012         (TINY_CONSTANT_ADDRESS_P): Likewise.
10013
10014 2002-10-24  Richard Henderson  <rth@redhat.com>
10015
10016         * config/ia64/ia64.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): True.
10017         (ia64_output_mi_thunk): Rewrite to use rtl, and to handle the
10018         vcall offset.
10019
10020 2002-10-24  Richard Henderson  <rth@redhat.com>
10021
10022         PR opt/7944
10023         * reload.c (find_reloads_toplev): Mode of X is not important
10024         when simplifying subregs of constants.
10025
10026 2002-10-24  Richard Sandiford  <rsandifo@redhat.com>
10027
10028         * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Add
10029         MIPS_MARCH_CONTROLS_SOFT_FLOAT=1 to $tm_defines.
10030         * config/mips/mips.c (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Default to 0.
10031         (override_options): Base default setting of MASK_SOFT_FLOAT on -march
10032         if MIPS_MARCH_CONTROLS_SOFT_FLOAT.
10033
10034 2002-10-24  Richard Sandiford  <rsandifo@redhat.com>
10035
10036         * optabs.c (expand_binop): Don't reuse the shift target in the
10037         middle of shift sequences.
10038
10039 Wed Oct 23 22:48:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
10040
10041         * i386.md (abs splitters): Do not produce nested subregs.
10042
10043 Wed Oct 23 12:42:32 CEST 2002  Jan Hubicka  <jh@suse.cz>
10044
10045         * i386.md (movti_rex64): Fix constraints.
10046
10047 Wed Oct 23 12:01:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
10048
10049         * i386.md (abssf,absdf): Use vector operands for SSE
10050         (abssf2_ifs, absdf2_ifs, absdf2_ifs_rex64 and splitters): Update for
10051         vector operand.
10052
10053 2002-10-23  Ziemowit Laski <zlaski@apple.com>
10054
10055         * objc/objc-act.c (get_static_reference): Remove unneeded
10056         TYPE_BINFO initialization.
10057         (get_object-reference): Likewise.
10058         (build_constructor): Tighten precondition check.
10059         (finish_message_expr): Likewise.
10060
10061 2002-10-23  Jakub Jelinek  <jakub@redhat.com>
10062
10063         * config/i386/i386.c (local_symbolic_operand): Move LABEL_REF test
10064         after CONST test.
10065
10066 2002-10-23  Steve Ellcey  <sje@cup.hp.com>
10067
10068         * config/ia64/ia64.c (hfa_element_mode): Don't allow 128 bit floats
10069         in HFAs.
10070
10071 2002-10-23  Richard Henderson  <rth@redhat.com>
10072
10073         * config/alpha/alpha.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): True.
10074         (alpha_output_mi_thunk_osf): Handle vcall_offset.
10075
10076 2002-10-23  Zack Weinberg  <zack@codesourcery.com>
10077
10078         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
10079         var_mod_type_p.
10080         * langhooks-def.h: Default for tree_inlining.var_mod_type_p is
10081         hook_tree_bool_false.
10082
10083         * tree.c (variably_modified_type_p): Moved here from
10084         cp/tree.c.  Use lang_hooks.tree_inlining.var_mod_type_p for
10085         language-specific cases.  Due to this, must weaken some 'if
10086         and only if' checks to merely 'if'.
10087         * tree.h: Prototype variably_modified_type_p.
10088
10089         * tree-inline.c (walk_tree): #undef WALK_SUBTREE_TAIL at end.
10090
10091 2002-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
10092
10093         * config/s390/linux.h (CC1_SPEC, CC1PLUS_SPEC): Remove.
10094         * config/s390/s390.c (optimization_options): Disable -fcaller-saves.
10095
10096         * config/s390/s390-protos.h (fp_operand): Remove.
10097         * config/s390/s390.c (fp_operand): Remove.
10098         * config/s390/s390.md ("movdi"): Replace fp_operand by FP_REG_P.
10099         ("*movdi_lhi", "*movdi_lli", "*movdi_larl"): Likewise.
10100         ("movsi", "*movsi_lhi", "*movsi_lli"): Likewise.
10101         (movdi_31, movdf_31 splitters): Likewise.
10102
10103         * config/s390/s390.h (IEEE_FLOAT): Remove.
10104         (TARGET_FLOAT_FORMAT): Define in terms of TARGET_IEEE_FLOAT.
10105         (INT_REGNO_P): Rename to ...
10106         (GENERAL_REGNO_P): ... this.
10107         (FLOAT_REGNO_P): Rename to ...
10108         (FP_REGNO_P): ... this.
10109         (ADDR_REGNO_P): New macro.
10110         (GENERAL_REG_P, ADDR_REG_P, FP_REG_P, CC_REG_P): New macros.
10111         (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
10112         (DATA_REG_P, FP_REG_P, ADDRESS_REG_P): Likewise.
10113         (HARD_REGNO_NREGS): Adapt to macro renaming.
10114         (HARD_REGNO_MODE_OK): Likewise.
10115
10116 2002-10-23  David Edelsohn  <edelsohn@gnu.org>
10117             Geoff Keating  <geoffk@apple.com>
10118
10119         * config/rs6000/rs6000.c (rs6000_register_move_cost): New function.
10120         (rs6000_memory_move_cost): New function.
10121         * config/rs6000/rs6000-protos.h: Declare them.
10122         * config/rs6000/rs6000.h: Use them.
10123
10124 2002-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
10125
10126         * libgcc2.c (__udiv_w_sdiv): Use attribute ((always_inline)) when
10127         inlining it into other libgcc2 routines.
10128         (__udivmoddi4): Likewise.
10129
10130 2002-10-22  Nathanael Nerode  <neroden@gcc.gnu.org>
10131
10132         * doc/sourcebuild.texi (Test Suites): Improve.
10133
10134 2002-10-22  Stan Shebs  <shebs@apple.com>
10135
10136         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Add missing
10137         case for Darwin.
10138
10139 2002-10-22  Jim Wilson  <wilson@redhat.com>
10140
10141         * config/i386/i386.md (subdi3_1): Add call to ix86_binary_operator_ok.
10142
10143 Wed Oct 23 01:52:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
10144
10145         PR other/8289
10146         * xmmintrin.h: Add const to the argument of loads.
10147
10148         * i386.md (pushv2di): New pattern.
10149         PR target/6890
10150         * xmmintrin.h (_MM_TRANSPOSE4_PS): New.
10151
10152 2002-10-22  Richard Henderson  <rth@redhat.com>
10153
10154         * target.h (gcc_target.asm_out): Merge output_mi_thunk and
10155         output_mi_vcall_thunk into a single hook.  Add can_output_mi_thunk.
10156         * target-def.h (TARGET_ASM_OUTPUT_MI_THUNK): Don't conditionalize.
10157         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Remove.
10158         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
10159         (TARGET_ASM_OUT): Update.
10160         * hooks.c (hook_bool_tree_hwi_hwi_tree_false): New.
10161         (hook_bool_tree_hwi_hwi_tree_true): New.
10162         (default_can_output_mi_thunk_no_vcall): New.
10163         * hooks.h: Declare them.
10164         * system.h (ASM_OUTPUT_MI_THUNK): Poison.
10165
10166         * config/alpha/alpha.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
10167         (alpha_output_mi_thunk_osf): Add VCALL_OFFSET parameter.
10168         * config/arm/arm.c, config/cris/cris.c, config/frv/frv.c,
10169         config/i960/i960.c, config/ia64/ia64.c, config/m68k/m68k.c,
10170         config/mmix/mmix.c, config/pa/pa.c, config/sparc/sparc.c,
10171         config/stormy16/stormy16.c: Similarly.
10172
10173         * config/i386/i386.c (x86_output_mi_thunk): Merge vcall_offset code.
10174         Handle 64-bit properly.  Streamline.
10175         (x86_output_mi_vcall_thunk): Remove.
10176         (x86_this_parameter): Rename from ia32_this_parameter; handle 64-bit.
10177         (x86_can_output_mi_thunk): New.
10178         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Remove.
10179         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
10180         (override_options): Don't zap targetm.asm_out.output_mi_vcall_thunk.
10181
10182         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Rename from
10183         output_mi_thunk; make static; always use function_section.
10184         (TARGET_ASM_OUTPUT_MI_THUNK): New.
10185         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
10186         (rs6000_ra_ever_killed): Test no_new_pseudos not
10187         targetm.asm_out.output_mi_thunk in conjunction with thunks.
10188         * config/rs6000/rs6000-protos.h: Update.
10189         * config/rs6000/sysv4.h (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
10190         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't call
10191         xcoffout_declare_function when using rs6000_output_mi_thunk.
10192
10193         * config/s390/s390.c (s390_output_mi_thunk): Rename from
10194         s390_output_mi_vcall_thunk.
10195         (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
10196         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
10197
10198         * config/vax/vax.c (vax_output_mi_thunk): Static; add vcall_offset.
10199         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
10200         * config/vax/vax-protos.h: Update.
10201         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.
10202
10203 Wed Oct 23 00:33:11 CEST 2002  Jan Hubicka  <jh@suse,cz>
10204
10205         * i386.c (standard_sse_constant_p): Accept vector and integer zeros too.
10206         * i386.h (EXTRA_CONSTRAINT): Recognize 'C'
10207         * i386.md (movti_internal): Use 'C'
10208
10209         * xmmintrin.h (_mm_cmplt_epi*): New.
10210
10211 2002-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
10212
10213         * config/s390/s390.md ("*movdi_64"): Fix op_type attribute.
10214         ("*movdf_64"): Likewise.
10215         ("*lshrdi3_64"): Likewise.
10216         ("blockage"): Add length attribute.
10217         ("lit"): Likewise.
10218
10219 Tue Oct 22 23:51:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
10220
10221         * i386.md: FIx typo.
10222         (sse2_cvtsi2sd, sse2_pslrdq): Fix template.
10223         (sse2_umulv2siv2di3): Fix predicate.
10224         (sse2_psadbw, ashrv8hi3, ashrv4si3, lshrv8hi3 lshrv4si3,
10225         lshrv2di3, ashlv8hi3, ashlv4si3, ashlv2di3): Likewise.
10226         * xmmintrin.h (_mm_mul_epu16): Rename to...
10227         (_mm_mul_epu32): This one.
10228         (_mm_cvtsi32_si128, _mm_cvtsi128_si32): New.
10229
10230         (contains_128bit_aligned_vector_p): Undo accidental checkin.
10231
10232 2002-10-22  Eric Christopher  <echristo@redhat.com>
10233
10234         * config/sparc/sparc.h: Add #error.
10235
10236 2002-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
10237
10238         * config.gcc [s390-*-linux]: Remove s390/t-linux from tmake_file.
10239         [s390x-*-linux*]: Likewise.
10240         * config/s390/t-linux: Remove.
10241         * config/s390/s390.h: Include fixdfdi.h when building libgcc2.
10242
10243 Tue Oct 22 19:07:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
10244
10245         * i386.c (builtin_description): Add IX86_BUILTIN_PUNPCKHQDQ128.
10246         (ix86_expand_builtin): Fix MASKMOVDQU expasion.
10247         * i386.h (ix86_builtins): Add IX86_BUILTIN_PUNPCKHQDQ128.
10248         * i386.md (mmx_punpck?dq): Simplify.
10249         (sse2_pubpcklqdq): Fix.
10250         (sse2_pubpckhqdq): New.
10251         * xmmintrin.h (_mm_unpackhi_epi32): New.
10252
10253         * xmmintrin.h (_mm_cvt*, _mm_stream_pd): Fix prototypes.
10254         (_mm_shufflehi_epi16, _mm_shufflelo_epi16): Fix typo.
10255
10256 2002-10-22  Nathan Sidwell  <nathan@codesourcery.com>
10257
10258         PR c++/7209
10259         * fold_const.c (fold_binary_op_with_conditional_arg): Always
10260         build compound_expr if we used save_expr.
10261
10262 2002-10-22  Alan Modra  <amodra@bigpond.net.au>
10263
10264         * output.h (SECTION_NOTYPE): Define.
10265         * varasm.c (default_section_type_flags_1): Set SECTION_NOTYPE for
10266         init array sections.
10267         (default_elf_asm_named_section): Mind SECTION_NOTYPE.
10268         * config/arm/arm.c (arm_elf_asm_named_section): Likewise.  Also
10269         merge TLS support.
10270
10271 2002-10-21  Richard Henderson  <rth@redhat.com>
10272
10273         * config/i386/i386.c (ix86_function_ok_for_sibcall): Look at
10274         the function type, not the return type.
10275
10276 2002-10-21  Richard Henderson  <rth@redhat.com>
10277
10278         * real.c (sticky_rshift_significand): Return inexact, don't
10279         or it in immediately.
10280         (sub_significands): Accept incomming carry.
10281         (div_significands, rtd_divmod): Update for sub_significands change.
10282         (round_for_format): Update for sticky_rshift_significand change.
10283         (do_add): Don't involve the inexact bit in addition, do give the
10284         inexact bit as the subtraction carry-in.
10285         (encode_internal, decode_internal, real_internal_format): New.
10286         * real.h (real_internal_format): Declare.
10287
10288 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
10289
10290         * libgcc2.c: Fix __udiv_w_sdiv breakage on platforms that
10291         don't define sdiv_qrnnd.
10292
10293 2002-10-21  Kazu Hirata  <kazu@cs.umass.edu>
10294
10295         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Simplify
10296         using IN_RANGE.
10297         (TINY_CONSTANT_ADDRESS_P): Likewise.
10298
10299 Tue Oct 22 00:04:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
10300
10301         * i386.c (builtin_description): Add punpcklqdq and movdq2q
10302         (ix86_init_mmx_sse_builtins): Add v2di_ftype_void, di_ftype_v2di,
10303         v16qi_ftype_pchar, void_ftype_pchar_v16qi, v4si_ftype_pchar,
10304         void_ftype_pchar_v4si; Initialize __builtin_ia32_movdq2q,
10305         __builtin_ia32_loaddqa, __builtin_ia32_loaddqu, __builtin_ia32_loadd
10306         __builtin_ia32_storedqa, __builtin_ia32_storedqu, __builtin_ia32_stored
10307         __builtin_ia32_setzero128.
10308         (ix86_expand_builtin): Handle IX86_BUILTIN_CLRTI, IX86_BUILTIN_LOADDQA,
10309         IX86_BUILTIN_LOADDQU, IX86_BUILTIN_LOADD, IX86_BUILTIN_STOREDQA,
10310         IX86_BUILTIN_STOREDQU, IX86_BUILTIN_STORED, Ix86_BUILTIN_MOVQ.
10311         * i386.h (ix86_builtins): Add IX86_BUILTIN_LOADDQA, IX86_BUILTIN_LOADDQU,
10312         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_STOREDQU, IX86_BUILTIN_LOADD,
10313         IX86_BUILTIN_STORED, IX86_BUILTIN_CLRTI, IX86_BUILTIN_MOVDQ2Q,
10314         IX86_BUILTIN_PUNPCKLQDQ128, Ix86_BUILTIN_MOVQ.
10315         * i386.md (sse2_punpcklqdq, sse2_movqsse2_loadd, sse2_stored,
10316         sse2_movq): New patterns.
10317         (sse2_movdqa, sse2_movdqu, sse2_movdq2q): Fix.
10318         * xmmintrin.h (_mm_load_si128, _mm_loadu_si128, _mm_loadl_epi64,
10319         _mm_store_si128, _mm_storeu_si128, _mm_storel_epi64,
10320         _mm_setzero_si128, _mm_set_epi64, _mm_set_epi32, _mm_set_epi16,
10321         _mm_set_epi8, _mm_set1_epi64, _mm_set1_epi32, _mm_set1_epi16,
10322         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
10323         _mm_setr_epi8, _mm_unpacklo_epi64,_mm_set_moveq): New functions.
10324         (_mm_insert_epi16): Fix.
10325
10326 2002-10-21  Dale Johannesen  <dalej@apple.com>
10327
10328         * config/rs6000/rs6000.c (rs6000_reverse_condition): Handle
10329             unsafe math reversals correctly for RTL generation.
10330           (output_cbranch):  Replace rs6000_reverse_condition call
10331             by its former definition.
10332
10333 2002-10-21  Jakub Jelinek  <jakub@redhat.com>
10334
10335         * config/i386/i386.c (x86_64_sign_extended_value): Add allow_rip
10336         argument.  In CM_SMALL_PIC model consider SYMBOL_REFs binding locally or
10337         from constant pool or LABEL_REFs as sign extended if allow_rip.
10338         Change all +-1GB limits to +-16MB.
10339         (x86_64_general_operand, x86_64_szext_general_operand,
10340         x86_64_nonmemory_operand, x86_64_movabs_operand,
10341         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
10342         legitimate_address_p, ix86_expand_int_movcc): Update callers.
10343         (local_symbolic_operand): Don't allow offsets bigger than +-16MB
10344         in CM_SMALL_PIC model.
10345         (legitimate_pic_address_disp_p): Don't check offsets before
10346         calling local_symbolic_operand.
10347         (legitimize_pic_address): Force offsets bigger than +-16MB into
10348         register.
10349         * config/i386/i386.h (EXTRA_CONSTRAINT, CONST_COSTS): Likewise.
10350         * config/i386/i386-protos.h (x86_64_sign_extended_value): Update
10351         prototype.
10352
10353         * configure.in: Test for @GOTNTPOFF and @INDNTPOFF on IA-32 too.
10354         Add x86-64 test.  Set tls_first_minor to 14 on IA-32 and x86-64.
10355         * configure: Rebuilt.
10356         * config/i386/i386.c (x86_64_sign_extended_value): Don't allow TLS
10357         SYMBOL_REFs unless enclosed in UNSPEC.  Handle UNSPEC_DTPOFF,
10358         UNSPEC_GOTNTPOFF and UNSPEC_NTPOFF.
10359         (legitimate_address_p): Allow foo@dtpoff(base) even on TARGET_64BIT
10360         -fpic.
10361         (ix86_encode_section_info): Don't ever generate TLSGD or TLSLD for
10362         non-pic code if TARGET_64BIT.
10363         (legitimize_address): Generate 64-bit TLS sequences.
10364         (output_pic_addr_const): Support x86-64 TLS operators.
10365         (i386_output_dwarf_dtprel): Output 64-bit DTPOFF as .long f@DTPOFF, 0.
10366         (print_operand_address): Use %fs instead of %gs on TARGET_64BIT.
10367         Don't append (%rip) in 64-bit TLSGD and TLSLD sequences.
10368         (output_addr_const_extra): Support x86-64 TLS operators.
10369         (maybe_get_pool_constant): Handle TARGET_64BIT -fpic.
10370         (ix86_tls_get_addr): Use __tls_get_addr on TARGET_64BIT
10371         unconditionally.
10372         * config/i386/i386.md (*tls_global_dynamic_gnu): Renamed to...
10373         (*tls_global_dynamic_32_gnu): ..., add !TARGET_64BIT.
10374         (*tls_global_dynamic_sun): Renamed to...
10375         (*tls_global_dynamic_32_sun): ..., add !TARGET_64BIT.
10376         (tls_global_dynamic): Renamed to...
10377         (tls_global_dynamic_32): ... this.
10378         (tls_global_dynamic_64, *tls_global_dynamic_64): New.
10379         (*tls_local_dynamic_base_dynamic_gnu): Renamed to...
10380         (*tls_local_dynamic_base_dynamic_32_gnu): ..., add !TARGET_64BIT.
10381         (*tls_local_dynamic_base_dynamic_sun): Renamed to...
10382         (*tls_local_dynamic_base_dynamic_32_sun): ..., add !TARGET_64BIT.
10383         (tls_local_dynamic_base_dynamic): Renamed to...
10384         (tls_local_dynamic_base_dynamic_32): ... this.
10385         (tls_local_dynamic_base_dynamic_64,
10386         *tls_local_dynamic_base_dynamic_64): New.
10387         (*tls_local_dynamic_once): Renamed to...
10388         (*tls_local_dynamic_32_once): ... this.
10389
10390 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
10391
10392         * libgcc2.c: Inline __udiv_w_sdiv when compiling __udivdi3,
10393         __divdi3, __umoddi3, or __moddi3.
10394
10395 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
10396
10397         * c-opts.c (missing_arg): Use cl_options[opt_index].opt_code
10398         instead of just opt_index as switch expression.
10399
10400         * calls.c (store_one_arg): Change type of 'excess_align'
10401         to unsigned int.
10402
10403         * profile.c (output_gcov_string): Change type of 'temp'
10404         to size_t.
10405
10406 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
10407
10408         * config/s390/fixdfdi.h (__fixunsdfdi, __fixdfdi): Add prototypes.
10409         (__fixunssfdi, __fixsfdi): Likewise.
10410         * config/s390/s390.c (s390_single_hi): Initialize 'value'.
10411         (s390_single_qi): Likewise.
10412         (s390_emit_epilogue): Initialize 'offset'.  Remove signed vs.
10413         unsigned comparison warning.
10414         (s390_return_addr_rtx): New function.
10415         * config/s390/s390-protos.h (s390_return_addr_rtx): Declare it.
10416         * config/s390/s390.h (RETURN_ADDR_RTX): Use it.
10417         (HARD_REGNO_MODE_OK): Rewrite condition to silence warnings.
10418
10419 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
10420
10421         * config/s390/s390.c (s390_output_mi_vcall_thunk): New function.
10422         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Define target hook.
10423         (s390_output_mi_thunk): Remove.
10424         (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
10425
10426 2002-10-21  Kazu Hirata  <kazu@cs.umass.edu>
10427
10428         * config/h8300/h8300.h (N_REG_CLASSES): Parenthesize.
10429
10430 2002-10-20  Zack Weinberg  <zack@codesourcery.com>
10431
10432         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix an
10433         inverted test in the conditional determining the possibility
10434         of sibcalls in PIC mode.
10435
10436 2002-10-20  Richard Henderson  <rth@redhat.com>
10437
10438         * target.h (struct gcc_target): Line wrap.
10439
10440         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Static.
10441         (TARGET_ASM_OUTPUT_MI_THUNK): Define here...
10442         * config/alpha/alpha.h: ... not here.
10443         * config/alpha/alpha-protos.h: Update.
10444
10445         * config/arm/arm.c, config/arm/arm.h, config/arm/arm-protos.h
10446         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10447         config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
10448         config/i386/i386-protos.h, config/i386/i386.c, config/i386/openbsd.h,
10449         config/i386/unix.h, config/i960/i960-protos.h, config/i960/i960.c,
10450         config/i960/i960.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
10451         config/ia64/ia64.h, config/m68k/linux.h, config/m68k/m68k-protos.h,
10452         config/m68k/m68k.c, config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
10453         config/mmix/mmix-protos.h, config/mmix/mmix.c, config/mmix/mmix.h,
10454         config/pa/pa-protos.h, config/pa/pa.c, config/pa/pa.h,
10455         config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
10456         config/sparc/openbsd.h, config/sparc/sparc-protos.h,
10457         config/sparc/sparc.c, config/sparc/sparc.h,
10458         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10459         config/stormy16/stormy16.h: Similarly.
10460
10461         * config/m68k/m68k.c (m68k_output_mi_thunk): Replicate mnemonic
10462         selection logic from call patterns.
10463
10464 2002-10-20  Mark Mitchell  <mark@codesourcery.com>
10465
10466         * config/m68k/m68k.c (m68k_output_mi_thunk): Fix typo.
10467
10468 2002-10-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10469
10470         PR other/8202
10471         * i386.c (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Define and
10472         expand __builtin_ia32_pslldqi128 and __builtin_ia32_psrldqi128.
10473         * i386.h (IX86_BUILTIN_PSLLDQI128, IX86_BUILTIN_PSRLDQI128): New.
10474         * xmmintrin.h (_mm_srli_si128, _mm_slli_si128): New.
10475
10476 2002-10-20  Roger Sayle  <roger@eyesopen.com>
10477
10478         PR c/761
10479         * toplev.c (flag_unsafe_profile_arcs): Remove.
10480         (flag_bounded_pointers): Remove.
10481         (flag_bounds_check): Correct comments.
10482         (lang_independent_options): Remove -funsafe-profile-arcs and
10483         -fbounded-pointers.  Correct -fbounds-check comments.
10484
10485         * flags.h: Correct flag_schedule_interblock comments.
10486         (flag_bounded_pointers): Remove prototype.
10487         (flag_bounds_check): Correct comments.
10488
10489         * c-opts.c (c_common_init_options): No need to mark
10490         flag_bounds_check as unspecified.
10491         (c_common_post_options): And no need to set it from
10492         flag_bounded_pointers if its still unspecified.
10493
10494         * doc/invoke.texi: Fix some overfull hboxes in "make dvi".
10495         Document --version, -feliminate-dwarf-2-dups, -fno-sched-interblock,
10496         -fno-sched-spec, -fsched-spec-load, -fsched-spec-load-dangerous,
10497         -fsched-verbose=n, -fno-branch-count-reg and -fbounds-check.
10498
10499 Sat Oct 19 22:02:28 2002  Alexandre Oliva  <aoliva@redhat.com>
10500         Angela Marie Thomas  <angela@releasedominatrix.com>
10501         Brendan Kehoe  <brendan@zen.org>
10502         Nick Clifton  <nickc@redhat.com>
10503         Andrew Haley  <aph@redhat.com>
10504
10505         * configure.in (--with-sysroot): New.  Don't inhibit libc if
10506         given.  AC_SUBST TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE
10507         and CROSS_SYSTEM_HEADER_DIR.
10508         * configure: Rebuilt.
10509         * Makefile.in (CROSS_SYSTEM_HEADER_DIR): Set in configure.
10510         (TARGET_SYSTEM_ROOT): New.
10511         (DRIVER_DEFINES): Define CROSS_INCLUDE_DIR from
10512         CROSS_SYSTEM_HEADER_DIR.
10513         (install-gcc-tooldir): New target.
10514         (stmp-fixinc): Do not create $(libsubdir), but rather bail out
10515         if SYSTEM_HEADER_DIR does not exist and it's not the default
10516         sys-include directory.
10517         (deduced.h, stmp-fixproto): Quote SYSTEM_HEADER_DIR properly.
10518         (install-mkheaders): Likewise.
10519         * gcc.c (target_system_root): New variable.
10520         (add_sysrooted_prefix): New function.
10521         (process_command): Recompute run-time target_system_root from
10522         gcc_exec_prefix, keeping it unchanged if the relocated sysroot
10523         does not exist.
10524         (do_spec_1): Process 'R' spec.
10525         (main): Add md_exec_prefix to exec_prefixes regardless of
10526         startfile_prefix_spec.  Use add_sysrooted_prefix for
10527         startfile_prefixes, and don't skip the default ones when cross
10528         compiling with sysroot enabled.  Removed unused case of
10529         non-absolute standard_startfile_prefix.
10530         * config/interix.h: Remove the only potential, yet disabled,
10531         occurrence of non-absolute (empty) standard_startfile_prefix.
10532         * config/sh/linux.h (LIB_SPEC): Add -rpath-link in non-static
10533         linking.
10534         * config/mips/linux.h (LIB_SPEC): Define as in sh/linux.h.
10535         * doc/install.texi (--with-sysroot): Document.
10536         (--with-headers, --with-libs): Deprecate.
10537
10538 2002-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10539             Mark Mitchell  <mark@codesourcery.com>
10540
10541         * alpha-protos.h (alpha_output_mi_thunk_osf): Update signature to
10542         match target.h.
10543         * arm-protos.h, arm.c (arm_output_mi_thunk): Likewise.
10544         * cris-protos.h, cris.c (cris_asm_output_mi_thunk): Likewise.
10545         * frv-protos.h, frv.c (frv_asm_output_mi_thunk): Likewise.
10546         * i386-protos.h, i386.c (x86_output_mi_vcall_thunk,
10547         x86_output_mi_thunk): Likewise.
10548         * i960-protos.h, i960.c (i960_output_mi_thunk): Likewise.
10549         * ia64-protos.h, ia64.c (ia64_output_mi_thunk): Likewise.
10550         * m68k-protos.h, m68k.c (m68k_output_mi_thunk): Likewise.
10551         * mmix-protos.h, mmix.c (mmix_asm_output_mi_thunk): Likewise.
10552         * rs6000-protos.h, rs6000.c (output_mi_thunk): Likewise.
10553         * s390-protos.h, s390.c (s390_output_mi_thunk): Likewise.
10554         * stormy16-protos.h, stormy16.c (xstormy16_asm_output_mi_thunk):
10555         Likewise.
10556         * vax-protos.h, vax.c (vax_output_mi_thunk): Likewise.
10557
10558         * target.h (gcc_target): Update output_mi_thunk and
10559         output_mi_vcall_thunk to take a HOST_WIDE_INT delta and
10560         vcall_index.
10561
10562         * config/alpha/alpha.c: Replace ASM_OUTPUT_MI_THUNK with
10563         TARGET_ASM_OUTPUT_MI_THUNK in comments.
10564         * config/alpha/vms.h (ASM_OUTPUT_MI_THUNK): Don't #undef it.
10565         (TARGET_ASM_OUTPUT_MI_THUNK): #undef it.
10566         * config/frv/frv.h (DEFAULT_VTABLE_THUNKS): Remove definition.
10567         * config/i386/i386-protos.h (x86_output_mi_vcall_thunk): Update
10568         signature.
10569         * config/i386/i386.c (x86_output_mi_vcall_thunk): Likewise.
10570         * config/i386/openbsd.h: Replace ASM_OUTPUT_MI_THUNK with
10571         TARGET_ASM_OUTPUT_MI_THUNK in comments.
10572         * config/i960/i960.h (ASM_OUTPUT_MI_THUNK): Don't define.
10573         (TARGET_ASM_OUTPUT_MI_THUNK): Do define.
10574         * config/m68k/openbsd.h: Replace ASM_OUTPUT_MI_THUNK with
10575         TARGET_ASM_OUTPUT_MI_THUNK in comments.
10576         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Remove #ifdef
10577         ASM_OUTPUT_MI_THUNK and replace with check of targetm.
10578
10579         * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Update signature.
10580         (TARGET_ASM_OUTPU_MI_VCALL_THUNK): Likewise.
10581
10582 2002-10-19  Brad Lucier  <lucier@math.purdue.edu>
10583
10584         * real.c (do_add): Fix 0+0 sign corner case.
10585         (do_divide): Fix Inf/0 corner case.
10586
10587 Sun Oct 20 00:31:31 CEST 2002  Jan Hubicka  <jh@suse.cz>
10588
10589         * i386.c (classify_argument): Pass MMX arguments in memory
10590         (ix86_expand_builtin): Expand proper address mode for cflush.
10591         * i386.md (movdqa): Fix typo.
10592         (sse2_cflush): Accept DImode addresses.
10593
10594         * xmmintrin.h (_mm_sqrt_sd): Accept two arguments.
10595         (_mm_max_sd): Fix pasto.
10596         (_mm_storeh_pd, _mm_storel_pd): Fix.
10597
10598         * i386.c (bdesc_comi): Fix to match specification.
10599         (ix86_expand_sse_comi): Emit the comparison properly.
10600         * i386.md (sse_comi, sse2_comi, sse_ucomi, sse2_ucomi):
10601         Do not use comparison operator.
10602         (vnmaskcmp): Fix template.
10603
10604         * xmmintrin.h (_mm_cvtps_pi16): Fix.
10605
10606 2002-10-19  Sebastian Pop  <s.pop@laposte.net>
10607
10608         * dependence.c : Removed.
10609         * Makefile.in : Remove dependence.o.
10610
10611 Sat Oct 19 10:46:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
10612
10613         * mmintrin.h (__m64): typedef it to v2si.
10614         (_mm_cvtsi32_si64, _mm_cvtsi32_si64_mm_sll_pi16,
10615         _mm_sll_pi32, _mm_sll_pi64, _mm_slli_pi64, _mm_sra_pi16,
10616         _mm_sra_pi32, _mm_srl_pi16, _mm_srl_pi32, _mm_srl_pi64,
10617         _mm_srli_pi64, _mm_and_si64, _mm_andnot_si64,
10618         _mm_or_si64, _mm_xor_si64): Add neccesary casts.
10619         * xmmintrin.h (_mm_setzero_si64): Likewise.
10620
10621         * i386.h (ALIGN_MODE_128): Update comment; add missing modes
10622         (SSE_REG_MODE_P, MMX_REG_MODE_P): New macros.
10623
10624         PR target/7693
10625         Patch by Shawn Wagner
10626         * mmintrin.h: Replace pi64 by si64.
10627
10628 2002-10-18  David Edelsohn  <edelsohn@gnu.org>
10629
10630         * rs6000.md (movdf_hardfloat32): Order alternatives consistently.
10631         Use length of 4 not *.
10632         (movdf_hardfloat64): Same.  Support DFmode moves to/from CTR/LR.
10633         (movdf_softfloat64): Likewise.
10634         (movdi_internal32): Use length of 4 not *.
10635         (movti_power): Same.
10636         (ctrsi, ctrdi): Same.
10637
10638 2002-10-18  Zack Weinberg  <zack@codesourcery.com>
10639
10640         * c-decl.c (start_decl): Point users of the old initialized-
10641         typedef extension at __typeof__.
10642
10643 2002-10-18  Richard Henderson  <rth@redhat.com>
10644
10645         * real.c (cmp_significand_0, rtd_divmod, ten_to_mptwo): New.
10646         (real_to_decimal): Re-implement using the logic from the
10647         gcc 3.2 etoasc.  Comment heavily.
10648         (div_significands): Simplify loop startup and comparison logic.
10649
10650 2002-10-18  Mark Mitchell  <mark@codesourcery.com>
10651
10652         * target-def.h (TARGET_ASM_OUTPUT_MI_THUNK): Default to NULL.
10653         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Likewise.
10654         (TARGET_ASM_OUT): Add them.
10655         * target.h (asm_out): Add output_mi_thunk and
10656         output_mi_vcall_thunk.
10657         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Rename to ...
10658         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
10659         * config/arm/arm-protos.h (arm_output_mi_thunk): Declare.
10660         * config/arm/arm.c (arm_output_mi_thunk): Define.
10661         * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Rename to ...
10662         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
10663         * config/cris/cris.h (ASM_OUTPUT_MI_THUNK): Rename to ...
10664         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
10665         * config/frv/frv.h (ASM_OUTPUT_MI_THUNK): Rename to ...
10666         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
10667         * config/i386/i386-protos.h (x86_output_mi_thunk): Adjust
10668         prototype.
10669         (x86_output_mi_vcall_thunk): Declare.
10670         * config/i386/i386.c (override_options): Clear
10671         output_mi_vcall_thunk in 64-bit mode.
10672         (ix86_fntype_regparm): New function.
10673         (ix86_return_pops_args): Use it.
10674         (ia32_this_parameter): New function.
10675         (x86_output_mi_vcall_thunk): New function.
10676         (x86_output_mi_thunk): Use it
10677         * config/i386/unix.h (TARGET_ASM_OUTPUT_MI_THUNK): Adjust.
10678         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Define.
10679         * config/i960/i960-protos.h (i960_output_mi_thunk): Declare.
10680         * config/i960/i960.c (i960_output_mi_thunk): New function.
10681         * config/i960/i960.h (ASM_OUTPUT_MI_THUNK): Adjust.
10682         * config/ia64/ia64-protos.h (ia64_output_mi_thunk): Declare.
10683         * config/ia64/ia64.c (ia64_output_mi_thunk): Define.
10684         * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Rename to ...
10685         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
10686         * config/m68k/m68k-protos.h (m68k_output_mi_thunk): New function.
10687         * config/m68k/linux.h (ASM_OUTPUT_MI_THUNK): Rename to ...
10688         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
10689         * config/m68k/netbsd-elf.h (ASM_OUTPUT_MI_THUNK): Rename to ...
10690         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
10691         * config/mmix/mmix.h (ASM_OUTPUT_MI_THUNK): Rename to ...
10692         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
10693         * config/pa/pa.h (ASM_OUTPUT_MI_THUNK): Rename to ...
10694         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
10695         * config/rs6000/sysv4.h (ASM_OUTPUT_MI_THUNK): Rename to ...
10696         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
10697         * config/s390/s390-protos.h (s390_output_mi_thunk): Declare.
10698         * config/s390/s390.c (s390_output_mi_thunk): Define.
10699         * config/s390/s390.h (ASM_OUTPUT_MI_THUNK): Rename to ...
10700         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
10701         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Rename to ...
10702         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
10703         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Rename to ...
10704         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
10705         * config/vax/vax-protos.h (vax_output_mi_thunk): Declare.
10706         * config/vax/vax.c (vax_output_mi_thunk): Define.
10707         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Rename to ...
10708         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
10709         * doc/tm.texi: Adjust documentation.
10710
10711 2002-10-18  Jason Thorpe  <thorpej@wasabisystems.com>
10712
10713         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Define
10714         __enable_execute_stack function.
10715         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Define
10716         as NETBSD_ENABLE_EXECUTE_STACK.
10717         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
10718         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
10719         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
10720         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
10721         * config/sparc/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
10722
10723 2002-10-18  Jason Thorpe  <thorpej@wasabisystems.com>
10724
10725         * config/i386/i386.c (x86_initialize_trampoline): Emit a call
10726         to __enable_execute_stack with the address of the trampoline
10727         if TRANSFER_FROM_TRAMPOLINE is defined.
10728         * config/i386/i386.h (TARGET_64BIT): Expand to a compile-time
10729         constant if building libgcc2.
10730
10731 Thu Oct 17 17:40:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
10732
10733         * i386.c (pentium4_cost): Fix according to Intel recommendations.
10734         (ix86_memory_move_cost): Fix for 64bit compilation.
10735
10736 2002-10-17  Roger Sayle  <roger@eyesopen.com>
10737
10738         * doc/c-tree.texi: Update description of COND_EXPR tree nodes.
10739
10740 2002-10-17  Geoffrey Keating  <geoffk@apple.com>
10741
10742         * config/rs6000/rs6000.h (HARD_REGNO_MODE_OK): Allow arbitrary modes
10743         in CTR/LR/MQ.
10744         * config/rs6000/rs6000.md (movcc_internal1): Support CCmode moves
10745         to/from CTR/LR/MQ.
10746         (movsf_hardfloat): Support SFmode moves to/from CTR/LR/MQ.
10747         (movsf_softfloat): Likewise.
10748
10749 2002-10-17  Janis Johnson  <janis187@us.ibm.com>
10750
10751         * Makefile.in (site.exp): Add ALT_CXX_UNDER_TEST and COMPAT_OPTIONS.
10752
10753 2002-10-17  Jason Thorpe  <thorpej@wasabisystems.com>
10754
10755         * config/alpha/alpha.c (alpha_initialize_trampoline): Use
10756         tramp, not addr, to pass the trampoline address to
10757         __enable_execute_stack.
10758
10759 Thu Oct 17 18:40:47 CEST 2002  Jan Hubicka  <jh@suse.cz>
10760
10761         * mmintrin.h: Guard by __MMX__
10762         * xmmintrin.h: Guard by __SSE__
10763
10764         PR other/8062
10765         * xmmintrin.h (_MM_SHUFFLE2): New macro.
10766         (_mm_load*_?d): New functions.
10767         (_mm_set*_?d): New functions.
10768         (_mm_store*_?d): New functions.
10769
10770 Wed Oct 16 15:01:29 CEST 2002  Jan Hubicka  <jh@suse.cz>
10771
10772         Really commit patch announced at Oct 14
10773         PR c/7344
10774         * predict.c (can_predict_insn_p): New function.
10775         (estimate_probability): Avoid unnecesary work.
10776         (process_note_prediction): Likewise.
10777         * toplev.c (rest_of_compilation): Account early branch prediction pass
10778         as TV_BRANCH_PROB.
10779
10780         PR other/8048
10781         Found by Ian Ollmann
10782         * xmmintrin.h (_mm_shuffle_pd): Fix typo.
10783         (_mm_load?_pd): Likewise.
10784         (_mm_store?_pd): Likewise.
10785
10786         PR target/7386
10787         * i386.c (builtin_description):Drop cmpg[te]s[sd].
10788         * xmmintrin.h (__mm_cmpg[te]_s[sd]): Rewrite using
10789         swapped alternative.
10790
10791         PR opt/7630
10792         * reload1.c (reload_inner_reg_of_subreg): New argument output;
10793         (push_reload): Update call.
10794
10795 2002-10-17  Richard Sandiford  <rsandifo@redhat.com>
10796
10797         * config.gcc (mips*-*-*): Add OBJECT_FORMAT_ELF to $tm_defines
10798         if using mips/elf.h or mips/elf64.h.
10799         * config/mips/elf.h (OBJECT_FORMAT_ELF): Remove.
10800         * config/mips/elf64.h (OBJECT_FORMAT_ELF): Remove.
10801
10802 2002-10-16  Aldy Hernandez  <aldyh@redhat.com>
10803
10804         * config/rs6000/rs6000.c (function_arg): Set inner mode of V1DI to
10805         SI.
10806
10807 2002-10-16  Ulrich Weigand  <uweigand@de.ibm.com>
10808
10809         * config/s390/linux.h (ASM_DOUBLE, _ASM_OUTPUT_LONG): Remove.
10810         (LPREFIX): Likewise.
10811         (ASM_COMMENT_START, LOCAL_LABEL_PREFIX, ASM_FORMAT_PRIVATE_NAME,
10812         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT,
10813         ASM_OUTPUT_ALIGN, ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_BSS,
10814         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
10815         GLOBAL_ASM_OP, ASM_OUTPUT_MI_THUNK): Move to s390.h.
10816
10817         * config/s390/s390.h (ASM_COMMENT_START, LOCAL_LABEL_PREFIX,
10818         ASM_FORMAT_PRIVATE_NAME, ASM_OUTPUT_ALIGN, ASM_OUTPUT_SKIP,
10819         ASM_OUTPUT_ALIGNED_BSS, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
10820         BSS_SECTION_ASM_OP): Move from linux.h.
10821         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10822         Also, use ASM_GENERATE_INTERNAL_LABEL instead of LPREFIX.
10823
10824         * config/s390/s390.c (s390_function_profiler): Use
10825         ASM_GENERATE_INTERNAL_LABEL instead of LPREFIX.
10826
10827 2002-10-15  Eric Christopher  <echristo@redhat.com>
10828
10829         * stor-layout.c (layout_type): Call GET_MODE_BITSIZE once.
10830         * java/parse.y (obtain_incomplete_type): Make pointer
10831         ptr_mode.
10832
10833 2002-10-15  Richard Henderson  <rth@redhat.com>
10834
10835         * real.c (real_to_decimal): Accept BUF_SIZE and CROP_TRAILING_ZEROS
10836         as arguments.  Bound DIGITS by the available buffer size.
10837         (real_to_hexadecimal): Likewise.
10838         * real.h (real_to_decimal, real_to_hexadecimal): Update prototypes.
10839         (REAL_VALUE_TO_DECIMAL): Remove.
10840         * c-common.c, c-pretty-print.c, print-rtl.c, print-tree.c,
10841         sched-vis.c, config/arc/arc.c, config/c4x/c4x.c, config/fr30/fr30.c,
10842         config/i370/i370.h, config/i386/i386.c, config/i960/i960.c,
10843         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
10844         config/m68k/hp320.h, config/m68k/m68k.h, config/m68k/sun2o4.h,
10845         config/m68k/sun3.h, config/mips/mips.c, config/ns32k/ns32k.c,
10846         config/pdp11/pdp11.h, config/vax/vax.h: Update all callers to
10847         use real_to_decimal directly, and with the proper arguments.
10848         * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Remove.
10849
10850 2002-10-15  Jim Wilson  <wilson@redhat.com>
10851
10852         * reload1.c (merge_assigned_reloads): After converting overlapping
10853         reloads to RELOAD_OTHER, abort if there are now conflicting reloads.
10854
10855         * config/i386/i386.md (adddi3_1): Add call to ix86_binary_operator_ok.
10856
10857 Tue Oct 15 22:08:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
10858
10859         * expr.c (do_tablejump): Fix typo in my previous commit.
10860
10861 2002-10-15  Richard Sandiford  <rsandifo@redhat.com>
10862
10863         * config/mips/vr.h (DRIVER_SELF_SPECS): Change %<mgp32 to %{<mgp32}.
10864
10865 2002-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
10866
10867         * config/s390/s390.c (s390_split_branches): Add return
10868         value.  Add parameters TEMP_REG and TEMP_USED.  Use unspec 104.
10869
10870         (find_base_register_in_addr): New function.
10871         (find_base_register_ref): New function.
10872         (replace_base_register_ref): New function.
10873
10874         (struct constant_pool): Add members pool_insn, insns, and anchor.
10875         Remove member last_insn.
10876         (s390_start_pool): Initialize them.
10877         (s390_end_pool): Emit pool placeholder insn.
10878         (s390_add_pool_insn): New function.
10879         (s390_find_pool): Use insns bitmap instead of addresses.
10880         (s390_dump_pool): Replace placeholder insn.  Emit anchor.
10881         Replace unspec 104 by local-pool-relative references.
10882         (s390_output_constant_pool): Output anchor label if required.
10883         (s390_output_symbolic_const): Handle unspec 104 and 105.
10884         (s390_add_pool): Remove, replace by ...
10885         (s390_add_constant, s390_find_constant): ... these new functions.
10886         (s390_add_anchor): New function.
10887
10888         (s390_chunkify_pool): Delete, replace by ...
10889         (s390_chunkify_start, s390_chunkify_finish,
10890         s390_chunkify_cancel): ... these new functions.
10891         (s390_optimize_prolog): Add parameter TEMP_REGNO.
10892         Recompute register live data for special registers.
10893         (s390_fixup_clobbered_return_reg): New function.
10894         (s390_machine_dependent_reorg): Rewrite to use new
10895         s390_chunkify_... routines.
10896
10897         config/s390/s390.md ("reload_base"): Rename to ...
10898         ("reload_base_31"): ... this.
10899         ("reload_base_64"): New insn.
10900         ("reload_base2"): Remove.
10901         ("reload_anchor"): New insn.
10902         ("pool"): New insn.
10903
10904         s390.c (s390_pool_overflow): Remove.
10905         s390.h (s390_pool_overflow): Likewise.
10906         s390.md ("cjump", "icjump", "doloop_si"): Remove s390_pool_overflow.
10907
10908 Tue Oct 15 16:51:04 2002  J"orn Rennecke <joern.rennecke@superh.com>
10909
10910         * sh.md (movv8qi_i+2): Don't split if source is -1.
10911
10912 2002-10-15  Janis Johnson  <janis187@us.ibm.com>
10913
10914         * doc/install.texi: Formatting changes for conformance to HTML 4.01.
10915
10916 2002-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
10917
10918         PR opt/7409
10919         * loop.c (loop_regs_scan): Mark registers used for function
10920         argument passing as MAY_NOT_OPTIMIZE.
10921
10922 Mon Oct 14 19:22:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
10923
10924         * gcov-io.h (gcov_info): Fix type.
10925         * profile.c (create_profiler): Fix type mismatch.
10926
10927 Mon Oct 14 20:33:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
10928
10929         * i386.md (movv2di_internal): New pattern.
10930         (movv2df_internal, movv8hi_internal, movv16qi_internal): Fix predicate.
10931         (movv2di): New expander.
10932         * i386.c (ix86_preferred_reload_class): Return NO_REGS for vector operands.
10933
10934         * i386.c (ix86_expand_timode_binop_builtin): Delete.
10935         (builtin_description): Add SSE1 logicals; rename SSE2 logicals.
10936         (ix86_init_mmx_sse_builtins): Kill SSE1 logicals.
10937         (ix86_expand_builtin): Likewise.
10938         * i386.h (sse_andti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
10939         sse_andti3,
10940         sse_andnti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
10941         sse_andnti3,
10942         sse_orti4_df_1, sse_orti3_df_2, sse_orti3_sf_1, sse_orti3_sf_2,
10943         sse_orti3,
10944         sse_xorti4_df_1, sse_xorti3_df_2, sse_xorti3_sf_1, sse_xorti3_sf_2,
10945         sse_xorti3): Kill.
10946         (sse_andv4sf3, sse_andnv4sf3, sse_orv2df3, sse_xorv2df3, sse_andv2df3,
10947          sse_andnv2df3, sse_orv2df3, sse_xorv2df3): New expanders.
10948         (*sse_andv4sf3, *sse_andnv2df3, *sse_orv4sf3, *sse_xorv4sf3, *sse_andv2df3,
10949          *sse_andnv2df3, *sse_orv2df3, *sse_xorv2df3): New patterns.
10950         (*sse_andsf3, *sse_andndf3, *sse_ordf3, *sse_xordf3, *sse_anddf3,
10951          *sse_andndf3, *sse_orv2df3, *sse_xorv2df3): New patterns.
10952
10953         * xmmintrin.h (__m128i): Define as __v2di.
10954
10955         PR c++/6419
10956         (expand_expr): Use DECL_RTL_SET_P.
10957
10958 2002-10-14  Roger Sayle  <roger@eyesopen.com>
10959
10960         * combine.c (simplify_set):  Treat MODE_CC registers like cc0.
10961
10962 2002-10-14  Roger Sayle  <roger@eyesopen.com>
10963             Zack Weinberg <zack@codesourcery.com>
10964
10965         * config/i386/i386.c (k6_cost): Correct typo.
10966
10967 2002-10-14  Mark Mitchell  <mark@codesourcery.com>
10968
10969         PR optimization/6631
10970         * alias.c (objects_must_conflict_p): Check honor_readonly when
10971         examining TYPE_READONLY.
10972         * function.c (assign_stack_temp_for_type): Likewise.
10973
10974 2002-10-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
10975
10976         * config/alpha/alpha.md (extendsidi2_nofix, extendsidi2_fix):
10977         Swap zero extension arguments.
10978         (umaxhi3): Fix instruction class.
10979         PR target/7211
10980         (prefetch): Fix prefetch instructions.
10981         PR target/7238
10982         (pkwb): Fix output constraint.
10983
10984 2002-10-14  Alexandre Oliva  <aoliva@redhat.com>
10985
10986         * config/mips/mips.c (print_operand): Increase buffer size for
10987         real numbers.
10988
10989 2002-10-14  Richard Henderson  <rth@redhat.com>
10990
10991         PR opt/8165
10992         * gcse.c (adjust_libcall_notes): Revert last change.
10993         * simplify-rtx.c (simplify_replace_rtx): Handle LO_SUM.
10994
10995 2002-10-14  Andrew Haley  <aph@redhat.com>
10996
10997         * tree-inline.c (remap_block): All local class initialization
10998         flags go in the outermost scope.
10999         (expand_call_inline): Call java_inlining_map_static_initializers.
11000         (expand_call_inline): Call java_inlining_merge_static_initializers.
11001         * java/lang.c (merge_init_test_initialization): New.
11002         (java_inlining_merge_static_initializers): New.
11003         (inline_init_test_initialization): New.
11004         (java_inlining_map_static_initializers): New.
11005
11006         * tree-inline.c (expand_call_inline): Convert retvar to expected
11007         type.
11008
11009 2002-10-14  Graham Stott  <graham.stott@btinternet.com>
11010
11011         * stmt.c (decl_conflicts_with_clobbers_p): Add REG_P check.
11012
11013 2002-10-14  Aldy Hernandez  <aldyh@redhat.com>
11014
11015         * stmt.c: Fix typo in comment.
11016
11017 Mon Oct 14 11:35:49 2002  J"orn Rennecke <joern.rennecke@superh.com>
11018
11019         * c-common.c (c_common_type_for_mode): Add V2HImode case.
11020         * tree.c (build_common_tree_nodes_2): Initialize
11021         unsigned_V2HI_type_node and V2HI_type_node.
11022         * tree.h (enum tree_index): Add TI_UV2HI_TYPE and TI_V2HI_TYPE.
11023         (unsigned_V2HI_type_node, V2HI_type_node): Define.
11024
11025 2002-10-14  Jakub Jelinek  <jakub@redhat.com>
11026
11027         * config/i386/i386.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP):
11028         Handle TARGET_64BIT.
11029
11030 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
11031
11032         * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
11033         * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
11034         (MULTILIB_DIRNAMES): Remove long32.
11035         (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
11036         (MULTILIB_REDUNDANT_DIRS): Remove.
11037
11038 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
11039
11040         * doc/tm.texi (DRIVER_SELF_SPECS): Document.
11041         * gcc.c (driver_self_specs): New variable.
11042         (do_self_spec): New function.
11043         (main): Use it to process driver_self_specs.
11044
11045 2002-10-13  Richard Henderson  <rth@redhat.com>
11046
11047         * config/i386/i386.c (ix86_function_ok_for_sibcall): Reject
11048         indirect sibcalls when regparm >= 3.
11049
11050         * config/i386/i386.c (sibcall_insn_operand): New.
11051         * config/i386/i386.h (PREDICATE_CODES): Update.
11052         * config/i386/i386-protos.h: Update.
11053         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
11054
11055         * rtl.c (shallow_copy_rtx): Use memcpy for the entire node.
11056
11057 2002-10-12  Roger Sayle  <roger@eyesopen.com>
11058
11059         * simplify-rtx.c (simplify_binary_operation) [ASHIFTRT]: Optimize
11060         arithmetic right shifts of ~0 during RTL simplifications.
11061
11062 2002-10-12  Neil Booth  <neil@daikokuya.co.uk>
11063
11064         PR preprocessor/7862
11065         PR preprocessor/8190
11066         * gcc.c (cpp_unique_options): Don't delete .d files.
11067         Remove stray whitespace.
11068
11069 2002-10-12  Naohiko Shimizu  <pshimizu@fa2.so-net.ne.jp>
11070
11071         * pdp11.h (ASM_OUTPUT_SKIP): Add preceding 0 for octal constant.
11072         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
11073         * pdp11.c (pdp11_output_function_prologue): 0%o -> %#o.
11074         (pdp11_output_function_epilogue, output_ascii): Likewise.
11075         (output_addr_const_pdp11): Likewise.
11076         * pdp11.md (movdi): Use offsetable memory for floating store.
11077         (lshrsi3, negsi2): Delete irrelevant comment.
11078
11079 2002-10-11  Andreas Bauer  <baueran@in.tum.de>
11080
11081         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
11082         indirect calls to be sibcall optimized.
11083         * config/i386/i386.md (sibcall_1): New.
11084         (call_1): Add no-sibcalls condition.
11085         (sibcall_value_1): New.
11086         (call_value_1): Add no-sibcalls condition.
11087
11088 2002-10-11  Eric Christopher  <echristo@redhat.com>
11089
11090        * output.h (default_valid_pointer_mode): Declare.
11091        * varasm.c (default_valid_pointer_mode): Define.
11092        * target-def.h (TARGET_VALID_POINTER_MODE): Use.
11093        * target.h: Ditto.
11094        * tree.c (build_pointer_type_for_mode): New function.
11095        (build_pointer_type): Use.
11096        (build_reference_type_for_mode): New function.
11097        (build_reference_type): Use.
11098        * tree.h: Declare new functions.
11099        * c-common.c (handle_mode_attribute): Use new functions, check
11100        for type.
11101        * stor-layout.c (layout_type): Depend on machine mode for
11102        REFERENCE_TYPE and POINTER_TYPE.
11103        * dwarf2out.c (simple_type_size_in_bits): Move upward in file.
11104        (modified_type_die): Use instead of PTR_SIZE for POINTER_TYPE
11105        and REFERENCE_TYPE.
11106        * config/mips/mips.c (mips_valid_pointer_mode): New function.
11107        (TARGET_VALID_POINTER_MODE): Use and define.
11108        * config/mips/mips-protos.h (mips_valid_pointer_mode): Declare.
11109
11110 2002-10-11  Geoffrey Keating  <geoffk@apple.com>
11111
11112         * cse.c (mention_regs): Set SUBREG_TICKED to the register number,
11113         not the address of the REG.
11114         (struct cse_reg_info): Make subreg_ticked unsigned.
11115
11116 2002-10-11  Janis Johnson  <janis187@us.ibm.com>
11117
11118         * doc/compat.texi: Add info about C++ libraries.
11119
11120 2002-10-11  Richard Henderson  <rth@redhat.com>
11121
11122         PR opt/8165
11123         * gcse.c (adjust_libcall_notes): Also adjust notes for INSN.
11124
11125 2002-10-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11126
11127         * cfganal.c (dfs_enumerate_from): Use PARAMS.
11128         * genautomata.c (output_insn_code_cases): Likewise.
11129         * real.c (real_format): Likewise.
11130         * tree.c (tree_size): Revise expressions using TREE_CODE_LENGTH to
11131         ensure value is promoted before doing subtraction.
11132
11133 Fri Oct 11 22:22:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
11134
11135         * calls.c (expand_call): Simplify noreturn call.
11136
11137         PR c/7344
11138         * cfgbuild.c (make_edges): Create edge cache when we do have
11139         large jumptable.
11140         * expr.c (do_tablejump): Note size of maximal jumptable.
11141         * function.c (prepare_function_start): Zero out size.
11142         * function.h (function): Add max_jumptable_ents.
11143
11144         * cfgcleanup.c (insn_match_p): Verify sibcall flag for calls to.
11145
11146 Fri Oct 11 12:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
11147
11148         * sh.md (movv8qi_i+2): For V8QI destinations, generate V4HI
11149         register for mperm_w operation.
11150
11151 Fri Oct 11 10:56:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
11152
11153         * emit-rtl.c (gen_lowpart_common): When asked to make a vector from
11154         an integer, use simplify_gen_subreg.
11155
11156 2002-10-10  Diego Novillo  <dnovillo@redhat.com>
11157
11158         * calls.c (flags_from_decl_or_type): Make extern.
11159         (ECF_*): Move ...
11160         * rtl.h (ECF_*): ... here.
11161         (flags_from_decl_or_type): Declare.
11162
11163 2002-10-10  Roger Sayle  <roger@eyesopen.com>
11164             Nathan Sidwell <nathan@codesourcery.com>
11165
11166         * fold-const.c (fold) [RSHIFT_EXPR]: Optimize arithmetic right
11167         shifts of the form -1 >> x.
11168
11169 Thu Oct 10 16:52:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
11170
11171         * cfgcleanup.c (insn_match_p): Verify sibcall flag for calls to.
11172
11173 2002-10-10  Aldy Hernandez  <aldyh@redhat.com>
11174
11175         * extend.texi (Vector Extensions): Remove comment about single
11176         element vectors.
11177
11178 2002-10-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11179
11180         * fold-const.c (size_htab_hash): Use htab_hash_pointer.
11181         * function.c (insns_for_mem_hash): Likewise.
11182         * varasm.c (STRHASH): Likewise.
11183
11184 2002-10-10  Stuart Hastings  <stuart@apple.com>
11185
11186         * cse.c (struct cse_reg_info): Add subreg_ticked.
11187         (SUBREG_TICKED): New.
11188         (get_cse_reg_info): Initialize SUBREG_TICKED.
11189         (mention_regs): Use it.
11190         (invalidate): Set SUBREG_TICKED.
11191         (invalidate_for_call): Likewise.
11192         (addr_affects_sp_p): Likewise.
11193
11194 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
11195
11196         * config/i386/i386.md (tls_local_dynamic_base): Put pic reg
11197         into proper operand.
11198
11199 2002-10-10  Denis Chertykov  <denisc@overta.ru>
11200
11201         * config/ip2k/ip2k.c (function_epilogue): Optimize stack
11202         deallocation.
11203         * config/ip2k/libgcc.S: Combine routines used by function
11204         epilogue.
11205
11206 2002-10-10  Jim Wilson  <wilson@redhat.com>
11207
11208         * cse.c (fold_rtx): Don't perform associative optimization for DIV and
11209         UDIV.
11210
11211 2002-10-10  David Edelsohn  <edelsohn@gnu.org>
11212
11213         * config/rs6000/aix52.h: New file.
11214         * config/rs6000/t-aix52: New File.
11215         * config.gcc (rs6000-ibm-aix5.1.*): New entry.
11216         (rs6000-ibm-aix[56789].*): Default to AIX 5.2.
11217
11218 Thu Oct 10 19:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
11219
11220         PR target/5610
11221         * invoke.texi (-msse-math): Kill
11222         (-msse): Add note to mfpmath=sse.
11223
11224 Thu Oct 10 17:08:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
11225
11226         PR target/7723
11227         * i386.c (ix86_expand_vector_move): Do not generate const0->mem moves.
11228
11229 2002-10-10  Neil Booth  <neil@daikokuya.co.uk>
11230
11231         PR preprocessor/8179
11232         * gcc.c (cpp_options): Add {ansi}, move %{m*} to same location
11233         as cc1_options.
11234         (default_compilers): Pass debug options when preprocessing
11235         stdin.
11236
11237 2002-10-06  Richard Henderson  <rth@redhat.com>
11238
11239         * toplev.c (rest_of_compilation): Revert opt/2960 change.
11240
11241 Wed Oct  9 21:18:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
11242
11243         * i386.c (*_cost): Add branch costs.
11244         (override_options): set ix86_branch_cost.
11245         (ix86_expand_int_movcc): Use BRANCH_COST.
11246         * i386.h (costs): Add branch_cost.
11247
11248 2002-10-09  Zack Weinberg  <zack@codesourcery.com>
11249
11250         PR c/7353
11251         * c-decl.c (start_decl): Unconditionally issue error for
11252         'typedef foo = bar'.
11253         (finish_decl): Remove special case for TYPE_DECL with initializer.
11254
11255         * doc/extend.texi: Delete "Naming Types" section.  Change all
11256         cross-references to that section to refer to "Typeof" instead.
11257         Add the useful safe-max()-macro example from "Naming Types" to
11258         "Typeof", rewritten using that extension.  Add some compatibility
11259         notes to "Typeof."
11260
11261 2002-10-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11262
11263         * loop.c: Revert 2002-08-15 change.
11264         (LOOP_REGNO_NREGS): Ensure type is int.
11265
11266 2002-10-09  David Edelsohn  <edelsohn@gnu.org>
11267
11268         * config/rs6000/rs6000.md (extenddftf2): Change to define_insn
11269         which copies first FPR and clears second.
11270         (extendsftf2): Same.
11271         (floatditf2): Fix typo.
11272         (floatsitf2): Same.
11273         (fix_trunctfdi2): Same.
11274         (fix_trunctfsi2): Same.
11275
11276 2002-10-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11277
11278         * conflict.c (arc_hash): Change return type to hashval_t.
11279         * cselib.c (get_value_hash): Likewise.
11280         * genautomata.c (automaton_decl_hash, insn_decl_hash, decl_hash,
11281         state_hash, automata_list_hash): Likewise.
11282         * read-rtl.c (def_hash): Likewise.
11283         * tree.c (type_hash_hash): Likewise.
11284
11285 2002-10-08  Aldy Hernandez  <aldyh@redhat.com>
11286
11287         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Call
11288         prologue_epilogue_contains instead of using REG_MAYBE_DEAD notes.
11289
11290 Wed Oct  9 15:54:49 2002  J"orn Rennecke <joern.rennecke@superh.com>
11291
11292         * sh.md (ffssi2): Fix emitted code.
11293
11294 2002-10-09  Ulrich Weigand  <uweigand@de.ibm.com>
11295
11296         * cse.c (insn_live_p): Pass insn pattern, not full insn
11297         to may_trap_p.
11298
11299 2002-10-09  Neil Booth  <neil@daikokuya.co.uk>
11300
11301         * cppmacro.c (paste_tokens): Only allow / to paste with =.
11302
11303 2002-10-09  David Edelsohn  <edelsohn@gnu.org>
11304
11305         * config/rs6000/rs6000.md (movdf splitter): Use gen_int_mode on
11306         64-bit hosts.
11307         (movtf_internal): Reference correct displacement for second value
11308         in memory.
11309         (movtf splitter): Correct generation of constants in 64-bit mode.
11310
11311 2002-10-09  Alan Modra  <amodra@bigpond.net.au>
11312
11313         * libgcc2.c (__floatdisf): Properly cure double rounding.
11314
11315 2002-10-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11316
11317         * c-common.c (cb_register_builtins): Define __WCHAR_MAX__.
11318         * doc/cpp.texi (Common Predefined Macros): Document.
11319
11320 2002-10-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11321
11322         PR doc/7484
11323         * doc/invoke.texi (Option Summary): List
11324         -Wmissing-declarations as a C only option.
11325
11326 2002-10-08  Roger Sayle  <roger@eyesopen.com>
11327
11328         * fold-const.c (fold) [LROTATE_EXPR, RROTATE_EXPR]: Optimize
11329         left and right rotates of ~0, i.e. integer_all_onesp (arg0).
11330         [LSHIFT_EXPR, RSHIFT_EXPR]: Optimize shifts and rotates of zero.
11331
11332 Tue Oct  8 01:24:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
11333
11334         * i386.c (x86_sse_partial_reg_dependency, x86_sse_partial_regs,
11335         x86_sse_typeless_stores, x86_sse_load0_by_pxor): New global
11336         variables.
11337         (safe_vector_operand): Update sse_clrv4sf call.
11338         (ix86_expand_buildin): Likewise
11339         * i386.h (x86_sse_partial_reg_dependency, x86_sse_partial_regs,
11340         x86_sse_typeless_stores, x86_sse_load0_by_pxor): Declare.
11341         (TARGET_SSE_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REGS,
11342         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_TYPELESS_LOAD0): New
11343         macros.
11344         * i386.md (movsf*, movdf*, movti, movv4sf, movv2df, movv16qi, movv8hi,
11345         movv4si):  Obey the new flags.
11346         (floatsi2sf, floatdi2sf, truncatedf2sf): Emit extra load of 0 to avoid
11347         reformating penalty.
11348         (anddf, cmov patterns): Avoid reformating by first converting.
11349         (sse_cvtsd2ss): Fix predicate.
11350         (sse2_clrti): Fix mode,
11351         (sse_clrv4sf): Avoid unspec.
11352
11353 2002-10-08  Jakub Jelinek  <jakub@redhat.com>
11354
11355         * config/sparc/t-linux64 (MULTILIB_OPTIONS): Remove
11356         mno-app-regs|mcmodel=medany.
11357         (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES): Remove alt.
11358         (MULTILIB_EXCEPTIONS, MULTILIB_EXCLUSIONS, MULTILIB_MATCHES): Remove.
11359         (CRTSTUFF_T_CFLAGS): Define.
11360
11361 2002-10-08  Roger Sayle  <roger@eyesopen.com>
11362
11363         PR target/8087
11364         * simplify-rtx.c (avoid_constant_pool_reference):  Allow constant
11365         pool references that are constructed using LO_SUM.
11366
11367 2002-10-08  Nathan Sidwell  <nathan@codesourcery.com>
11368
11369         * c-opts.c (c_common_decode_option): Add warn_strict_aliasing to
11370         -Wall.
11371         * c-typeck.c (build_c_cast): Use warn_strict_aliasing, tweak
11372         message.
11373         * flags.h (warn_strict_aliasing): Declare.
11374         * toplev.c (warn_strict_aliasing): Define.
11375         (lang_independent_options): Add it.
11376         * doc/invoke.texi (-Wstrict-aliasing): Document it.
11377
11378 2002-10-08  Zack Weinberg  <zack@codesourcery.com>
11379
11380         * system.h (GCCBUGURL): Delete.
11381         * version.c (bug_report_url): New.  Add commentary about
11382         modifying both these strings in modified distributions.
11383         * version.h: Declare bug_report_url.
11384
11385         * diagnostic.c, gcc.c, gcov.c: Globally replace GCCBUGURL with
11386         bug_report_url.
11387
11388 2002-10-08  Nick Clifton  <nickc@redhat.com>
11389
11390         * config/rs6000/spe.h (__ev_set_acc_u64): Use __ev_create_u64 to
11391         convert uint64_t into __ev64_opaque__.
11392         (__ev_set_acc_s64): Likewise, but using signed types.
11393
11394 2002-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
11395
11396         * config/s390/s390.md ("*doloop_si_long"): Add missing operand.
11397         ("*doloop_di_long"): Likewise.
11398
11399 Tue Oct  8 16:50:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
11400
11401         * print-rtl.c (print_rtx): Increase buffer size for real numbers.
11402
11403 2002-10-08  Richard Sandiford  <rsandifo@redhat.com>
11404
11405         * config/mips/mips.md (define_attr cpu): Add r4111.
11406
11407 2002-10-08  Anthony Green  <green@redhat.com>
11408
11409         * bitmap.c (bitmap_equal_p): Clear all bitmap_head fields.
11410
11411 2002-10-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11412
11413         * config/c4x/c4x.c (c4x_print_operand): Enlarge buffer
11414         for REAL_VALUE_TO_DECIMAL output.
11415
11416 2002-10-07  Richard Henderson  <rth@redhat.com>
11417
11418         * cse.c (fixed_base_plus_p): Turn FIXED_BASE_PLUS_P into a
11419         function; cleanup PLUS case by using recursion.  Update all users.
11420         (NONZERO_BASE_PLUS_P): Remove.
11421         (find_comparison_args): Use rtx_addr_can_trap_p instead.
11422         (fold_rtx): Use nonzero_address_p.
11423         * rtl.h (nonzero_address_p): Declare.
11424         * rtlanal.c (rtx_varies_p): Handle ADDRESSOF.
11425         (rtx_addr_can_trap_p): Likewise.
11426         (nonzero_address_p): New.
11427         * simplify-rtx.c (NONZERO_BASE_PLUS_P): Remove.
11428         (simplify_relational_operation): Use nonzero_address_p.
11429
11430 2002-10-07  David Edelsohn  <edelsohn@gnu.org>
11431
11432         * config/rs6000/rs6000.c (rs6000_override_options): Set
11433         real_format_for_mode for IBM extended format, if enabled.
11434         (easy_fp_constant): Add TFmode.
11435         (rs6000_legitimize_address): Add TFmode.
11436         (rs6000_legitimate_address): Same.
11437         (function_arg_advance): TFmode uses two FPRs.
11438         (rs6000_emit_prologue): Fix warning.
11439         (rs6000_output_function_epilogue): Add TFmode.
11440         (output_toc): Add TFmode.
11441         * rs6000.h (SLOW_UNALIGNED_ACCESS): Add TFmode.
11442         (LEGITIMATE_OFFSET_ADDRESS_P): Add TFmode.
11443         * rs6000.md (movtf splitter): Load TFmode constant.
11444
11445 2002-10-07  Dale Johannesen  <dalej@apple.com>
11446
11447         * rtl.h:  Add NOTE_PRECONDITIONED.
11448         * unroll.c:  Set it.
11449         * loop.c:  Set loop_info->preconditioned from it.
11450         * doloop.c:  Permit doloop treatment when loop_info->preconditoned.
11451
11452 2002-10-07  Richard Henderson  <rth@redhat.com>
11453
11454         * config/i960/i960.c (i960_setup_incoming_varargs): Create a
11455         new rtx for comparing the argument pointer against zero.
11456         (i960_va_start): Similarly.
11457
11458 2002-10-07  Richard Henderson  <rth@redhat.com>
11459
11460         * config/i960/i960.md (*): Use TFmode, not XFmode.
11461         * config/i960/i960.c (*): Likewise.
11462         (i960_arg_size_and_align): Remove XFmode alignment hack.
11463         (i960_round_align): Merge code from ROUND_TYPE_ALIGN.
11464         * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Use 128, not 96.
11465         (MAX_LONG_DOUBLE_TYPE_SIZE): Likewise.
11466         (DATA_ALIGNMENT, ROUND_TYPE_SIZE): Remove.
11467
11468 2002-10-07  Richard Henderson  <rth@redhat.com>
11469
11470         * config/fp-bit.c (EXTENDED_FLOAT_STUBS): Flush out all XF/TFmode
11471         entry points; use void return value and argument list.
11472
11473 2002-10-06  Andreas Bauer  <baueran@in.tum.de>
11474
11475         * calls.c (expand_call): Fix function-is-volatile check.
11476
11477 2002-10-05  Naohiko Shimizu <nshimizu@keyaki.cc.u-tokai.ac.jp>
11478
11479         * t-pdp11: Add MULTILIB support for msoft-float.
11480         * pdp11.h (LEGITIMATE_CONSTANT_P): Fix soft-float case.
11481
11482         * t-pdp11: Add LIB2FUNCS_EXTRA.
11483         * pdp11.c (pdp11_output_function_prologue): Restrict offset to 16bit,
11484         add preceding 0 to the octal constant, rename 'fp' to 'r5', rename
11485         'fldd' to 'ldd', rename 'fstd' to 'std'.
11486         (pdp11_output_function_epilogue): Likewise.
11487         (output_move_quad): Make the comment gas compatible.
11488         (output_ascii): Add preceding 0 to the octal constant.
11489         (print_operand_address): Add pre_modify, post_modify.
11490         (output_addr_const_pdp11): Add preceding 0 to the octal constant.
11491         * pdp11.h (GO_IF_LEGITIMATE_ADDRESS) : Add 'movb' pre_modify case
11492         with the indication of Paul Koning.
11493         (PRINT_OPERAND): Fix floating constant.
11494         * pdp11.md (movdi): Restrict matching pattern.
11495         (movqi): Generalize the matching pattern.
11496         (movdf): Restrict matching pattern.
11497         (zero_extendqihi2): Change constant representation.
11498         (floatsidf2): Fix wrong operands.
11499         (addqi3): Fix wrong instruction name.
11500         (subqi3): Fix wrong instruction name.
11501         (andsi3, andhi3, andqi3): Simplify and fix to use 'bic'.
11502         (xorsi3): Fix wrong insn.
11503         (one_cmplqi2): Add two operand pattern.
11504         (lsrsi3): New.
11505         (negsi2): New.
11506         (call): Add register indirect case.
11507         (mod): Fix wrong subreg.
11508
11509 2002-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
11510             Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11511
11512         PR c/7411
11513         * expr.c (expand_expr) [PLUS]: Simplify after the operands
11514         have been expanded in EXPAND_NORMAL mode.
11515
11516 2002-10-06  Richard Henderson  <rth@redhat.com>
11517
11518         * config/rs6000/rs6000.md (load_toc_v4_PIC_2): Fix base constraint.
11519
11520 2002-10-06  Richard Henderson  <rth@redhat.com>
11521
11522         PR optimization/2960
11523         * toplev.c (rest_of_compilation): Don't copy_loop_headers if
11524         optimize_size.
11525
11526 2002-10-06  Alexandre Oliva  <aoliva@redhat.com>
11527
11528         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Override
11529         previously definitions.
11530
11531 2002-10-06  Frank Ch. Eigler  <fche@redhat.com>
11532
11533         * cppinit.c (init_standard_includes, parse_option): Use strncmp.
11534         * c-opts.c (find_opt): Similarly.
11535
11536 Sat Oct  5 22:48:06 CEST 2002  Jan Hubicka  <jh@suse.cz>
11537
11538         * athlon.md: rewrite to DFA.
11539         * i386 (ix86_adjust_cost): Drop memory latency code.
11540         (ia32_use_dfa_pipeline_interface): Return true for Athlon.
11541
11542 2002-10-05  Jakub Jelinek  <jakub@redhat.com>
11543
11544         * gcc.c (set_multilib_dir): Don't access *end.
11545         Use memcpy instead of strncpy.  Don't write beyond malloced buffer.
11546         (print_multilib_info): Don't show paths starting with ".:".
11547         * genmultilib: Add new option, "yes" if multilibs are enabled.
11548         Update comments.  If multilibs not enabled, print .:${osdirout}
11549         for each directory.  If multilibs are enabled, always print
11550         ${dirout}:${osdirout}, even if the two are the same.
11551         * Makefile.in (s-mlib): Pass @enable_multilib@ to genmultilib.
11552         Pass all MULTILIB_* variables to genmultilib even if
11553         --disable-multilib but MULTILIB_OSDIRNAMES is not empty.
11554
11555 2002-10-04  Zack Weinberg  <zack@codesourcery.com>
11556
11557         * gcc.c (process_command): Set .validated for -pipe.  Correct
11558         grammar in comment.
11559
11560 2002-10-04  Bruce Korb  <bkorb@gnu.org>
11561
11562         * fixinc/inclhack.def(hpux11_abs):  use format fix
11563         * fixinc/fixincl.x: regenerate
11564         * fixinc/tests/base/stdlib.h: accommodate new fix test
11565
11566 Sat Oct  5 19:42:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
11567
11568         * c-common.c (cb_register_builtins):  Use really_no_inline.
11569
11570 2002-10-04  David Edelsohn  <edelsohn@gnu.org>
11571
11572         * unroll.c (copy_loop_body): Remove REG_EQUAL note attached to
11573         copied instruction if the note is not loop invariant.
11574
11575 2002-10-04  Loren J. Rittle  <ljrittle@acm.org>
11576
11577         * gcc/ginclude/stddef.h: Support the FreeBSD 5 typedef system.
11578
11579 2002-10-04  Steve Ellcey  <sje@cup.hp.com>
11580
11581         * doc/invoke.texi (HPPA):  Add -mlinker-opt, -mgnu-ld,
11582         and -mhp-ld options to list of options.  Add -mgnu-ld
11583         and -mhp-ld option descriptions.
11584
11585 2002-10-04  Steve Ellcey  <sje@cup.hp.com>
11586
11587         * fixinc/inclhack.def (hpux11_abs):  New.
11588         (stdio_va_list): change __va_list__ to __gnuc_va_list.
11589         * fixinc/fixincl.x: Rebuild.
11590
11591 2002-10-04  Roger Sayle  <roger@eyesopen.com>
11592
11593         * config/i386/i386.h (processor_costs): Add new fields fadd,
11594         fmul, fdiv, fabs, fchs and fsqrt to costs structure.
11595         (RTX_COSTS): Use these fields to determine the RTX costs
11596         of floating point addition/subtraction, multiplication,
11597         division, fabs, negation and square root respectively.
11598         * config/i386/i386.c (size_cost): Provide instruction sizes
11599         for these new fields.
11600         (i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
11601         k6_cost, athlon_cost, pentium4_cost): Provide typical cycle
11602         counts for these new fields for all x86 processor variants.
11603
11604 2002-10-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11605
11606         * mips.c (mips_const_double_ok): Delete unused variable.
11607
11608         * gengtype.c (rtx_next): Change type to int.
11609
11610 2002-10-04  Andreas Jaeger  <aj@suse.de>
11611
11612         * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Fix value.
11613
11614 2002-10-04  Richard Henderson  <rth@redhat.com>
11615
11616         * real.h (SIGNIFICAND_BITS): Add one more word.
11617         (CONST_DOUBLE_FORMAT): Accomodate 6 words.
11618         * real.c (times_pten): New.
11619         (real_to_decimal, real_from_string): Use it.
11620         (sticky_rshift_significand): Use & to find modulus.
11621         (rshift_significand, lshift_significand): Likewise.
11622         (do_divide): Apply sticky bit after normalization.
11623         (real_to_decimal, real_to_hexadecimal): Fix sign of Inf and NaN.
11624
11625 2002-10-03  Andreas Bauer  <baueran@in.tum.de>
11626
11627         * doc/tm.texi (FUNCTION_OK_FOR_SIBCALL): Remove.
11628         (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
11629
11630 2002-10-03  Andreas Jaeger  <aj@suse.de>
11631
11632         * gengtype.c (adjust_field_rtx_def): Cast variables of type size_t
11633         to unsigned long, adjust printf format string.
11634         (output_mangled_typename): Likewise.
11635
11636 2002-10-03  Jason Thorpe  <thorpej@wasabisystems.com>
11637
11638         * config/vax/vax.c (vax_output_function_prologue): Use asm_fprintf.
11639         * config/vax/vax.h (VAX_FUNCTION_PROFILER_NAME): New.
11640         (FUNCTION_PROFILER): Rewrite to use ASM_GENERATE_INTERNAL_LABEL,
11641         assemble_name, asm_fprintf, and VAX_FUNCTION_PROFILER_NAME.
11642         (ASM_OUTPUT_MI_THUNK): Use asm_fprintf instead of REGISTER_PREFIX.
11643         (PRINT_OPERAND_PUNCT_VALID_P): Fix comment.
11644         * config/vax/elf.h (FUNCTION_PROFILER): Remove.
11645         (VAX_FUNCTION_PROFILER_NAME): Redefine as "__mcount".
11646
11647 2002-10-03  Mark Mitchell  <mark@codesourcery.com>
11648
11649         * doc/invoke.texi (-Wabi): Document mangling bug.
11650
11651 2002-10-04  Alan Modra  <amodra@bigpond.net.au>
11652
11653         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use a
11654         name for the tbtab label that depends on the function asm name.
11655         Don't output tbtab label unless optional_tbtab.
11656         (output_mi_thunk): Formatting.
11657
11658 2002-10-03  Richard Henderson  <rth@redhat.com>
11659
11660         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Move additional code ...
11661         * config/m68k/m68k.c (override_options): ... here.
11662         * config/m68k/m68kelf.h (OVERRIDE_OPTIONS): Remove.
11663         * config/m68k/m68kv4.h (OVERRIDE_OPTIONS): Remove.
11664         * config/m68k/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
11665         * config/m68k/netbsd-elf.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
11666
11667 2002-10-03  Richard Henderson  <rth@redhat.com>
11668
11669         * real.h (struct real_value): Use ENUM_BITFIELD.
11670
11671 2002-10-03  Richard Henderson  <rth@redhat.com>
11672
11673         * config/i960/i960.md (call, call_value): Use emit_call_insn.
11674
11675 2002-10-03  Steve Ellcey  <sje@cup.hp.com>
11676
11677         * config/pa/pa64-hpux.h (INIT_ENVIRONMENT): New.
11678
11679 2002-10-03  Steve Ellcey  <sje@cup.hp.com>
11680
11681         * config.gcc (hppa*64*-*-hpux11*): Check gnu_ld.
11682         * config/pa/pa.h (MASK_GNU_LD): New.
11683         (TARGET_GNU_LD): New.
11684         * config/pa/pa64-hpux.h (LINK_SPEC): Set based
11685         on gnu-ld and MASK_GNU_LD.
11686         (SUBTARGET_SWITCHES): New gnu-ld & hp-ld flags.
11687
11688 Thu Oct  3 23:35:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
11689
11690         * i386.c (athlon_cost): Fix the move costs.
11691
11692 Thu Oct  3 23:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
11693
11694         * final.c (final): Use symbol name as function name for profiling.
11695         * profile.c (get_exec_counts): Likewise.
11696         (branch_prob): Likewise.
11697
11698 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
11699
11700         * longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
11701
11702 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
11703
11704         * gcc.c (print_multi_os_directory): New variable.
11705         (option_map): Support --print-multi-os-directory.
11706         (struct prefix_list): Add os_multilib field.
11707         (multilib_os_dir): New variable.
11708         (static_specs): Add multilib_options.
11709         (find_a_file): Add multilib argument.  Search in GCC or OS multilib
11710         subdirs if nonzero.
11711         (read_specs, execute): Update callers.
11712         (find_file): Likewise.  Don't prefix name with multilib_dir, instead
11713         pass 1 as multilib option.
11714         (display_help): Include --print-multi-os-directory.
11715         (add_prefix): Add os_multilib argument.  Initialize pl->os_multilib.
11716         (process_command): Update callers.  Handle --print-multi-os-directory.
11717         (do_spec_1) ['D']: Use multilib_os_directory if pl->os_multilib is
11718         set.
11719         (main): Update find_a_file and add_prefix callers.
11720         Handle print_multi_os_directory.
11721         (struct mdswitchstr): New.
11722         (mdswitches, n_mdswitches): New variables.
11723         (used_arg): Add MULTILIB_DEFAULT switches too if they are not
11724         present on the command line nor their mutually incompatible
11725         switches.
11726         (default_arg): Optimize.
11727         (set_multilib_dir): Compute multilib_os_dir.  Initialize mdswitches
11728         array.
11729         (print_multilib_info): Only print GCC multilib dir name, not OS
11730         multilib dirname.
11731         * genmultilib: Add osdirnames parameter.  Output multilib_options
11732         variable.  If osdirnames is specified, output dirnames as
11733         dirname:osdirname.
11734         * mklibgcc.in: Use MULTILIB_OSDIRNAMES, --print-multi-directory
11735         and --print-multi-os-directory instead of SHLIB_SLIBDIR_SUFFIXES
11736         to compute libgcc_s soname and install path.
11737         * Makefile.in (libgcc.mk): Pass MULTILIB_OSDIRNAMES instead of
11738         SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
11739         (s_mlib): Pass MULTILIB_OSDIRNAMES or nothing as last genmultilib
11740         argument.
11741
11742         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Set.
11743         (SHLIB_SLIBDIR_SUFFIXES): Remove.
11744         * config/sparc/linux64.h (STARTFILE_SPEC32, STARTFILE_SPEC64,
11745         ENDFILE_SPEC32, ENDFILE_SPEC64, ENDFILE_COMMON): Remove.
11746         (STARTFILE_SPEC, ENDFILE_SPEC): Don't distinguish between -m32
11747         and -m64.
11748         * config/sparc/t-sol2-64 (MULTILIB_OSDIRNAMES): Set.
11749         (SHLIB_SLIBDIR_SUFFIXES): Remove.
11750         * config/sparc/sol2-bi.h (STARTFILE_ARCH64_SPEC): Remove.
11751         (STARTFILE_ARCH_SPEC): Remove.
11752         * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Set.
11753         (SHLIB_SLIBDIR_SUFFIXES): Remove.
11754         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
11755         * config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Set.
11756         (SHLIB_SLIBDIR_SUFFIXES): Remove.
11757
11758 Thu Oct  3 21:42:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
11759
11760         * predict.c (choose_function_section): Avoid choice for linkonce functions.
11761
11762 Thu Oct  3 15:15:00 CEST 2002  Jan Hubicka  <jh@suse.cz>
11763
11764         * i386.md (lea to mul peep2): Fix condition.
11765
11766 2002-10-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11767
11768         * pa-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete macro.
11769         * pa32-linux.h (FUNCTION_OK_FOR_SIBCALL): Define.
11770
11771 2002-10-02  David Mosberger-Tang  <David.Mosberger@acm.org>
11772
11773         * unwind.h (_Unwind_GetTextRelBase): Mark _C argument with
11774         attribute "unused".
11775
11776         * config/t-libunwind: Mention unwind-sjlj.c.
11777         * unwind-libunwind.c: Change #ifdef __USING_LIBUNWIND_EXCEPTIONS__
11778         to #ifndef __USING_SJLJ_EXCEPTIONS__.
11779
11780         * configure.in: Move sjlj-exceptions and --enable-libunwind-exceptions
11781         before inclusion of config.gcc, but after configuring the compiler etc.
11782         Determine default value for --enable-libunwind-exceptions based on
11783         whether the host has a libunwind library (not guaranteed to be correct,
11784         but it's a reasonable first guess and can always be overridden with an
11785         explicit --enable/disable-libunwind-exceptions.
11786         * config.gcc: For target ia64*-*-linux*, mention t-libunwind as a
11787         tmake_file when $use_libunwind_exceptions is enabled.
11788         * Makefile.in: Update comment: LIB2ADDEH is updated not just by
11789         ia64 (e.g., config/t-linux also updates it).
11790         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS]: Mention -lunwind
11791         along with the shared version of libgcc since the latter requires
11792         the former.
11793         * unwind-libunwind.c: New file.
11794         * config/t-libunwind: Ditto.
11795
11796 2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>
11797
11798         * config.gcc: Remove support for vax-*-vms*.
11799         * config/vax/vms.h: Remove.
11800         * config/vax/xm-vms.h: Remove.
11801         * config/vax/vax-protos.h: Remove VMS-specific code.
11802         * config/vax/vax.c: Remove VMS-specific code.
11803
11804 2002-10-02  Richard Henderson  <rth@redhat.com>
11805
11806         PR opt/7124
11807         * config/i386/i386.c (ix86_register_move_cost): Increase cost
11808         for secondary_memory_needed pairs.
11809
11810 2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>
11811
11812         * doc/vms.texi: Blow away false include file section.
11813
11814 2002-10-02  Roger Sayle  <roger@eyesopen.com>
11815
11816         PR optimization/6627
11817         * toplev.c (force_align_functions_log): New global variable.
11818         * flags.h (force_align_functions_log): Add extern prototype.
11819         * varasm.c (assemble_start_function): Use it to force minimum
11820         function alignment.
11821         * config/i386/i386.h (FUNCTION_BOUNDARY): Set the correct
11822         minimum function alignment to one byte.
11823         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Store the virtual bit in
11824         the least significant bit of vtable member function pointers.
11825         * tree.h (enum ptrmemfunc_vbit_where_t): Move definition to
11826         here from cp/cp-tree.h.
11827
11828 Wed Oct  2 17:01:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
11829
11830         * i386.c (print_operand_address): Use RIP addressing for offsetted
11831         label refs too.
11832
11833 2002-09-30  David S. Miller  <davem@redhat.com>
11834
11835         PR middle-end/7151
11836         * config/sparc/sparc.md (movdi_insn_sp32_v9): Accept 'e' regs.
11837         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
11838
11839 2002-10-01  Andreas Bauer  <baueran@in.tum.de>
11840
11841         * calls.c (expand_call): Remove the `no indirect check'
11842         for sibcall optimization; use function_ok_for_sibcall
11843         target hook; refine check for `function is volatile'.
11844         (FUNCTION_OK_FOR_SIBCALL): Remove the redefinition.
11845         * hooks.c (hook_tree_tree_bool_false): New.
11846         * hooks.h (hook_tree_tree_bool_false): Declare.
11847         * target-def.h (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
11848         (TARGET_INITIALIZER): Add it.
11849         * target.h (struct gcc_target): Add function_ok_for_sibcall.
11850         * config/alpha/alpha.c: (alpha_function_ok_for_sibcall): New.
11851         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
11852         * config/alpha/alpha.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
11853         * config/arm/arm-protos.h: (arm_function_ok_for_sibcall):
11854         Remove function declaration.
11855         * config/arm/arm.c: (arm_function_ok_for_sibcall): Make
11856         function static and accept another argument of type `tree'.
11857         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
11858         * config/arm/arm.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
11859         * config/frv/frv.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
11860         * config/i386/i386.c: (ix86_function_ok_for_sibcall): New.
11861         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
11862         * config/i386/i386.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
11863         * config/pa/pa-linux.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
11864         (TARGET_HAS_STUBS_AND_ELF_SECTIONS): New definition.
11865         * config/pa/pa.c: (pa_function_ok_for_sibcall): New.
11866         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
11867         * config/pa/pa.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
11868         * config/rs6000/rs6000-protos.h: (function_ok_for_sibcall):
11869         Remove function declaration.
11870         * config/rs6000/rs6000.c: (rs6000_function_ok_for_sibcall):
11871         Rename function_ok_for_sibcall to rs6000_function_ok_for_sibcall;
11872         rename first argument to `decl'; accept another argument
11873         of type `tree'; make static.
11874         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
11875         * config/rs6000/rs6000.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
11876         * config/sh/sh.c: (sh_function_ok_for_sibcall): New.
11877         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
11878         * config/sh/sh.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
11879         * config/sparc/sparc.c: (sparc_function_ok_for_sibcall): New.
11880         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
11881         * config/sparc/sparc.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
11882         * config/xtensa/xtensa.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
11883
11884 2002-10-01  Roger Sayle  <roger@eyesopen.com>
11885
11886         * unroll.c (loop_iterations): Revert 2002-09-08 change.
11887
11888 2002-10-01  Richard Henderson  <rth@redhat.com>
11889
11890         * real.c (real_to_decimal): Crop trailing zeros for DIGITS < 0.
11891         (real_to_hexadecimal): Likewise.
11892         * print-rtl.c (print_rtx): If we are linked with real.c, don't
11893         dump the XWINT fields of a floating point CONST_DOUBLE.
11894
11895 2002-10-01  Jason Thorpe  <thorpej@wasabisystems.com>
11896
11897         * config/vax/elf.h (FUNCTION_PROFILER): Fix __mcount call.
11898
11899 2002-10-01  Richard Henderson  <rth@redhat.com>
11900
11901         * calls.c (precompute_register_parameters): Force non-legitimate
11902         constants into pseudos.
11903
11904 2002-10-01  Nick Clifton  <nickc@redhat.com>
11905
11906         * config/rs6000/spe.md (spe_evrlwi): Add missing third operand
11907         to assembler template.
11908
11909 2002-10-01  Richard Henderson  <rth@redhat.com>
11910
11911         * dwarf2out.c (loc_descriptor_from_tree): Relax requirement
11912         for TLS debug info to !DECL_EXTERNAL.
11913
11914 2002-10-01  Matt Thomas  <matt@3am-software.com>
11915             Jason Thorpe  <thorpej@wasabisystems.com>
11916
11917         * config.gcc (vax-*-netbsdelf*): Enable configuration.
11918         * config/elfos.h (PCC_BITFIELD_TYPE_MATTERS): Define only
11919         if not already defined.
11920         * config/vax/elf.h: New file.
11921         * config/vax/netbsd-elf.h: New file.
11922         * config/vax/vax.c: Include "debug.h".
11923         (vax_output_function_prologue): Add dwarf2 support.  Use
11924         MAIN_NAME_P when checking for VMS_TARGET stack adjust.
11925         * config/vax/vax.h (CONST_OK_FOR_LETTER_P): Add cases for
11926         'J' [0..63], 'K' [-128..127], 'L' [-32768..32767],
11927         'M' [0..255], 'N' [0..65535], and, 'O' [-63..-1].
11928         (VAX_ISTREAM_SYNC): Remove.
11929         (INITIALIZE_TRAMPOLINE): Use gen_sync_istream.
11930         (JUMP_TABLES_IN_TEXT_SECTION): Define.
11931         (ASM_OUTPUT_REG_POP): Use reg_names for the stack pointer.
11932         (ASM_OUTPUT_ADDR_VEC_ELT): Use ASM_GENERATE_INTERNAL_LABEL
11933         and assemble_name.
11934         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11935         (PRINT_OPERAND_PUNCT_VALID_P): Accept '|'.
11936         (PRINT_OPERAND): Output REGISTER_PREFIX for '|'.
11937         (INCOMING_RETURN_ADDR_RTX): Define.
11938         * config/vax/vax.md (VUNSPEC_BLOCKAGE)
11939         (VUNSPEC_SYNC_ISTREAM): Define.
11940         (blockage): Use VUNSPEC_BLOCKAGE.
11941         (sync_istream): New insn.
11942
11943 2002-10-01  Richard Henderson  <rth@redhat.com>
11944
11945         * config/vax/vax.md (call_pop, *call_pop, call_value_pop)
11946         (*call_value_pop, call, call_value): Add dwarf2 EH support.
11947         (*call): New insn.
11948
11949 2002-10-01  Nathan Sidwell  <nathan@codesourcery.com>
11950
11951         PR c/8083
11952         * c-typeck.c (build_c_cast): Warn about type punning which breaks
11953         type based aliasing.
11954
11955 2002-10-01  Mark Mitchell  <mark@codesourcery.com>
11956
11957         * stor-layout.c (update_alignment_for_field): New function.
11958         (place_union_field): Use it.
11959         (place_field): Likewise.
11960
11961 2002-10-01  Nathan Sidwell  <nathan@codesourcery.com>
11962
11963         PR other/8077
11964         * gcc.c (cc1_options): Add space on -auxbase-strip.
11965
11966 2002-10-01  Jim Wilson  <wilson@redhat.com>
11967
11968         * config/v850/v850.h (EPILOGUE_USES): Define.
11969
11970 2002-09-30  Andrew Haley  <aph@redhat.com>
11971
11972         * flow.c (insn_dead_p): When using non-call-exceptions, don't
11973         eliminate insns that may trap.
11974         * cse.c (insn_live_p): Likewise.
11975
11976 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
11977
11978         * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
11979         (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
11980         * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
11981         * config/mips/mips.md: Apply same renaming here.
11982
11983 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
11984
11985         * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
11986         (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
11987         * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
11988         * config/mips/mips.md (define_attr cpu): Remove r4320.
11989         Remove vr4320 scheduler and uses of TARGET_MIPS4320.
11990
11991 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
11992
11993         * config/mips/mips.c (mips16_strings): New variable.
11994         (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
11995         symbol in mips16_strings.  Free the list.
11996         (mips_encode_section_info): Keep track of local strings.
11997
11998 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
11999
12000         * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
12001         (sordered_df, sordered_sf): Remove.
12002         * config/mips/mips.c (get_float_compare_codes): New fn.
12003         (gen_int_relational, gen_conditional_move): Use it.
12004
12005 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
12006
12007         * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
12008         * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
12009         * config/mips/mips.c (fcc_register_operand): New function.
12010         (mips_emit_fcc_reload): New function, extracted from reload_incc.
12011         (override_options): Allow TFmode values in float registers
12012         if ISA_HAS_8CC.
12013         * cnfig/mips/mips.md (reload_incc): Change destination prediate
12014         to fcc_register_operand.  Remove misleading source constraint.
12015         Use mips_emit_fcc_reload.
12016         (reload_outcc): Duplicate reload_incc.
12017
12018 2002-09-30  Zack Weinberg  <zack@codesourcery.com>
12019
12020         * gcc.c (validate_switches): Handle all new forms of spec
12021         syntax introduced recently.  Now returns a char *.
12022         (validate_all_switches): Repetitive logic broken out to...
12023         (validate_switches_from_spec): ...here.
12024         * mklibgcc.in: Don't @-flag commands to generate .oS files.
12025
12026 2002-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
12027
12028         * longlong.h: Partially synchronize with GMP-4.1 version:
12029         Use i370 definitions also for s390.
12030         Add generic definition of umul_ppmm in terms of smul_ppmm.
12031         [s390] (umul_ppmm): Remove.
12032         [s390] (smul_ppmm): Fix incorrect assembler constraints.
12033         [s390] (smul_ppmm, sdiv_qrnnd): Rename __xx to __x.
12034
12035 2002-09-30  Bob Wilson  <bob.wilson@acm.org>
12036
12037         * config/xtensa/xtensa.h (REG_CLASS_NAMES, REG_CLASS_CONTENTS):
12038         Add new RL_REGS register class.
12039         (PREFERRED_RELOAD_CLASS, PREFERRED_OUTPUT_RELOAD_CLASS):
12040         Call xtensa_preferred_reload_class for both input and output reloads.
12041         * config/xtensa/xtensa.c (xtensa_regno_to_class): Use new RL_REGS class.
12042         (xtensa_preferred_reload_class): Handle output reloads; use RL_REGS
12043         instead of either AR_REGS or GR_REGS classes.
12044         (xtensa_secondary_reload_class): Use new RL_REGS class.
12045         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class): Update.
12046
12047 2002-09-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12048
12049         * pa.c (hppa_encode_label): Don't drop '*' from function labels.
12050         (pa_strip_name_encoding): Strip '@' and '*', in that order.
12051         * pa.h (ASM_OUTPUT_LABELREF): Output user_label_prefix except when
12052         there is a '*' prefix in NAME.
12053
12054 Mon Sep 30 21:33:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
12055
12056         * reload.c (push_reload): Handle subregs and secondary memory.
12057         * reload1.c (gen_reload): Likewise.
12058
12059         * jump.c (reg_or_subregno): New function.
12060         * rtl.h (reg_or_subregno): Declare
12061         * unroll.c (find_splittable_givs): Handle subregs.
12062
12063 2002-09-30  Mark Mitchell  <mark@codesourcery.com>
12064
12065         * store-layout.c (finish_record_layout): Add free_p parameter.
12066         (layout_type): Pass it.
12067         * tree.h (finish_record_layout): Update prototype.
12068
12069 Mon Sep 30 14:57:18 CEST 2002  Jan Hubicka  <jh@suse.cz>
12070
12071         * i386.h (TARGET_CPP_CPU_BUILTINS): Define __SSE_MATH__.
12072
12073         * gcse.c (cprop_jump): Check that the register has not
12074         been modified
12075         (cprop_jump): Likewise.
12076
12077 2002-09-30  Richard Earnshaw  <rearnsha@arm.com>
12078
12079         * arm.h (BASE_REG_CLASS): Always return LO_REGS for Thumb.
12080         (MODE_BASE_REG_CLASS, case Thumb): Only return BASE_REGS if we know
12081         that we have a SImode access, and only then if reload hasn't completed;
12082         for all other cases, use LO_REGS.
12083
12084 2002-09-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12085
12086         * openbsd.h: Fix typo in last change.
12087
12088 2002-09-29  Richard Henderson  <rth@redhat.com>
12089
12090         * real.c (real_from_string): Apply sign last.  Tidy exponent handling.
12091
12092 2002-09-29  Richard Henderson  <rth@redhat.com>
12093
12094         PR c/8002
12095         * combine.c (force_to_mode): Handle FLOAT_MODE destinations
12096         for CONST_INT.
12097
12098 2002-09-29  David Edelsohn  <edelsohn@gnu.org>
12099
12100         * real.h (ibm_extended_format): Declare.
12101         * real.c (encode_ibm_extended, decode_ibm_extended): New
12102         functions.
12103
12104 2002-09-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12105
12106         * darwin-protos.h (darwin_asm_output_dwarf_delta): Prototype.
12107
12108         * ia64.c (ia64_hpux_asm_file_end): Const-ify.
12109
12110 2002-09-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12111
12112         * expmed.c (extract_bit_field): Fix bit-field extraction from SUBREGs.
12113
12114 2002-09-29  Kazu Hirata  <kazu@cs.umass.edu>
12115
12116         * builtins.def: Fix comment formatting.
12117         * c-common.def: Likewise.
12118         * cfgcleanup.c: Likewise.
12119         * combine.c: Likewise.
12120         * gengtype.c: Likewise.
12121         * params.def: Likewise.
12122         * predict.def: Likewise.
12123         * rtl.def: Likewise.
12124         * stab.def: Likewise.
12125         * stor-layout.c: Likewise.
12126         * tree.def: Likewise.
12127         * config/darwin.c: Likewise.
12128         * config/darwin.h: Likewise.
12129         * config/dbxcoff.h: Likewise.
12130         * config/elfos.h: Likewise.
12131         * config/fp-bit.c: Likewise.
12132         * config/freebsd-spec.h: Likewise.
12133         * config/interix.h: Likewise.
12134         * config/libgloss.h: Likewise.
12135         * config/linux-aout.h: Likewise.
12136         * config/linux.h: Likewise.
12137         * config/lynx-ng.h: Likewise.
12138         * config/lynx.h: Likewise.
12139         * config/netbsd-aout.h: Likewise.
12140         * config/netbsd.h: Likewise.
12141         * config/netware.h: Likewise.
12142         * config/psos.h: Likewise.
12143         * config/ptx4.h: Likewise.
12144
12145 2002-09-28  Kazu Hirata  <kazu@cs.umass.edu>
12146
12147         * ChangeLog.4: Fix typos.
12148         * ChangeLog.6: Likewise.
12149         * FSFChangeLog.10: Likewise.
12150         * genattrtab.c: Fix comment typos.
12151         * haifa-sched.c: Likewise.
12152         * real.c: Likewise.
12153         * tree.h: Likewise.
12154         * config/arm/arm.c: Likewise.
12155         * config/arm/crti.asm: Likewise.
12156         * config/arm/crtn.asm: Likewise.
12157         * config/frv/frv.c: Likewise.
12158         * config/frv/frv.md: Likewise.
12159         * config/h8300/h8300.md: Likewise.
12160         * config/i386/rtemself.h: Likewise.
12161         * config/ia64/unwind-ia64.c: Likewise.
12162         * config/ip2k/ip2k.h: Likewise.
12163         * config/m88k/m88k.c: Likewise.
12164         * config/m88k/m88k.md: Likewise.
12165         * config/mips/sr71k.md: Likewise.
12166         * config/mmix/mmix.c: Likewise.
12167         * config/rs6000/rs6000.c: Likewise.
12168         * config/sh/sh.md: Likewise.
12169
12170 2002-09-26  Theodore A. Roth  <troth@verinet.com>
12171
12172         * config/avr/avr.c: Eliminate use of _PC_ in pc relative insns.
12173         * config/avr/avr.md: Ditto.
12174
12175 2002-09-27  Alexander N. Kabaev <ak03@gte.com>
12176
12177         PR preprocessor/8055
12178         * cppmacro.c (stringify_arg): Do not overflow the buffer
12179         with the terminating NUL when the argument to be stringified
12180         has no tokens.
12181
12182 2002-09-27  Richard Henderson  <rth@redhat.com>
12183
12184         * unroll.c (simplify_cmp_and_jump_insns): New.
12185         (unroll_loop): Use it.  Use simplify_gen_foo+force_operand
12186         instead of expand_simple_foo.
12187
12188 2002-09-27  Richard Henderson  <rth@redhat.com>
12189
12190         PR optimization/7520
12191         * cfganal.c (flow_active_insn_p): New.
12192         (forwarder_block_p): Use it.
12193
12194 2002-09-27  Richard Henderson  <rth@redhat.com>
12195
12196         * emit-rtl.c (active_insn_p): Revert last change.
12197
12198 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
12199
12200         * doc/extend.texi (tls_model): Document.
12201         * varasm.c (decl_tls_model): New.
12202         * c-common.c (handle_tls_model_attribute): New.
12203         (c_common_attribute_table): Add tls_model.
12204         * config/alpha/alpha.c (alpha_encode_section_info): Use
12205         decl_tls_model.
12206         * flags.h (enum tls_model, flag_tls_default): Move...
12207         * tree.h (enum tls_model, flag_tls_default): ...here.
12208         (decl_tls_model): New prototype.
12209         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
12210         * config/i386/i386.c (ix86_encode_section_info): Likewise.
12211         * config/i386/i386.md (tls_global_dynamic, tls_local_dynamic_base):
12212         Allow !flag_pic.
12213
12214 2002-09-27  Kazu Hirata  <kazu@cs.umass.edu>
12215
12216         * LANGUAGES: Follow spelling conventions.
12217         * rtl.def: Likewise.
12218         * sbitmap.c: Likewise.
12219         * sched-int.h: Likewise.
12220         * sched-rgn.c: Likewise.
12221         * sibcall.c: Likewise.
12222         * simplify-rtx.c: Likewise.
12223         * ssa.c: Likewise.
12224         * stab.def: Likewise.
12225         * stmt.c: Likewise.
12226         * stor-layout.c: Likewise.
12227         * target.h: Likewise.
12228         * timevar.c: Likewise.
12229         * toplev.c: Likewise.
12230         * tree-dump.c: Likewise.
12231         * tree-inline.c: Likewise.
12232         * tree.c: Likewise.
12233         * tree.def: Likewise.
12234         * tree.h: Likewise.
12235         * unroll.c: Likewise.
12236         * varasm.c: Likewise.
12237         * vmsdbgout.c: Likewise.
12238         * treelang/treelang.texi: Likewise.
12239         * treelang/treetree.c: Likewise.
12240
12241 2002-09-27  Kazu Hirata  <kazu@cs.umass.edu>
12242
12243         * config/h8300/h8300.c (compute_saved_regs): Use a macro
12244         instead of a hard register number.
12245         (get_shift_alg): Use an enumerated type instead of numbers.
12246         (h8300_shift_needs_scratch_p): Likewise.
12247
12248 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
12249
12250         * varasm.c (force_data_section): Remove.
12251         (assemble_constant_align): Likewise.
12252         * output.h: Remove corresponding prototypes.
12253
12254 2002-09-26  Roger Sayle  <roger@eyesopen.com>
12255
12256         * stmt.c (expand_exit_loop_if_false): Expand a simple conditional
12257         jump, if the loop to exit is the top of the current nesting stack.
12258
12259 2002-09-26  Torbjorn Granlund  <tege@swox.com>
12260
12261         * libgcc2.c (fixunsdfdi, fixunssfdi): Rewrite, avoiding `long long'
12262         arithmetic.
12263
12264 2002-09-26  David S. Miller  <davem@redhat.com>
12265
12266         PR optimization/7335
12267         * calls.c (emit_library_call_value_1): Passing args by reference
12268         converts a CONST function into a PURE one.
12269
12270 2002-09-26  David Edelsohn  <edelsohn@gnu.org>
12271
12272         * dbxout.c (FORCE_TEXT): Switch to current_function_decl, not
12273         text_section.
12274         * xcoffout.h (DBX_STATIC_BLOCK_START): Remove explicit change to
12275         text section.
12276         * config/rs6000/rs6000.c (rs6000_override_options): Allow
12277         function-sections and data-sections functionality on AIX.
12278
12279 2002-09-26  David Edelsohn  <edelsohn@gnu.org>
12280             Dale Johannesen  <dalej@apple.com>
12281
12282         * config/rs6000/rs6000.c (rs6000_emit_move): Insert zero-extend
12283         in RTL for sub-word loads from memory.
12284
12285 2002-09-26  Richard Henderson  <rth@redhat.com>
12286
12287         PR c/7160
12288         * sched-deps.c (sched_analyze_insn): Make clobber insns depend
12289         on call insns.
12290
12291 2002-09-26  Richard Henderson  <rth@redhat.com>
12292
12293         * emit-rtl.c (const_double_htab_eq): Remove unused variable.
12294
12295 2002-09-26  Chris Lattner  <sabre@nondot.org>
12296
12297         * ssa.c (rename_insn_1): Handle RENAME_NO_RTX correctly when
12298         handling undefined values.
12299
12300 2002-09-26  Richard Henderson  <rth@redhat.com>
12301
12302         PR opt/7520
12303         * emit-rtl.c (active_insn_p): Consider a clobber of the
12304         function return value to be active even after reload.
12305
12306 2002-09-27  Alan Modra  <amodra@bigpond.net.au>
12307
12308         * doloop.c (doloop_modify_runtime <biv skips initial incr>): Adjust
12309         by absolute loop increment, not loop increment.
12310
12311 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
12312
12313         * c-common.h: Follow spelling conventions.
12314         * cpplex.c: Likewise.
12315         * cpplib.h: Likewise.
12316         * gthr-dce.h: Likewise.
12317         * gthr-posix.h: Likewise.
12318         * optabs.c: Likewise.
12319         * output.h: Likewise.
12320         * profile.c: Likewise.
12321         * protoize.c: Likewise.
12322         * ra-rewrite.c: Likewise.
12323         * real.c: Likewise.
12324         * recog.c: Likewise.
12325         * reg-stack.c: Likewise.
12326         * regclass.c: Likewise.
12327         * regmove.c: Likewise.
12328         * reload.c: Likewise.
12329         * reload.h: Likewise.
12330         * reload1.c: Likewise.
12331         * reorg.c: Likewise.
12332         * resource.c: Likewise.
12333         * rtl.h: Likewise.
12334         * rtlanal.c: Likewise.
12335
12336 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
12337
12338         * config/ia64/ia64.c (ia64_expand_load_address): Ensure correct mode
12339         for symbol address.
12340
12341 2002-09-24  Eric Christopher  <echristo@redhat.com>
12342
12343         * config/mips/elf.h: Add HANDLE_SYSV_PRAGMA.
12344         * config/mips/elf64.h: Ditto.
12345
12346 2002-09-24  Eric Christopher  <echristo@redhat.com>
12347
12348         * except.c (expand_builtin_extract_return_address): Handle case
12349         where Pmode != ptr_mode.
12350
12351 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
12352
12353         * config/ia64/hpux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): New
12354
12355 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
12356
12357         * config/ia64/hpux.h (TARGET_DEFAULT): Include TARGET_ILP32.
12358
12359 2002-09-26  Igor Shevlyakov <igor@microunity.com>
12360
12361         * combine.c (simplify_set): Don't call to force_to_mode if size
12362         of integer type is larger than HOST_BITS_PER_WIDE_INT.
12363
12364 2002-09-26  Janis Johnson  <janis187@us.ibm.com>
12365
12366         * Makefile.in (qmtest-g++): Fix file path.
12367
12368 2002-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
12369
12370         * expr.c (expand_expr) [MINUS_EXPR]: Convert A - const to
12371         A + (-const) on RTX level, even for unsigned types.
12372
12373 2002-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
12374
12375         * reload.c (dup_replacements): New function.
12376         (find_reloads): Use it to duplicate replacements at the top level
12377         of match_dup operands.
12378
12379 2002-09-26  Miles Bader  <miles@gnu.org>
12380
12381         * v850.md ("length"): Change default value to 4.
12382
12383 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
12384
12385         * ChangeLog.1: Follow spelling conventions.
12386         * ChangeLog.4: Likewise.
12387         * ChangeLog.6: Likewise.
12388         * FSFChangeLog.11: Likewise.
12389         * doc/cpp.texi: Likewise.
12390         * doc/invoke.texi: Likewise.
12391         * doc/tm.texi: Likewise.
12392
12393 2002-09-26  Nick Clifton  <nickc@redhat.com>
12394
12395         * config.gcc: Add x prefix to v850e case for handling
12396         --with-cpu=v850e.
12397
12398 2002-09-25  Zack Weinberg  <zack@codesourcery.com>
12399
12400         * gcc.c (input_suffix_matches, switch_matches,
12401         mark_matching_switches, process_marked_switches,
12402         process_brace_body): New functions - split from handle_braces.
12403         (handle_braces): Rewrite; handle %{S:X;T:Y;:D} syntax; accept
12404         and ignore whitespace in more places.
12405         (specs documentation comment): Document %{S:X;T:Y;:D}.
12406         Clarify other %{...} docs.
12407         * doc/invoke.texi: Document %{S:X;T:Y;:D}.  Clarify other
12408         %{...} docs.
12409
12410         * config/arm/aof.h (LINK_SPEC): Change %{ov*,*} to %{ov*}.
12411         * config/rs6000/sysv4.h: Use N-way choice spec syntax.
12412
12413 2002-09-25  David S. Miller  <davem@redhat.com>
12414
12415         PR target/7842
12416         * config/sparc/sparc.c (set_extends): SImode ASHIFT does not
12417         extend.
12418
12419 2002-09-25  Richard Henderson  <rth@redhat.com>
12420
12421         * emit-rtl.c (const_double_htab_eq): Distinguish integer and
12422         fp CONST_DOUBLE; use real_identical.
12423
12424 2002-09-25  Mark Mitchell  <mark@codesourcery.com>
12425
12426         * doc/invoke.texi: Add more -Wabi examples.
12427
12428 2002-09-25  Richard Sandiford  <rsandifo@redhat.com>
12429
12430         * config/mips/mips.h (TARGET_MIPS4100): Add missing bracket.
12431
12432 2002-09-24  Nathan Sidwell  <nathan@codesourcery.com>
12433
12434         * profile.c (end_branch_prob): Only look for __gcov_init on
12435         weak-enabled native compilers.
12436
12437 2002-09-24  Denis Chertykov  <denisc@overta.ru>
12438
12439         * config/ip2k/ip2k.c (function_epilogue): Fix wrong numbers in
12440         cases of optimizing "add sp,w" to "inc sp".
12441
12442 2002-09-24  Adam Nemet  <anemet@lnxw.com>
12443
12444         * config/arm/arm.c (thumb_unexpanded_epilogue): Don't generate
12445         epilogue for naked functions.
12446
12447 2002-09-24  Adam Nemet  <anemet@lnxw.com>
12448             Nick Clifton  <nickc@redhat.com>
12449
12450         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Remove.
12451         (FUNCTION_PROFILER): Only invoke THUMB_FUNCTION_PROFILER if it
12452         is defined.
12453
12454 2002-09-24  Ulrich Weigand  <uweigand@de.ibm.com>
12455
12456         * config/s390/s390.c (preferred_la_operand_p): New function.
12457         * config/s390/s390-protos.h (preferred_la_operand_p): Declare it.
12458         * config/s390/s390.md ("addaddr_esame", "*la_ccclobber"): Replace by ...
12459         ("*la_64_cc", "*la_31_cc", splitters): ... these.
12460         ("*la_31"): Deactivate for TARGET_64BIT.
12461         ("*la_31_and", "*la_31_and_cc"): New.
12462
12463 2002-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12464
12465         * real.h (real_value): Make `exp' explicitly signed.
12466
12467 2002-09-24  Kazu Hirata  <kazu@cs.umass.edu>
12468
12469         * config/elfos.h: Follow spelling conventions.
12470         * config/alpha/alpha.h: Likewise.
12471         * config/arc/arc.h: Likewise.
12472         * config/arm/arm.md: Likewise.
12473         * config/avr/avr.h: Likewise.
12474         * config/cris/cris.md: Likewise.
12475         * config/d30v/d30v.h: Likewise.
12476         * config/frv/frv.c: Likewise.
12477         * config/frv/frv.h: Likewise.
12478         * config/h8300/h8300.c: Likewise.
12479         * config/h8300/h8300.h: Likewise.
12480         * config/h8300/h8300.md: Likewise.
12481         * config/i386/cygwin.h: Likewise.
12482         * config/i386/i386.h: Likewise.
12483         * config/i386/sysv3.h: Likewise.
12484         * config/i960/i960.h: Likewise.
12485         * config/ia64/ia64.h: Likewise.
12486         * config/ia64/ia64.md: Likewise.
12487         * config/ip2k/ip2k.h: Likewise.
12488         * config/m32r/m32r.h: Likewise.
12489         * config/m68k/m68k.h: Likewise.
12490         * config/m88k/m88k.h: Likewise.
12491         * config/mcore/mcore.c: Likewise.
12492         * config/mcore/mcore.h: Likewise.
12493         * config/mcore/mcore.md: Likewise.
12494         * config/mips/mips.h: Likewise.
12495         * config/mmix/mmix.h: Likewise.
12496         * config/mmix/mmix.md: Likewise.
12497         * config/ns32k/netbsd.h: Likewise.
12498         * config/ns32k/ns32k.h: Likewise.
12499         * config/ns32k/ns32k.md: Likewise.
12500         * config/pa/pa.h: Likewise.
12501         * config/romp/romp.h: Likewise.
12502         * config/rs6000/rs6000.h: Likewise.
12503         * config/rs6000/rs6000.md: Likewise.
12504         * config/sparc/sparc.h: Likewise.
12505         * config/stormy16/stormy-abi: Likewise.
12506         * config/stormy16/stormy16.h: Likewise.
12507         * config/vax/vax.h: Likewise.
12508
12509 2002-09-23  Kazu Hirata  <kazu@cs.umass.edu>
12510
12511         * config/alpha/alpha.h: Remove commented-out macro
12512         definitions of HAVE_{POST|PRE}_{INC|DEC}REMENT.
12513         * config/avr/avr.h: Likewise.
12514         * config/d30v/d30v.h: Likewise.
12515         * config/dsp16xx/dsp16xx.h: Likewise.
12516         * config/i370/i370.h: Likewise.
12517         * config/i386/i386.h: Likewise.
12518         * config/i960/i960.h: Likewise.
12519         * config/m68k/m68k.h: Likewise.
12520         * config/m88k/m88k.h: Likewise.
12521         * config/mips/mips.h: Likewise.
12522         * config/ns32k/ns32k.h: Likewise.
12523         * config/pdp11/pdp11.h: Likewise.
12524         * config/romp/romp.h: Likewise.
12525         * config/rs6000/rs6000.h: Likewise.
12526         * config/s390/s390.h: Likewise.
12527         * config/sh/sh.h: Likewise.
12528         * config/sparc/sparc.h: Likewise.
12529         * config/stormy16/stormy16.h: Likewise.
12530         * config/vax/vax.h: Likewise.
12531
12532 2002-09-23  Kazu Hirata  <kazu@cs.umass.edu>
12533
12534         * function.c (push_temp_slots_for_block): Remove.
12535         (push_temp_slots_for_target): Likewise.
12536         (get_target_temp_slot_level): Likewise.
12537         (set_target_temp_slot_level): Likewise.
12538         (get_first_block_beg): Likewise.
12539         * function.h: Remove corresponding prototypes.
12540
12541 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
12542
12543         * version.c (version_string): Now const char[].
12544         * version.h: Update to match.
12545
12546 2002-09-23  Richard Henderson  <rth@redhat.com>
12547
12548         * config/i386/i386.h (MASK_ACCUMULATE_OUTGOING_ARGS_SET, MASK_MMX_SET,
12549         MASK_SSE_SET, MASK_SSE2_SET, MASK_3DNOW_SET, MASK_3DNOW_A_SET): Kill.
12550         (TARGET_SWITCHES): Don't reference them.
12551         * config/i386/i386.c (override_options): Use target_flags_explicit
12552         to examine bits set by the user.
12553
12554 2002-09-23  Dale Johannesen  <dalej@apple.com>
12555
12556         * dbxout.c (dbxout_parms):  Set current_sym_code for params
12557         passed on stack by invisible reference.
12558
12559 2002-09-23  Richard Earnshaw  <rearnsha@arm.com>
12560
12561         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Always allocate
12562         at least one byte of space.
12563
12564 2002-09-23  Mark Mitchell  <mark@codesourcery.com>
12565
12566         * c-common.h (flag_abi_version): Fix typo in comment.
12567         * doc/invoke.texi (flag_abi_version): Document default value.
12568
12569 2002-09-23  Hans-Peter Nilsson  <hp@axis.com>
12570
12571         * doc/extend.texi (Extended Asm): Clarify that overlap between
12572         asm-declared register variables used in an asm and the asm clobber
12573         list is not allowed.
12574         * stmt.c (decl_conflicts_with_clobbers_p): New function.
12575         (expand_asm_operands): Keep track of clobbered registers.  Call
12576         decl_conflicts_with_clobbers_p for each input and output operand.
12577         If no conflicts found before, also do conflict sanity check when
12578         emitting clobbers.
12579
12580 2002-09-23  Richard Henderson  <rth@redhat.com>
12581
12582         * c-common.c (cpp_define_data_format): Remove.
12583         (cb_register_builtins): Don't define __WCHAR_BIT__, __SHRT_BIT__,
12584         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
12585         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
12586         * doc/cpp.texi: Don't document them either.
12587         (__SCHAR_MAX__, __SHRT_MAX__, __INT_MAX__, __LONG_MAX__,
12588         __LONG_LONG_MAX__): Document.
12589         (__TARGET_FLOAT_FORMAT__): Remove.
12590
12591 2002-09-23  Richard Henderson  <rth@redhat.com>
12592
12593         * real.c (do_multiply): Normalize U before addition.
12594
12595 2002-09-23  Mark Mitchell  <mark@codesourcery.com>
12596
12597         * c-common.c (flag_abi_version): New variable.
12598         * c-common.h (flag_abi_version): Declare it.
12599         * c-opts.c (missing_arg): Add -fabi-version.
12600         (c_common_decode_option): Process -fabi-version.
12601         * doc/invoke.texi (-fabi-version): Document it.
12602         (-Wabi): Add information about bit-fields in unions.
12603
12604 2002-09-22  Roger Sayle  <roger@eyesopen.com>
12605
12606         * expr.c (STORE_BY_PIECES_P): New target macro.
12607         (can_store_by_pieces, store_by_pieces): Use STORE_BY_PIECES_P
12608         instead of MOVE_BY_PIECES_P.
12609         * doc/tm.texi: Document this new macro.
12610
12611 2002-09-22  Jason Thorpe  <thorpej@wasabisystems.com>
12612
12613         * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC
12614         unless -fno-pic or -fno-PIC is specified.
12615
12616 2002-09-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12617
12618         * c-common.c (preprocessing_trad_p): Define.
12619         * pa-hiux.h, pa-hpux.h, pa-hpux7.h (CPP_PREDEFINES): Delete.
12620         (TARGET_OS_CPP_BUILTINS, SUBTARGET_SWITCHES): Define.
12621         * pa-hpux10.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
12622         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define.
12623         * pa-linux.h (CPP_PREDEFINES): Delete.
12624         (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
12625         * pa32-linux.h, pa64-linux.h (CPP_SPEC): Delete.
12626         * pa-osf.h, pa-pro-end.h, rtems.h (CPP_PREDEFINES): Delete.
12627         (TARGET_OS_CPP_BUILTINS): Define.
12628         * pa.h (MASK_SIO, TARGET_SIO, TARGET_PA_10): Define.
12629         (TARGET_SWITCHES): Reformat.  Use N_() macro.  Add SUBTARGET_SWITCHES.
12630         (SUBTARGET_SWITCHES): Provide default definition.
12631         (TARGET_OPTIONS): Reformat.  Use N_() macro.
12632         (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC, CPP_64BIT_SPEC,
12633         CPP_CPU_DEFAULT_SPEC, CPP_64BIT_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS,
12634         EXTRA_SPECS, CPP_SPEC, CPLUSPLUS_CPP_SPEC, CPP_PREDEFINES): Delete.
12635         (TARGET_CPU_CPP_BUILTINS): Define.
12636         (TARGET_OS_CPP_BUILTINS): Define for BSD-like systems.
12637         * doc/invoke.texi (msio, mwsio): Document new hppa options.
12638         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Document macro
12639         preprocessing_trad_p().
12640
12641 2002-09-22  Jason Thorpe  <thorpej@wasabisystems.com>
12642
12643         * doc/install.texi: Document behavior of --with-headers and
12644         --with-libs when arguments are omitted.
12645
12646 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>
12647
12648         * dbxout.c: Follow spelling conventions.
12649         * defaults.h: Likewise.
12650         * df.c: Likewise.
12651         * diagnostic.h: Likewise.
12652         * doloop.c: Likewise.
12653         * dwarf2out.c: Likewise.
12654         * dwarfout.c: Likewise.
12655         * emit-rtl.c: Likewise.
12656         * except.c: Likewise.
12657         * explow.c: Likewise.
12658         * expmed.c: Likewise.
12659         * expr.c: Likewise.
12660         * expr.h: Likewise.
12661         * flags.h: Likewise.
12662         * flow.c: Likewise.
12663         * fold-const.c: Likewise.
12664         * function.c: Likewise.
12665         * function.h: Likewise.
12666         * gcc.c: Likewise.
12667         * gcov-io.h: Likewise.
12668         * gcov.c: Likewise.
12669         * gcse.c: Likewise.
12670         * genattrtab.c: Likewise.
12671         * genconfig.c: Likewise.
12672         * genrecog.c: Likewise.
12673         * ggc-page.c: Likewise.
12674         * ggc.h: Likewise.
12675         * global.c: Likewise.
12676         * gthr-win32.h: Likewise.
12677         * integrate.c: Likewise.
12678         * jump.c: Likewise.
12679         * langhooks.c: Likewise.
12680         * langhooks.h: Likewise.
12681         * line-map.h: Likewise.
12682         * local-alloc.c: Likewise.
12683         * longlong.h: Likewise.
12684         * loop.c: Likewise.
12685         * loop.h: Likewise.
12686
12687 Tue Aug 27 22:26:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
12688
12689         * i386.h (BIGGEST_FIELD_ALIGNMENT): Set proper default for x86_64.
12690
12691 Tue Aug 27 20:07:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
12692
12693         * i386.c (overwrite_options): Set -mpreferred-stack-boundary to 128
12694         for -Os/TARGET_64BIT too.
12695
12696 2002-09-21  Kazu Hirata  <kazu@cs.umass.edu>
12697
12698         * ChangeLog: Follow spelling conventions.
12699         * ChangeLog.0: Likewise.
12700         * ChangeLog.1: Likewise.
12701         * ChangeLog.2: Likewise.
12702         * ChangeLog.3: Likewise.
12703         * ChangeLog.4: Likewise.
12704         * ChangeLog.5: Likewise.
12705         * ChangeLog.6: Likewise.
12706         * FSFChangeLog.10: Likewise.
12707         * FSFChangeLog.11: Likewise.
12708         * alias.c: Likewise.
12709         * basic-block.h: Likewise.
12710         * c-aux-info.c: Likewise.
12711         * c-common.c: Likewise.
12712         * c-common.h: Likewise.
12713         * c-decl.c: Likewise.
12714         * c-format.c: Likewise.
12715         * c-semantics.c: Likewise.
12716         * c-typeck.c: Likewise.
12717         * calls.c: Likewise.
12718         * cfganal.c: Likewise.
12719         * cfgloop.c: Likewise.
12720         * collect2.c: Likewise.
12721         * combine.c: Likewise.
12722         * conflict.c: Likewise.
12723         * cppexp.c: Likewise.
12724         * cppfiles.c: Likewise.
12725         * cpphash.h: Likewise.
12726         * cppinit.c: Likewise.
12727         * cpplex.c: Likewise.
12728         * cpplib.c: Likewise.
12729         * cpplib.h: Likewise.
12730         * cppmacro.c: Likewise.
12731         * cse.c: Likewise.
12732
12733 2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
12734
12735         * netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of
12736         LINK_SPEC.
12737         (LINK_SPEC): Define to NETBSD_LINK_SPEC_AOUT.
12738         * arm/netbsd.h (SUBTARGET_EXTRA_SEPCS): Add NETBSD_LINK_SPEC_AOUT.
12739         (LINK_SPEC): Rework to use NETBSD_LINK_SPEC_AOUT).
12740
12741 2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
12742
12743         PR opt/7930
12744         * cse.c (fold_rtx): Calculate old_cost before we fold each
12745         operand.
12746
12747 2002-09-21  Richard Henderson  <rth@redhat.com>
12748
12749         * c-common.c (cpp_define_data_format): Remove __GCC_LITTLE_ENDIAN__,
12750         __GCC_BIG_ENDIAN__, __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
12751         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
12752         __TARGET_USES_VAX_F_FLOAT__, __TARGET_USES_VAX_D_FLOAT__,
12753         __TARGET_USES_VAX_G_FLOAT__, __TARGET_USES_VAX_H_FLOAT__.
12754         * doc/cpp.texi: Don't document them.
12755
12756 2002-09-21  Richard Henderson  <rth@redhat.com>
12757
12758         * c-common.c (builtin_define_float_constants): Use real_format
12759         to get the floating-point parameters.
12760
12761 2002-09-21  Richard Henderson  <rth@redhat.com>
12762
12763         * real.c (struct real_format): Move to real.h.
12764         (real_format_for_mode): Rename from fmt_for_mode; update all users;
12765         initialize with ieee defaults.
12766         (real_to_target_fmt, real_from_target_fmt): New.
12767         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
12768         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
12769         ieee_quad_format, i370_single_format, i370_double_format,
12770         c4x_single_format, c4x_extended_format): Rename from s/_format//.
12771         (ieee_quad_format): Fix emin.
12772         (format_for_size, init_real_once): Remove.
12773         * real.h (struct real_format): Move from real.c.
12774         (real_format_for_mode): Declare.
12775         (real_to_target_fmt, real_from_target_fmt): Declare.
12776         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
12777         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
12778         ieee_quad_format, vax_f_format, vax_d_format, vax_g_format,
12779         i370_single_format, i370_double_format, c4x_single_format,
12780         c4x_extended_format): Declare.
12781         * toplev.c (do_compile): Don't call init_real_once.
12782
12783         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
12784         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Remove.
12785
12786         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Define.
12787         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): 64, if vax mode.
12788         * config/alpha/alpha.c (override_options): Set real_format_for_mode
12789         for VAX, if enabled.
12790
12791         * config/c4x/c4x.c (c4x_override_options): Set real_format_for_mode
12792         for C4X.
12793
12794         * config/i370/i370.h (OVERRIDE_OPTIONS): New.
12795         * config/i370/i370.c (override_options): New.
12796         * config/i370/i370-protos.h: Update.
12797
12798         * config/i386/i386.c (override_options): Set real_format_for_mode
12799         for Intel 80-bit extended.
12800         * config/i386/i386.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
12801
12802         * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Mind -mlong-double-64.
12803         (OVERRIDE_OPTIONS): Move code...
12804         * config/i960/i960.c (i960_initialize): ... here.  Set
12805         real_format_for_mode for Intel 80-bit extended.
12806
12807         * config/ia64/ia64.c (ia64_override_options): Set real_format_for_mode
12808         for Intel 80-bit extended, if enabled.
12809
12810         * config/m68k/m68k.c (override_options): Set real_format_for_mode
12811         for Motorola 96-bit extended.
12812
12813         * config/vax/vax.h (OVERRIDE_OPTIONS): New.
12814         * config/vax/vax.c (override_options): New.
12815         * config/vax/vax-protos.h: Update.
12816
12817 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
12818
12819         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Add
12820         #if TARGET_MACHO.
12821
12822         * config/rs6000/rs6000.md (floatdisf2_internal2): Combine
12823         insns.  Supply missing clobber of scratch reg.
12824
12825 2002-09-20  Kazu Hirata  <kazu@cs.umass.edu>
12826
12827         * config/m32r/m32r.c: Follow spelling conventions.
12828         * config/m32r/m32r.h: Likewise.
12829         * config/m32r/m32r.md: Likewise.
12830         * config/m68k/m68k.c: Likewise.
12831         * config/m88k/m88k.c: Likewise.
12832         * config/mcore/mcore.c: Likewise.
12833         * config/mips/mips.c: Likewise.
12834         * config/mips/mips.h: Likewise.
12835         * config/mmix/mmix.c: Likewise.
12836         * config/mn10200/mn10200.c: Likewise.
12837         * config/ns32k/ns32k.h: Likewise.
12838         * config/pa/pa.c: Likewise.
12839         * config/pa/pa64-linux.h: Likewise.
12840         * config/pdp11/pdp11.h: Likewise.
12841         * config/romp/romp.c: Likewise.
12842         * config/romp/romp.h: Likewise.
12843         * config/rs6000/eabi.asm: Likewise.
12844         * config/rs6000/linux64.h: Likewise.
12845         * config/rs6000/rs6000.c: Likewise.
12846         * config/rs6000/rs6000.h: Likewise.
12847         * config/rs6000/rs6000.md: Likewise.
12848         * config/rs6000/sysv4.h: Likewise.
12849         * config/rs6000/xcoff.h: Likewise.
12850
12851 2002-09-20  Jim Wilson  <wilson@redhat.com>
12852
12853         * config/v850/v850/lib1funcs.asm (__muldi3): Change r5 to r28.
12854
12855 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
12856
12857         * config/i386/i386.md (UNSPEC_GOTNTPOFF, UNSPEC_INDNTPOFF): New.
12858         * config/i386/i386.c (legitimate_pic_address_disp_p): Handle
12859         UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF like UNSPEC_GOTTPOFF.
12860         (legitimate_address_p): Likewise.
12861         (legitimize_address): Use @gotntpoff and @indntpoff.
12862         (output_pic_addr_const): Handle UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF.
12863         (output_addr_const_extra): Likewise.
12864
12865 2002-09-20  Jim Wilson  <wilson@redhat.com>
12866
12867         * combine.c (try_combine): When split an instruction pair, where the
12868         first has a sign_extend src, verify that the src and dest modes match.
12869
12870 2002-09-20  Richard Henderson  <rth@redhat.com>
12871
12872         * config/mips/mips.c (dfhigh, dflow, sfhigh, sflow): Remove.
12873         (override_options): Do not initialize them.
12874         (mips_const_double_ok): Allow no fp constants except zero,
12875         and not even that for mips16.
12876         (const_float_1_operand): Use dconst1.
12877         * config/mips/mips.md (movsf, movsf_internal1, movsf_internal2,
12878         movdf, movdf_internal1, movdf_internal1a, movdf_internal2):
12879         Don't allow arbitrary constants; fix predicates and C constraint.
12880
12881 2002-09-20  Neil Booth  <neil@daikokuya.co.uk>
12882
12883         * cppmacro.c: Don't warn about function-like macros without
12884         '(' during pre-expansion.
12885
12886 2002-09-20  Jim Wilson  <wilson@redhat.com>
12887
12888         * config/v850/v850.c (current_function_anonymous_args): Delete.
12889         (expand_prologue): Use current_function_args_info.anonymous_args.
12890         (expand_epilogue): Delete use of current_function_anonymous_args.
12891         * config/v850/v850.h (struct cum_arg): Add anonymous_args field.
12892         (INIT_CUMULATIVE_ARGS): Clear anonymous_args field.
12893         (current_function_anonymous_args): Delete extern declaration.
12894         (SETUP_INCOMING_VARARGS): Set anonymous_args field.
12895
12896 2002-09-20  Geoffrey Keating  <geoffk@apple.com>
12897
12898         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update for change
12899         to load_macho_picbase.
12900         * config/rs6000/rs6000.md: Document Darwin-specific unspec IDs.
12901         (load_macho_picbase): Take the symbol to use as a parameter.
12902         (macho_correct_pic): New insn.
12903         (builtin_setjmp_reciever): On Darwin, restore the PIC register.
12904
12905         * config/rs6000/rs6000.h (ELIMINABLE_REGS): Use
12906         RS6000_PIC_OFFSET_TABLE_REGNUM rather than hardcoding 30.
12907         (CAN_ELIMINATE): Likewise.
12908         (INITIAL_ELIMINATION_OFFSET): Likewise.
12909         (TOC_REGISTER): Likewise.
12910
12911 2002-09-20  Richard Henderson  <rth@redhat.com>
12912
12913         * real.c (real_hash): New.
12914         * real.h: Declare it.
12915         * cse.c (canon_hash): Use it.
12916         * cselib.c (hash_rtx): Likewise.
12917         * emit-rtl.c (const_double_htab_hash): Likewise.
12918         * rtl.h (CONST_DOUBLE_REAL_VALUE): New.
12919         * varasm.c (struct rtx_const): Reduce vector size; separate
12920         integer and fp vectors.
12921         (HASHBITS): Remove.
12922         (const_hash_1): Rename from const_hash.  Use real_hash.  Do not
12923         take modulus MAX_HASH_TABLE.
12924         (const_hash): New.  Do take modulus MAX_HASH_TABLE.
12925         (output_constant_def): Do not take modulus MAX_HASH_TABLE.
12926         (SYMHASH): Don't use HASHBITS.
12927         (decode_rtx_const): Copy only active bits from REAL_VALUE_TYPE.
12928         Fix CONST_VECTOR thinko wrt fp vectors.  Fix kind comparison.
12929         (simplify_subtraction): Fix kind comparison.
12930         (const_hash_rtx): Return unsigned int.  Don't use HASHBITS.
12931         Use a union to pun integer array.
12932         * config/rs6000/rs6000.c (rs6000_hash_constant): Use real_hash;
12933         only hash two words of integral CONST_DOUBLE.
12934
12935 2002-09-20  Steve Ellcey  <sje@cup.hp.com>
12936
12937         * config/ia64/hpux.h (STARTFILE_SPEC): Modify.
12938         (STARTFILE_PREFIX_SPEC): New.
12939         (LINK_SPEC): Modify.
12940         (LIB_SPEC): Modify.
12941         (LIBGCC_SPEC): New.
12942
12943 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
12944
12945         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
12946         UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.
12947
12948 2002-09-20  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
12949
12950         * config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
12951         Add clobber of the condition code register.
12952
12953 2002-09-20  Richard Henderson  <rth@redhat.com>
12954
12955         * real.c (do_fix_trunc): Static.
12956         (encode_ieee_single, encode_ieee_double, encode_ieee_extended,
12957         encode_ieee_quad, encode_vax_f, encode_vax_d, encode_vax_g,
12958         encode_i370_single, encode_i370_double, encode_c4x_single,
12959         encode_c4x_extended): Add default abort case.
12960
12961 2002-09-20  Richard Henderson  <rth@redhat.com>
12962
12963         * real.h (enum real_value_class, SIGNIFICAND_BITS, EXP_BITS,
12964         MAX_EXP, SIGSZ, SIG_MSB, struct real_value): Move from real.c.
12965         (struct realvaluetype): Remove.
12966         (REAL_VALUE_TYPE): Use struct real_value.
12967         (REAL_VALUE_TYPE_SIZE): Use SIGNIFICAND_BITS.
12968         (test_real_width): New.
12969         * real.c: Global replace struct real_value with REAL_VALUE_TYPE.
12970         (real_arithmetic): Avoid hoops for REAL_VALUE_TYPE parameters.
12971         (real_compare, real_exponent, real_ldexp, real_isinf, real_isnan,
12972         real_isneg, real_isnegzero, real_identical, exact_real_inverse,
12973         real_to_integer, real_to_integer2, real_to_decimal,
12974         real_to_hexadecimal, real_from_string, real_from_integer,
12975         real_inf, real_nan, real_2expN, real_convert, real_to_target,
12976         real_from_target): Likewise.
12977         * tree.h (struct tree_real_cst): Use real_value not realvaluetype.
12978         * gengtype-yacc.y (bitfieldopt): Accept an ID as well.
12979
12980 2002-09-20  Richard Henderson  <rth@redhat.com>
12981
12982         * real.h (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT,
12983         IBM_FLOAT_FORMAT, C4X_FLOAT_FORMAT, TARGET_FLOAT_FORMAT): Move ...
12984         * defaults.h: ... here.
12985         * config/arm/arm.h, config/avr/avr.h, config/d30v/d30v.h,
12986         config/fr30/fr30.h, config/frv/frv.h, config/ia64/ia64.h,
12987         config/ip2k/ip2k.h, config/mips/mips.h, config/stormy16/stormy16.h,
12988         config/xtensa/xtensa.h (TARGET_FLOAT_FORMAT): Remove.
12989
12990 2002-09-20  Hans-Peter Nilsson  <hp@bitrange.com>
12991
12992         * config/mmix/mmix.md ("negdf2"): Rewrite.
12993         ("*expanded_negdf2"): New.
12994
12995 2002-09-19  Jim Wilson  <wilson@redhat.com>
12996
12997         * combine.c (simplify_set): When optimizing a subreg src with a
12998         cc0 dest, use GET_MODE (src) for mask instead of inner_mode.
12999
13000 2002-09-19  Dale Johannesen <dalej@apple.com>
13001         * combine.c (make_extraction): Don't create
13002         invalid subreg.
13003
13004 2002-09-19  Roger Sayle  <roger@eyesopen.com>
13005
13006         * tree.c (integer_nonzerop): New predicate for nonzero integers.
13007         * tree.h (integer_nonzerop): Add function prototype.
13008         * stmt.c (expand_end_loop):  Don't rotate the loop when there
13009         are no instructions in the test, i.e. the loop is unconditional.
13010         (expand_exit_loop_if_false):  Optimize RTL generation of loop
13011         tests when the condition is always true or always false.
13012         * c-semantics.c (genrtl_do_stmt):  Optimize RTL generation of
13013         do-loops when the condition is always true.
13014         (genrtl_for_stmt):  Optimize RTL generation of for-loops when
13015         the for-expression is empty.
13016
13017 2002-09-19  Zack Weinberg  <zack@codesourcery.com>
13018
13019         * gcc.c (use_pipes): New flag.
13020         (process_command): Set it.  Adjust check for -pipe conflicting
13021         with -time or -save-temps.
13022         (do_spec_1): Use it.  Handle %|SUFFIX, %mSUFFIX, and
13023         %<SWITCH.  Drop %| (without a SUFFIX).
13024         (handle_braces): Drop %{<SWITCH}, %{^SWITCH}, %{|...}.
13025         (give_switch): Third argument eliminated.
13026         (invoke_as, @assembler_with_cpp spec): Use %|.s or %m.s
13027         depending on AS_NEEDS_DASH_FOR_PIPED_INPUT.
13028         (specs documentation comment): Update.
13029
13030         * config/netbsd-aout.h, config/openbsd.h, config/ptx4.h,
13031         config/svr4.h, config/i386/freebsd-aout.h,
13032         config/m68k/netbsd-elf.h, config/m68k/netbsd.h,
13033         config/m68k/openbsd.h, config/mips/openbsd.h,
13034         config/sparc/sparc.h: Define AS_NEEDS_DASH_FOR_PIPED_INPUT
13035         instead of putting %| into ASM_SPEC and/or ASM_FINAL_SPEC.
13036         * config/avr/avr.h: Delete do-nothing ASM_FINAL_SPEC.
13037         * config/cris/cris.h: Update comment.
13038
13039         * ada/lang-specs.h: Use %(invoke_as).  Straighten out
13040         error messages.  Don't use %{^SWITCH}.
13041         * ada/misc.c (gnat_decode_option): Handle -I with a
13042         separate argument.
13043
13044         * f/lang-specs.h: Use %| and %m.
13045         * java/jvspec.c: Use %m and %(invoke_as).  Change all
13046         uses of %{<SWITCH} to %<SWITCH.
13047
13048         * doc/invoke.texi: Update documentation of specs.
13049         * doc/tm.texi: Document AS_NEEDS_DASH_FOR_PIPED_INPUT.
13050
13051 2002-09-19  Ulrich Weigand  <uweigand@de.ibm.com>
13052
13053         * config/s390/s390.c (addr_generation_dependency_p): Handle SUBREG
13054         and STRICT_LOW_PART within SET_DEST.
13055         * config/s390/s390.md ("*extractqi", "*extracthi"): New insns with
13056         splitters, replacing pre-reload splitters.
13057         ("*zero_extendhisi2_31", "*zero_extendqisi2_31",
13058         "*zero_extendqihi2_31"): New insns.
13059         ("*zero_extendqihi2_64"): Do not clobber CC.
13060
13061 2002-09-18  Devang Patel  <dpatel@apple.com>
13062
13063         * cp/cp-tree.h: New prototype for walk_vtables().
13064         * cp/decl.c (walk_vtables_r): New function.
13065         (struct cp_binding_level): Add new members, namespaces,
13066         names_size and vtables.
13067         (add_decl_to_level): Add decl in namespaces or vtables
13068         chain, if conditions match.
13069         (walk_vtables): New function.
13070         (walk_namespaces_r): Travers separate namespace chain
13071         for namespace decls.
13072         (wrapup_globals_for_namespace): Use names_size instead
13073         of list_length().
13074         * cp/decl2.c (finish_file): Use walk_vtables() instead of
13075         walk_globals() to walk vtable decls.
13076
13077 2002-09-19  Steve Ellcey  <sje@cup.hp.com>
13078
13079         * config/ia64/hpux.h (CTORS_SECTION_ASM_OP): New.
13080         (DTORS_SECTION_ASM_OP): Ditto.
13081         (READONLY_DATA_SECTION_ASM_OP): Moved.
13082         (DATA_SECTION_ASM_OP): New.
13083         (SDATA_SECTION_ASM_OP): New.
13084         (BSS_SECTION_ASM_OP): New.
13085         (SBSS_SECTION_ASM_OP): New.
13086         (TEXT_SECTION_ASM_OP): New.
13087
13088 2002-09-19  Kazu Hirata  <kazu@cs.umass.edu>
13089
13090         * config/fp-bit.c: Follow spelling conventions.
13091         * config/d30v/d30v.c: Likewise.
13092         * config/d30v/d30v.h: Likewise.
13093         * config/fr30/fr30.c: Likewise.
13094         * config/fr30/fr30.h: Likewise.
13095         * config/fr30/fr30.md: Likewise.
13096         * config/frv/frv.c: Likewise.
13097         * config/frv/frv.h: Likewise.
13098         * config/h8300/h8300.c: Likewise.
13099         * config/h8300/lib1funcs.asm: Likewise.
13100         * config/i370/i370.c: Likewise.
13101         * config/i386/i386.h: Likewise.
13102         * config/i386/i386.md: Likewise.
13103         * config/i386/pentium.md: Likewise.
13104         * config/i386/winnt.c: Likewise.
13105         * config/i960/i960.c: Likewise.
13106         * config/ia64/ia64.h: Likewise.
13107         * config/ip2k/ip2k.c: Likewise.
13108         * config/ip2k/ip2k.h: Likewise.
13109         * config/ip2k/ip2k.md: Likewise.
13110         * config/ip2k/libgcc.S: Likewise.
13111
13112 2002-09-19  Stephen Clarke <stephen.clarke@superh.com>
13113
13114         * config/sh/sh.h (UNSPEC_GOTOFF_P): Define.
13115         (GOTOFF_P): Extend to allow gotoff plus constant.
13116
13117 2002-09-18  Richard Henderson  <rth@redhat.com>
13118
13119         * ifcvt.c (noce_process_if_block): Correctly detect X modified
13120         with INSN_B before COND_EARLIEST.  Don't check A and B for
13121         modification in condition range.  Reorder INSN_B for A==B properly.
13122         (if_convert): Iterate until no matches for a block.
13123
13124 2002-09-18  Richard Henderson  <rth@redhat.com>
13125
13126         * calls.c (store_one_arg): Rename default_align to parm_align;
13127         always adjust parm_align for downward padding.
13128
13129 2002-09-18  Richard Henderson  <rth@redhat.com>
13130
13131         * toplev.c (backend_init): Move init_real_once invocation ...
13132         (do_compile): ... here.
13133
13134 2002-09-18  Richard Henderson  <rth@redhat.com>
13135
13136         * sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
13137         RTX_UNCHANGING_P markers for successful tail-recursive replacement.
13138
13139 2002-09-18  Richard Henderson  <rth@redhat.com>
13140
13141         * real.c (round_for_format): Collect sticky as unsigned long, not bool.
13142
13143 2002-09-19  Alan Modra  <amodra@bigpond.net.au>
13144
13145         * config/rs6000/rs6000.md: (floatdisf2): Rename to
13146         floatdisf2_internal1.
13147         (floatdisf2): New define_expand.
13148         (floatdisf2_internal2): Likewise.
13149
13150 2002-09-18  Richard Henderson  <rth@redhat.com>
13151
13152         * real.c (sticky_rshift_significand): Collect sticky as
13153         unsigned long, not bool.
13154
13155 2002-09-18  Ulrich Weigand  <uweigand@de.ibm.com>
13156
13157         * config/s390/s390.c (s390_address_cost): New function.
13158         config/s390/s390-protos.h (s390_address_cost): Add prototype.
13159         config/s390/s390.h (ADDRESS_COST): Call s390_address_cost.
13160         (RTX_COST): Use COSTS_N_INSNS.
13161
13162 2002-09-18  Douglas Rupp  <rupp@gnat.com>
13163             Donn Terry  <donnte@microsoft.com>
13164
13165         * stor-layout.c (place_field): Handle alignment of whole
13166         structures when MSVC compatible bitfields are involved.
13167         Change method of computing location of MS bitfields to
13168         be compatible with #pragma pack(n).
13169
13170         * tree.h (record_layout_info): Add new field
13171         remaining_in_alignment.
13172
13173         * doc/tm.texi: (TARGET_MS_BITFIELD_LAYOUT_P): Update.
13174         (pragma pack): Add paragraph on MSVC bitfield packing.
13175
13176 2002-09-18  Richard Earnshaw  (reanrsha@arm.com)
13177
13178         PR optimization/7967
13179         * arm.md (ne_zeroextractsi): Add clobber of the condition code
13180         register.
13181
13182 2002-09-18  Kazu Hirata  <kazu@cs.umass.edu>
13183
13184         * config/s390/s390.c: Follow spelling conventions.
13185         * config/sh/lib1funcs.asm: Likewise.
13186         * config/sh/sh.c: Likewise.
13187         * config/sh/sh.h: Likewise.
13188         * config/sparc/sparc.c: Likewise.
13189         * config/sparc/sparc.h: Likewise.
13190         * config/sparc/sparc.md: Likewise.
13191         * config/stormy16/stormy16.c: Likewise.
13192         * config/stormy16/stormy16.h: Likewise.
13193         * config/v850/v850.c: Likewise.
13194         * config/v850/v850.h: Likewise.
13195         * config/vax/vax.c: Likewise.
13196         * config/vax/vax.h: Likewise.
13197
13198 2002-09-18  Nick Clifton  <nickc@redhat.com>
13199
13200         * config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
13201         * config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
13202         * config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.
13203
13204 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
13205
13206         * function.c (max_parm_reg_num): Remove.
13207         * stmt.c (in_control_zone_p, stmt_loop_nest_empty,
13208         drop_through_at_end_p, move_cleanups_up,
13209         expand_end_case_dummy, case_index_expr_type): Likewise.
13210         * stor-layout.c (pos_from_byte): Likewise.
13211         * tree.c (chain_member_value, chain_member_purpose, listify,
13212         tree_int_cst_msb, index_type_equal): Likewise.
13213         * tree.h: Remove prototypes for unused functions.
13214
13215 2002-09-17  Zack Weinberg  <zack@codesourcery.com>
13216
13217         * ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
13218         statement that the only translation is to en_UK.
13219
13220 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
13221
13222         * config/alpha/alpha.c: Follow spelling conventions.
13223         * config/alpha/alpha.h: Likewise.
13224         * config/alpha/alpha.md: Likewise.
13225         * config/arc/arc.h: Likewise.
13226         * config/arm/arm.c: Likewise.
13227         * config/arm/arm.h: Likewise.
13228         * config/arm/arm.md: Likewise.
13229         * config/arm/pe.c: Likewise.
13230         * config/arm/unknown-elf.h: Likewise.
13231         * config/avr/avr.c: Likewise.
13232         * config/avr/avr.h: Likewise.
13233         * config/c4x/c4x.c: Likewise.
13234         * config/cris/cris.c: Likewise.
13235         * config/cris/cris.h: Likewise.
13236
13237 2002-09-17  Samuel Figueroa  <figueroa@apple.com>
13238
13239         * final.c (final_scan_insn): Use new macro ASM_OUTPUT_ALIGN_WITH_NOP.
13240         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP) New macro.
13241         * doc/tm.texi (ASM_OUTPUT_ALIGN_WITH_NOP) New description.
13242
13243 2002-09-17  Dale Johannesen  <dalej@apple.com>
13244
13245         * cfgcleanup.c (try_forward_edges):  Do not forward a
13246         branch to just after a loop exit before loop optimization;
13247         this interfered with doloop detection.
13248
13249 2002-09-17  Nick Clifton  <nickc@redhat.com>
13250
13251         * config/arm/arm.c (output_return_instruction): Do not
13252         writeback the stack pointer when it is being loaded.
13253         (arm_output_epilogue): Likewise.
13254
13255 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
13256
13257         * optabs.c (prepare_cmp_insn): Let emit_library_call_value
13258         generate a pseudo reg that receives the result of a libcall.
13259         (prepare_float_lib_cmp): Likewise.
13260
13261 2002-09-17  Steve Ellcey  <sje@cup.hp.com>
13262
13263         * config/ia64/elf.h: Remove CPP_PREDEFINES.
13264
13265 Tue Sep 17 13:58:04 2002  Nicola Pero  <n.pero@mi.flashnet.it>
13266
13267         Fix PR/7014 and related objc bugs:
13268         * c-typeck.c (comp_target_types): Added a reflexive argument.
13269         Pass it to ObjC when/if calling objc_comptypes().  Updated all
13270         callers to provide the appropriate reflexive argument.
13271         * objc/objc-act.c (objc_comptypes): Carefully checked and fixed
13272         typechecking for all cases of comparisons and assignments,
13273         particularly the obscure and less common ones involving protocols.
13274
13275 2002-09-17  Nick Clifton  <nickc@redhat.com>
13276
13277         * machmode.def (V1DImode): New mode.  A single element vector.
13278         * tree.h (TI_UV1DI_TYPE, TI_V1DI_TYPE): New tree_index enums.
13279         (unsigned_V1DI_type_node, V1D1_type_node): New type nodes.
13280         * tree.c (build_common_tree_nodes_2): Build
13281         unsigned_V1DI_type_node and V1D1_type_node.
13282         * c-common.c (c_common_type_for_mode): Return
13283         unsigned_V1DI_type_node or V1D1_type_node for V1DImode.
13284         * rtl.c (class_narrowest_): Start integer vector nodes with V1DImode.
13285
13286 Tue Sep 17 13:40:13 2002  Nicola Pero  <n.pero@mi.flashnet.it>
13287
13288         * doc/objc.texi (Constant string objects): Extended documentation
13289         to make clear that the constant string class ivar layout is
13290         completely fixed.
13291
13292 2002-09-17  Roger Sayle  <roger@eyesopen.com>
13293
13294         * cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned
13295         NOTE_INSN_LOOP_CONT notes when deleting basic blocks.
13296
13297 2002-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
13298
13299         * config/mips/mips.c (save_restore_insns): Remove unused variable.
13300         * gcc.c (make_relative_prefix): Likewise.
13301         * loop.c (check_final_value): Likewise.
13302         * jump.c (init_label_info): Remove return value.
13303         * cse.c (prev_insn): Move variable between #ifdef HAVE_cc0 ... #endif.
13304
13305 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13306
13307         * dsp16xx.h (ASM_FORMAT_PRIVATE_NAME): Delete.
13308         (ASM_PN_FORMAT): Define.
13309
13310 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13311
13312         * alpha.h, alpha/vms.h, arc.h, arm/aof.h, arm/aout.h, avr.h,
13313         c4x.h, cris.h, d30v.h, fr30.h, frv.h, h8300.h, i370.h, i386.h,
13314         i960.h, ia64.h, ip2k.h, m32r.h, m68hc11.h, m68k/3b1.h,
13315         m68k/hp320.h, m68k.h, m68k/mot3300.h, m68k/sgs.h, m68k/tower-as.h,
13316         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
13317         pa.h, pdp11.h, romp.h, rs6000.h, s390/linux.h, sh.h, sparc.h,
13318         stormy16.h, v850.h, vax.h, xtensa.h (ASM_FORMAT_PRIVATE_NAME):
13319         Delete.
13320         * alpha/vms.h, h8300.h, i370.h, ia64.h, m68k/3b1.h, m68k/hp320.h,
13321         m68k/mot3300.h, m68k/sgs.h, m68k/tower-as.h, mmix.h, mn10200.h,
13322         mn10300.h, pa.h, v850.h (ASM_PN_FORMAT): Define.
13323
13324         * defaults.h (ASM_PN_FORMAT, ASM_FORMAT_PRIVATE_NAME): Define.
13325         * doc/tm.texi (ASM_FORMAT_PRIVATE_NAME): Update documentation.
13326
13327 2002-09-16  Richard Henderson  <rth@redhat.com>
13328
13329         * expr.c (emit_block_move): Set memory block size as appropriate
13330         for the copy.
13331
13332 2002-09-16  Richard Henderson  <rth@redhat.com>
13333
13334         PR fortran/3924
13335         * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.
13336
13337 2002-09-16  Richard Henderson  <rth@redhat.com>
13338
13339         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
13340         as well as OFFSET for BITPOS.
13341
13342 2002-09-16  Jeff Garzik  <jgarzik@mandrakesoft.com>
13343
13344         * config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
13345         * config/i386/i386.c (processor_alias_table): Add winchip-c6,
13346         winchip2 and c3.
13347         * doc/invoke.texi: Mention new aliases.
13348
13349 2002-09-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13350
13351         * calls.c (store_one_arg): Set default alignment for BLKmode arguments
13352         to BITS_PER_UNIT when ARGS_GROW_DOWNWARD and the padding direction is
13353         downward.
13354         * function.c (pad_below):  Always compile.
13355         (locate_and_pad_parm): If defined ARGS_GROW_DOWNWARD, pad argument to
13356         alignment when it is not in a register or REG_PARM_STACK_SPACE is true.
13357         Pad below when the argument is not in a register and the padding
13358         direction is downward.
13359
13360         * pa-64.h (MUST_PASS_IN_STACK): Move define to pa.h.
13361         (PAD_VARARGS_DOWN): Define.
13362         * pa.c (function_arg_padding): Revise padding directions to make them
13363         compatible with the 32 and 64-bit runtime architecture documentation.
13364         (hppa_va_arg):  Add code to handle variable and size zero arguments
13365         passed by reference on TARGET_64BIT.  Reformat.
13366         (function_arg): Use a PARALLEL for BLKmode and aggregates args on
13367         TARGET_64BIT.  Use a DImode PARALLEL for BLKmode args 5 to 8 bytes
13368         wide when !TARGET_64BIT.  Move forward check for mode==VOIDmode.
13369         Add comments.
13370         * pa.h (MAX_PARM_BOUNDARY): Correct define for TARGET_64BIT.
13371         (RETURN_IN_MEMORY): Return size zero types in memory.
13372         (FUNCTION_VALUE): Return TFmode in general registers.
13373         (MUST_PASS_IN_STACK): Define.
13374         (FUNCTION_ARG_BOUNDARY): Simplify.
13375         (FUNCTION_ARG_PASS_BY_REFERENCE): Pass variable and zero sized types
13376         by reference.
13377         (FUNCTION_ARG_CALLEE_COPIES): Define to FUNCTION_ARG_PASS_BY_REFERENCE.
13378
13379 2002-09-16  Richard Henderson  <rth@redhat.com>
13380
13381         * real.c (do_fix_trunc): New.
13382         (real_arithmetic): Call it.
13383         * simplify-rtx.c (simplify_unary_operation): Handle FIX
13384         with a floating-point result mode.
13385
13386 2002-09-16  Richard Henderson  <rth@redhat.com>
13387
13388         * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
13389         (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
13390         * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
13391         (__builtin_nans, __builtin_nansf, __builtin_nansl): New.
13392         * builtins.c (fold_builtin_nan): New.
13393         (fold_builtin): Call it.
13394         * real.c (real_nan): Parse a non-empty string.
13395         (round_for_format): Fix NaN significand truncation.
13396         * real.h (real_nan): Return bool.
13397         * doc/extend.texi: Document new builtins.
13398
13399 2002-09-16  Jason Merrill  <jason@redhat.com>
13400             Danny Smith  <dannysmith@users.sourceforge.net>
13401
13402         * config/i386/winnt.c (ix86_handle_dll_attribute): Set
13403         DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
13404         (i386_pe_mark_dllimport): Not here.
13405
13406 2002-09-16  Nathan Sidwell  <nathan@codesourcery.com>
13407
13408         * c-semantics.c (genrtl_do_stmt): Cope with NULL cond.
13409
13410 2002-09-16  Geoffrey Keating  <geoffk@redhat.com>
13411
13412         * config/rs6000/rs6000.c (build_mask64_2_operands): Suppress
13413         warnings about unused operands when HOST_BITS_PER_WIDE_INT is
13414         < 64.
13415         (rs6000_emit_cmove): Use real_isinf not target_isinf.
13416
13417 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
13418
13419         * calls.c (emit_library_call_value_1): Don't refer to
13420         hard_libcall_value.
13421         * optabs.c (prepare_float_lib_cmp): Likewise.
13422
13423 2002-09-16  Geoffrey Keating  <geoffk@apple.com>
13424
13425         * ggc-common.c (ggc_mark_rtx_children_1): Update for changed name
13426         mangling.
13427
13428         The following changes are merged from pch-branch:
13429
13430         * doc/gty.texi (GTY Options): Document %a.
13431         * gengtype.c (do_scalar_typedef): New function.
13432         (process_gc_options): Handle `length' option.
13433         (set_gc_used_type): A pointer to an array of structures doesn't
13434         qualify as a pointer to a structure.
13435         (output_escaped_param): Add `%a' escape.
13436         (write_gc_structure_fields): Allow 'desc' on array of unions.
13437         (main): Define `uint8', `jword' and `JCF_u2' as scalars; use
13438         do_scalar_typedef.
13439
13440         * gengtype.c (enum rtx_code): Make global.
13441         (rtx_format): Make global.
13442         (rtx_next): New.
13443         (gen_rtx_next): New.
13444         (write_rtx_next): New.
13445         (adjust_field_rtx_def): Skip fields marked by chain_next.
13446         (open_base_files): Delete redundant prototype.
13447         (write_enum_defn): New.
13448         (output_mangled_typename): Correct abort call.
13449         (write_gc_marker_routine_for_structure): Handle chain_next and
13450         chain_prev options.
13451         (finish_root_table): Don't output redundant \n.
13452         (main): Call gen_rtx_next, write_rtx_next, write_enum_defn.
13453         * c-tree.h (union lang_tree_node): Add chain_next option.
13454
13455         * gengtype.h (NUM_PARAM): New definition.
13456         (struct type): For TYPE_PARAM_STRUCT, allow multiple parameters.
13457         * gengtype.c (find_param_structure): New.
13458         (adjust_field_type): Handle param<n>_is option.
13459         (process_gc_options): Detect use_params option.  Update callers.
13460         (set_gc_used_type): Add 'param' parameter, update callers.  Handle
13461         'use_params' option.
13462         (open_base_files): Add splay-tree.h to list of files included.
13463         (output_mangled_typename): New.
13464         (write_gc_structure_fields): Update 'param' parameter to support
13465         multiple parameters.  Change name mangling.  Allow parameterized
13466         fields to have an apparent scalar type.  Handle param<n>_is options,
13467         use_param option.
13468         (write_gc_marker_routine_for_structure): Update for change to name
13469         mangling.  Better guess the output file for parameterized types.
13470         (write_gc_types): Update for change to name mangling.
13471         (write_gc_root): Update for change to name mangling.  Handle (ignore)
13472         param<n>_is options.
13473         * doc/gty.texi (GTY Options): Add description of param<n>_is
13474         options, use_params option.
13475         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
13476         * gengtype-lex.l: Produce token for param<n>_is.
13477         * gengtype-yacc.y: Parse param<n>_is.
13478
13479         * gengtype.c (adjust_field_tree_exp): Don't name a variable 'rindex'.
13480
13481         * rtl.c: Update comment describing rtx_format.
13482         * rtl.h (union rtunion): Separate definition and typedef.
13483         (struct rtx_def): Use gengtype to mark.
13484         * Makefile.in (gengtype.o): Also depend on rtl.def.
13485         * ggc.h (ggc_mark_rtx_children): Delete prototype.
13486         (ggc_mark_rtx): Change to alias of gengtype-generated routine.
13487         * ggc-common.c (ggc_mark_rtx_children): Delete.
13488         (ggc_mark_rtx_children_1): Delete.
13489         (gt_ggc_m_rtx_def): Delete.
13490         * gengtype.c (adjust_field_rtx_def): New.
13491         (adjust_field_type): Call adjust_field_rtx_def.
13492         (write_gc_structure_fields): Add 'default' case to switch if none
13493         is specified; remove unused code.
13494
13495         * tree.h (struct tree_exp): Update for change to meaning
13496         of special.
13497         * gengtype.c (adjust_field_tree_exp): New function.
13498         (adjust_field_type): Handle `tree_exp' special here.
13499         (write_gc_structure_fields): Don't handle `tree_exp' special here.
13500         Handle new `dot' option.
13501
13502         * gengtype.h: Make `info' a pointer-to-const.
13503         * gengtype-yacc.y (yacc_ids): Use xasprintf.
13504
13505         * gengtype.c (write_gc_structure_fields): Remove implementation
13506         of `always' option, add `default' option.
13507         * doc/gty.texi (GTY Options): Remove documentation of `always',
13508         add `default'.
13509
13510 2002-09-16  Hans-Peter Nilsson  <hp@bitrange.com>
13511
13512         * output.h: Remove #ifdef RTX_CODE and #ifdef TREE_CODE.
13513
13514 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13515
13516         * m68hc11.md (addhi_sp): Fix uninitialized variable bug.
13517
13518         * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h
13519         instead of the *-protos.h file directly.
13520         * t-c4x, t-i370, t-v850: Depend on $(TM_P_H).
13521         * darwin.c (machopic_output_stub): Move prototype ...
13522         * darwin-protos.h (machopic_output_stub): ... here.
13523         * rs6000-protos.h (machopic_output_stub): Don't declare.
13524
13525 2002-09-16  Richard Henderson  <rth@redhat.com>
13526
13527         * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
13528
13529 2002-09-16  Richard Henderson  <rth@redhat.com>
13530
13531         * real.c, real.h: Rewrite from scratch.
13532
13533         * Makefile.in (simplify-rtx.o): Depend on TREE_H.
13534         (paranoia): New target.
13535         * builtins.c (fold_builtin_inf): Use new real.h interface.
13536         * c-common.c (builtin_define_with_hex_fp_value): Likewise.
13537         * c-lex.c (interpret_float): Likewise.
13538         * emit-rtl.c (gen_lowpart_common): Likewise.
13539         * optabs.c (expand_float): Use real_2expN.
13540         * config/ia64/ia64.md (divsi3, udivsi3): Likewise.
13541         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New.
13542         (FLOAT_WORDS_BIG_ENDIAN): New.
13543         * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE
13544         directly to REAL_VALUE_NEGATIVE.
13545         * loop.c (canonicalize_condition): Likewise.
13546         * simplify-rtx.c: Include tree.h.
13547         (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX
13548         with floating-point result modes.
13549         * toplev.c (backend_init): Call init_real_once.
13550
13551         * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE.
13552         * tree.c (build_real): Likewise.
13553         * config/alpha/alpha.c, config/vax/vax.c (float_strings,
13554         float_values, inited_float_values, check_float_value): Remove.
13555         * config/alpha/alpha.h, config/m68hc11/m68hc11.h,
13556         config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove.
13557         * doc/tm.texi (CHECK_FLOAT_VALUE): Remove.
13558         (VAX_HALFWORD_ORDER): Remove.
13559
13560 2002-09-16  Ulrich Weigand  <uweigand@de.ibm.com>
13561
13562         * config/s390/s390.c: (legitimize_la_operand): Remove, replace by ...
13563         (s390_load_address): ... this new function.
13564         (s390_decompose_address): Allow the argument pointer and all
13565         virtual registers as 'pointer' registers.
13566         (s390_expand_plus_operand): Use s390_load_address.
13567         config/s390/s390.md (movti, movdi, movdf splitters): Likewise.
13568         ("force_la_31"): New insn pattern.
13569         config/s390/s390-protos.h (legitimize_la_operand): Remove.
13570         (s390_load_address): Add prototype.
13571
13572         * config/s390/s390.c: Include "optabs.h".
13573         (s390_expand_movstr, s390_expand_clrstr, s390_expand_cmpstr): New.
13574         config/s390/s390-protos.h (s390_expand_movstr, s390_expand_clrstr,
13575         s390_expand_cmpstr): Add prototypes.
13576         config/s390/s390.md ("movstrdi", "movstrsi"): Call s390_expand_movstr.
13577         ("movstrdi_short"): Rename to "movstr_short_64".  Change predicates
13578         for operands 0 and 1 to "memory_operand".  Add type attribute.
13579         ("movstrsi_short"): Rename to "movstr_short_31".  Change predicates
13580         for operands 0 and 1 to "memory_operand".  Add type attribute.
13581         ("movstrdi_long", "movstrsi_long"): Remove.
13582         ("movstrdi_64"): Rename to "movstr_long_64". Add type attribute.
13583         ("movstrsi_31"): Rename to "movstr_long_31". Add type attribute.
13584         ("clrstrdi", "clrstrsi"): Call s390_expand_clrstr.
13585         ("clrstrsico"): Remove, replace by ...
13586         ("clrstr_short_64", "clrstr_short_31"): ... these new patterns.
13587         ("clrstrsi_64"): Rename to "clrstr_long_64".
13588         ("clrstrsi_31"): Rename to "clrstr_long_31".
13589         ("cmpstrdi", "cmpstrsi"): Call s390_expand_cmpstr.
13590         ("cmpstr_const"): Remove, replace by ...
13591         ("cmpstr_short_64", "cmpstr_short_31"): ... these new patterns.
13592         ("cmpstr_64"): Rename to "cmpstr_long_64".
13593         ("cmpstr_31"): Rename to "cmpstr_long_31".
13594
13595 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
13596
13597         * ABOUT-NLS: Follow spelling conventions.
13598         * ChangeLog: Likewise.
13599         * ChangeLog.1: Likewise.
13600         * ChangeLog.2: Likewise.
13601         * ChangeLog.3: Likewise.
13602         * ChangeLog.4: Likewise.
13603         * ChangeLog.5: Likewise.
13604         * ChangeLog.6: Likewise.
13605         * FSFChangeLog.10: Likewise.
13606         * FSFChangeLog.11: Likewise.
13607         * c-common.c: Likewise.
13608         * c-lex.c: Likewise.
13609         * c-objc-common.c: Likewise.
13610         * cppexp.c: Likewise.
13611         * cppinit.c: Likewise.
13612         * cpplex.c: Likewise.
13613         * doloop.c: Likewise.
13614         * flow.c: Likewise.
13615         * function.c: Likewise.
13616         * integrate.c: Likewise.
13617         * loop.c: Likewise.
13618         * reg-stack.c: Likewise.
13619         * reload.h: Likewise.
13620         * ssa.c: Likewise.
13621
13622 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13623
13624         * Makefile.in (vmsdbgout.o): Depend on $(TARGET_H)
13625         * vmsdbgout.c: Include "target.h".
13626
13627 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
13628
13629         * ChangeLog: Follow spelling conventions.
13630         * ChangeLog.0: Likewise.
13631         * ChangeLog.1: Likewise.
13632         * ChangeLog.2: Likewise.
13633         * ChangeLog.4: Likewise.
13634         * ChangeLog.6: Likewise.
13635         * config.gcc: Likewise.
13636         * dwarfout.c: Likewise.
13637         * reload1.c: Likewise.
13638         * simplify-rtx.c: Likewise.
13639         * unwind-sjlj.c: Likewise.
13640         * config/avr/avr.h: Likewise.
13641         * config/d30v/d30v.h: Likewise.
13642         * config/frv/frv.c: Likewise.
13643         * config/frv/frv.h: Likewise.
13644         * config/ip2k/ip2k.h: Likewise.
13645         * config/m88k/m88k-move.sh: Likewise.
13646         * config/stormy16/stormy16.c: Likewise.
13647         * config/stormy16/stormy16.h: Likewise.
13648         * doc/extend.texi: Likewise.
13649         * doc/interface.texi: Likewise.
13650         * doc/invoke.texi: Likewise.
13651         * doc/md.texi: Likewise.
13652         * doc/rtl.texi: Likewise.
13653         * doc/tm.texi: Likewise.
13654         * doc/trouble.texi: Likewise.
13655         * ginclude/float.h: Likewise.
13656         * treelang/treelang.texi: Likewise.
13657
13658 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13659
13660         * i386-protos.h (i386_pe_dllexport_name_p,
13661         i386_pe_dllimport_name_p, i386_pe_unique_section,
13662         i386_pe_declare_function_type, i386_pe_record_external_function,
13663         i386_pe_record_exported_symbol, i386_pe_asm_file_end): Add
13664         prototype.
13665         * i386/t-cygwin (winnt.o): Depend on $(TM_P_H).
13666         * i386/t-interix (winnt.o): Likewise.
13667
13668         * v850-protos.h (v850_output_addr_const_extra): Prototype.
13669
13670 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
13671
13672         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Add
13673         MIPS ABI CPP macros.
13674         (TARGET_CPU_CPP_BUILTINS): Redefine.
13675         (SUBTARGET_EXTRA_SPECS): Remove subtarget_endian_default.
13676         (SUBTARGET_ENDIAN_DEFAULT_SPEC): Remove.
13677
13678 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13679
13680         * ia64/aix.h (TARGET_OS_CPP_BUILTINS): Fix typo.
13681
13682 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
13683
13684         * ChangeLog: Follow spelling conventions.
13685         * ChangeLog.0: Likewise.
13686         * ChangeLog.1: Likewise.
13687         * ChangeLog.2: Likewise.
13688         * ChangeLog.3: Likewise.
13689         * ChangeLog.4: Likewise.
13690         * ChangeLog.5: Likewise.
13691         * ChangeLog.6: Likewise.
13692         * FSFChangeLog.10: Likewise.
13693         * FSFChangeLog.11: Likewise.
13694         * c-common.c: Likewise.
13695         * c-common.h: Likewise.
13696         * c-format.c: Likewise.
13697         * c-opts.c: Likewise.
13698         * cpplib.c: Likewise.
13699         * langhooks.h: Likewise.
13700         * real.c: Likewise.
13701         * reg-stack.c: Likewise.
13702         * toplev.c: Likewise.
13703         * config/arm/arm.c: Likewise.
13704         * config/arm/arm.md: Likewise.
13705         * config/arm/linux-gas.h: Likewise.
13706         * config/arm/netbsd.h: Likewise.
13707         * config/c4x/c4x.c: Likewise.
13708         * config/c4x/c4x.h: Likewise.
13709         * config/c4x/c4x.md: Likewise.
13710         * config/c4x/libgcc.S: Likewise.
13711         * config/fr30/fr30.md: Likewise.
13712         * config/frv/frv.md: Likewise.
13713         * config/ia64/ia64.md: Likewise.
13714         * config/mips/mips.h: Likewise.
13715         * config/mn10300/mn10300.c: Likewise.
13716         * config/stormy16/stormy16.c: Likewise.
13717         * config/v850/v850.md: Likewise.
13718         * doc/extend.texi: Likewise.
13719         * doc/invoke.texi: Likewise.
13720         * doc/md.texi: Likewise.
13721
13722 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
13723
13724         * config/netbsd.h (LIB_SPEC): Include the appropriate pthread
13725         library if -pthread is specified.
13726
13727 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
13728
13729         * config.gcc (*-*-netbsd*): Set thread_file to 'posix'
13730         for --enable-threads=yes and --enable-threads=posix.
13731
13732 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
13733
13734         * config/sparc/cypress.md: Replace Sparc with SPARC.
13735         * config/sparc/freebsd.h: Likewise.
13736         * config/sparc/gmon-sol2.c: Likewise.
13737         * config/sparc/hypersparc.md: Likewise.
13738         * config/sparc/lb1spc.asm: Likewise.
13739         * config/sparc/lb1spl.asm: Likewise.
13740         * config/sparc/linux.h: Likewise.
13741         * config/sparc/linux64.h: Likewise.
13742         * config/sparc/lynx.h: Likewise.
13743         * config/sparc/sol2.h: Likewise.
13744         * config/sparc/sparc-modes.def: Likewise.
13745         * config/sparc/sparc.c: Likewise.
13746         * config/sparc/sparc.h: Likewise.
13747         * config/sparc/sparc.md: Likewise.
13748         * config/sparc/sparclet.md: Likewise.
13749         * config/sparc/supersparc.md: Likewise.
13750         * config/sparc/sysv4.h: Likewise.
13751         * config/sparc/vxsim.h: Likewise.
13752         * config/sparc/vxsparc64.h: Likewise.
13753
13754 2002-09-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13755
13756         * c-lex.c (cb_ident): Mark variable with ATTRIBUTE_UNUSED.
13757         * collect2.c (ignore_library, aix_std_libs): Move into the context
13758         where it is used.
13759         * m68hc11.c (m68hc11_autoinc_compatible_p): Delete prototype.
13760         (autoinc_mode, m68hc11_make_autoinc_notes): Add prototypes.
13761         * m88k.c (output_call): Wrap variables with macro controlling use.
13762         * rs6000.md: Likewise.  Const-ify variable.
13763         * sh.h (ASM_OUTPUT_LABELREF): Likewise.
13764         * final.c (only_leaf_regs_used): Likewise.
13765         * regrename.c (maybe_mode_change): Mark parameter with
13766         ATTRIBUTE_UNUSED.
13767         * reload.c (find_valid_class): Likewise.  Likewise for variable.
13768         (find_reloads_address_1): Likewise.
13769         * varasm.c (weak_finish): Wrap variable with macro controlling use.
13770
13771 2002-09-14  Marek Michalkiewicz  <marekm@amelek.gda.pl>
13772
13773         * config/avr/avr.c (output.h): Move after inclusion of tree.h.
13774
13775 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
13776
13777         * ChangeLog: Follow spelling conventions.
13778         * ChangeLog.0: Likewise.
13779         * ChangeLog.2: Likewise.
13780         * ChangeLog.3: Likewise.
13781         * ChangeLog.4: Likewise.
13782         * ChangeLog.5: Likewise.
13783         * ChangeLog.6: Likewise.
13784         * cppfiles.c: Likewise.
13785         * cppinit.c: Likewise.
13786         * cpplib.h: Likewise.
13787         * cse.c: Likewise.
13788         * debug.h: Likewise.
13789         * df.c: Likewise.
13790         * dominance.c: Likewise.
13791         * hashtable.c: Likewise.
13792         * hashtable.h: Likewise.
13793         * loop.c: Likewise.
13794         * config/arm/README-interworking: Likewise.
13795         * config/arm/arm.c: Likewise.
13796         * config/arm/arm.h: Likewise.
13797         * config/arm/arm.md: Likewise.
13798         * config/dsp16xx/dsp16xx.h: Likewise.
13799         * config/frv/frv.c: Likewise.
13800         * config/frv/frv.h: Likewise.
13801         * config/ip2k/ip2k.h: Likewise.
13802         * config/rs6000/rs6000.c: Likewise.
13803         * config/stormy16/stormy-abi: Likewise.
13804         * config/stormy16/stormy16.h: Likewise.
13805         * config/v850/v850.c: Likewise.
13806
13807 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
13808
13809         * loop.c: Fix a comment typo.
13810
13811 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
13812
13813         * config/fr30/fr30.h: Fix comment typos.
13814         * config/frv/frv.c: Likewise.
13815         * config/i386/xmmintrin.h: Likewise.
13816         * config/mips/mips.c: Likewise.
13817         * config/sh/sh.c: Likewise.
13818
13819 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
13820
13821         * haifa-sched.c: Follow spelling conventions.
13822         * regclass.c: Likewise.
13823         * regrename.c: Likewise.
13824         * config/fp-bit.c: Likewise.
13825         * config/frv/frv.h: Likewise.
13826         * config/m88k/m88k.c: Likewise.
13827         * config/mcore/mcore.c: Likewise.
13828         * config/rs6000/darwin.h: Likewise.
13829         * config/rs6000/gnu.h: Likewise.
13830         * config/rs6000/linux.h: Likewise.
13831         * config/rs6000/linux64.h: Likewise.
13832         * config/rs6000/rs6000.c: Likewise.
13833         * config/rs6000/rs6000.h: Likewise.
13834         * config/sh/sh.c: Likewise.
13835         * config/sparc/sparc.c: Likewise.
13836         * config/sparc/ultra1_2.md: Likewise.
13837
13838 2002-09-14  Stephane Carrez  <stcarrez@nerim.fr>
13839
13840         * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
13841         memory operand when source is 0 (K constraint).
13842         ("movsi_internal"): Likewise.
13843         ("movdf_internal"): Likewise.
13844         ("movsf_internal"): Likewise.
13845
13846 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
13847
13848         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
13849         targetm.binds_local_p to set SYMBOL_REF_FLAG.
13850         (rs6000_xcoff_encode_section_info): Likewise.
13851         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13852
13853 2002-09-10  Theodore A. Roth  <troth@verinet.com>
13854
13855         * gcc/config/avr/avr.h: Set default options for C++ for avr.
13856
13857 2002-09-13  Roger Sayle  <roger@eyesopen.com>
13858
13859         * stmt.c (struct nexting): Remove unused alt_end_label field.
13860         (expand_start_loop): Delete initialization of alt_end_label.
13861         (expand_start_null_loop): Likewise.
13862         (expand_exit_loop_if_false): Delete updating of alt_end_label.
13863
13864 2002-09-13  Richard Henderson  <rth@redhat.com>
13865
13866         * Makefile.in (toplev.o): Depend on real.h.
13867         (print-rtl.o, varasm.o, ifcvt.o): Likewise.
13868
13869 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
13870
13871         * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
13872         * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
13873         * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
13874
13875 2002-09-13  Nathan Sidwell  <nathan@codesourcery.com>
13876
13877         * ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
13878
13879 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
13880
13881         * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
13882         ia64*-*-linux*): Set extra_parts.
13883         * config/ia64/t-aix (EXTRA_PARTS): Remove.
13884         * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
13885
13886 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
13887
13888         * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
13889         * config/h8300/h8300.c: Likewise.
13890         * config/h8300/h8300.h: Likewise.
13891         * config/h8300/h8300.md: Likewise.
13892         * doc/invoke.texi: Likewise.
13893
13894 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
13895
13896         * config/h8300/h8300.c (h8300_init_once): Fix formatting.
13897
13898 2002-09-13  Richard Henderson  <rth@redhat.com>
13899
13900         * config/alpha/alpha.md (attr type): Add callpal.
13901         (imb, trap, load_tp, set_tp): Use it.
13902         * config/alpha/ev4.md (ev4_callpal): New.
13903         * config/alpha/ev5.md (ev5_callpal): New.
13904         * config/alpha/ev6.md (ev6_ibr): Handle callpal.
13905         * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
13906         (alphaev5_insn_pipe): Likewise.
13907
13908 2002-09-13  Andreas Jaeger  <aj@suse.de>
13909
13910         * Makefile.in (print-rtl.o): Depend on CONFIG_H.
13911
13912 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
13913
13914         * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
13915         LIB2ADDEH): New, set to NULL.
13916         (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
13917
13918 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
13919
13920         * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
13921         (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
13922         (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
13923         Add declarations.
13924         (_U_Qfneg): Remove.
13925
13926 2002-09-13 Dhananjay Deshpande  <dhananjayd@kpit.com>
13927
13928         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
13929         for H8/300, H8S aa:8 mode.
13930         (TINY_CONSTANT_ADDRESS_P): Add support for H8S aa:16 mode.
13931         * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
13932         for H8/300 aa:8 mode.
13933
13934 2002-09-13  Hartmut Penner  <hpenner@de.ibm.com>
13935
13936         * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
13937         insns.
13938
13939 2002-09-12  Richard Henderson  <rth@redhat.com>
13940
13941         * Makefile.in (HOST_PRINT): Use print-rtl1.o
13942         (print-rtl.o): Don't define GENERATOR_FILE.
13943         (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
13944         * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
13945         unless GENERATOR_FILE.
13946
13947 2002-09-12  Stan Shebs  <shebs@apple.com>
13948
13949         * config/darwin.h (USER_LABEL_PREFIX): Define here...
13950         * config/i386/darwin.h: ... instead of here.
13951
13952         * target.h (struct gcc_target): New field
13953         terminate_dw2_eh_frame_info.
13954         * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
13955         (TARGET_INITIALIZER): Add it.
13956         * dwarf2out.c (output_call_frame_info): Use target hook.
13957         * dwarf2asm.c (dw2_asm_output_delta): Use macro
13958         ASM_OUTPUT_DWARF_DELTA if defined.
13959         * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
13960         (ASM_OUTPUT_DWARF_DELTA): Ditto.
13961         (ASM_OUTPUT_DWARF_OFFSET): Ditto.
13962         (ASM_OUTPUT_DWARF_PCREL): Ditto.
13963         * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
13964         (powerpc-*-darwin*): Ditto.
13965         * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
13966         to work correctly for Darwin.
13967         * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
13968         (STARTFILE_SPEC): Add crtbegin.o.
13969         (ENDFILE_SPEC): Define.
13970         (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
13971         (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
13972         (ASM_OUTPUT_DWARF_DELTA): Define.
13973         (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
13974         * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
13975
13976 2002-09-13  Alan Modra  <amodra@bigpond.net.au>
13977
13978         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
13979         nesting.  Correct test for non-PowerPC64 ELF ABI_AIX.
13980         * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
13981
13982 2002-09-12  Zack Weinberg  <zack@codesourcery.com>
13983
13984         * toplev.c: Move default definition of USER_LABEL_PREFIX...
13985         * defaults.h: ... here.
13986
13987 2002-09-12  Richard Henderson  <rth@redhat.com>
13988
13989         * vax.c: Include tree.h earlier.
13990
13991 2002-09-12  Stan Shebs  <shebs@apple.com>
13992
13993         * config/darwin.c (machopic_finish): Remove #if 0 chunks.
13994         (machopic_operand_p): Ditto.
13995
13996 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
13997
13998         * config/arm/arm.c (arm_compute_initial_elimination_offset):
13999         Fix a comment typo.
14000
14001 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
14002
14003         * toplev.c (do_abort): Fix a comment typo.
14004
14005 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
14006
14007         * cselib.c: Fix comment formatting.
14008         * gengtype.c: Likewise.
14009
14010 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
14011
14012         * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
14013         (udivmodhi4): Likewise.
14014
14015 2002-09-12  Graham Stott  <graham.stott@btinternet.com>
14016             Roger Sayle  <roger@eyesopen.com>
14017
14018         * i386.c (any_fp_register_operand, fp_register_operand,
14019         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
14020         New predicate functions.
14021         * i386-protos.h:  Add their prototypes.
14022         * i386.h: Add them to PREDICATE_CODES.
14023         * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
14024         "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
14025         "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
14026         "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
14027         "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
14028         "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
14029         "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
14030         "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
14031         "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
14032         "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
14033         "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
14034         Use these new predicates to simplify and correct the use of
14035         FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
14036
14037 2002-09-12  Jason Merrill  <jason@redhat.com>
14038
14039         * diagnostic.c (output_add_identifier): New fn.
14040         * diagnostic.h: Declare it.
14041
14042         * calls.c (store_one_arg): Use size_in_bytes to determine the
14043         amount of space to push.
14044
14045 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
14046
14047         * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
14048
14049 2002-09-12  Ulrich Weigand  <uweigand@de.ibm.com>
14050
14051         * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
14052         * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
14053         (s390_select_ccmode): Likewise.
14054         (s390_branch_condition_mask): Likewise.
14055         (optimization_options): Do not set flag_branch_on_count.
14056         (s390_split_branches): Handle doloop branches.
14057         (s390_chunkify_pool): Likewise.
14058         * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
14059         ("doloop_end"): New expander.
14060         ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
14061         associated splitters): New.
14062
14063 2002-09-11  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
14064
14065         * genattrtab.c (simplify_cond): Remove unused variable(s).
14066         * global.c (record_conflicts): Likewise.
14067         * jump.c (rebuild_jump_labels): Likewise.
14068         * loop.c (scan_loop, check_final_value): Likewise.
14069         * ra-colorize.c (colorize_one_web, assign_colors): Likewise.
14070         * reload1.c (eliminate_regs_in_insn, do_input_reload): Likewise.
14071         * rtlanal.c (reg_set_p): Likewise.
14072         * stmt.c (expand_asm_operands, expand_decl): Likewise.
14073         * genautomata.c (empty_reserv): Remove.
14074         * loop.c (max_luid): Likewise.
14075         * sched-rgn.c (bitlst_table_size): Likewise.
14076
14077 2002-09-11  Nathan Sidwell  <nathan@codesourcery.com>
14078
14079         Reimplement gcov format.
14080         * gcov-io.h: Replace.
14081         * gcov.c: Reimplement.
14082         * gcov-iov.c: New file.
14083         * gcov-dump.c: New file.
14084         * libgcc2.c (L_bb): Replace with ...
14085         (L_gcov): ... this.
14086         (struct bb_function_info, struct bb): Remove.
14087         (inhibit_libc): Never inhibit.
14088         (gcov_list, gcov_crc): New static variables.
14089         (gcov_version_mismatch): New static function.
14090         (__bb_exit_func): Renamed to ...
14091         (__gcov_exit): ... here. Made static. Reimplement.
14092         (__gcov_init_func): Rename to ...
14093         (__gcov_init): ... here. Check version, update crc.
14094         (__bb_fork_func): Rename to ...
14095         (__gcov_flush): ... here.
14096         * libgcc2.h (struct bb, __bb_exit_func, __bb_init_func,
14097         __bb_fork_func, gcov_type, __bb_find_arc_counters): Remove.
14098         * calls.c (expand_call): Call __gcov_flush.
14099         * profile.c (bb_file, last_bb_file_name): Remove.
14100         (bbg_file_name): New global variable.
14101         (output_gcov_string): Remove.
14102         (get_exec_counts): Reimplement.
14103         (branch_prob): Reimplement gcov file writing.
14104         (init_branch_prob): Create bbg_file_name, don't create
14105         bb_file_name.
14106         (end_branch_prob): Adjust. Don't remove counter file when
14107         instrumenting ourselves.
14108         (create_profiler): Adjust.
14109         * doc/gcov.texi (Gcov Data Files): Remove detailed specification,
14110         point to gcov-io.h.
14111         * Makefile.in (LANGUAGES): Add gcov-dump.
14112         (coverageexts): Remove .bb.
14113         (STAGESTUFF): Add gcov-dump.
14114         (LIB2FUNCS_ST): Replace _bb with _gcov.
14115         (profile.o): Depend on gcov-iov.h.
14116         (final.o): Don't depend on profile.h, gcov.h.
14117         (gcov.o): Depend on gcov-iov.h.
14118         (gcov-iov.o): New target.
14119         (gcov-iov): New target.
14120         (gcov-iov.h): New target.
14121         (gcov-dump.o): New target.
14122         (GCOV_DUMP_OBJS): New variable.
14123         (gcov-dump): New target.
14124         (distclean): Remove coverageexts.
14125         (stage1): Remove coverageexts.
14126
14127 2002-09-11  Hartmut Penner  <hpenner@de.ibm.com>
14128
14129         * fold-const.c (make_range): Only narrow to signed range if
14130         the signed range is smaller than the unsigned range.
14131
14132 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
14133
14134         * emit-rtl.c (set_mem_size): New function.
14135         * expr.h (set_mem_size): Declare.
14136         * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
14137         (expand_block_move): Instead, use adjust_address and
14138         replace_equiv_address to generate proper aliasing info.
14139         Move common code out of conditionals.  Localize vars.
14140
14141 2002-09-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
14142
14143         * optabs.c (expand_binop): Minor cleanup.
14144         (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
14145
14146 2002-09-11  Dan Nicolaescu  <dann@ics.uci.edu>
14147
14148         * print-tree.c (print_node): Print the restrict qualifier.
14149
14150 2002-09-11  Janis Johnson  <janis187@us.ibm.com>
14151
14152         * doc/install.texi: Fix typos.
14153
14154 2002-09-11  Zack Weinberg  <zack@codesourcery.com>
14155
14156         * Makefile.in: Remove all references to s-under and underscore.c.
14157         * collect2.c, tlink.c: Change all uses of prepends_underscore
14158         to look directly at USER_LABEL_PREFIX.
14159
14160 2002-09-11  David Edelsohn  <edelsohn@gnu.org>
14161
14162         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
14163         alignment to csect.
14164         (rs6000_xcoff_unique_section): Only set section name for public
14165         data.
14166         (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
14167         * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
14168         duplicate definition.
14169
14170 2002-09-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14171
14172         * pa.md (extzv): Check predicates before emitting extzv_32.
14173         (insv): Likewise.
14174
14175 2002-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
14176
14177         * config/s390/s390.h (MOVE_MAX): Define to correct value.
14178         (MAX_MOVE_MAX): Define.
14179         (MOVE_BY_PIECES_P): Define.
14180         (CLEAR_BY_PIECES_P): Define.
14181
14182 2002-09-10  Denis Chertykov  <denisc@overta.ru>
14183
14184         * config/avr/avr.md (movstrhi): Use right operands for conversion.
14185
14186 2002-09-10  Richard Earnshaw  <rearnsha@arm.com>
14187
14188         PR c/7873
14189         * arm.md (insv): Use reg_or_int_operand for operand[3].
14190
14191 2002-09-10  David Edelsohn  <edelsohn@gnu.org>
14192
14193         * rs6000.c (rs6000_assemble_visibility): Protect declaration
14194         inside macro.  Correct function definition typo.
14195         (rs6000_xcoff_section_type_flags): New function.
14196         (TARGET_SECTION_TYPE_FLAGS): Remove definition.
14197         (rs6000_elf_section_type_flags): Call default_section_type_flags_1
14198         with appropriate PIC test.
14199         (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
14200         determine readonly.
14201         (rs6000_binds_local_p): Combine PIC flags.
14202         * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
14203         * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
14204
14205 2002-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14206
14207         * h8300.md: Fix signed/unsigned warnings.
14208         * mcore.md: Likewise.
14209         * mn10300.c (mask_ok_for_mem_btst): Likewise.
14210
14211 2002-09-09  Per Bothner  <per@bothner.com>
14212
14213         * print-tree.c (print_node):  In a STRING_CST, escape non-ascii
14214         characters, and only print TREE_STRING_LENGTH chars.
14215
14216 2002-09-09  Steve Ellcey  <sje@cup.hp.com>
14217
14218         * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
14219         (ASM_FILE_END) New.
14220         * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
14221         * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
14222         * config/ia64/ia64.c (ia64_asm_output_external): Create list
14223         of external functions if TARGET_HPUX_LD is true.
14224         (ia64_hpux_add_extern_decl): New, routine to put names on
14225         list of external functions.
14226         (ia64_hpux_asm_file_end): Put out declarations for external
14227         functions if and only if they are used.
14228
14229 2002-09-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14230
14231         * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
14232         on TARGET_64BIT before pic register restore.
14233
14234 2002-09-09  David Edelsohn  <edelsohn@gnu.org>
14235
14236         * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
14237         (TARGET_HAVE_TLS): New description.
14238
14239 2002-09-09  Janis Johnson  <janis187@us.ibm.com>
14240
14241         * doc/extend.texi (Statement Exprs): Fix broken link.
14242
14243 2002-09-09  Denis Chertykov  <denisc@overta.ru>
14244
14245         * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
14246         right conversion of operands[1].
14247
14248 2002-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
14249
14250         * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
14251         commutative.  Use "nonimmediate_operand" instead of "register_operand"
14252         as predicate for operand 0.  Move to after the "*tmXX_mem" insns.
14253
14254         ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
14255         as commutative.
14256
14257         ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
14258         mark as commutative.  Use "nonimmediate_operand" instead of
14259         "register_operand" as predicate for operand 1.
14260
14261         ("movstrictsi"): Fix typo in insn name.
14262
14263 2002-09-09  Jan Hubicka  <jh@suse.cz>
14264
14265         * i386.c (index_register_operand): New.
14266         * i386.h (predicate_codes): Add new predicate.
14267         * i386.md (lea_general_*): Use index_register_operand
14268         (ashift to lea splitter): Do not produce invalid leas
14269         (ashift to mov+ashift split): New.
14270
14271 2002-09-09  Nick Clifton  <nickc@redhat.com>
14272
14273         * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
14274         Fix folding marks.
14275
14276 2002-09-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
14277             J"orn Rennecke <joern.rennecke@superh.com>
14278
14279         * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
14280
14281 2002-09-09  Alan Modra  <amodra@bigpond.net.au>
14282
14283         * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
14284         (function_ok_for_sibcall): Use binds_local_p.  Respect longcall
14285         attributes.
14286
14287 2002-09-08  Nathan Sidwell  <nathan@codesourcery.com>
14288
14289         * basic_block.h (gcov_type): Explain why it is signed.
14290         * final.c: Don't include profile.h.
14291         (struct function_list, functions_head, functions_tail,
14292         end_final): Moved to profile.c
14293         (final): Move arc chaining code to profile.c.
14294         * function.c (prepare_function_start): Remove duplicate line.
14295         * output.h (end_final): Remove prototype.
14296         * predict.c (estimate_loops_at_level): Use gcov_type.
14297         * profile.c (struct function_list, functions_head,
14298         functions_tail): Moved from final.c
14299         (need_func_profiler): Remove.
14300         (instrument_edges): Don't set need_func_profiler.
14301         (get_exec_counts): Avoid signed/unsigned warning.
14302         (compute_checksum): Use crc32.
14303         (branch_prob): Adjust. Chain onto functions_head.
14304         (init_branch_prob): Absorb init_edge_profiler.
14305         (init_edge_profiler): Remove.
14306         (create_profiler): Moved and renamed from final.c:end_final.
14307         Emit data and constructor.
14308         (output_func_start_profiler): Remove.
14309         * profile.h (struct profile_info): checksum is unsigned.
14310         * rtl.h (output_func_start_profiler): Remove prototype.
14311         (create_profiler): Declare.
14312         * toplev.c (compile_file): Call create_profiler, if instrumenting
14313         arcs. Don't call end_final.
14314
14315 2002-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14316
14317         * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
14318
14319 2002-09-08  Richard Henderson  <rth@redhat.com>
14320
14321         * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
14322         (DW_OP_GNU_push_tls_address): New.
14323         (DW_OP_lo_user): Fix.
14324         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
14325         (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
14326         (size_of_loc_descr): Likewise.
14327         (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
14328         (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
14329         (loc_descriptor_from_tree): Handle TLS variables.
14330         (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
14331         (add_location_or_const_value_attribute): ... not here.  Defer
14332         to loc_descriptor_from_tree for TLS variables.
14333
14334         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
14335         * config/i386/i386.c (i386_output_dwarf_dtprel): New.
14336         * config/i386/i386-protos.h: Update.
14337
14338 2002-09-08  Roger Sayle  <roger@eyesopen.com>
14339
14340         PR optimization/6405
14341         * unroll.c (loop_iterations): last_loop_insn should be the previous
14342         non-note instruction before loop->end.
14343         * loop.c (strength_reduce): The conditional jump is the last
14344         non-note instruction before loop->end (as above).
14345
14346 2002-09-08  Roger Sayle  <roger@eyesopen.com>
14347
14348         * combine.c (try_combine): Handle the case that undobuf.other_insn
14349         has been turned into a return or unconditional jump, by inserting
14350         a BARRIER if necessary.
14351         (simplify_set):  Test if a condition code setter has a constant
14352         comparison at compile time, if so convert this insn to a no-op move
14353         and update/simplify the condition code user (undobuf.other_insn).
14354
14355 2002-09-08  Krister Walfridsson  <cato@df.lth.se>
14356
14357         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
14358         (CLEAR_INSN_CACHE): Define.
14359
14360 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
14361
14362         * basic-block.h: Fix comment formatting.
14363         * c-common.c: Likewise.
14364         * c-common.h: Likewise.
14365         * c-lex.c: Likewise.
14366         * c-pretty-print.c: Likewise.
14367         * cfglayout.c: Likewise.
14368         * cfgloop.c: Likewise.
14369         * defaults.h: Likewise.
14370         * et-forest.c: Likewise.
14371         * explow.c: Likewise.
14372         * function.h: Likewise.
14373         * gcov.c: Likewise.
14374         * genattrtab.c: Likewise.
14375         * gengtype.c: Likewise.
14376         * ifcvt.c: Likewise.
14377         * libgcc2.c: Likewise.
14378         * loop.c: Likewise.
14379         * profile.c: Likewise.
14380         * ra-build.c: Likewise.
14381         * real.c: Likewise.
14382         * rtl.h: Likewise.
14383         * tracer.c: Likewise.
14384         * tree-inline.c: Likewise.
14385         * varasm.c: Likewise.
14386
14387 2002-09-08  Jan Hubicka  <jh@suse.cz>
14388
14389         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
14390         handling.
14391
14392         * loop.c (loop_givs_reduce):  Emit addition after.
14393
14394 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
14395
14396         * varasm.c (default_assemble_visibility): Rename from
14397         assemble_visibility.
14398         * output.h: Here too.
14399         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
14400         * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
14401
14402 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
14403
14404         * reload.c (find_reloads <p constraint>): Pass operand_mode to
14405         find_reloads_address.
14406
14407 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
14408
14409         * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
14410         (anonymous pattern): Likewise.
14411
14412 2002-09-07  Igor Shevlyakov <igor@microunity.com>
14413
14414         * machmode.def: Add modes for half-float vectors.
14415
14416 2002-09-07  Scott Snyder  <snyder@fnal.gov>
14417
14418         PR target/7374
14419         * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
14420
14421 2002-09-07  Roger Sayle  <roger@eyesopen.com>
14422
14423         * basic-block.h (struct loop): Remove unused cont_dominator field.
14424
14425 2002-09-07  Igor Shevlyakov <igor@microunity.com>
14426
14427         * varasm.c (decode_rtx_const): Don't check undefined field for
14428         CONST_VECTOR.
14429
14430 2002-09-07  Glen Nakamura  <glen@imodulo.com>
14431
14432         PR opt/7814
14433         * sched-deps.c (sched_analyze_insn): Make sure to add insn
14434         to reg_last->sets after flushing the dependency lists to guarantee
14435         that subsequent clobbers will be dependent on it.
14436
14437 2002-09-07  Igor Shevlyakov <igor@microunity.com>
14438
14439         * combine.c (simplify_shift_const): Calculate rotate count
14440         correctly for vector operands.
14441
14442 2002-09-07  Ansgar Esztermann  <ansgar@thphy.uni-duesseldorf.de>
14443
14444         * c-typeck.c (c_tree_expr_nonnegative_p): New function.
14445         (build_binary_op): Call c_tree_expr_nonnegative_p rather than
14446         tree_expr_nonnegative_p.
14447         (build_conditional_expr): Likewise.
14448         * c-tree.h (c_tree_expr_nonnegative_p): Declare.
14449
14450 2002-09-07  Richard Henderson  <rth@redhat.com>
14451
14452         * builtins.def (inf, inff, infl): Mark const.
14453         (huge_val, huge_valf, huge_vall): Likewise.
14454         (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
14455
14456         * real.c (ereal_inf): Clear E before use.
14457
14458 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
14459
14460         * config/h8300/h8300.md (udivmodqi4): Split the pattern into
14461         an expander and an anonymous pattern.  Zero out the upper half
14462         of the dividend in the expander.
14463         (udivmodqi4): Likewise.
14464
14465 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
14466
14467         * config/h8300/h8300.c: Fix formatting.
14468         * config/h8300/h8300.h: Likewise.
14469         * config/h8300/h8300.md: Likewise.
14470
14471 2002-09-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14472
14473         * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
14474         information.
14475
14476 2002-09-07  Graham Stott  <graham.stott@btinternet.com>
14477
14478        * rtlanal.c (dead_or_set_regno_p): Fix typo.
14479
14480 2002-09-07  Alan Modra  <amodra@bigpond.net.au>
14481
14482         * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14483
14484         * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
14485         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
14486         (TARGET_ASM_OUT): Add the above here.
14487         * target.h (struct gcc_target): Add "visibility" field.
14488         * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
14489         * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
14490         (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
14491         (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
14492
14493 2002-09-06  Ziemowit Laski <zlaski@apple.com>
14494
14495         * c-lang.c (objc_is_id): New stub.
14496         * c-tree.h (objc_is_id): New forward declaration.
14497         * c-typeck.c (build_c_cast): Do not strip protocol
14498         qualifiers from 'id' type.
14499         * objc/objc-act.c (objc_comptypes): Correct handling
14500         of protocol qualifiers.
14501         (objc_is_id): New.
14502
14503 Fri Sep  6 13:10:08 2002  Jeffrey A Law  (law@redhat.com)
14504
14505         * pentium.md (pentium-firstvboth): Fix typo.
14506
14507 2002-09-06      Dhananjay Deshpande <dhananjayd@kpit.com>
14508
14509         * h8300.c (enum shift_alg): Move to earlier in h8300.c.
14510         (enum shift_type, enum h8_cpu): Likewise.
14511         (INL, ROT, LOP, SPC macros): Likewise.
14512         (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise.  Lose
14513         const designator.
14514         (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
14515         space efficient algorithms when optimize for codesize.
14516
14517 Fri Sep  6 16:35:32 2002  Nicola Pero  <n.pero@mi.flashnet.it>
14518
14519         Fix PR/1727 and long-standing failing testcase
14520         objc/formal-protocol-6.m.
14521         * objc-act.c (build_protocol_expr): If compiling for the GNU
14522         runtime, create a list of Protocol statically allocated instances
14523         if it doesn't exist, then add the Protocol object to this same
14524         list.
14525         (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
14526         instead of TREE_CHAIN.
14527
14528 Fri Sep  6 16:17:33 2002  Nicola Pero  <n.pero@mi.flashnet.it>
14529
14530         * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
14531         10k.  Fixed category dumping - print out category names with the
14532         proper syntax.  Print '@end\n' and not '\n@end' at the end of the
14533         interface.
14534         (finish_objc): Fixed the -gen-decls option.  It was printing out
14535         only the last class.  Dump an interface declaration of all classes
14536         being compiled instead.
14537
14538 2002-09-06  Jason Thorpe  <thorpej@wasabisystems.com>
14539
14540         * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
14541         prototype.
14542         * config/arm/arm.c (arm_gen_return_addr_mask): New function.
14543         * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
14544         if not APCS26 and not Thumb or ARMv4-or-higher.  Use gen_int_mode
14545         rather than GEN_INT.
14546         * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
14547         (return_addr_mask, *check_arch2): New.
14548
14549 2002-09-06  Ulrich Weigand  <uweigand@de.ibm.com>
14550
14551         * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
14552         "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
14553         "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
14554         "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
14555         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
14556         "adddf3", "*adddf3", "*adddf3_ibm",
14557         "addsf3", "*addsf3", "*addsf3_ibm",
14558         "muldi3", "mulsi3", "mulsidi3",
14559         "muldf3", "*muldf3", "*muldf3_ibm",
14560         "mulsf3", "*mulsf3", "*mulsf3_ibm",
14561         "*anddi3_cc", "*anddi3_cconly", "anddi3",
14562         "*andsi3_cc", "*andsi3_cconly", "andsi3",
14563         "*iordi3_cc", "*iordi3_cconly", "iordi3",
14564         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
14565         "*xordi3_cc", "*xordi3_cconly", "xordi3",
14566         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
14567         instead of "register_operand" as predicate for "%0" operand.
14568
14569 2002-09-06  Jakub Jelinek  <jakub@redhat.com>
14570
14571         * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
14572         unconditionally when gcc_cv_as_flags64 checks are gone.
14573         * configure: Rebuilt.
14574
14575 2002-09-06  Alan Modra  <amodra@bigpond.net.au>
14576
14577         * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
14578         2002-07-26 change.  Comment.
14579
14580 2002-09-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14581
14582         * frv.c (frv_unique_section, frv_select_section,
14583         frv_select_rtx_section): Delete.
14584         (frv_in_small_data_p): New.
14585         (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
14586         TARGET_ASM_SELECT_RTX_SECTION): Delete.
14587         (TARGET_IN_SMALL_DATA_P): Define.
14588
14589 2002-09-05  Dale Johannesen  <dalej@apple.com>
14590
14591         * reload1.c (reload):  Retain only those memory clobbers
14592         added for variable-array handling.
14593
14594 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
14595
14596         * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
14597         return-in-memory rules.
14598         * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
14599
14600 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
14601
14602         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
14603         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
14604
14605 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
14606
14607         * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
14608         not a compile-time constant for the non-IBM case.
14609         * config/arm/arm-protos.h (arm_float_words_big_endian): New
14610         prototype.
14611         * config/arm/arm.c (arm_float_words_big_endian): New function.
14612         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
14613         if TARGET_VFP  and not TARGET_HARD_FLOAT.
14614         (ARM_FLAG_VFP, TARGET_VFP): Define.
14615         (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
14616
14617 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
14618
14619         * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
14620         URLs.  Fix AIX wording.
14621
14622 2002-09-05  Stan Shebs  <shebs@apple.com>
14623
14624         * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
14625         -fPIC equivalent on Darwin.
14626
14627 Thu Sep  5 16:27:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
14628
14629         * sh.c (sh_expand_builtin): Return early if encountering an
14630         error_mark for a type.
14631
14632 2002-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
14633
14634         * config/s390/s390.c (s390_expand_plus_operand): Do not require
14635         double-word scratch register.
14636         config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
14637
14638         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
14639         "*cli"): Replace s_operand by memory_operand.
14640         ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
14641
14642 2002-09-05  Kazu Hirata  <kazu@cs.umass.edu>
14643
14644         * config/h8300/h8300.c (asm_file_start): Add a missing
14645         semicolon.
14646
14647 2002-09-04  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
14648
14649         * c-typeck.c (build_function_call): Remove unused variable(s).
14650         (build_c_cast): Likewise.
14651         * calls.c (rtx_for_function_call): Likewise.
14652         * cfglayout.c (duplicate_insn_chain): Likewise.
14653         * cfgloop.c (flow_loop_nodes_find): Likewise.
14654         * cfgrtl.c (split_edge): Likewise.
14655         * df.c (df_ref_create): Likewise.
14656         * except.c (expand_end_catch): Likewise.
14657         * expr.c (emit_push_insn, store_constructor, expand_expr): Likewise.
14658         * function.c (emit_return_into_block): Likewise.
14659         (reposition_prologue_and_epilogue_notes): Likewise.
14660         * gengtype.c (get_file_basename, write_gc_structure_fields): Likewise.
14661         * combine.c (subst_prev_insn, need_refresh): Remove.
14662         * dwarf2out.c (primary_filename): Remove.
14663         * final.c (new_block): Remove.
14664         * gcse.c (orig_bb_count): Remove.
14665
14666 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14667
14668         * dsp16xx-protos.h (dsp16xx_compare_gen): Change to bool.
14669         * dsp16xx.c (dsp16xx_compare_gen): Likewise.
14670         * dsp16xx.md: Treat dsp16xx_compare_gen as a bool.  Call functions
14671         directly instead of using a function pointer.
14672
14673 2002-09-04  Krister Walfridsson  <cato@df.lth.se>
14674
14675         * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
14676         * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
14677         (ix86_output_addr_diff_elt) Likewise.
14678         (x86_output_mi_thunk) Likewise.
14679         * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
14680
14681 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14682
14683         * frv.c (frv_encode_section_info): Fix error in last change.
14684
14685 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
14686
14687         * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
14688         (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
14689         (TARGET_BINDS_LOCAL_P): Define.
14690         (rs6000_override_options): Save original flag_pic value.
14691         (rs6000_elf_select_section): Call default_elf_select_section_1.
14692         (rs6000_elf_unique_section): Call default_unique_section_1.
14693         (rs6000_elf_in_small_data_p): New function.
14694         (rs6000_xcoff_asm_named_section): Determine storage mapping class.
14695         (rs6000_xcoff_select_section): Update based on defaults.
14696         (rs6000_xcoff_unique_section): Set to basic name if not common.
14697         (rs6000_binds_local_p): New function.
14698         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
14699         targetm.have_srodata_section if SDATA_EABI.
14700         (TARGET_IN_SMALL_DATA_P): Define.
14701
14702 2002-09-04  Dale Johannesen  <dalej@apple.com>
14703
14704         * varasm.c (struct rtx_const, decode_rtx_const):
14705         Make veclo and vechi fields not share storage.
14706
14707 Thu Sep  5 00:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
14708
14709         * loop.c (scan_loop): Don't mark separate insns out of a libcall
14710         for moving.
14711         (move_movables): Abort if we see the first insn of a libcall.
14712
14713 2002-09-04  Richard Henderson  <rth@redhat.com>
14714
14715         * builtin-types.def (BT_FN_FLOAT): New.
14716         (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
14717         * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
14718         BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
14719         * builtins.c (fold_builtin_inf): New.
14720         (fold_builtin): Call it.
14721         * real.c (ereal_inf): New.
14722         * real.h: Declare it.
14723         * doc/extend.texi: Document new builtins.
14724
14725 2002-09-04  Richard Henderson  <rth@redhat.com>
14726
14727         * cse.c (cse_insn): Avoid subreg games if the equivalence
14728         is already in the proper mode.
14729
14730 2002-09-04  Eric Botcazou  <ebotcazou@multimania.com>
14731
14732         PR c/7102
14733         * optabs.c (expand_binop): Convert CONST_INTs in all cases.
14734
14735 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14736
14737         * pa.md (setccfp0, setccfp1): New patterns.
14738
14739 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14740
14741         * frv-protos.h (frv_init_builtins, frv_expand_builtin,
14742         frv_select_section, frv_select_rtx_section,
14743         frv_encode_section_info, frv_unique_section): Delete.
14744         * frv.c: Update for target hooks.
14745         * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
14746         SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
14747         EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
14748
14749 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14750
14751         * ip2k-protos.h (function_prologue, function_epilogue,
14752         encode_section_info): Update to match target hook specification.
14753         * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
14754         (function_prologue, function_epilogue, encode_section_info):
14755         Update to match target hook specification.
14756         * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
14757         ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
14758         (NOTICE_UPDATE_CC): Cast to void.
14759         * ip2k.md: Add defaults in switch statements.
14760
14761 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
14762
14763         * doc/trouble.texi (Interoperation): Update information about C++ ABI
14764         issues.
14765
14766 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
14767
14768         * config/sparc/t-netbsd64: Disable multilib for now.
14769
14770 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
14771
14772         * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
14773         * target.h (gcc_target): Add have_srodata_section member.
14774         * varasm.c (section_category): Add SECCAT_SRODATA.
14775         (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
14776         READONLY_SDATA_SECTION defined.
14777         (decl_readonly_section_1): True for SECCAT_SRODATA also.
14778         (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
14779         (default_unique_section_1): Likewise.
14780
14781 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14782
14783         * expr.c (emit_group_load): Revise to allow splitting TCmode source
14784         into DImode pieces.
14785
14786         * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
14787         * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
14788         for floating-point register class.
14789         * pa.c (function_arg): Fix handling of modes wider than one word for
14790         TARGET_64BIT.
14791
14792 Wed Sep  4 18:48:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
14793
14794         * combine.c (make_compound_operation): Don't generate zero / sign
14795         extensions in floating point modes.
14796
14797 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
14798
14799         * doc/c-tree.texi: Fix overfull hboxes.
14800         * doc/cppopts.texi: Ditto.
14801         * doc/extend.texi: Ditto.
14802         * doc/gty.texi: Ditto.
14803         * doc/invoke.texi: Ditto.
14804         * doc/makefile.texi: Ditto.
14805         * doc/rtl.texi: Ditto.
14806         * doc/standards.texi: Ditto.
14807         * doc/tm.texi: Ditto.
14808
14809 2002-09-04  Richard Henderson  <rth@redhat.com>
14810
14811         * c-common.c (builtin_define_with_hex_fp_value): New.
14812         (builtin_define_float_constants): Use it.  Fix H_FLOAT mant_dig.
14813
14814 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
14815
14816         * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
14817         (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
14818         -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
14819         Warn that these options can break ABI compatibility.
14820
14821 2002-09-04  Richard Henderson  <rth@redhat.com>
14822
14823         * real.c (ereal_to_decimal): Add digits parameter.
14824         * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
14825         * c-pretty-print.c (pp_c_real_literal): Update call.
14826         * print-rtl.c (print_rtx): Likewise.
14827         * print-tree.c (print_node_brief, print_node): Likewise.
14828         * sched-vis.c (print_value): Likewise.
14829         * config/arc/arc.c (arc_print_operand): Likewise.
14830         * config/c4x/c4x.c (c4x_print_operand): Likewise.
14831         * config/i370/i370.h (PRINT_OPERAND): Likewise.
14832         * config/i386/i386.c (print_operand): Likewise.
14833         * config/i960/i960.c (i960_print_operand): Likewise.
14834         * config/ip2k/ip2k.c (asm_output_float): Likewise.
14835         * config/m32r/m32r.c (m32r_print_operand): Likewise.
14836         * config/m68hc11/m68hc11.c (print_operand): Likewise.
14837         * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
14838         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
14839         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
14840         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
14841         * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
14842         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
14843         * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
14844         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
14845         * config/mips/mips.c (print_operand): Likewise.
14846         * config/ns32k/ns32k.c (print_operand): Likewise.
14847         * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
14848         * config/vax/vax.h (PRINT_OPERAND): Likewise.
14849         * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
14850
14851 2002-09-04  Bob Wilson  <bob.wilson@acm.org>
14852
14853         * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
14854         xtensa_multibss_section_type_flags.
14855         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
14856
14857 2002-09-04  Richard Henderson  <rth@redhat.com>
14858
14859         * doc/install-old.texi: Don't mention enquire.
14860         * doc/sourcebuild.texi: Update float.h description.
14861
14862 Wed Sep  4 11:22:14 2002  J"orn Rennecke <joern.rennecke@superh.com>
14863
14864         * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
14865
14866 2002-09-03  Roger Sayle  <roger@eyesopen.com>
14867
14868         * builtins.c (build_function_call_expr): Remove prototype, export
14869         as non-static and add a comment above function definition.
14870         (builtin_mathfn_code): New function to check for math builtins.
14871         (fold_builtin): Optimize sqrt(0.0) as 0.0, sqrt(1.0) as 1.0,
14872         exp(0.0) as 1.0, and log(1.0) as 0.0.  Optimize exp(log(x)) and
14873         log(exp(x)) as x.  Optimize sqrt(exp(x)) as exp(x/2.0) and
14874         log(sqrt(x)) as log(x)/2.0.
14875
14876         * tree.h: Prototype build_function_call_expr and builtin_mathfn_code
14877         in new "builtins.c" section.  Place the build_range_type prototype
14878         with the other prototypes from "tree.c".
14879
14880         * fold-const.c (fold) [ABS_EXPR]: Fold fabs(sqrt(x)) as sqrt(x)
14881         and fabs(exp(x)) as exp(x).  [MULT_EXPR]: Fold sqrt(x)*sqrt(y)
14882         as sqrt(x*y) and exp(x)*exp(y) as exp(x+y). [RDIV_EXPR]: Fold
14883         x/exp(y) as x*exp(-y).
14884
14885 2002-09-03  David Edelsohn  <edelsohn@gnu.org>
14886
14887         * varasm.c (default_section_type_flags): Append _1 to name with
14888         shlib parameter.  Use original name to call new function with
14889         implicit flag_pic.
14890         (decl_readonly_section): Likewise.
14891         (default_elf_select_section): Likewise.
14892         (default_unique_section): Likewise.
14893         (default_bind_local_p): Likewise.
14894         (categorize_decl_for_section): Add shlib parameter to use in place
14895         of implicit flag_pic.
14896         * output.h: Declare new functions with _1 and shlib argument.
14897
14898 2002-09-03  Janis Johnson  <janis187@us.ibm.com>
14899
14900         * doc/install.texi: Fix typos, formatting problems, and obvious
14901         overfull/underfull boxes.
14902
14903         * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
14904         * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
14905         include its file, compat.texi.
14906         * doc/compat.texi: New file with new chapter, Binary Compatibility.
14907
14908 2002-09-03  Neil Booth  <neil@daikokuya.co.uk>
14909
14910         Debian BTS Bug #157416
14911         * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
14912         * cpplib.c (destringize_and_run): Kludge around getting
14913         tokens from in-progress macros.
14914         (_cpp_do__Pragma): Simplify.
14915
14916 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
14917
14918         * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
14919         (CPP_CPU_SPEC): Remove.
14920         (TARGET_CPU_CPP_BUILTINS): New.
14921         * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
14922         (CPP_SPEC): Remove.
14923         (TARGET_OS_CPP_BUILTINS): New.
14924         * config/ia64/linux.h (CPP_PREDEFINES): Remove.
14925         (TARGET_OS_CPP_BUILTINS): New.
14926         * config/ia64/aix.h (CPP_SPEC): Move some stuff to
14927         TARGET_OS_CPP_BUILTINS.
14928         (CPP_PREDEFINES): Remove.
14929         (CPLUSPLUS_CPP_SPEC): Remove.
14930         (TARGET_OS_CPP_BUILTINS): New.
14931
14932 2002-09-03  Richard Henderson  <rth@redhat.com>
14933
14934         * Makefile.in (USER_H): Add ginclude/float.h.
14935         (FLOAT_H): Remove.
14936         (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
14937         (mostlyclean): Don't remove float.h intermediate files.
14938         (distclean): Don't remove float.h.
14939         * config.gcc: Remove all float_format references.
14940         * configure.in (float_format, float_h_file): Remove.
14941
14942         * c-common.c: Include tree-inline.h.
14943         (builtin_define_with_int_value): New.
14944         (builtin_define_type_precision): Use it.
14945         (builtin_define_float_constants): New.
14946         (cb_register_builtins): Use it.  Define __FLT_RADIX__ and
14947         __FLT_EVAL_METHOD__.
14948         * defaults.h (TARGET_FLT_EVAL_METHOD): New.
14949         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
14950         * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
14951         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
14952         (TARGET_FLT_EVAL_METHOD): New.
14953
14954         * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
14955         config/float-i386.h, config/float-i64.h, config/float-m68k.h,
14956         config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
14957         * ginclude/float.h: New.
14958
14959 2002-09-03  Stan Shebs  <shebs@apple.com>
14960
14961         * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
14962         (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
14963         (PREFERRED_DEBUGGING_TYPE): Ditto.
14964         (ASM_OUTPUT_IDENT): Remove empty definition.
14965
14966 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
14967
14968         * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
14969         cxx_target.
14970         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
14971         handling routine for builtin pragma.
14972         * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
14973         Registered pragma handling routine.
14974         * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
14975         (ia64_hpux_add_pragma_builtin) New subroutine used by above.
14976         If builtin pragma seen for math routine and C89 conformance is
14977         requested use different math function in order to set errno.
14978         * t-ia64 (ia64-c.o): Add new rule for new file.
14979
14980 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
14981
14982         * config/s390/s390.md ("movti"): Add Q->Q alternative.
14983         ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
14984         "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
14985
14986         ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
14987         "*movsf_ss"): Remove.
14988
14989 2002-09-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14990
14991         * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
14992         Delete macros.
14993
14994 2002-09-03   Arati Dikey  <aratid@kpit.com>
14995
14996         * h8300.c (asm_file_start): Corrected optimization comment.
14997
14998 2002-09-03  Stan Shebs  <shebs@apple.com>
14999
15000         * c-lang.c (recognize_objc_keyword): Remove, no longer used.
15001         * c-tree.h (recognize_objc_keyword): Remove decl.
15002         * c-typeck.c (comp_target_types): Update a comment.
15003
15004 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
15005
15006         * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
15007         and register validity checks.
15008         (general_s_operand): Adapt to s390_decompose_address interface change.
15009         (q_constraint): Likewise.
15010         (s390_expand_plus_operand): Likewise.
15011         (legitimiate_address_p): Likewise.
15012         (legitimate_la_operand_p): Likewise.
15013         (legitimize_la_operand): Likewise.
15014         (print_operand_address): Likewise.
15015         (print_operand): Likewise.
15016
15017 Tue Sep  3 11:32:14 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15018
15019         PR objc/5956:
15020         * objc/objc-act.c (build_typed_selector_reference): Fix typo which
15021         was causing the new selector never to match the existing ones
15022         (Patch by Alexander Malmberg <alexander@malmberg.org>).
15023
15024 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
15025
15026         * config/i386/i386.md ("femms"): Add "memory" attr "none".
15027
15028 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
15029
15030         * expr.c (expand_expr): Remove extraneous comment and code.
15031
15032 2002-09-02  Nathan Sidwell  <nathan@codesourcery.com>
15033
15034         * stor-layout (finish_builtin_struct): Renamed and moved from c++
15035         frontend. Take chain of fields. Allow NULL alignment type.
15036         * tree.h (finish_builtin_struct): Declare.
15037
15038 2002-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15039
15040         * config/alpha/alpha.c config/alpha/alpha.h config/alpha/alpha.md
15041         config/alpha/elf.h config/alpha/unicosmk.h config/alpha/vms.h
15042         config/arc/arc.c config/arc/arc.h config/arm/aout.h
15043         config/arm/arm.c config/arm/arm.h config/arm/arm.md
15044         config/avr/avr.h config/d30v/d30v.h config/dbxcoff.h
15045         config/dbxelf.h config/elfos.h config/fr30/fr30.h config/frv/frv.h
15046         config/i386/i386.c config/i386/i386.md config/i386/sco5.h
15047         config/ia64/ia64.h config/ip2k/ip2k.h config/m68hc11/m68hc11.md
15048         config/m68k/hp320.h config/m68k/m68k.c config/m68k/m68k.md
15049         config/m68k/mot3300.h config/m68k/sgs.h config/m68k/tower-as.h
15050         config/m88k/m88k.c config/m88k/m88k.h config/mcore/mcore-pe.h
15051         config/mcore/mcore.c config/mips/mips.c config/mips/mips.h
15052         config/ns32k/ns32k.md config/pa/pa-linux.h config/pa/pa.c
15053         config/pa/pa.h config/pa/pa.md config/romp/romp.h
15054         config/rs6000/linux64.h config/rs6000/lynx.h
15055         config/rs6000/rs6000.c config/rs6000/sysv4.h config/rs6000/xcoff.h
15056         config/s390/s390.c config/s390/s390.md config/sh/sh.c
15057         config/sparc/sparc.c config/sparc/sysv4.h
15058         config/stormy16/stormy16.h dbxout.c defaults.h dwarf2out.c
15059         dwarfout.c except.c final.c varasm.c vmsdbgout.c: Replace
15060         ASM_OUTPUT_INTERNAL_LABEL macro with a call to the target hook.
15061
15062         * doc/tm.texi: Update docs.
15063         * default.h (ASM_OUTPUT_INTERNAL_LABEL): Don't define.
15064         * system.h (ASM_OUTPUT_INTERNAL_LABEL): Poison.
15065
15066 2002-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15067
15068         * Makefile.in (sdbout.o, insn-output.o): Depend on $(TARGET_H).
15069         * arc.c (arc_internal_label): New function.
15070         (TARGET_ASM_INTERNAL_LABEL): Set.
15071         * arc.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
15072         * arm.c (arm_internal_label): New function.
15073         (TARGET_ASM_INTERNAL_LABEL): Set.
15074         * arm.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
15075         * arm/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
15076         * i370.c (i370_internal_label): New function.
15077         (TARGET_ASM_INTERNAL_LABEL): Set.
15078         * i370.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
15079         * m68k/hp320.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
15080         * m68k.c (m68k_hp320_internal_label): New function.
15081         (TARGET_ASM_INTERNAL_LABEL): Set.
15082         * m88k.c (m88k_internal_label): New function.
15083         (TARGET_ASM_INTERNAL_LABEL): Set.
15084         * m88k.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
15085         * defaults.h (ASM_OUTPUT_INTERNAL_LABEL): Set to target hook.
15086         * genoutput.c (output_prologue): Include target.h in output file.
15087         * output.h (default_internal_label): Declare.
15088         * sdbout.c: Include target.h.
15089         * target-def.h (TARGET_ASM_INTERNAL_LABEL): Set and add to
15090         TARGET_ASM_OUT.
15091         * target.h (internal_label): Add to struct gcc_target.
15092         * varasm.c (default_internal_label): New function.
15093
15094 2002-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15095
15096         * alpha.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
15097         * avr.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15098         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15099         * cris.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15100         * d30v.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15101         * darwin.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15102         * dsp16xx.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15103         * elfos.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15104         * h8300.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15105         * i386/att.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15106         * i386/bsd.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15107         * i386/i386-coff.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15108         * i386/lynx-ng.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15109         * i386/lynx.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15110         * i386/sco5.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15111         * i960/i960.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15112         * m68k/3b1.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15113         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15114         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15115         * m68k.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15116         * m68k/mot3300.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15117         * m68k/tower-as.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15118         * m88k.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15119         * mcore.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15120         * mips.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15121         * mmix-protos.h (mmix_asm_output_internal_label): Likewise.
15122         * mmix.c (mmix_asm_output_internal_label): Likewise.
15123         * mmix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15124         * ns32k.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15125         * pa.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15126         * pdp11.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15127         * romp.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15128         * rs6000/xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15129         * sh/coff.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15130         * sh/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15131         * sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15132         * sparc/linux.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15133         * sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15134         * sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15135         * sparc/pbd.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15136         * sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15137         * sparc.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15138         * sparc/vxsim.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15139         * stormy16.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15140         * svr3.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15141         * vax.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15142
15143         * defaults.h (ASM_OUTPUT_INTERNAL_LABEL): Define.
15144
15145 2002-08-31  Richard Henderson  <rth@redhat.com>
15146
15147         * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
15148
15149 2002-08-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15150
15151         * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
15152
15153 2002-08-30  Richard Henderson  <rth@redhat.com>
15154
15155         PR opt/7515
15156         * c-objc-common.c: Include target.h.
15157         (c_cannot_inline_tree_fn): Don't auto-inline functions that
15158         don't bind locally.  Factor setting DECL_UNINLINABLE.
15159         * Makefile.in (c-objc-common.o): Update.
15160
15161 2002-08-30  Janis Johnson  <janis187@us.ibm.com>
15162
15163         * doc/install.texi (Configuration, Building): Fix a typo and
15164         some formatting directives.
15165
15166 2002-08-30  Paul Koning <pkoning@equallogic.com>
15167
15168         * doc/c-tree.texi (RDIV_EXPR): Fix typo.
15169         * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
15170         implemented" note.
15171         * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
15172         for alphabetic order.
15173         * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
15174         VAX_FLOAT_FORMAT.  Remove reference to HOST_FLOAT_FORMAT.
15175         (VAX_HALFWORD_ORDER): Document.
15176         (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
15177         IEEE float format.
15178         (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
15179         (ASM_OUTPUT_LABEL_REF): Fix font.
15180         (CASE_VECTOR_SHORTEN_MODE): Ditto.
15181
15182 2002-08-30  Denis Chertykov  <denisc@overta.ru>
15183
15184         * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
15185         stuff.
15186         (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
15187         CONST_DOUBLE constants.
15188
15189 2002-08-30  Jason Thorpe  <thorpej@wasabisystems.com>
15190
15191         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
15192         related defines to...
15193         (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
15194         * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
15195         as a no-op.
15196
15197 2002-08-30  Krister Walfridsson  <cato@df.lth.se>
15198
15199         * config/arm/arm.c (arm_asm_output_labelref): New function.
15200         * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
15201         * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
15202
15203 2002-08-29  Rodney Brown  <rbrown64@csc.com.au>
15204
15205         * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
15206         memory exhausted" workarounds.
15207
15208 2002-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15209
15210         * diagnostic.c (fancy_abort): Don't repeat "internal error".
15211         * toplev.c (crash_signal): Likewise.
15212
15213 Fri Aug 30 00:33:37 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15214
15215         * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
15216         * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
15217         Extended, updated documentation.
15218         (-Wundeclared-selector): Documented.
15219
15220 2002-08-29  Jason Thorpe  <thorpej@wasabisystems.com>
15221
15222         * config/chorus.h: Consistently define *_DEBUGGING_INFO with
15223         the value 1.  Do not undef before defining.
15224         * config/darwin.h: Likewise.
15225         * config/dbx.h: Likewise.
15226         * config/dbxcoff.h: Likewise.
15227         * config/dbxelf.h: Likewise.
15228         * config/elfos.h: Likewise.
15229         * config/interix.h: Likewise.
15230         * config/lynx-ng.h: Likewise.
15231         * config/lynx.h: Likewise.
15232         * config/netware.h: Likewise.
15233         * config/psos.h: Likewise.
15234         * config/svr3.h: Likewise.
15235         * config/alpha/alpha.h: Likewise.
15236         * config/alpha/elf.h: Likewise.
15237         * config/alpha/vms.h: Likewise.
15238         * config/arc/arc.h: Likewise.
15239         * config/arm/aout.h: Likewise.
15240         * config/arm/coff.h: Likewise.
15241         * config/c4x/c4x.h: Likewise.
15242         * config/h8300/h8300.h: Likewise.
15243         * config/i386/cygwin.h: Likewise.
15244         * config/i386/djgpp.h: Likewise.
15245         * config/i386/gas.h: Likewise.
15246         * config/i386/gstabs.h: Likewise.
15247         * config/i386/i386-coff.h: Likewise.
15248         * config/i386/i386-interix.h: Likewise.
15249         * config/i386/sco5.h: Likewise.
15250         * config/i386/svr3dbx.h: Likewise.
15251         * config/i386/sysv3.h: Likewise.
15252         * config/i386/win32.h: Likewise.
15253         * config/i386/x86-64.h: Likewise.
15254         * config/i960/i960.h: Likewise.
15255         * config/ia64/ia64.h: Likewise.
15256         * config/ip2k/ip2k.h: Likewise.
15257         * config/m32r/m32r.h: Likewise.
15258         * config/m68k/3b1.h: Likewise.
15259         * config/m68k/3b1g.h: Likewise.
15260         * config/m68k/ccur-GAS.h: Likewise.
15261         * config/m68k/coff.h: Likewise.
15262         * config/m68k/hp2bsd.h: Likewise.
15263         * config/m68k/hp310g.h: Likewise.
15264         * config/m68k/hp320g.h: Likewise.
15265         * config/m68k/hp3bsd.h: Likewise.
15266         * config/m68k/hp3bsd44.h: Likewise.
15267         * config/m68k/linux-aout.h: Likewise.
15268         * config/m68k/m68k-aout.h: Likewise.
15269         * config/m68k/mot3300.h: Likewise.
15270         * config/m68k/netbsd.h: Likewise.
15271         * config/m68k/openbsd.h: Likewise.
15272         * config/m68k/pbb.h: Likewise.
15273         * config/m68k/plexus.h: Likewise.
15274         * config/m68k/sun2.h: Likewise.
15275         * config/m68k/sun3.h: Likewise.
15276         * config/m68k/tower-as.h: Likewise.
15277         * config/m68k/vxm68k.h: Likewise.
15278         * config/m88k/aout-dbx.h: Likewise.
15279         * config/m88k/m88k-aout.h: Likewise.
15280         * config/mcore/mcore-elf.h: Likewise.
15281         * config/mcore/mcore-pe.h: Likewise.
15282         * config/mips/elf.h: Likewise.
15283         * config/mips/elf64.h: Likewise.
15284         * config/mips/iris5gas.h: Likewise.
15285         * config/mips/iris6.h: Likewise.
15286         * config/mips/mips.h: Likewise.
15287         * config/mips/sni-gas.h: Likewise.
15288         * config/mmix/mmix.h: Likewise.
15289         * config/ns32k/netbsd.h: Likewise.
15290         * config/pa/pa64-hpux.h: Likewise.
15291         * config/romp/romp.h: Likewise.
15292         * config/rs6000/sysv4.h: Likewise.
15293         * config/rs6000/xcoff.h: Likewise.
15294         * config/sh/coff.h: Likewise.
15295         * config/sh/elf.h: Likewise.
15296         * config/sparc/linux64.h: Likewise.
15297         * config/sparc/liteelf.h: Likewise.
15298         * config/sparc/netbsd.h: Likewise.
15299         * config/sparc/openbsd.h: Likewise.
15300         * config/sparc/pbd.h: Likewise.
15301         * config/sparc/sp64-elf.h: Likewise.
15302         * config/sparc/sp86x-elf.h: Likewise.
15303         * config/sparc/sparc.h: Likewise.
15304         * config/vax/vax.h: Likewise.
15305         * config/vax/vaxv.h: Likewise.
15306
15307 2002-08-29  "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
15308
15309         * h8300.c (shift_alg_hi): Various tweaks to improve performance
15310         of HImode shifts.
15311         (get_shift_alg): Corresponding changes.
15312
15313 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15314
15315         * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
15316
15317 2002-08-29  Richard Henderson  <rth@redhat.com>
15318
15319         * expr.h (enum block_op_methods): New.
15320         (emit_block_move): Update prototype.
15321         * expr.c (block_move_libcall_safe_for_call_parm): New.
15322         (emit_block_move_via_loop): New.
15323         (emit_block_move): Use them.  New argument METHOD.
15324         (emit_push_insn): Always respect the given alignment.
15325         (expand_assignment): Update call to emit_block_move.
15326         (store_expr, store_field, expand_expr): Likewise.
15327         * builtins.c (expand_builtin_apply): Likewise.
15328         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
15329         * function.c (expand_function_end): Likewise.
15330         * config/sh/sh.c (sh_initialize_trampoline): Likewise.
15331         * config/sparc/sparc.c (sparc_va_arg): Likewise.
15332         * calls.c (expand_call, emit_library_call_value_1): Likewise.
15333         (save_fixed_argument_area): Use emit_block_move with
15334         BLOCK_OP_CALL_PARM instead of move_by_pieces.
15335         (restore_fixed_argument_area): Likewise.
15336         (store_one_arg): Fix alignment parameter to emit_push_insn.
15337
15338 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15339
15340         * install.texi (hppa64-hp-hpux11*): Document installation procedure.
15341
15342 2002-08-29  Catherine Moore  <clm@redhat.com>
15343
15344         * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
15345         NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
15346         (PREDICATE_CODES): Include new predicates.
15347         (RTX_COSTS): Handle UMOD and UDIV.  Tune MULT for v850e.
15348         (TARGET_SWITCHES):  Add strict-align.
15349         (TARGET_STRICT_ALIGN): New.
15350         (MASK_DEFAULT, STRICT_ALIGNMENT):  Redefine.
15351         * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
15352         Define.
15353         (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
15354         v850_muldi3.
15355         * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
15356         L_callt_save_r2_r31, L_return_r2_r31,
15357         L_save_all_interrupt): Change addi to add.
15358         (L_save_interrupt, L_return_interrupt): Rework.
15359         (__return_r31):  Correct .size directive.
15360         (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
15361         (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
15362         New routines.
15363         * config/v850/v850.c (expand_prologue): Call
15364         gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
15365         gen_callt_return_interrupt and gen_callt_save_all_interrupt.
15366         (reg_or_int9_operand): New predicate.
15367         (reg_or_const_operand): New routine.
15368         * config/v850/v850.md (return_interrupt): Changed from
15369         restore_interrupt.
15370         (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
15371         (callt_save_interrupt): Change save sequence.
15372         (callt_return_interrupt): New.
15373         (save_interrupt): Don't use runtime function for LONG_CALLS
15374         and TARGET_PROLOG_FUNCTION.
15375         (save_all_interrupt): Likewise.
15376         (mulsi3): Use new predicate.
15377         (moviscc): Disallow some combination of constants.
15378         Fix define_split for sasf insns, so that it will not generate bad
15379         code if operand0 and operand5 are the same.
15380         * config/v850/v850-protos.h: Prototype new predicates.
15381
15382 2002-08-29  Zack Weinberg  <zack@codesourcery.com>
15383
15384         * config/rs6000/rs6000.c (processor_target_table): Add 405f.
15385         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Likewise.
15386
15387 2002-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15388
15389         * c-common.c (builtin_define_type_precision): New function.
15390         (cb_register_builtins): Use it.  Define __WCHAR_UNSIGNED__ is
15391         wchar_t is unsigned in C++.
15392         * doc/cpp.texi (Common Predefined Macros): Document
15393         __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
15394         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
15395         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
15396
15397 2002-08-28  Sylvain Pion <pion@cs.nyu.edu>
15398
15399         * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
15400         section.  Mention that it is enabled by -Wall.
15401         (-Wall): Mention that there can be language-specific warnings as well.
15402         (-Wctor-dtor-privacy): Mention that it is enabled by default.
15403         (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
15404
15405 Wed Aug 28 15:35:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
15406
15407         * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
15408         if it is ever live.
15409
15410         * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
15411         attribute for SHCOMPACT.
15412
15413         * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
15414         appropriately.
15415         (FUNCTION_BOUNDARY): Specify only the minimum alignment required
15416         by the ABI.
15417
15418         * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
15419
15420 2002-08-28  Jason Thorpe  <thorpej@wasabisystems.com>
15421
15422         * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
15423         "MASK_GAS|MASK_ABICALLS".
15424         * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
15425         (TARGET_DEFAULT): Remove.
15426         (MACHINE_TYPE): Undefine before defining.
15427         (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
15428
15429 2002-08-27  Mark Mitchell  <mark@codesourcery.com>
15430
15431         * c-common.c (warn_abi): New variable.
15432         * c-common.h (warn_abi): Likewise.
15433         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
15434         (c_common_decode_option): Handle it.
15435         * doc/invoke.texi: Document -Wabi.
15436
15437 Tue Aug 27 23:03:52 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15438
15439         * c-common.c (warn_undeclared_selector): New variable.
15440         * c-common.h (warn_undeclared_selector): Idem.
15441         * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
15442         to on when -Wundeclared-selector is found.
15443         (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
15444         * objc/objc-act.c (build_selector_expr): If
15445         warn_undeclared_selector is set, check that the selector has
15446         already been defined, and emit a warning if not.
15447
15448 2002-08-27  Nick Clifton  <nickc@redhat.com>
15449             Catherine Moore  <clm@redhat.com>
15450             Jim Wilson  <wilson@cygnus.com>
15451
15452         * config.gcc: Add v850e-*-* target.
15453         Add --with-cpu= support for v850.
15454         * config/v850/lib1funcs.asm: Add v850e callt functions.
15455         * config/v850/v850.h: Add support for v850e target.
15456         * config/v850/v850.c: Add functions to support v850e target.
15457         * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
15458         * config/v850/v850.md: Add patterns for v850e instructions.
15459         * doc/invoke.texi: Document new v850e command line switches.
15460
15461 Tue Aug 27 18:30:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
15462                           Aldy Hernandez <aldyh at redhat dot com>
15463
15464         * doc/tm.texi: Applied numerous fixes to the automaton based
15465         scheduler descrition.
15466
15467 Tue Aug 27 19:51:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
15468
15469         * i386.c (classify_argument): Handle variable sized objects.
15470
15471 Tue Aug 27 19:18:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
15472
15473         * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
15474
15475 Tue Aug 27 18:01:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
15476
15477         * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
15478
15479 Tue Aug 27 18:00:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
15480
15481         * i386.c (classify_argument): Properly compute word size of the analyzed object.
15482
15483 Tue Aug 27 14:39:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
15484
15485         * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
15486         mac_gp ftrc_s and cwb.  Add / Adjust definitions in individual insn
15487         accordingly.
15488         (attribute insn_class): Provide default definitions based on type.
15489         Remove all insn-specific settings.
15490         (various function units): Remove old SH4 scheduling.
15491         (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
15492         New attributes.  Set them where appropriate.
15493         (cpu unit FS): Don't define / use.
15494         (F3, load_store): New cpu units.
15495         (F01): New reservation.
15496         (all insn_reservations): Make dependent on sh4 pipeline model.
15497         Fix latencies.
15498         (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
15499         (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
15500         (mt insn_reservation): Use type mt_group.
15501         (insn_reservation load_store): Split into sh4_load, sh4_load_si,
15502         sh4_fload and sh4_store.
15503         (insn_reservation branch_zero and branch): Replace with sh4_branch.
15504         (insn_reservation branch_far): Replace with sh4_return.
15505         (insn_reservation return_from_exp): Rename to:
15506         (sh4_return_from_exp).  Change to be just d_lock*5.
15507         (insn_reservation lds_to_pr): Rename to:
15508         (sh4_lds_to_pr).  Change to be just d_lock*2.
15509         (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
15510         d_lock*2.
15511         (insn_reservation prload_mem): Rename to:
15512         (sh4_prstore_mem).  Change to d_lock*2,nothing,memory.
15513         (insn_reservation fpscr_store): Rename to:
15514         (fpscr_load).  Change to d_lock,nothing,F1*3.
15515         (insn_reservation fpscr_store_mem): Rename to:
15516         (fpscr_load_mem).  Change to d_lock,nothing,(F1+memory),F1*2.
15517         (insn_reservation multi): Change to
15518         d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
15519         (insn_reservation fp_arith): Change to issue,F01,F2.
15520         (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
15521         (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
15522         (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
15523         (insn_reservation fp_double_cmp): Change to
15524         d_lock,(d_lock+F01),F1+F2,F2.
15525         (insn_reservation dp_div): Change to
15526         issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
15527         * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
15528         (sh_adjust_cost, SHcompact): Differentiate between different
15529         kinds of dependencies.  Drop factor of ten for superscalar.
15530         Use new instruction types.  Add new exception rules.
15531
15532         * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
15533
15534         * sh.md (mperm_w): Add DONE.
15535
15536 2002-08-27  David Edelsohn  <edelsohn@gnu.org>
15537
15538         * longlong.h: Import current PowerPC defintion from GMP-4.1.
15539
15540         * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
15541
15542         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
15543
15544 Tue Aug 27 13:53:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
15545
15546         * sh.h (MAX_FIXED_MODE_SIZE): Define.
15547
15548 2002-08-27  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
15549
15550         * doc/cpp.texi (Common Predefined Macros): Don't mess with table
15551         delimiter.
15552
15553 2002-08-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15554
15555         * c-common.c (cpp_define_data_format): New function.
15556         (cb_register_builtins): Call it.
15557
15558         * doc/cpp.texi (Common Predefined Macros): Document
15559         __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
15560         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
15561         __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
15562         __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
15563         __TARGET_USES_VAX_H_FLOAT__.
15564
15565 2002-08-26  Ziemowit Laski <zlaski@apple.com>
15566
15567         * objc/objc-act.c (get_super_receiver): If inside a class method
15568         of a category, cast the receiver to 'id' before accessing the 'isa'
15569         field so that <objc/objc-class.h> is not needed.  For NeXT runtime.
15570
15571 2002-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
15572
15573         * config/s390/s390-protos.h (s390_function_prologue,
15574         s390_function_epilogue): Remove.
15575         config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
15576         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
15577
15578         config/s390/s390.c (s390_machine_dependent_recorg): New function.
15579         config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
15580         config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
15581         config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
15582         to being called from MACHINE_DEPENDENT_REORG.  Update regs_ever_live.
15583
15584         config/s390/s390.c (s390_frame_info): Inline save_fprs_p.  Always
15585         assume BASE_REGISTER and RETURN_REGNUM need to be saved.
15586         (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
15587         function is not a leaf function.  Use save_gprs and restore_gprs.
15588         (s390_emit_epilogue): Likewise.
15589         (save_gprs, restore_gprs): New functions.
15590         (struct s390_frame): Remove return_reg_saved_p member.
15591         (save_fprs_p): Remove.
15592         (s390_optimize_prolog): New function.
15593         (s390_legitimate_reload_constant): Remove now unnecessary check.
15594
15595         (s390_function_count): Remove.
15596         (s390_output_symbolic_const): Replace s390_function_count by
15597         current_function_funcdef_no.
15598         (s390_output_constant_pool): Likewise.
15599
15600         (legitimize_pic_address): Use regs_ever_live to track PIC register
15601         instead of current_function_uses_pic_offset_table.
15602         (s390_emit_prologue): Likewise.
15603         config/s390/s390.md ("call", "call_value"): Likewise.
15604
15605 2002-08-26  Neil Booth  <neil@daikokuya.co.uk>
15606
15607         * c-opts.c (find_opt): Don't complain about wrong languages
15608         here.  Return exact matches even for wrong language.
15609         (c_common_decode_option): Complain about wrong languages
15610         here.
15611
15612 2002-08-24  Stuart Hastings  <stuart@apple.com>
15613
15614         * function.h (struct function): Add flag
15615         all_throwers_are_sibcalls.
15616         * except.c (set_nothrow_function_flags): Replaces
15617         nothrow_function_p. Set new flag.
15618         * except.h (set_nothrow_function_flags): Replaces
15619         nothrow_function_p.
15620         * dwarf2out.c (struct dw_fde_struct): Add flag
15621         all_throwers_are_sibcalls.
15622         (output_call_frame_info): Test it.
15623         (dwarf2out_begin_prologue) Propagate it from cfun to
15624         dw_fde_struct.
15625         * toplev.c (rest_of_compilation): Update calls to
15626         nothrow_function_p.
15627
15628 2002-08-23  Zack Weinberg  <zack@codesourcery.com>
15629
15630         * ggc-page.c (compute_inverse): Short circuit calculation for
15631         object sizes larger than half a page.
15632
15633 2002-08-23  David Edelsohn  <edelsohn@gnu.org>
15634
15635         * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
15636         DEFAULT_ABI == ABI_AIX like PIC.  Test PIC & reloc for readonly
15637         default.
15638         (rs6000_elf_unique_section): Likewise.
15639
15640 2002-08-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15641
15642         * ns32k.c (ns32k_globalize_label): Delete.
15643         * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
15644
15645 2002-08-23  Alan Modra  <amodra@bigpond.net.au>
15646
15647         * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
15648         for loading delta with num_insns_constant_wide.  Calculate
15649         delta_low, delta_high without using a conditional.
15650
15651 2002-08-22  Jason Merrill  <jason@redhat.com>
15652
15653         * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
15654         * c-common.def: Adjust.
15655         * c-dump.c (c_dump_tree): Adjust.
15656         * c-semantics.c (genrtl_return_stmt): Adjust.
15657         * c-pretty-print.c (pp_c_statement): Adjust.
15658         * tree-inline.c (copy_body_r): Adjust.
15659
15660 2002-08-22  Zack Weinberg  <zack@codesourcery.com>
15661
15662         * ggc-page.c: Avoid division in ggc_set_mark.
15663         (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
15664         compute_inverse): New.
15665         (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
15666         (init_ggc): Initialize inverse_table.
15667
15668 2002-08-22  Tom Tromey  <tromey@redhat.com>
15669
15670         * doc/install.texi (Configuration): Document --datadir.
15671
15672 2002-08-22  Alexandre Oliva  <aoliva@redhat.com>
15673
15674         * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
15675
15676 2002-08-22  Hans-Peter Nilsson  <hp@bitrange.com>
15677
15678         * gengtype-lex.l (ID): Allow underscore as first character.
15679
15680 2002-08-21  David Edelsohn  <edelsohn@gnu.org>
15681
15682         * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
15683         function.
15684         (rs6000_xcoff_asm_named_section): Rename.
15685         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
15686
15687 2002-08-21  Tom Tromey  <tromey@redhat.com>
15688
15689         For PR java/6005 and PR java/7611:
15690         * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
15691         (fold): Likewise.
15692         * langhooks.c (lhd_can_use_bit_fields_p): New function.
15693         * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
15694         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
15695         (LANG_HOOKS_INITIALIZER): Use it.
15696         * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
15697         field.
15698
15699 2002-08-21  Stan Shebs  <shebs@apple.com>
15700
15701         * tree.c (finish_vector_type): Fix a typo in a comment.
15702         * Makefile.in: Fix "the the" stutters in comments.
15703         * genautomata.c: Ditto.
15704         * ifcvt.c: Ditto.
15705         * regrename.c: Ditto.
15706         * config/alpha/alpha.c: Ditto.
15707         * config/alpha/vms-crt0-64.c: Ditto.
15708         * config/alpha/vms-crt0.c: Ditto.
15709         * config/alpha/vms-psxcrt0-64.c: Ditto.
15710         * config/alpha/vms-psxcrt0.c: Ditto.
15711         * config/d30v/d30v.h: Ditto.
15712         * config/fr30/fr30.h: Ditto.
15713         * config/rs6000/rs6000.c: Ditto.
15714         * config/stormy16/stormy16.h: Ditto.
15715         * doc/md.texi: Ditto.
15716
15717 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15718
15719         * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
15720
15721 2002-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
15722
15723         * c-decl.c (grokdeclarator): Make invalid combinations with long,
15724         short, signed or unsigned into hard errors.  Fixes PR c/4319.
15725         Also make duplicate modifiers such as "short short" into hard
15726         errors.
15727
15728 2002-08-21  Andrew Pinski <pinskia@physics.uc.edu>
15729             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15730
15731         * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
15732         to the actual end.  Add '@end table' and '@table @code'.
15733
15734 2002-08-20  Geoffrey Keating  <geoffk@redhat.com>
15735
15736         * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
15737
15738         * unroll.c (biv_total_increment): Don't try to compute the total
15739         increment for FP BIVs.
15740
15741 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15742
15743         * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
15744         * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
15745         ASM_OUTPUT_ALIGNED_BSS): Use target hook.
15746         * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
15747         * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
15748         * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
15749         (GLOBAL_ASM_OP): Define.
15750         * arm.c (aof_globalize_label): New function.
15751         (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
15752         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
15753         * c4x.c (c4x_globalize_label): New function.
15754         (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
15755         * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
15756         (GLOBAL_ASM_OP): Define.
15757         * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
15758         * darwin-protos.h (darwin_globalize_label): Declare.
15759         * darwin.c (darwin_globalize_label): New function.
15760         * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
15761         (ASM_GLOBALIZE_LABEL): Delete.
15762         (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
15763         * dsp16xx.c (asm_output_common): Use target hook.
15764         * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
15765         * frv.h (ASM_GLOBALIZE_LABEL): Delete.
15766         (GLOBAL_ASM_OP): Define.
15767         * i370.c (i370_globalize_label): New function.
15768         (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
15769         * i370.h (ASM_GLOBALIZE_LABEL): Delete.
15770         * i386.c (ix86_asm_file_end): Use target hook.
15771         * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
15772         (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
15773         * ia64.c (ia64_asm_output_external): Likewise.
15774         * ia64/sysv4.h: Update comment.
15775         * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
15776         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
15777         * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
15778         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
15779         * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
15780         * mmix-protos.h (mmix_asm_globalize_label): Delete.
15781         * mmix.c (mmix_asm_globalize_label): Likewise.
15782         * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
15783         (GLOBAL_ASM_OP): Define.
15784         * ns32k.c (ns32k_globalize_label): New function.
15785         * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
15786         (ASM_GLOBALIZE_LABEL): Delete.
15787         * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
15788         (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
15789         * pa.c (pa_globalize_label): New function.
15790         * pa.h (ASM_GLOBALIZE_LABEL): Delete.
15791         (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
15792         * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
15793         (GLOBAL_ASM_OP): Define.
15794         (TARGET_ASM_GLOBALIZE_LABEL): Undef.
15795         * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
15796         * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
15797         (GLOBAL_ASM_OP): Define.
15798         * v850.c (v850_output_aligned_bss): Use target hook.
15799         * vax.c (vms_globalize_label): New function.
15800         (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
15801         * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
15802         (GLOBAL_ASM_OP): Define.
15803         * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
15804         * doc/tm.texi: Update docs.
15805         * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
15806         target hook.
15807         * final.c (output_alternate_entry_point): Likewise.
15808         * hooks.c (hook_FILEptr_constcharptr_void): New function.
15809         * hooks.h (hook_FILEptr_constcharptr_void): Declare.
15810         * output.h (assemble_global): Delete.
15811         (default_globalize_label): Declare.
15812         * system.h (ASM_GLOBALIZE_LABEL): Poison.
15813         * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
15814         (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
15815         * target.h (gcc_target): Add globalize_label member.
15816         * varasm.c (asm_output_bss, asm_output_aligned_bss,
15817         globalize_decl): Use target hook.
15818         (assemble_global): Delete.
15819         (default_globalize_label): New function.
15820
15821 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15822
15823         * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
15824
15825 2002-08-20  Devang Patel  <dpatel@apple.com>
15826         * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
15827
15828 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15829
15830         * arc.c (output_shift): Use stdio instead of asm_fprintf.
15831         * arm.c (thumb_output_function_prologue): Likewise.
15832         * avr.c (print_operand): Likewise.
15833         * c4x.c (c4x_print_operand): Likewise.
15834         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
15835         ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
15836         * cris.c (cris_target_asm_function_prologue,
15837         cris_asm_output_mi_thunk): Likewise.
15838         * h8300.c (print_operand): Likewise.
15839         * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
15840         * ip2k.c (print_operand): Likewise.  Fix format specifier.
15841         * m68hc11.c (asm_print_register, print_operand,
15842         print_operand_address): Use stdio instead of asm_fprintf.
15843         (print_operand_address): Fix format specifier.
15844         * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
15845         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
15846         asm_fprintf.
15847         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15848         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
15849         * m68k.c (m68k_output_function_prologue,
15850         m68k_output_function_epilogue, print_operand): Likewise.
15851         * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
15852         Likewise.  Fix format specifier.
15853         * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
15854         * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
15855         * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
15856
15857 2002-08-15  Eric Christopher  <echristo@redhat.com>
15858             Jeff Knaggs  <jknaggs@redhat.com>
15859
15860         * config.gcc (mipsisa64sr71k-elf): New target.
15861         * config/mips/sr71k.md: New file.
15862         * config/mips/mips.md: Use it.
15863         (rot*): Add sr71k specifics.
15864         * config/mips/t-sr71k: New file.
15865         * config/mips/mips.h (sr71k): New cpu.
15866         (TARGET_SR71K): Use it.
15867         (TUNE_SR71K): Ditto.
15868         (GENERATE_BRANCHLIKELY): Ditto.
15869         (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
15870         ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
15871         * config/mips/mips.c (sr71k): New cpu.
15872         (mips_use_dfa_pipeline_interface): Use.
15873
15874 2002-08-15  Eric Christopher  <echristo@redhat.com>
15875             Richard Sandiford <rsandifo@redhat.com>
15876             Aldy Hernandez  <aldyh@redhat.com>
15877             Graham Stott    <grahams@redhat.com>
15878             Michael Meissner  <meissner@redhat.com>
15879             Gavin Romig-Koch  <gavin@redhat.com>
15880             Ken Raeburn  <raeburn@cygnus.com>
15881             Alexandre Oliva <aoliva@redhat.com>
15882
15883         * config.gcc (mips64vr-elf): New target.
15884         * config/mips/5400.md: New file.
15885         * config/mips/5500.md: Ditto.
15886         * config/mips/mips.md: Use them.
15887         (frsqrt): New.
15888         * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
15889         cpus.
15890         (mips_issue_rate): Use them.
15891         (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
15892         (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
15893         * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
15894         cpus.
15895         (TARGET_MIPSx): Use them.
15896         (TUNE_MIPSx): Ditto.
15897         (GETNATE_MULT3_SI): Ditto.
15898         (ISA_HAS_BRANCHLIKELY): Ditto.
15899         (ISA_HAS_CONDMOVE): Ditto.
15900         (ISA_HAS_NMADD_NMSUB): Ditto.
15901         (ISA_HAS_MULHI): New. Ditto.
15902         (ISA_HAS_MULS): Ditto.
15903         (ISA_HAS_MSAC): Ditto.
15904         (ISA_HAS_MACC): Ditto.
15905         (ISA_HAS_ROTR_SI): Ditto.
15906         (ISA_HAS_ROTR_DI): Ditto.
15907         (RTX_COSTS): Use.
15908
15909 2002-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15910
15911         * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
15912         at head.
15913         (remove_dup_nonsys_dirs): New function.
15914         (remove_dup_dirs): Change argument head to head_ptr.  Remove warnings.
15915         (merge_include_chains): Remove non-system include directories from
15916         quote and bracket include chains when they duplicate equivalent system
15917         directories.
15918         * doc/cpp.texi (-I): Update.
15919         * doc/cppopts.texi (-I): Update.
15920         * doc/install.texi (--with-local-prefix): Further document usage of
15921         this option.
15922         * doc/invoke.texi (-I): Update.
15923
15924 2002-08-20  Richard Henderson  <rth@redhat.com>
15925
15926         * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
15927         (emit_block_move): Split out subroutines.
15928         (emit_block_move_via_movstr): New.
15929         (emit_block_move_via_libcall): New.  Emit bcopy via normal call also.
15930         (emit_block_move_libcall_fn): New.  Construct function prototype for
15931         bcopy as well.
15932         (clear_storage): Split out subroutines.
15933         (clear_storage_via_clrstr): New.
15934         (clear_storage_via_libcall): New. Emit bzero as a normal call also.
15935         (clear_storage_libcall_fn): New.  Construct function prototype for
15936         bzero as well.
15937         (emit_push_insn): Use emit_block_move.
15938         (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
15939         (store_constructor): Likewise.
15940
15941 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
15942
15943         * objc/objc-act.c (building_objc_message_expr): Rename to
15944         current_objc_message_selector.
15945
15946 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
15947
15948         * objc/objc-act.c (build_ivar_chain): Remove.
15949         (objc_copy_list): Likewise.
15950         (get_class_ivars): Inline call to removed build_ivar_chain
15951         function.  Save off a clean copy of ivars in the CLASS_OWN_IVARS
15952         slot; use that slot (rather than CLASS_IVARS) when accessing
15953         ivars for base classes.  Call copy_list and chainon instead of
15954         objc_copy_list.
15955         (build_private_template): Call get_class_ivars instead of
15956         build_ivar_chain.
15957         (start_class): Allocate room for the CLASS_OWN_IVARS slot.
15958         (continue_class): Call get_class_ivars instead of
15959         build_ivar_chain.
15960         (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
15961         of DECL_BIT_FIELD (which may have been cleared).
15962         * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
15963
15964 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15965
15966         * genautomata.c (output_translate_vect, output_state_ainsn_table,
15967         output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
15968         in output file.
15969         (output_internal_min_issue_delay_func): Initialize variable in
15970         output file.
15971
15972 2002-08-19  Alexandre Oliva  <aoliva@redhat.com>
15973
15974         * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
15975         (stage2_build, stage3_build, stage4_build): Likewise, to CC.
15976
15977 2002-08-19  Geoffrey Keating  <geoffk@redhat.com>
15978             Steve Ellcey  <sje@cup.hp.com>
15979
15980         * machmode.h (SCALAR_INT_MODE_P): New macro to test for
15981         scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
15982         * explow.c (trunc_int_for_mode): Abort when the mode is not
15983         a scaler integer mode.
15984         * combine.c (expand_compound_operation): Don't expand Vector
15985         or Complex modes into shifts.
15986         (expand_field_assignment): Don't do bitwise arithmatic and
15987         shifts on Vector or Complex modes.
15988         (simplify_comparison): Don't call trunc_int_for_mode
15989         for VOIDmode.
15990         * recog.c (general_operand): Likewise.
15991         (immediate_operand): Likewise.
15992         (nonmemory_operand): Likewise.
15993
15994 2002-08-19  David Edelsohn  <edelsohn@gnu.org>
15995
15996         * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
15997         multi-instruction SImode constant.  Add REG_EQUAL note.
15998         * config/rs6000/rs6000.md (movsi splitter): Use
15999         rs6000_emit_set_const.
16000
16001 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16002
16003         * tree-inline.c (initialize_inlined_parameters): Wrap variable in
16004         the macro test controlling its use.
16005
16006 2002-08-18  H.J. Lu  (hjl@gnu.org)
16007
16008         * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
16009         crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
16010         gnu_ld=yes.
16011         (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
16012         i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
16013         s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
16014         xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
16015         here.
16016         (cris-*-linux*): Remove setting thread_file here.
16017
16018 2002-08-18  Neil Booth  <neil@daikokuya.co.uk>
16019
16020         PR preprocessor/7602
16021         * cppinit.c (path_include): Treat the system environment
16022         variables as being cxx_aware.
16023
16024 2002-08-17  Joseph S. Myers  <jsm@polyomino.org.uk>
16025
16026         * c-decl.c (flexible_array_type_p): New function.
16027         (grokdeclarator, finish_struct): Use it.
16028         * doc/extend.texi: Document constraints on use of structures with
16029         flexible array members.
16030
16031 2002-08-17  Richard Sandiford  <rsandifo@redhat.com>
16032
16033         * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
16034         config/mips/t-r3900 (MULTILIB_MATCHES): Define.
16035         * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
16036
16037 2002-08-16  Stan Shebs  <shebs@apple.com>
16038
16039         * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
16040         for ObjC with -fnext-runtime.
16041         * doc/cpp.texi: Document it.
16042
16043 2002-08-16  Janis Johnson  <janis187@us.ibm.com>
16044
16045         * doc/install.texi (Final installation): Replace links to individual
16046         build status pages with a link to a common page that lists them all.
16047
16048 2002-08-16  Sylvain Pion <pion@cs.nyu.edu>
16049
16050         * doc/invoke.texi: Fix typo.
16051
16052 2002-08-16  David Edelsohn  <edelsohn@gnu.org>
16053
16054         * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
16055
16056 2002-08-16  Andrew Haley  <aph@redhat.com>
16057
16058         * tree-inline.c: Add includes for Java inliner.
16059         (remap_decl): Don't handle anonymous types for Java.
16060         (remap_block): Add handling for Java trees.
16061         (copy_scope_stmt): Conditionalize for non-Java use only.
16062         (copy_body_r): Handle Java trees.  Add handling for
16063         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
16064         (initialize_inlined_parameters):  Handle Java trees.
16065         (declare_return_variable): Likewise.
16066         (expand_call_inline): Handle Java trees.
16067         (walk_tree): Likewise.
16068         (copy_tree_r): Don't handle SCOPE_STMTs for Java.
16069         (add_stmt_to_compound): New function.
16070
16071 2002-08-15  Richard Henderson  <rth@redhat.com>
16072
16073         * Makefile.in (LOOSE_WARN): Remove -fno-common.
16074         (NOCOMMON_FLAG): New substitution point.
16075         (GCC_WARN_CFLAGS): Include it.
16076         * configure.in (ac_checking): Set nocommon_flag.
16077         (nocommon_flag): New substitution point.
16078
16079 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
16080
16081         * c-tree.h (skip_evaluation): Move declaration...
16082         * c-common.h: ... here.
16083         * c-typeck.c (build_external_ref): Don't assemble_external nor
16084         mark a tree as used if skip_evaluation is set.
16085         * c-parse.in (typeof): New non-terminal to set skip_evaluation
16086         around TYPEOF.
16087         (typespec_nonreserved_nonattr): Use it.
16088
16089 2002-08-15  Douglas B Rupp  <rupp@gnat.com>
16090
16091         * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
16092         (xcoff_debug_hooks): Update end_prologue.
16093         * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
16094         * debug.h (end_prologue): Add file arg.
16095         (end_epilogue): Add line and file args.
16096         (dwarf2out_end_epilogue): Add line and file args.
16097         (vmsdbgout_after_prologue): Remove.
16098         * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
16099         (dwarf2_debug_hooks): Update end_prologue.
16100         * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
16101         (dwarfout_end_prologue): Add file arg.
16102         * final.c (vmsdbgout_after_prologue): Remove
16103         (final_end_function): Update end_epilogue call.
16104         (final_scan_insn): Update end_prologue call.
16105         * sdbout.c (sdbout_end_epilogue): Add line and file args.
16106         (sdbout_end_prologue): Add file arg.
16107         (sdb_debug_hooks): Update end_prologue.
16108         (sdb_begin_prologue): Update sdbout_end_prologue call.
16109         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
16110         vmsdbgout_end_function.
16111         (vmsdbgout_end_prologue): New function renamed from
16112         vmsdbgout_after_prologue. Call vmsdbgout_source_line.
16113         (vmsdbgout_end_function): New function.
16114         (vmsdbgout_end_epilogue): Add line and file args. Call
16115         vmsdbgout_source_line.
16116         (write_pclines): Write only valid line numbers.
16117         (write_srccorr): Don't write source correlation records if 0 lines.
16118         * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
16119
16120 2002-08-15  Steve Ellcey  <sje@cup.hp.com>
16121
16122         * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
16123         (_Unwind_Internal_Ptr): 32 bit version for use in
16124         read_encoded_value_with_base.
16125         * gcc/unwind-pe.h (read_encoded_value_with_base): Use
16126         _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
16127         right size.
16128
16129 2002-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16130
16131         * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
16132         signed/unsigned warnings.
16133
16134         * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
16135         record_reg_classes): Likewise.
16136
16137         * reload.c (reload_inner_reg_of_subreg, push_reload,
16138         find_reloads_address_1): Likewise.
16139
16140 2002-08-15  David Edelsohn  <edelsohn@gnu.org>
16141
16142         * rs6000.c (output_mi_thunk): Return to function section on
16143         TARGET_ELF.
16144
16145         * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
16146
16147 2002-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
16148
16149         * config/s390/s390.c (legitimize_address): Optimize loading
16150         of large displacements.
16151
16152 2002-08-14  Douglas B Rupp  <rupp@gnat.com>
16153
16154         * config/alpha/alpha-protos.h: Update.
16155
16156         * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
16157         (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
16158         (alpha_linkage_symbol_p): New static function.
16159         (print_operand_address): Print linkage operand.
16160
16161         (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
16162         variables.
16163         (reloc_kind): New enum.
16164         (struct alpha_funcs): New struct.
16165         (struct alpha_links): Add reloc_kind field. Rename links_kind field.
16166
16167         (alpha_need_linkage): Rewrite.
16168         (alpha_use_linkage): New global function.
16169         (alpha_write_linkage): Rewrite and make static.
16170         (alpha_write_one_linkage): Rewrite
16171
16172         (alpha_start_function): Remove procedure descriptor output.
16173         (alpha_end_function): Write linkages at end of each function.
16174
16175         * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
16176         (call_vms_1, call_value_vms_1): Rewrite.
16177
16178         * config/alpha/vms.h (ASM_FILE_END): Remove.
16179
16180 2002-08-14  Richard Henderson  <rth@redhat.com>
16181
16182         * ggc-page.c (RTL_SIZE): New.
16183         (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
16184         * rtl.def (BARRIER, NOTE): Pad to 9 slots.
16185
16186 2002-08-14  Richard Henderson  <rth@redhat.com>
16187
16188         * calls.c: Include target.h.
16189         * Makefile.in (calls.o): Update.
16190
16191         * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
16192         * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
16193
16194 2002-08-14  Richard Henderson  <rth@redhat.com>
16195
16196         * Makefile.in (LOOSE_WARN): Add -fno-common.
16197         * c-common.h (constant_string_class_name): Add missing extern.
16198
16199 2002-08-15  Neil Booth  <neil@daikokuya.co.uk>
16200
16201         PR preprocessor/7358
16202         * c-opts.c (check_deps_environment_vars): Ignore main file
16203         for SUNPRO_DEPENDENCIES.
16204         * cppfiles.c (stack_include_file): Ignore main file if
16205         appropriate.
16206         * cpplib.h (struct cpp_options): New member in deps.
16207         * doc/cppenv.texi: Update.
16208
16209 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
16210
16211         PR preprocessor/7526
16212         * cpplib.c (run_directive): Kludge so _Pragma dependency works.
16213
16214 2002-08-14  Nathan Sidwell  <nathan@codesourcery.com>
16215
16216         * doc/invoke.texi (-a): Remove documentation.
16217         (-fprofile-arcs): Remove reference to -a, -ax options.
16218         * doc/gcov.texi (Gcov Data Files): Data might be merged.
16219
16220 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
16221
16222         Fix PR/7566
16223         * c-semantics.c (genrtl_case_label): Don't (mis)use
16224         warning_with_decl.
16225
16226 2002-08-14  Dale Johannesen  <dalej@apple.com>
16227
16228         * explow.c (emit_stack_restore):  Emit memory clobbers
16229         preceding the stack pop, to prevent the scheduler from
16230         moving refs to variable arrays below this pop.
16231         * reload1.c (reload):  Preserve these clobbers for sched2.
16232         * doc/rtl.texi:  Document clobber (mem:BLK (scratch)).
16233
16234 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
16235
16236         * c-opts.c (c_common_post_options): Correct test.
16237
16238 2002-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16239
16240         * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
16241         order in call to fprintf.
16242
16243 2002-08-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16244
16245         * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
16246
16247 2002-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
16248
16249         * reload.c (find_reloads): Handle constraint letters marked by
16250         EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
16251         (alternative_allows_memconst): Likewise.
16252         * reload1.c (maybe_fix_stack_asms): Likewise.
16253         * recog.c (asm_operand_ok, preprocess_constraints,
16254         constrain_operands): Likewise.
16255         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
16256         * local-alloc.c (block_alloc, requires_inout): Likewise.
16257         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16258
16259         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
16260         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
16261         * doc/tm.texi: Document these two new target macros.
16262
16263         * config/s390/s390.c (s390_expand_plus_operand): Accept already
16264         valid operands.
16265         (q_constraint): New function.
16266         config/s390/s390-protos.h (q_constraint): Declare it.
16267         config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
16268         (EXTRA_MEMORY_CONSTRAINT): New macro.
16269
16270         * config/s390/s390.md: Throughout the machine description,
16271         replace all instances of the constraint combinations 'Qo'
16272         or 'oQ' with simply 'Q'.
16273
16274 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
16275
16276         * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
16277         * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
16278         (LIBGCC2_CFLAGS): Compile with -mrelax.
16279
16280 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
16281
16282         * doc/invoke.texi: Document -minmax for 68HC12.
16283
16284         * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
16285         ("uminqi3"): Likewise.
16286         ("uminhi3", "umaxhi3"): Likewise.
16287
16288         * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
16289         (TARGET_MIN_MAX): Define.
16290         (TARGET_SWITCHES): New option -minmax/-mnominmax.
16291
16292 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
16293
16294         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
16295         (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
16296
16297         * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
16298         (ret, declare, farsym): New gas macros.
16299         (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
16300         ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
16301         and declare the symbol far when compiled with -mlong-calls.
16302         (__far_trampoline): New for 68HC12 trampoline code to invoke a
16303         far handler using jsr/bsr.
16304
16305         * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
16306         (jsr): New macro to transform a 'jsr' into a 'call'.
16307
16308 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
16309
16310         * doc/invoke.texi: Document -mlong-calls for 68HC12.
16311
16312         * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
16313         -mlong-calls is specified.
16314         (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
16315         assembler directives.
16316         (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
16317         (TARGET_SWITCHES): Add -mlong-calls options.
16318         (current_function_far): Declare.
16319
16320         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
16321         into account the page register saved on the stack.
16322         (m68hc11_override_options): Take into account -mlong-calls option.
16323         (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
16324
16325         * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
16326         if the function is going to be in 68HC12 banked memory (-mlong-calls).
16327         ("*return_16bit"): Likewise.
16328         ("*return_void"): Likewise.
16329         ("call", "call_value"): Use call for a far function call.
16330
16331 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
16332
16333         * toplev.c (parse_options_and_default_flags): Don't call
16334         post_options here.
16335         (general_init): Initialize GC, pools and tree hash here,
16336         instead of lang_independent_init.
16337         (lang_independent_init): Rename backend_init.
16338         (do_compile): Call post_options hook; exit early if there
16339         have been errors after switch processing.
16340         (toplev_main): Update.
16341
16342 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
16343
16344         * c-pretty-print.h: Guard against multiple inclusion.
16345         Robustify macros.
16346         (pp_c_attributes): Declare.
16347         * c-pretty-print.c (pp_c_attributes): New function.
16348
16349 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16350
16351         * m68k.c (m68k_output_function_prologue,
16352         m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
16353         and NEWS/MOTOROLA.
16354         * genattrtab.c: Remove dpx2 comment.
16355         * libgcc2.c (__enable_execute_stack): Delete versions for
16356         NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
16357         sony_news/SYSTYPE_BSD.
16358         * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
16359         __gmicro__, __i860__, __NeXT__ and __pyr__.
16360         * rtl.h: Remove convex comment.
16361         * varasm.c: Likewise.
16362
16363 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16364
16365         * c-opts.c (lang_flags): Const-ify.
16366         * ra-build.c (undef_table): Likewise.
16367         * ra.c (eliminables): Likewise.
16368
16369 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
16370
16371         * tree.h: Guard against multiple inclusion.
16372
16373 2002-08-14  Hans-Peter Nilsson  <hp@bitrange.com>
16374
16375         * reload1.c (reload_cse_simplify): Before checking
16376         REG_FUNCTION_VALUE_P, check REG_P.
16377
16378 2002-08-13  Geoffrey Keating  <geoffk@redhat.com>
16379
16380         * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
16381
16382 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
16383
16384         * c-opts.c (c_common_init_options): Extra braces needed.
16385
16386 Tue Aug 13 17:40:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
16387
16388         * sh.c (sh_init_builtins): Add PARAMS to declaration.
16389         (sh_media_init_builtins, sh_expand_builtin): Likewise.
16390         (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
16391         (sh_expand_binop_v2sf): Likewise.
16392         * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
16393         (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
16394         (sh_initialize_trampoline): Likewise.
16395
16396 2002-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
16397
16398         * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
16399         new condition code modes.
16400         s390.c (s390_match_ccmode_set): Handle those new CC modes.
16401         (s390_select_ccmode): Likewise.
16402         (s390_branch_condition_mask): Likewise.
16403
16404         * s390-protos.h (s390_tm_ccmode): Declare.
16405         s390.c (s390_tm_ccmode): New function.
16406         (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
16407
16408         * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
16409         ("*cmpsi_tm2"): Rename to "*tmsi_ext".
16410         ("*cmpqi_tm2"): Rename to "*tmqi_ext".
16411
16412         ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
16413         "*cmphi_tm_sub","*cmphi_cct_0",  "*cmpqi_tm", "*cmpqi_tm_sub",
16414         "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
16415         ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
16416         "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
16417
16418         ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
16419         "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
16420         "*cmpqi_ccs_0"): Remove, replace by ...
16421         ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
16422         "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
16423         "*tstqi", "*tstqi_cconly"): ... these new patterns.
16424
16425         ("*cmpsidi_ccs"): Remove, replace by ...
16426         ("*cmpsi_ccs_sign"): ... this new pattern.
16427         ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
16428
16429         ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
16430         ("*cli"): ... this new pattern.
16431
16432         ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
16433         "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
16434         New patterns.
16435         ("adddi3_64"): Rename to "*adddi3_64".
16436         ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
16437         ("adddi3"): Adapt expander.
16438
16439         ("*addsi3_cc"): Allow "general_operand" for operand 2.
16440         ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
16441         "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
16442
16443         ("addhi3", "addqi3"): Remove, replace by ...
16444         ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
16445
16446         ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
16447         "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
16448         ("subdi3"): Replace by insn and splitter "*subdi3_31".
16449         ("subdi3"): New expander.
16450
16451         ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
16452
16453         ("subhi3", "subqi3"): Remove, replace by ...
16454         ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
16455
16456         ("*muldi3_sign"): New pattern.
16457         ("muldi3"): Do not clobber CC.
16458         ("mulsi3"): Likewise.
16459         ("mulsi_6432"): Likewise.
16460
16461 2002-08-13  Denis Chertykov  <denisc@overta.ru>
16462
16463         * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
16464         which can change CC0.
16465
16466 Tue Aug 13 14:49:20 2002  J"orn Rennecke <joern.rennecke@superh.com>
16467
16468         * gcse.c (adjust_libcall_notes): New function.
16469         (do_local_cprop): Use it.  Add fourth parameter.  Changed caller.
16470
16471 2002-08-13  Nathan Sidwell  <nathan@codesourcery.com>
16472
16473         * libgcc2.c (L_bb): Remove unneeded #includes.
16474         (__global_counters, __gthreads_active): Remove unused globals.
16475         (__bb_exit_func): Merge counts into files rather than appending.
16476         * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
16477         (ALL_CFLAGS): ... to here.
16478
16479 2002-08-13  Denis Chertykov  <denisc@overta.ru>
16480
16481         * config/ip2k/ip2k.c (commands_in_file): Variable removed.
16482         (function_epilogue): Don't calculate function size.
16483         (ip2k_set_compare): Don't use lookup_const_double.
16484         (asm_file_start): Initialization of commands_in_file removed.
16485         (asm_file_end): Output of commands_in_file removed.
16486
16487         * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
16488         __INT_MAX__.
16489
16490 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
16491
16492         * c-opts.c (c_common_init_options): Check option array is
16493         sorted if checking enabled.
16494
16495 2002-08-13  Gabriel Dos Reis  <gdr@nerim.net>
16496
16497         * c-pretty-print.c: #include "c-tree.h".
16498         (pp_c_simple_type_specifier): Tweak.
16499         (pp_c_storage_class_specifier): New.
16500         (pp_c_function_specifier): Likewise.
16501         (pp_c_declaration_specifiers): Likewise.
16502         (pp_c_init_declarator): Likewise.
16503         (pp_c_declaration): Likewise.
16504         (pp_c_direct_declarator): Stub.
16505         (pp_c_declarator): Likewise.
16506         (pp_c_parameter_declaration): Likewise.
16507
16508 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
16509
16510         * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
16511         handle_deferred_opts, sanitize_cpp_opts, defer_opt,
16512         struct deferred_opt): New.
16513         (COMMAND_LINE_OPTIONS): Add -M*.
16514         (missing_arg): Update.
16515         (c_common_decode_option): Handle -M*.
16516         (c_common_post_options): Handle -M*.  Use sanitize_cpp_opts;
16517         don't call cpp_post_options.
16518         (c_common_finish, check_deps_environment_vars): Update.
16519         * cppfiles.c (stack_include_file, handle_missing_header): Update.
16520         * cpphash.h (CPP_PRINT_DEPS): Remove.
16521         * cppinit.c: Don't include version.h.
16522         (cpp_create_reader): Don't call deps_init.  Initialize
16523         warn_long_long.
16524         (cpp_read_main_file): Init deps if necessary.
16525         (cpp_destroy): Conditionally free deps.
16526         (cpp_finish): Update.
16527         (no_tgt): Remove.
16528         (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
16529         (cpp_post_options): Rename post_options.
16530         * cpplib.h (struct cpp_options): Remove some dependency options;
16531         move others to a new structure.
16532         (cpp_post_options): Remove.
16533         (cpp_finish): Comment.
16534         * fix-header.c (read_scan_file): Don't call cpp_post_options.
16535
16536 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
16537
16538         * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
16539         ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
16540         MMIX_rR_REGNUM as clobbered.
16541         * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
16542
16543 2002-08-12  Gabriel Dos Reis  <gdr@nerim.net>
16544
16545         * diagnostic.h (output_formatted_scalar): Rename from
16546         output_formatted_integer.
16547         * diagnostic.def: Add DK_DEBUG.
16548         * diagnostic.c (output_decimal): Adjust.
16549         (output_long_decimal): Likewise.
16550         (output_unsigned_decimal): Likewise.
16551         (output_octal): Likewise.
16552         (output_long_octal): Likewise.
16553         (output_hexadecimal): Likewise.
16554         (output_long_hexadecimal): Likewise.
16555         * c-pretty-print.c (pp_c_type_specifier): New function.
16556         (pp_c_specifier_qualifier_list): Likewise.
16557         (pp_c_abstract_declarator): Likewise.
16558         (pp_c_char): Replace pp_format_integer with pp_format_scalar.
16559
16560 2002-08-12  David Edelsohn  <edelsohn@gnu.org>
16561
16562         * doc/trouble.texi (Disappointments): Add static constructor and
16563         destructor dependency information for AIX.
16564
16565 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
16566
16567         * cpphash.h (struct printer): New from cppmain.c.
16568         (cpp_reader): New member.
16569         * cppmain.c (struct printer): Move to cpphash.h.
16570         (options, print): Remove.
16571         (account_for_newlines, print_line, maybe_print_line,
16572         cpp_preprocess_file, setup_callbacks, scan_translation_unit,
16573         scan_translation_unit_trad, cb_line_change, cb_ident,
16574         cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
16575         cb_def_pragma): Make reentrant.
16576
16577 2002-08-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16578
16579         * real.c (ieee_64): Always define.
16580         (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
16581         (dec_h): Not used yet, hide it.
16582         (emdnorm): Mark parameter in ATTRIBUTE_UNUSED.  Guard label with
16583         macro controlling use.
16584         (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
16585
16586 Mon Aug 12 12:48:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
16587
16588         * i386.md (tablejump): Sign extend the operand.
16589         * i386.c (classify_argument): Fix missed case from previous patch.
16590
16591 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
16592
16593         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
16594         to c-copts.c.
16595         (warn_multichar): Die.
16596         (cb_register_builtins): Export.
16597         * c-common.h (warn_multichar, preprocess_file): Remove.
16598         (cb_register_builtins): New.
16599         * c-lang.c (c_init): Remove.
16600         (LANG_HOOKS_INIT): Use c_objc_common_init.
16601         * c-lex.c (init_c_lex): Don't canonicalize filename.
16602         * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
16603         (preprocess_file): Make static.  Update for cpplib.
16604         (c_common_decode_option): Remove warn_multichar.  Use in_fname.
16605         (c_common_post_options): Set some cpp options here.
16606         (c_common_init): Move from c-common.c.
16607         * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
16608         * cpplib.h (struct cpp_options): Remove in_fname.
16609         (cpp_preprocess_file): Update.
16610         * cppmain.c (cpp_preprocess_file): Update for new prototypes.
16611
16612 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16613
16614         * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
16615
16616 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16617
16618         * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
16619         backslash in comment preceeding macro definition.
16620         * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
16621         * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
16622         * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
16623
16624 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
16625
16626         * expr.c (store_expr): In condition for checking if value is
16627         generated in TARGET, move call to expr_size last.
16628
16629 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
16630
16631         * c-common.c (c_common_init): Call preprocess_file instead.
16632         (c_common_finish): Move to c-opts.c.
16633         * c-common.h (preprocess_file): new.
16634         * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
16635         check_deps_environment_vars, c_common_finish): New.
16636         (c_common_decode_option): Update for out_fname and dependencies.
16637         * cppinit.c (init_dependency_output, output_deps): Remove.
16638         (cpp_destroy): Update prototype.
16639         (cpp_add_dependency_target): New.
16640         (cpp_read_main_file): Don't overlay a buffer.
16641         (cpp_finish): Take a deps output stream and write deps to it.
16642         Return the error count.
16643         (cpp_post_options): Don't canonicalize out_fname, or do anything
16644         with dependencies.
16645         * cpplib.h (struct cpp_options): Remove out_fname and
16646         preprocess_only.
16647         (cpp_add_dependency_target): New.
16648         (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
16649         * cppmain.c (cpp_preprocess_file): Update prototype.  Don't
16650         set preprocess_only.  Don't handle the output stream directly.
16651
16652 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16653
16654         * dsp16xx.c (print_operand): Fix format specifier.
16655         * dsp16xx.md: Avoid automatic aggregate initialization.
16656         * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
16657         * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
16658         integer constant modifier.
16659         * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
16660         * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
16661         guards.
16662         * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
16663         * v850.c (v850_select_section): Mark parameter with
16664         ATTRIBUTE_UNUSED.
16665         * global.c (global_alloc): Const-ify.
16666         * ra-colorize.c (hardregset_to_string): Fix format specifier.
16667
16668 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16669
16670         * darwin-c.c (darwin_pragma_options): Const-ify.
16671         * darwin.c (machopic_non_lazy_ptr_name,
16672         machopic_validate_stub_or_non_lazy_ptr): Likewise.
16673         (machopic_indirect_data_reference): Wrap variables in macros
16674         controlling their use.
16675         (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
16676         (machopic_select_section): Use parentheses around && within ||.
16677         * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
16678
16679 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16680
16681         * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
16682         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
16683         ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
16684         ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
16685         mdr_try_remove_redundant_insns, track_w_reload,
16686         mdr_try_wreg_elim): Make function static to match prototype.
16687         * mmix.c (mmix_target_asm_function_epilogue): Likewise.  Mark
16688         parameter with ATTRIBUTE_UNUSED.
16689
16690 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16691
16692         * arc.c (arc_init): Don't use ISO C style function definitions.
16693         * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
16694         arm_get_strip_length, arm_strip_name_encoding): Likewise.
16695         * avr.h (progmem_section): Likewise.
16696         * h8300.c h8300_asm_insn_count): Likewise.
16697         * m32r.c (init_idents): Likewise.
16698         * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
16699         * sh.c (sh_cfun_interrupt_handler_p): Likewise.
16700         * xtensa.c (xtensa_build_va_list): Likewise.
16701
16702 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
16703
16704         * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
16705         * c-opts.c (parse_option): Rename find_opt.
16706         (set_std_c99): New function.
16707         (COMMAND_LINE_OPTIONS): Handle -remap and -o.  Remove OPT_std_bad.
16708         (missing_arg): Remove OPT_std_bad.  Handle -o.
16709         (c_common_decode_option): Handle input and output file names,
16710         -o and -remap.  Clean up -std= handling.
16711         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
16712         (cpp_handle_option): Similarly.  Don't handle filenames.
16713
16714 Sun Aug 11 14:43:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
16715
16716         * i386.c (classify_argument): Fix computing of field's offsets.
16717
16718 2002-08-11  Andreas Jaeger  <aj@suse.de>
16719
16720         PR target/7531:
16721         * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
16722
16723 2002-08-10  Ziemowit Laski  <zlaski@apple.com>
16724
16725         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
16726         reference to clk_objective_c with flag_objc.
16727         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
16728         Likewise.
16729         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
16730
16731 2002-08-10  Neil Booth  <neil@daikokuya.co.uk>
16732
16733         * c-opts.c (set_std_cxx98, set_std_c89): New.
16734         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
16735         (c_common_decode_option): Handle new switches from cppinit.c.
16736         Add -std=gnu++98.
16737         * cppinit.c (set_lang): Rename cpp_set_lang.  Export.
16738         (no_arg, no_num): Remove.
16739         (COMMAND_LINE_OPTIONS): Move more to c-opts.c.  Drop all lang-
16740         switches apart from -lang-objc and lang-asm.
16741         (cpp_handle_option): Similarly.
16742         * cpplib.h (cpp_set_lang): New.
16743         * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
16744         -std=gnu++98.
16745         * objc/lang-specs.h: Remove -ansi.
16746
16747 Sat Aug 10 19:59:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
16748                                Graham Stott
16749
16750         * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
16751         errors.
16752
16753 2002-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16754
16755         * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
16756         emit_jump_insn): Fix uninitialized variable.
16757         * gcov.c (init_line_info): Likewise.
16758         * genautomata.c (transform_3): Add braces around ambiguous
16759         else.
16760         * ifcvt.c (cond_exec_process_insns): Mark parameter with
16761         ATTRIBUTE_UNUSED.
16762         * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
16763         * regrename.c (copyprop_hardreg_forward): Fix uninitialized
16764         variable.
16765
16766         * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
16767         warnings in output files.
16768
16769 2002-08-09  Ziemowit Laski  <zlaski@apple.com>
16770
16771         * c-common.c (flag_objc): New.
16772         * c-common.h (c_language_kind): Get rid of clk_objective_c
16773         enum value.
16774         (flag_objc): New extern declaration.
16775         * c-decl.c (implicitly_declare): Call objc_check_decl
16776         instead of maybe_objc_check_decl.
16777         (finish_decl): Likewise.
16778         (grokfield): Likewise.
16779         (finish_struct): Likewise.
16780         * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
16781         (maybe_objc_comptypes): Rename to objc_comptypes.
16782         (maybe_building_objc_message_expr): Rename to
16783         objc_message_selector.
16784         * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
16785         replace with flag_objc as needed.
16786         * c-opts.c (c_common_init_options): Likewise.
16787         (c_common_decode_option): Likewise.
16788         * c-parse.in (init_reswords): Likewise.
16789         * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
16790         (maybe_objc_comptypes): Rename to objc_comptypes.
16791         (maybe_building_objc_message_expr): Rename to
16792         objc_message_selector.
16793         * c-typeck.c (comptypes): Call objc_comptypes instead of
16794         maybe_objc_comptypes, and/or objc_message_selector instead of
16795         maybe_building_objc_message_expr.
16796         (comp_target_types): Likewise.
16797         (convert_for_assignment): Likewise.
16798         (warn_for_assignment): Likewise.
16799         * cppinit.c (init_builtins): Set __OBJC__ manifest constant
16800         independently of those for other languages.
16801         * objc/objc-act.c (maybe_objc_comptypes): Delete.
16802         (maybe_objc_check_decl): Delete.
16803         (maybe_building_objc_message_expr): Rename to
16804         objc_message_selector.
16805         * objc/objc-lang.c (objc_init_options): Use clk_c instead of
16806         clk_objective_c; set flag_objc flag.
16807
16808 2002-08-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
16809
16810         * ifcvt.c (find_if_case_2): Test correct basic block for size.
16811
16812 2002-08-09  Dale Johannesen  <dalej@apple.com>
16813
16814         * config/rs6000/rs6000.md: Add sibcall patterns.
16815         * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL):  Define.
16816         * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
16817         Rewritten to handle sibcalls.
16818         * config/rs6000/rs6000.c (function_ok_for_sibcall):  New.
16819         * config/rs6000/rs6000-protos.h (function_ok_for_sibcall):  New.
16820
16821 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
16822
16823         * profile.c (da_file_name): New static var.
16824         (init_branch_prob): Initialize it.
16825         (end_branch_prob): Remove da file.
16826
16827         * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
16828         * configure.in (coverage_flags): Default to nothing.
16829         * configure: Rebuilt.
16830
16831 2002-08-09  Neil Booth  <neil@daikokuya.co.uk>
16832
16833         * Makefile.in (c-opts.o): Update
16834         * c-opts.c: Include intl.h.
16835         (print_help): Move from cppinit.c.  Remove unused options.
16836         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
16837         (missing_arg): Complain for switches without an argument.
16838         (c_common_decode_option): Reject missing joined arguments.
16839         Handle new switches from cppinit.c.
16840         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
16841         (cpp_handle_option): Similarly.
16842         (print_help): Moved to c-opts.c.
16843         * cpplib.h (struct cpp_options): Remove help_only.
16844         * gcc.c (cpp_unique_options): Remove -$.
16845         * doc/cppopts.texi: Undocument -h.
16846
16847 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
16848
16849         * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
16850         legitimate constant.
16851         (legitimate_pic_operand_p): Neither pic operand.
16852         (legitimate_address_p): But legitimate address.
16853         (get_thread_pointer): Generate MEM/u instead of CONST around
16854         UNSPEC_TP.
16855         (print_operand): Remove printing of UNSPEC_TP.
16856         (print_operand_address): And print it here.
16857
16858 2002-08-08  Devang Patel  <dpatel@apple.com>
16859
16860         * objc/objc-act.c (build_selector_translation_table): Issue warning,
16861         when  -Wselector is used,if method for which selector is being
16862         created does not exist.
16863
16864 2002-08-08  Stephen Clarke <stephen.clarke@superh.com>
16865
16866         * config/sh/sh.c (prepare_move_operands): Only call
16867         target_reg_operand if TARGET_SHMEDIA.
16868
16869 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
16870
16871         * config/rs6000/rs6000.h, config/rs6000/aix.h,
16872         config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
16873         two patches.
16874         * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
16875
16876 2002-08-08  Lars Brinkhoff  <lars@nocrew.org>
16877             Richard Henderson  <rth@redhat.com>
16878
16879         * emit-rtl.c (gen_rtx_REG): After reload, only return
16880         frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
16881
16882 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
16883
16884         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
16885         * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
16886         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
16887         macro.
16888
16889 2002-08-08  Adam Nemet  <anemet@lnxw.com>
16890
16891         * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
16892         register.
16893         (thumb_expand_prologue): Likewise.
16894         (thumb_output_function_prologue): Likewise.
16895         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
16896         the additional push of the PIC register.
16897
16898 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
16899
16900         * configure.in (enable_coverage): New enable switch.
16901         * configure: Rebuilt.
16902         * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
16903         (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
16904         (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
16905         (mostlyclean): Remove coverage files.
16906         * doc/install.texi: Document enable_coverage.
16907
16908         * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
16909         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
16910         * f/Make-lang.in (f.mostlyclean): Remove coverage files.
16911         * java/Make-lang.in (java.mostlyclean): Remove coverage files.
16912         * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
16913         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
16914         files.
16915
16916 2002-08-08  Neil Booth  <neil@daikokuya.co.uk>
16917
16918         * c-opts.c (cpp_opts): New.
16919         (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
16920         (c_common_decode_options): Handle cpplib switches.
16921         (c_common_init_options): Set cpp_opts.
16922         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
16923         (cpp_handle_option): Similarly.
16924
16925 2002-08-08  David Edelsohn  <edelsohn@gnu.org>
16926
16927         * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
16928         (TARGET_ALTIVEC_ABI): Same.
16929         (TARGET_ALTIVEC_VRSAVE): Same.
16930
16931         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
16932         icode not CODE_FOR_nothing.  Change switch to if.
16933
16934 2002-08-08  Alan Modra  <amodra@bigpond.net.au>
16935
16936         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
16937
16938 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
16939
16940         * stor-layout.c (place_union_field): For bitfields if
16941         PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
16942         TYPE_USER_ALIGN.
16943
16944 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16945
16946         * pa.c (struct deferred_plabel): Constify name field.
16947
16948 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
16949
16950         * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
16951
16952 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16953
16954         * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
16955         local_prefix are the same.
16956         * configure: Rebuilt.
16957
16958 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
16959             Richard Henderson  <rth@redhat.com>
16960
16961         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
16962         to type_align when PCC_BITFIELD_TYPE_MATTERS.  Only apply
16963         ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
16964         (place_field): Likewise.
16965         * config/i386/i386.c (x86_field_alignment): Don't check
16966         DECL_USER_ALIGN here.
16967         * config/rs6000/rs6000.c (rs6000_field_alignment): New.
16968         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
16969         prototype.
16970         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
16971         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
16972         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
16973         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
16974         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
16975         * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
16976
16977 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
16978
16979         * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
16980         * c-common.c: Don't include tree-inline.h.
16981         (c_common_init_options, c_common_post_options): Move to c-opts.c.
16982         * c-common.h (c_common_decode_option): New.
16983         * c-decl.c (c_decode_option): Remove.
16984         * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
16985         * c-opts.c: New file.
16986         * c-tree.h (c_decode_option): Remove.
16987         * doc/passes.texi: Update.
16988         * objc/objc-act.c (objc_decode_option): Remove.
16989         * objc/objc-act.h (objc_decode_option): Remove.
16990         * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
16991         c_common_decode_option.
16992
16993 2002-08-07  Chris Demetriou  <cgd@broadcom.com>
16994
16995         * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
16996         dependency on TARGET_DOUBLE_FLOAT.
16997
16998 2002-08-07  Stephen Clarke <stephen.clarke@superh.com>
16999
17000         * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
17001         overwrite callee-save registers.  Fix comment.
17002
17003 2002-08-06  Chris Demetriou  <cgd@broadcom.com>
17004
17005         * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
17006         in target_flags based on ISA, if it was not set on the command
17007         line.  Warn if MASK_BRANCHLIKLEY is set but the ISA does not
17008         support Branch Likely instructions.
17009         * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
17010         (TARGET_BRANCHLIKELY): Likewise.
17011         (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
17012         (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
17013         ISA_HAS_BRANCHLIKELY.
17014         (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
17015         * doc/invoke.texi: Document new MIPS -mbranch-likely and
17016         -mno-branch-likely options.
17017
17018 2002-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17019
17020         * ip2k.c (ip2k_set_compare): Add missing iteration variable.
17021
17022         * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
17023         $(GCONFIG_H).
17024
17025 2002-08-06  Aldy Hernandez  <aldyh@redhat.com>
17026
17027         * c-decl.c (duplicate_decls): Error out for incompatible TLS
17028         declarations.
17029
17030         * testsuite/gcc.dg/tls/diag-3.c: New.
17031
17032 2002-08-06  Dale Johannesen  <dalej@apple.com>
17033
17034         * c-common.c (fname_decl): Use line number 0 for
17035         __func__, to avoid confusing debuggers.
17036
17037 2002-08-06  Nathan Sidwell  <nathan@codesourcery.com>
17038
17039         * gcov.c: Tidy.
17040         (struct line_info, struct coverage): New structures.
17041         (gcov_file_name, gcov_file): Remove globals.
17042         (output_data): Take source file parameter. Fix memory leak. Break
17043         up into ...
17044         (init_line_info, output_line_info, make_gcov_file_name,
17045         accumulate_branch_counts): ... here.
17046         (calculate_branch_probs, function_summary): Adjust.
17047         (main): Adjust.
17048         (function_*): Remove global variables.
17049
17050 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
17051
17052         * dwarf2out.c: Remove unused macros.
17053
17054 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
17055
17056         * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
17057
17058 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
17059
17060         * cppinit.c (struct lang_flags): Rename trigraphs std.
17061         (set_lang): Update.
17062         * cpplib.h (struct cpp_options): New member std.
17063         * cppmacro.c (_cpp_builtin_macro_text): Use std.
17064         (collect_args): Flag whether to swallow a possible future
17065         comma pasted with varargs.
17066         (replace_args): Use this flag.
17067         * doc/cpp.texi: Update varargs extension documentation.
17068
17069 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
17070
17071         * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
17072
17073 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
17074
17075         * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
17076         and MODE_CLASS_INT modes.
17077
17078 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
17079
17080         * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
17081         --{enable,disable}-threads is given to configure.
17082         (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
17083         x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
17084         powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
17085         s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
17086         Remove thread_file setting here.
17087
17088 2002-08-06  David Edelsohn  <edelsohn@gnu.org>
17089
17090         * doc/install.texi (Binaries): Update Bull Freeware URL.
17091
17092 2002-08-06  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17093
17094         * doc/gcc.texi (Top): Rename Index to Keyword Index.
17095
17096 2002-08-05  Nathan Sidwell  <nathan@codesourcery.com>
17097
17098         * gcov.c (output_data): Round to % to nearest, tweak formatting.
17099
17100 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
17101
17102         * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
17103         of the operands into MINUS_EXPR if code is PLUS_EXPR.
17104
17105 2002-08-05  Douglas B Rupp  <rupp@gnat.com>
17106
17107         * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
17108         * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
17109         drectve_section): Define.
17110         * config/i386/t-interix: Replace interix.o rule with winnt.o.
17111         * config/i386/interix.c: Remove.
17112
17113 2002-08-05  Geoffrey Keating  <geoffk@redhat.com>
17114
17115         * attribs.c: Don't include obstack.h.
17116         * builtins.c: Likewise.
17117         * cfganal.c: Likewise.
17118         * cfgbuild.c: Likewise.
17119         * cfgcleanup.c: Likewise.
17120         * emit-rtl.c: Likewise.
17121         * loop.c: Likewise.
17122         * stmt.c: Likewise.
17123
17124         * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
17125
17126 2002-08-05  Gabriel Dos Reis  <gdr@nerim.net>
17127
17128         * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
17129
17130 2002-08-04  Chris Demetriou  <cgd@broadcom.com>
17131
17132         * doc/invoke.texi: Remove duplicated paragraph describing
17133         TARGET_SWITCHES.
17134
17135 2002-08-04  Geoffrey Keating  <geoffk@redhat.com>
17136
17137         * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
17138         * collect2.h (permanent_obstack): Delete declaration.
17139         * collect2.c (permanent_obstack): Delete definition.
17140         (main): Don't initialize permanent_obstack.  Use xstrdup instead.
17141         * expr.c: Don't include obstack.h.
17142         (permanent_obstack): Delete declaration.
17143         * function.c: Don't include obstack.h.
17144         (permanent_obstack): Delete declaration.
17145         * integrate.c: Don't include obstack.h.
17146         (function_maybepermanent_obstack): Delete declaration.
17147         * print-tree.c (debug_tree): Use x*alloc not permalloc.
17148         * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
17149         * tlink.c (pfgets): Use xstrdup not permanent_obstack.
17150         * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
17151         * tree.h: Rename init_obstacks to init_ttree.  Remove declarations
17152         of permalloc, expralloc, perm_calloc.
17153         * tree.c (permanent_obstack): Delete definition.
17154         (init_ttree): Rename from init_obstacks.
17155         (permalloc): Delete.
17156         (perm_calloc): Delete.
17157         (dump_tree_statistics): Don't print information about
17158         permanent_obstack.
17159         * varasm.c (assemble_start_function): Use xstrdup instead of
17160         permalloc/strcpy.
17161         (assemble_variable): Likewise.
17162         * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
17163         permalloc.
17164         (unicosmk_add_extern): Likewise.
17165         * config/c4x/c4x.c (c4x_external_ref): Likewise.
17166         (c4x_global_label): Likewise.
17167         * config/frv/frv.c (frv_encode_section_info): Likewise.
17168         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
17169         (i386_pe_record_exported_symbol): Likewise.
17170         * config/mips/mips.c (mips_output_external): Likewise.
17171         (mips_output_external_libcall): Likewise.
17172         * config/pa/pa.c: (permanent_obstack): Delete declaration.
17173         (output_call): Use ggc_strdup instead of allocating on
17174         permanent_obstack.
17175         * config/romp/romp.c: Include ggc.h.
17176         (get_symref): Don't declare permanent_obstack, use ggc_strdup
17177         intead of permanent_obstack.
17178         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
17179         instead of permalloc.
17180         * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
17181         instead of permalloc
17182         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
17183         instead of permalloc.
17184         * config/vax/vax.c (vms_check_external): Use xmalloc instead of
17185         permalloc.
17186
17187 2002-08-04  Bernd Schmidt  <bernds@redhat.com>
17188
17189         Contribute a port developed primarily by Michael Meissner,
17190         Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
17191         * config.gcc: Add frv-elf target.
17192         * config/frv/cmovd.c: New file.
17193         * config/frv/cmovh.c: New file.
17194         * config/frv/cmovw.c: New file.
17195         * config/frv/frv-abi.h: New file.
17196         * config/frv/frv-asm.h: New file.
17197         * config/frv/frv-modes.def: New file.
17198         * config/frv/frv-protos.h: New file.
17199         * config/frv/frv.c: New file.
17200         * config/frv/frv.h: New file.
17201         * config/frv/frv.md: New file.
17202         * config/frv/frvbegin.c: New file.
17203         * config/frv/frvend.c: New file.
17204         * config/frv/lib1funcs.asm: New file.
17205         * config/frv/media.h: New file.
17206         * config/frv/modi.c: New file.
17207         * config/frv/t-frv: New file.
17208         * config/frv/uitod.c: New file.
17209         * config/frv/uitof.c: New file.
17210         * config/frv/ulltod.c: New file.
17211         * config/frv/ulltof.c: New file.
17212         * config/frv/umodi.c: New file.
17213         * config/frv/xm-frv.h: New file.
17214
17215         * config/frv/media.h: Removed again.
17216
17217 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
17218
17219         * gcov.c (bb_file_time): New static variable.
17220         (object_directory): May also be object file.
17221         (preserve_paths): New static variable.
17222         (print_usage): Adjust.
17223         (options): Adjust.
17224         (process_args): Adjust.
17225         (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
17226         file. Find modification date on bb file.
17227         (read_profile): Don't rewind a NULL file.
17228         (format_hwint): New static function.
17229         (function_summary): Use format_hwint.
17230         (output_data): SOURCE_FILE_NAME is never relative to
17231         OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
17232         mangling. Adjust output format to make it more machine readable.
17233         * doc/gcov.texi: Document & clarify semantics.
17234
17235 2002-08-04  Joseph S. Myers  <jsm@polyomino.org.uk>
17236
17237         * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
17238
17239 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
17240
17241         * gcc.c (cc1_options): Pass output file as auxbase when
17242         appropriate.
17243         * profile.c (init_branch_prob): FILENAME has already had ending
17244         stripped.
17245         * final.c (end_final): Likewise.
17246         * toplev.c (aux_base_name): New global.
17247         (compile_file): Pass aux_base_name to init init_branch_prob and
17248         end_final.
17249         (independent_decode_option, case 'a'): New auxinfo options.
17250         (case 'd'): Protect against mising basename.
17251         (do_compile): Initialize aux_base_name.
17252         * toplev.h (aux_base_name): New global.
17253         * doc/invoke.texi: Adjust documentation.
17254
17255 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
17256
17257         * config/i386/i386.c (x86_field_alignment): Remove duplicate test
17258         of TARGET_ALIGN_DOUBLE.
17259
17260 2002-08-04  Gabriel Dos Reis  <gdr@nerim.net>
17261
17262         * diagnostic.c (inform): New function.
17263         * diagnostic.h (inform): Declare.
17264
17265 2002-08-03  David Edelsohn  <edelsohn@gnu.org>
17266
17267         * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
17268         (movhi_internal): Same.
17269         (movqi_internal): Same.
17270         (movdi_internal64): Same.
17271
17272         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
17273
17274         * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
17275         (ASM_OUTPUT_SKIP): Use it.  SIZE unsigned.
17276         (COMMON_ASM_OP): Define.
17277         (ASM_OUTPUT_ALIGNED_COMMON): Use it.  SIZE unsigned.
17278         Use ALIGN parameter.
17279         (LOCAL_COMMON_ASM_OP): Define.
17280         (ASM_OUTPUT_LOCAL): Use it.  SIZE unsigned.
17281
17282 2002-08-03  Roger Sayle  <roger@eyesopen.com>
17283
17284         * builtins.def: Define new builtin functions exp, expf, expl,
17285         log, logf and logl (and their __builtin_* variants).
17286         * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
17287         Define exp_optab and log_optab.
17288         * optabs.c (init_optans): Initialize exp_optab and log_optab.
17289         * genopinit.c (optabs): Implement exp_optab and log_optab
17290         using exp?f2 and log?f2 patterns.
17291         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
17292         and BUILT_IN_LOG* using exp_optab and log_optab respectively.
17293         (expand_builtin): Ignore the new builtins (and all cos and
17294         sin variants) when not optimizing.  Expand new builtins via
17295         expand_builtin_mathfn when flag_unsafe_math_optimizations.
17296
17297         * doc/extend.texi: Document new exp and log builtins.
17298         * doc/md.texi: Document new exp?f2 and log?f2 patterns
17299         (and previously undocumented cos?f2 and sin?f2 patterns).
17300
17301 2002-08-03  Jason Merrill  <jason@redhat.com>
17302
17303         * explow.c (int_expr_size): New fn.
17304         * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
17305         * expr.h: Declare it.
17306
17307 2002-08-02  Krister Walfridsson  <cato@df.lth.se>
17308
17309         * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
17310         gengtype-* dependencies.
17311
17312 2002-08-02  Eric Christopher  <echristo@redhat.com>
17313
17314         * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
17315         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
17316         #ifndef to #undef.
17317         (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
17318
17319 2002-08-02  David Edelsohn  <edelsohn@gnu.org>
17320
17321         PR optimize/7067
17322         * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
17323         small if optimizing for size.
17324
17325 2002-08-02  Daniel Jacobowitz  <drow@mvista.com>
17326
17327         * configure.in (FORBUILD): Use $build_alias.
17328         * configure: Regenerated.
17329
17330 2002-08-02  Richard Sandiford  <rsandifo@redhat.com>
17331
17332         * config.gcc: Don't include mips/abi64.h in $tm_file.
17333         * hard-reg-set.h (call_really_used_regs): Declare.
17334         * config/mips/abi64.h: Remove file.
17335         * config/mips/linux.h,
17336         * config/mips/iris6.h: Don't include it.
17337         * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
17338         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
17339         (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
17340         FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
17341         FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
17342         Bring across definitions from abi64.h.
17343         (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
17344         (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
17345         (struct mips_args): Use it.
17346         * config/mips/mips.c (mips_conditional_register_usage): Define.
17347
17348 2002-08-02  Jason Merrill  <jason@redhat.com>
17349
17350         * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
17351         * langhooks.c (lhd_expr_size): Define default.
17352         * langhooks.h (struct lang_hooks): Add expr_size.
17353         * explow.c (expr_size): Call it.
17354         * expr.c (store_expr): Don't copy an expression of size zero.
17355         (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
17356         to store.
17357         * Makefile.in (builtins.o): Depend on langhooks.h.
17358
17359 2002-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17360
17361         * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
17362         * ra-debug.c: Include "tm_p.h".
17363         * ra-rewrite.c (is_partly_live_1): Change return type to bool.
17364
17365 2002-08-02  Toon Moene  <toon@moene.indiv.nluug.nl>
17366
17367         * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
17368         when not honoring signalling NaNs.
17369         (simplify_ternary_operation): a == b has a definite value
17370         when not honoring NaNs.
17371
17372 2002-08-02  Jason Merrill  <jason@redhat.com>
17373
17374         * gdbinit.in (pct): New macro.
17375
17376 2002-08-01  Stan Shebs  <shebs@apple.com>
17377             Andreas Tobler  <toa@pop.agri.ch>
17378
17379         * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
17380         plays nice with Darwin headers.
17381         (_BSD_RUNE_T_DEFINED_): Likewise.
17382
17383 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
17384
17385         * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
17386         * cppinit.c (cpp_post_options): Likewise.
17387
17388         * cppexp.c (cpp_classify_number): Suppress -Wtraditional
17389         warning about 'LL' suffix (but not 'ULL' etc) when
17390         -Wno-long-long is in effect.
17391
17392         * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
17393         Check for failing time()/localtime(), issue a warning, and
17394         make __TIME__ and __DATE__ expand to fallback strings.
17395
17396         * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
17397         and __TIME__ when the date and time cannot be determined.
17398
17399 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
17400
17401         * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
17402
17403 2002-08-01  Daniel Jacobowitz  <drow@mvista.com>
17404
17405         * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
17406
17407 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
17408
17409         * config.gcc (mipsisa64sb1-*-elf*): New configuration.
17410         (mipsisa64sb1el-*-elf*): Likewise.
17411         * config/mips/mips.c (mips_cpu_info_table): Add sb1.
17412         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
17413         (TARGET_SB1, TUNE_SB1): New macros.
17414         * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
17415         -mtune flags.
17416
17417 2002-08-01  David Edelsohn  <edelsohn@gnu.org>
17418
17419         * varasm.c (asm_emit_uninitialized): Return false if global BSS
17420         and ASM_EMIT_BSS not supported by target.
17421         (assemble_variable): Do not duplicate uninitialized logic.
17422         Fall through if asm_emit_uninitialized failed.
17423
17424 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
17425
17426         * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
17427
17428 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
17429
17430         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
17431         (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
17432
17433         * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
17434         HOST_BITS_PER_WIDE_INT == 64.
17435
17436 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17437
17438         * df.c (df_insn_table_realloc): Change parameter to unsigned.
17439         * optabs.c (expand_binop): Make variable unsigned.
17440         * simplify-rtx.c (simplify_subreg): Likewise.
17441         * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
17442
17443 2002-08-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17444
17445         * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
17446
17447 2002-08-01  Richard Henderson  <rth@redhat.com>
17448
17449         * toplev.c (parse_options_and_default_flags): Don't set
17450         flag_reorder_blocks for -Os.
17451
17452         * config/avr/avr.c (avr_optimization_options): Remove.
17453         * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
17454         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
17455         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
17456
17457 2002-08-01  H.J. Lu <hjl@gnu.org>
17458             Richard Henderson  <rth@redhat.com>
17459
17460         * output.h (DECL_READONLY_SECTION): Remove.
17461         (decl_readonly_section): Declare.
17462         * varasm.c (decl_readonly_section): New.
17463         (default_section_type_flags, default_select_section): Use it.
17464         * config/arm/pe.c (arm_pe_unique_section): Likewise.
17465         * config/i386/interix.c (i386_pe_unique_section): Likewise.
17466         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
17467         * config/mcore/mcore.c (mcore_unique_section): Likewise.
17468         * config/mips/mips.c (mips_unique_section): Likewise.
17469
17470 2002-08-01  Richard Henderson  <rth@redhat.com>
17471
17472         * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
17473         refers to a subroutine parameter.
17474
17475 2002-08-01  Jakub Jelinek  <jakub@redhat.com>
17476
17477         * varasm.c (assemble_visibility): Strip name encoding.
17478
17479 2002-08-01  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
17480
17481         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
17482         (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
17483         when there is no frame pointer.
17484         (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
17485         registers properly.
17486         * config/ns32k/__unorddf2.c: New file.
17487         * config/ns32k/__unordsf2.c: New file.
17488         * config/ns32k/t-ns32k: New file.
17489         * config.gcc (ns32k-*-netbsd*): Use it.
17490
17491 2002-08-01  Aldy Hernandez  <aldyh@redhat.com>
17492
17493         * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
17494
17495 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
17496
17497         * c-common.c (__GXX_ABI_VERSION): Correct spelling.
17498
17499 2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>
17500
17501         * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
17502
17503 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
17504
17505         * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
17506
17507 2002-08-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17508
17509         * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
17510         n_sets): Removed.
17511         (expr_hash_table, set_hash_table): Type changed to ...
17512         (struct hash_table): New type.
17513         (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
17514         insert_expr_in_table, insert_set_in_table, compute_hash_table,
17515         dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
17516         compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
17517         (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
17518         (alloc_hash_table): New.
17519         (free_set_hash_table, free_expr_hash_table): Merged to ...
17520         (free_hash_table): New.
17521         (compute_set_hash_table, compute_expr_hash_table): Merged to ...
17522         (compute_hash_table_work): New.
17523         (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
17524         find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
17525         pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
17526         one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
17527         hoist_code, one_code_hoisting_pass,
17528         trim_ld_motion_mems): Altered due to changed type of hash tables.
17529
17530 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
17531
17532         * final.c (output_alternate_entry_point):
17533         If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
17534
17535 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17536
17537         * objc/objc-act.c (encode_complete_bitfield): Add prototype and
17538         avoid ISO C style function definition.
17539
17540         * expr.c (expand_assignment): Delete unused variable.
17541
17542 2002-08-01  Toon Moene  <toon@moene.indiv.nluug.nl>
17543
17544         * c-common.c (cb_register_builtins): Set
17545         __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
17546         is given, and to 0 otherwise.
17547         * combine.c (simplify_if_then_else): HONOR_NANS
17548         implies FLOAT_MODE_P.
17549
17550 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
17551
17552         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
17553         (cpp_handle_option): Don't handle it.
17554         (print_help): Update.
17555         * doc/cppopts.texi: Update.
17556
17557 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
17558
17559         * c-common.c (cb_register_builtins): If C++, define
17560         __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
17561         * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
17562 cp:
17563         * lang-specs.h: Simplify in accordance with new code in
17564         c-common.c.
17565
17566 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
17567
17568         * c-common.c: Define all C/ObjC/C++ warning and flag variables.
17569         * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
17570         * c-decl.c: Move all warning and flag variables to c-common.c.
17571         * c-format.c: Move all warning variables to c-common.c.
17572         * c-tree.h: Move all warning and flag declarations to c-common.h.
17573         * objc/objc-act.c: Move all warning variables to c-common.c.
17574         (flag_warn_protocol): Rename warn_protocol.
17575
17576 2002-07-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17577
17578         * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
17579
17580 2002-07-31  Graham Stott  <graham.stott@btinternet.com>
17581
17582         * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
17583         .section prefix.
17584
17585 2002-07-31  Stan Shebs  <shebs@apple.com>
17586
17587         * config.gcc (i[34567]86-*-darwin*): New configuration.
17588         * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
17589         defining.
17590         (TARGET_ENCODE_SECTION_INFO): Ditto.
17591         (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
17592         * config/darwin.c (machopic_indirect_data_reference): Remove
17593         setting of RTX_UNCHANGING_P.
17594         (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
17595         not to be applied to sums.
17596         * config/i386/t-darwin: New file.
17597         * config/i386/darwin.h: New file.
17598         * config/i386/i386.h (TARGET_MACHO): Add default definition.
17599         * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
17600         * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
17601         label and not the GOT add.
17602         (constant_address_p): For Mach-O, seeing a CONST is enough.
17603         (legitimate_pic_address_disp_p): Add a Mach-O case.
17604         (legitimate_address_p): Also test machopic_operand_p if Mach-O.
17605         (legitimize_pic_address): Use generic Mach-O code to legitimize.
17606         (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
17607         if outputting a difference.
17608         (ix86_output_addr_diff_elt): Add Mach-O case.
17609         (ix86_expand_move): Similarly.
17610         (ix86_expand_call): Similarly.
17611         (current_machopic_label_num): New global.
17612         (machopic_output_stub): New function.
17613         (ix86_value_regno): New function.
17614         (ix86_function_value): Use it instead of VALUE_REGNO.
17615         (ix86_libcall_value): Ditto.
17616         * config/i386/unix.h (VALUE_REGNO): Remove.
17617
17618 2002-07-31  Graham Stott  <grahas@btinternet.com>
17619
17620         * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
17621         hash for LABEL_REF's.
17622
17623 2002-07-31  Graham Stott  <grahams@btinternet.com>
17624
17625         * config/rs6000/rs6000.c (spe_init_builtins,
17626         altivec_init_builtins, rs6000_common_init_builtins):
17627         Replace ANSI with K&R function def.
17628
17629 2002-07-31  David Edelsohn  <edelsohn@gnu.org>
17630
17631         * rs6000.c (validate_condition_mode): Test flag_finite_math_only
17632         for CCFPmode.
17633
17634 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
17635
17636         * config/mips/crtn.asm: Don't use __mips16 to determine the
17637         return-address offset.  Define RA to a suitable temporary
17638         register for the return address.
17639
17640 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
17641
17642         * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
17643         constraints to 'd'.
17644
17645 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
17646
17647         * config/mips/elf.h (STARTFILE_SPEC): Define differently if
17648         default ABI is MEABI.  (Undoes incorrect change in Eric Christopher's
17649         patch on 2002-07-29.)
17650         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
17651
17652 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17653
17654         * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
17655         fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
17656         ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
17657         openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
17658         s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
17659         (ASM_GLOBALIZE_LABEL): Delete.
17660         (GLOBAL_ASM_OP): Define.
17661
17662         * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
17663
17664         * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
17665         * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
17666
17667 2002-07-30  Geoffrey Keating  <geoffk@redhat.com>
17668
17669         * doc/extend.texi (Hints implementation): Document that GCC
17670         mostly ignores `register'.
17671
17672 2002-07-30  Toon Moene  <toon@moene.indiv.nluug.nl>
17673
17674         * flags.h: Declare flag_finite_math_only.
17675         Use it in definition of HONOR_NANS and
17676         HONOR_INFINITIES.
17677         * c-common.c (cb_register_builtins): Emit
17678         __FINITE_MATH_ONLY__ when flag_finite_math_only
17679         is set.
17680         * combine.c (simplify_if_then_else): If
17681         flag_finite_math_only is set, a == b has a
17682         definite value.
17683         * toplev.c: Initialize flag_finite_math_only.
17684         (set_flags_fast_math): Set it on -ffast-math.
17685         (flag_fast_math_set_p): Test it.
17686         * doc/invoke.texi: Document -ffinite-math-only.
17687
17688 2002-07-30  Richard Henderson  <rth@redhat.com>
17689
17690         * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
17691         (noce_process_if_block): Likewise.
17692
17693 2002-07-30  Bernd Schmidt  <bernds@redhat.com>
17694
17695         * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
17696         Bail out early if false_expr is NULL and we'd crash due to this.
17697         * genemit.c (gen_expand): Recognize return insns even if the return
17698         appears in a parallel.
17699         * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
17700         * config/fp-bit.c: Likewise.
17701         * doc/tm.texi: Document it.
17702
17703 2002-07-30  David Edelsohn  <edelsohn@gnu.org>
17704             Zack Weinberg  <zack@codesourcery.com>
17705
17706         * rs6000.c (rs6000_expand_unop_builtin): Check icode not
17707         CODE_FOR_nothing.  Change switch to if.
17708         (rs6000_expand_binop_builtin): Same.
17709         (rs6000_expand_builtin): Expand builtin if target support enabled.
17710         (rs6000_init_builtins): Init builtin if target support enabled.
17711         (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
17712
17713 2002-07-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17714
17715         * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
17716
17717 2002-07-30  Richard Sandiford  <rsandifo@redhat.com>
17718
17719         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
17720
17721 Tue Jul 30 18:31:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
17722
17723         * sh.md (cond_delay_slot): New attribute.
17724         (cbranch delay): Use it for anulled-true case.
17725         (stuff_delay_slot): New pattern.
17726         * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
17727         delay slot insn.
17728         (gen_far_branch): Emit stuff_delay_slot pattern.
17729
17730 Tue Jul 30 11:21:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
17731
17732         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
17733
17734 2002-07-30  Kazu Hirata  <kazu@cs.umass.edu>
17735
17736         * fold-const.c: Fix comment typos.
17737         * gcse.c: Likewise.
17738         * reload1.c: Likewise.
17739
17740 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
17741
17742         * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
17743         for TARGET_SPE.
17744
17745 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
17746
17747         * c-pretty-print.h (pp_c_statement): Declare.
17748         * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
17749         (pp_c_statement): Define.
17750
17751 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17752
17753         * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
17754         darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
17755         ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
17756         mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
17757         rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
17758         v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
17759
17760         * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
17761         * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
17762
17763 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
17764
17765         * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
17766         (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
17767         COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
17768         (pp_c_expression): Update.
17769
17770 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17771
17772         * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
17773         concat in lieu of xmalloc/strcpy/memcpy/sprintf.
17774         * alpha/vms-ld.c (main): Likewise.
17775         * dsp16xx.c (double_reg_to_memory): Likewise.
17776         * mcore.c (mcore_expand_prolog): Likewise.
17777         * cppfiles.c (read_name_map): Likewise.
17778         * gensupport.c (process_rtx, identify_predicable_attribute,
17779         alter_test_for_insn): Likewise.
17780         * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
17781
17782 2002-07-29  Roger Sayle  <roger@eyesopen.com>
17783
17784         * builtins.c (expand_builtin):  Change the default behavior to
17785         only issue an error if the builtin function doesn't have a
17786         fallback library call.  Remove several cases handled by the
17787         new default.
17788
17789 2002-07-29  John David Anglin  <dave@hiauly1.hia.nrc>
17790
17791         * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
17792         floating point format of the target is IEEE.
17793         * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
17794         format of the target is DEC.
17795
17796 2002-07-29  Richard Henderson  <rth@redhat.com>
17797
17798         * unroll.c (verify_addresses): Remove.
17799         (find_splittable_givs): Never split DEST_ADDR givs.
17800
17801 2002-07-29  Geoffrey Keating  <geoffk@redhat.com>
17802
17803         * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
17804         is exhaustive.
17805         (Files): Improve documentation on generated source files.
17806
17807         * doc/extend.texi (Translation implementation): Document what
17808         diagnostics look like.
17809         (Identifiers implementation): Document that there's normally no
17810         limit on identifier names.
17811         (Integers implementation): Document two's complement.
17812         (Hints implementation): Document that GCC honors 'inline', mostly.
17813         (Preprocessing directives implementation): Document that GCC
17814         requires the current time.
17815
17816 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
17817
17818         * c-pretty-print.h (struct c_pretty_print_info): Add new member.
17819         (pp_initializer): New macro.
17820         (pp_c_initializer): Declare.
17821         * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
17822         (pp_c_initializer): Define.
17823         (pp_c_initializer_list): New function.
17824         (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
17825         VECTOR_CST, CONSTRUCTOR.
17826         (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
17827         IMAGPART_EXPR.
17828         (pp_c_cast_expression): Handle FLOAT_EXPR.
17829         (pp_c_assignment_expression): Handle INIT_EXPR.
17830         (pp_c_expression): Update.
17831
17832 2002-07-30  Neil Booth  <neil@daikokuya.co.uk>
17833
17834         * objc/objc-act.c (objc_init): Return immediately if filename
17835         is NULL.
17836
17837 2002-07-29  Eric Christopher  <echristo@redhat.com>
17838
17839         * config/mips/elf.h: Remove ecoff.h and gofast includes.
17840         (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
17841         (SDB_DEBUGGING_INFO): Undefine.
17842         (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
17843         (PUT_SDB_SIZE): Remove.
17844         (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
17845         (STARTFILE_SPEC): Add isa3264 define.
17846         * config/mips/elf64.h: Ditto.  Move TARGET_MEM_FUNCTIONS from here...
17847         * config/mips/ecoff.h: Remove. and here...
17848         * config/mips/iris3.h: and here...
17849         * config/mips/sni-svr4.h: and here...
17850         * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
17851         Add assembler -mmdebug options for non-dwarf debugging.
17852         * config/mips/r3900.h: Remove debug info defines.
17853         * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
17854         * config/mips/isa3264.h: Ditto.
17855         * config/mips/t-isa3264: Fix up for file removal and gofast configure
17856         change.
17857         * config/mips/t-elf: Ditto.
17858         * config/mips/t-ecoff: Ditto.
17859         * config/mips/t-r3900: Ditto.
17860         * config/mips/t-iris5-6: Ditto.
17861         * config/mips/t-isa3264: Ditto.
17862         * config/mips/t-linux: Remove.
17863         * config/mips/t-netbsd: Remove.
17864         * config/mips/t-mips: New file.
17865         * config/mips/t-gofast: Ditto.
17866         * config/mips/netbsd.h: Remove unnecessary undefines.
17867         * config/mips/linux.h: Remove #include of mips.h.
17868         * config.gcc: Add mips.h include for elf targets. Remove tm_file
17869         for ecoff. Add gofast configure option for mips.
17870
17871 2002-07-29  Chris Demetriou  <cgd@broadcom.com>
17872
17873         * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
17874         linker scripts use STARTUP directives consistently.
17875         * configure: Regenerate.
17876         * config.in: Regenerate.
17877         * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
17878         on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
17879         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
17880         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
17881         HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
17882         will be the same.
17883
17884 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
17885
17886         * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
17887
17888 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
17889
17890         * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
17891
17892 2002-07-29  Aldy Hernandez  <aldy@quesejoda.com>
17893
17894         * config/rs6000/rs6000.md: Move altivec patterns from here...
17895
17896         * config/rs6000/altivec.md: ...to here.
17897
17898 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
17899
17900         * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
17901
17902 2002-07-29  Richard Henderson  <rth@redhat.com>
17903
17904         * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
17905         set_mem_attributes and add BITPOS argument.  Subtract it from
17906         OFFSET when same is adjusted.
17907         (set_mem_attributes): New wrapper function.
17908         * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
17909         remove offset adjustment hack.
17910         * expr.h (set_mem_attributes_minus_bitpos): Declare.
17911
17912 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
17913
17914         * Makefile.in (C_OBJS): Include c-pretty-print.o
17915         (c-pretty-print.o): Add depency rule.
17916         * pretty-print.h: Add more macros.
17917         * c-pretty-print.c: New file.
17918         * c-pretty-print.h: Likewise.
17919
17920 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
17921
17922         * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
17923         constants to __ev64_s32__.
17924         (__internal_ev_mwhgsmian): Same.
17925         (__internal_ev_mwhgsmfan): Same.
17926         (__internal_ev_mwhgssfan): Same.
17927         (__internal_ev_mwhgumiaa): Same.
17928         (__internal_ev_mwhgsmiaa): Same.
17929         (__internal_ev_mwhgsmfaa): Same.
17930         (__internal_ev_mwhgssfaa): Same.
17931
17932 2002-07-29  David Edelsohn  <edelsohn@gnu.org>
17933
17934         * varasm.c (assemble_variable): Narrow test for uninitialized
17935         without BSS target support.
17936
17937 2002-07-29  Nathan Sidwell  <nathan@codesourcery.com>
17938
17939         * profile.c: Add file comment describing the overall algorithm and
17940         structures.
17941         (struct edge_info): Add comments.
17942         (struct bb_info): Add comments.
17943         * basic-block.h (EDGE_*): Add comments.
17944         * doc/gcov.texi (Gcov Data Files): Document bit flags.
17945
17946 2002-07-29  Bob Wilson  <bob.wilson@acm.org>
17947
17948         * config/xtensa/elf.h, config/xtensa/linux.h
17949         (TARGET_OS_CPP_BUILTINS): Define.
17950         (CPP_PREDEFINES): Remove.
17951         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
17952         (CPP_SPEC): Remove.
17953
17954 2002-07-29  Zack Weinberg  <zack@codesourcery.com>
17955
17956         * gensupport.c: Include hashtab.h.
17957         (insn_elision, condition_table, hash_c_test, cmp_c_test,
17958         maybe_eval_c_test): New routines and data structures to
17959         support insn elision.
17960         (init_md_reader): Read and initialize the condition_table.
17961         (read_md_rtx): Discard insn patterns whose C test is provably
17962         always false.
17963         * gensupport.h: Declare new functions and data structures.
17964
17965         * genconditions.c, dummy-conditions.c: New files.
17966         * Makefile.in: Build genconditions; run it to construct
17967         insn-conditions.c; build that and link it into most gen*
17968         programs.
17969         (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
17970         (GEN): Delete, unused.
17971         (STAGESTUFF): Update.
17972
17973         * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
17974         CODE_FOR_nothing for all elided patterns.
17975         (main): Tweaked to support this.
17976         * genflags.c (gen_proto): Emit a static inline generator
17977         function here for all elided patterns, which simply returns
17978         NULL_RTX.
17979         (gen_insn): Do not define HAVE_xxx for elided patterns.
17980         (main): Tweaked to support this.  No need to forward-declare
17981         struct rtx_def.
17982         * genrecog.c: Do not bother emitting the C test if it's known
17983         to be true at compile time.
17984
17985 2002-07-29  Mike Stump  <mrs@apple.com>
17986
17987         * config.gcc (target_gtfiles): Initialize, as otherwise cross
17988         compilers hosted on powerpc-apple-darwin6.0 won't even build.
17989
17990 2002-07-29  Richard Earnshaw  <rearnsha@arm.com>
17991
17992         * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
17993         remove clobber of LR.
17994         (sibcall_insn, sibcall_value_insn): Update accordingly.
17995         (sibcall_epilogue): Remove debugging comment from assembler stream.
17996
17997 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
17998
17999         * pretty-print.h: Define more macros.
18000         * diagnostic.h (output_formatted_integer): Moved from...
18001         * diagnostic.c: ... here.
18002
18003 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18004
18005         * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
18006
18007 2002-07-28  Zack Weinberg  <zack@codesourcery.com>
18008
18009         * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
18010         arguments.  Always use ".-symbol" as expression argument.
18011         * doc/tm.texi: Update to match.  Document requirement for
18012         ".size symbol, .-symbol" to be acceptable to assembler.
18013
18014         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
18015         config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
18016         config/i386/freebsd-aout.h, config/i386/sco5.h,
18017         config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
18018         config/xtensa/linux.h:  Update uses of ASM_OUTPUT_MEASURED_SIZE.
18019
18020 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18021
18022         * Makefile.in (gengtype-lex.c): Fix error in last change.
18023
18024         * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
18025         backslash.
18026
18027         * Makefile.in (vmsdbgout.o): Depend on function.h.
18028
18029         * vmsdbgout.c: Include function.h.
18030
18031 2002-07-28  Alan Modra  <amodra@bigpond.net.au>
18032
18033         * prefix.c (update_path): Don't strip single `.' path components
18034         unless stripping a later `..' component.  Exit loop as soon as
18035         a valid path is found.
18036
18037 2002-07-27  Roger Sayle  <roger@eyesopen.com>
18038
18039         * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
18040         argument.  Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
18041         BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
18042         floating point unordered comparisons (e.g. __builtin_isgreater)
18043         as const, and leave the remaining GCC_BUILTINs unchanged.
18044
18045         * c-decl.c (builtin_function): No need to explicitly mark
18046         BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
18047
18048 2002-07-27  Roger Sayle  <roger@eyesopen.com>
18049
18050         * Makefile.in: rtlanal.o now depends upon real.h.
18051
18052         * flags.h [flag_signaling_nans]: New flag.
18053         [HONOR_SNANS]: New macro.
18054
18055         * toplev.c [flag_signaling_nans]: Initialize to false.
18056         (f_options): Add processing for "-fsignaling-nans".
18057         (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
18058         (process_options): flag_signaling_nans implies flag_trapping_math.
18059
18060         * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
18061         when -fsignaling-nans.  First step to implementing WG14's N965.
18062
18063         * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
18064         1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
18065         [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
18066
18067         * simplify-rtx.c (simplify_relational_operation): Conditionalize
18068         transforming abs(x) < 0.0 into false on !HONOR_SNANS.
18069
18070         * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
18071         required by HONOR_SNANS.  (may_trap_p): Floating point DIV, MOD,
18072         UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
18073         -fsignaling_nans.  EQ and NE only trap for flag_signaling_nans
18074         not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
18075
18076         * doc/invoke.texi: Document new -fsignaling-nans compiler option.
18077
18078 2002-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18079
18080         * Makefile.in (gengtype-lex.c): Work around a bug in flex.
18081         * gengtype-lex.l (YY_USE_PROTOS): Undef.
18082         (YY_DECL): Define.
18083
18084 2002-07-27  Roger Sayle  <roger@eyesopen.com>
18085
18086         * doc/invoke.texi: Document that both -fno-builtin-foo and
18087         -fno-builtin are supported by the g++ front-end.
18088
18089 2002-07-27  Stan Shebs  <shebs@apple.com>
18090
18091         * configure.in: Rename config_gtfiles to target_gtfiles.
18092         * configure: Regenerate.
18093         * doc/gty.texi: Update reference.
18094         * config.gcc (powerpc-*-darwin*): Set target_gtfiles
18095         instead of appending to it.
18096
18097 2002-07-25  Aldy Hernandez  <aldyh@redhat.com>
18098
18099         * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
18100         vectors are split into two registers.
18101         (function_arg): Same.
18102
18103 Thu Jul 26 23:00:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
18104
18105         * pa.md (extv): Check predicates before emitting extv_32.
18106
18107 2002-07-27  Alan Modra  <amodra@bigpond.net.au>
18108
18109         * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
18110         (rs6000_traceback): New var.
18111         (rs6000_override_options): Set rs6000_traceback.
18112         (rs6000_output_function_epilogue): Implement traceback options.
18113         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
18114         (rs6000_traceback_name): Declare.
18115
18116         * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
18117         label reference when NO_PROFILE_COUNTERS.
18118
18119 2002-07-26  Jason Merrill  <jason@redhat.com>
18120
18121         * function.c (assign_parms): Handle frontend-directed pass by
18122         invisible reference.
18123
18124 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
18125
18126         * doc/cppopts.texi: Update.
18127
18128 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
18129
18130         * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
18131         warnings on assertions.
18132
18133 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
18134
18135         * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
18136         RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
18137         RID_COMPL): Remove.
18138         * c-parse.in (rid_to_yy): Similarly.
18139
18140 2002-07-26  Jason Merrill  <jason@redhat.com>
18141
18142         * c-dump.c: Resurrect.
18143         * tree-dump.c: Move C-specific stuff to c-dump.c.
18144         * c-common.h: Declare c_dump_tree.
18145         * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
18146         * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
18147         (c-dump.o): New rule.
18148
18149 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
18150
18151         * config/rs6000/rs6000.md: Enable patterns using rlwinm for
18152         PowerPC64.  Replace "T" and "S" constraints with "n" when the
18153         predicate will do.  Formatting fixes.
18154         (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
18155         as for extzvsi_internal1.
18156
18157 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
18158
18159         * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
18160         DERIV_END_LABEL_FMT): Remove.
18161         (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
18162
18163 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
18164
18165         * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
18166         Remove.
18167
18168 2002-07-25  Stan Shebs  <shebs@apple.com>
18169
18170         * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
18171         local var dwarfp.
18172         (output_compiler_stub): Remove unused locals.
18173         (output_call): Always initialize line number.
18174
18175 Thu Jul 25 20:34:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
18176
18177         * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
18178         * sh.md (truncdiqi2, movqi_media): Likewise.
18179
18180 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
18181
18182         * gcse.c (obstack_chunk_alloc): Remove.
18183         (gcse_alloc): Fix to count allocated bytes.
18184         * collect2.c (SYMBOL__MAIN): Remove.
18185
18186 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
18187
18188         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
18189         HAVE_TARGET_EXECUTABLE_SUFFIX.
18190
18191 Thu Jul 25 18:57:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
18192
18193         * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
18194         SIZE, EXPR and OFFSET.
18195
18196 2002-07-25  Richard Henderson  <rth@redhat.com>
18197
18198         * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
18199         in ARRAY_REF of DECL_P case.
18200
18201 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
18202
18203         * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
18204         description.  Document -mips32, -mips64, and the associated -march
18205         values.  Describe the "mipsN" arguments to -march.  Say that the
18206         -mipsN options are equivalent to -march.  Reword the description
18207         of default type sizes.
18208         * toplev.h (target_flags_explicit): Declare.
18209         * toplev.c (target_flags_explicit): New var.
18210         (set_target_switch): Update target_flags_explicit.
18211         * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
18212         * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
18213         * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
18214         * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
18215         * config/mips/mips.h (mips_cpu_info): New struct.
18216         (mips_cpu_string, mips_explicit_type_size_string): Remove.
18217         (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
18218         (MIPS_CPP_SET_PROCESSOR): New macro.
18219         (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
18220         Define _MIPS_ARCH and _MIPS_TUNE.
18221         (MIPS_ISA_DEFAULT): Don't provide a default value.  Instead...
18222         (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
18223         MIPS_ISA_DEFAULT were already defined.
18224         (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
18225         (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
18226         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
18227         (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
18228         (ABI_GAS_ASM_SPEC): Remove.
18229         (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
18230         (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
18231         Invoke %(asm_abi_default_spec) if no ABI was specified.
18232         (CC1_SPEC): Remove ISA -> register-size rules.
18233         (EXTRA_SPECS): Remove abi_gas_asm_spec.  Add asm_abi_default_spec.
18234         * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
18235         (mips_cpu_string, mips_explicit_type_size_string): Remove.
18236         (mips_cpu_info_table): New array.
18237         (mips_set_architecture, mips_set_tune): New fns.
18238         (override_options): Rework to make -mipsN equivalent to -march.
18239         Detect more erroneous cases, including those removed from CC1_SPEC.
18240         Don't change the ABI based on architecture, or vice versa.
18241         Unify logic with GAS.
18242         (mips_asm_file_start): Get architecture name from mips_arch_info.
18243         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
18244         (mips_parse_cpu): Take the name of the option as argument.  Handle
18245         'from-abi'.  Raise an error if the option is wrong.
18246         (mips_cpu_info_from_isa): New fn.
18247
18248 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
18249
18250         * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
18251         (tablejump_mips162): Likewise.
18252
18253 Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
18254
18255         * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
18256         int_mode_for_mode.
18257
18258 2002-07-25  Gabriel Dos Reis  <gdr@nerim.net>
18259
18260         * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
18261         complaining.
18262         * c-common.h (c_sizeof): Adjust definition.
18263         (c_alignof): Likewise.
18264         * c-tree.h (c_sizeof_nowarn): Now macro.
18265         * c-typeck.c (c_sizeof_nowarn): Remove definition.
18266
18267 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
18268
18269         * c-decl.c (c_decode_option): No need to handle switches
18270         cpplib handles.
18271
18272 2002-07-24  Zack Weinberg  <zack@codesourcery.com>
18273
18274         * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
18275         ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
18276         * doc/tm.texi: Document them.  Also document SIZE_ASM_OP,
18277         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
18278
18279         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
18280         config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
18281         config/cris/aout.h, config/i386/freebsd-aout.h,
18282         config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
18283         config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
18284         config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
18285         config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
18286         config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
18287         config/xtensa/elf.h, config/xtensa/linux.h:
18288         Use the new macros.
18289         Where possible, remove redundant definitions of SIZE_ASM_OP,
18290         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
18291
18292 2002-07-24  Aldy Hernandez  <aldyh@redhat.com>
18293
18294         * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
18295         TARGET_ISEL, and TARGET_FPRS.
18296
18297         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
18298         -mabi=spe, -mabi=no-spe, and -misel=.
18299
18300         * config/rs6000/rs6000-protos.h: Add output_isel.
18301         Move vrsave_operation prototype here.
18302
18303         * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
18304         (smaxsi3): Same.
18305         (uminsi3): Same.
18306         (umaxsi3): Same.
18307         (abssi2_nopower): Disallow when TARGET_ISEL.
18308         (*ne0): Same.
18309         (negsf2): Change to expand and rename old pattern to *negsf2.
18310         (abssf2): Change to expand and rename old pattern to *abssf2.
18311
18312         New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
18313         fixunssfsi2.
18314
18315         Change patterns that check for TARGET_HARD_FLOAT or
18316         TARGET_SOFT_FLOAT to also check TARGET_FPRS.
18317
18318         * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
18319         rs6000_isel, rs6000_fprs, rs6000_isel_string.
18320         (rs6000_override_options): Add 8540 case to
18321         processor_target_table.
18322         Set rs6000_isel for the 8540.
18323         Call rs6000_parse_isel_option.
18324         (enable_mask_for_builtins): New.
18325         (rs6000_parse_isel_option): New.
18326         (rs6000_parse_abi_options): Add spe and no-spe.
18327         (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
18328         (rs6000_legitimize_address): Check for TARGET_FPRS when checking
18329         for TARGET_HARD_FLOAT.
18330         Add case for SPE_VECTOR_MODE.
18331         (rs6000_legitimize_reload_address): Handle SPE vector modes.
18332         (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
18333         vector modes.
18334         Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
18335         (rs6000_emit_move): Check for TARGET_FPRS.
18336         Add cases for SPE vector modes.
18337         (function_arg_boundary): Return 64 for SPE vector modes.
18338         (function_arg_advance): Check for TARGET_FPRS and
18339         Handle SPE vectors.
18340         (function_arg): Same.
18341         (setup_incoming_varargs): Check for TARGET_FPRS.
18342         (rs6000_va_arg): Same.
18343         (struct builtin_description): Un-constify mask field.  Move up in
18344         file.
18345         (bdesc_2arg): Un-constify and add SPE builtins.
18346         (bdesc_1arg): Same.
18347         (bdesc_spe_predicates): New.
18348         (bdesc_spe_evsel): New.
18349         (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
18350         (rs6000_expand_binop_builtin): Same.
18351         (bdesc_2arg_spe): New.
18352         (spe_expand_builtin): New.
18353         (spe_expand_predicate_builtin): New.
18354         (spe_expand_evsel_builtin): New.
18355         (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
18356         (rs6000_init_builtins): Initialize SPE builtins.  Call
18357         rs6000_common_init_builtins.
18358         (altivec_init_builtins): Move all non-altivec builtin code to...
18359         (rs6000_common_init_builtins): ...here.  New function.
18360         (branch_positive_comparison_operator): Allow NE code for SPE.
18361         (ccr_bit): Return correct ccr bit for SPE fp.
18362         (print_operand): Emit crnor in 'D' case for SPE.
18363         New case 't'.
18364         Add SPE code for 'y' case.
18365         (rs6000_generate_compare): Generate rtl for SPE fp.
18366         (output_cbranch): Handle SPE hard floats.
18367         (rs6000_emit_cmove): Handle isel.
18368         (rs6000_emit_int_cmove): New.
18369         (output_isel): New.
18370         (rs6000_stack_info): Adjust stack frame so GPRs are saved in
18371         64-bits for SPE.
18372         (debug_stack_info): Add SPE info.
18373         (gen_frame_mem_offset): New.
18374         (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
18375         Change mode of frame pointer, when saving it, to Pmode.
18376         (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
18377         Misc cleanups and use gen_frame_mem_offset when appropriate.
18378
18379         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
18380         (TARGET_SPE_ABI): New.
18381         (TARGET_SPE): New.
18382         (TARGET_ISEL): New.
18383         (TARGET_FPRS): New.
18384         (FIXED_SCRATCH): New.
18385         (RTX_COSTS): Add PROCESSOR_PPC8540.
18386         (ASM_CPU_SPEC): Add case for 8540.
18387         (TARGET_OPTIONS): Add isel= case.
18388         (rs6000_spe_abi): New.
18389         (rs6000_isel): New.
18390         (rs6000_fprs): New.
18391         (rs6000_isel_string): New.
18392         (UNITS_PER_SPE_WORD): New.
18393         (LOCAL_ALIGNMENT): Adjust for SPE.
18394         (HARD_REGNO_MODE_OK): Same.
18395         (DATA_ALIGNMENT): Same.
18396         (MEMBER_TYPE_FORCES_BLK): New.
18397         (FIRST_PSEUDO_REGISTER): Set to 113.
18398         (FIXED_REGISTERS): Add SPE registers.
18399         (reg_class): Same.
18400         (REG_CLASS_NAMES): Same.
18401         (REG_CLASS_CONTENTS): Same.
18402         (REGNO_REG_CLASS): Same.
18403         (REGISTER_NAMES): Same.
18404         (DEBUG_REGISTER_NAMES): Same.
18405         (ADDITIONAL_REGISTER_NAMES): Same.
18406         (CALL_USED_REGISTERS): Same.
18407         (CALL_REALLY_USED_REGISTERS): Same.
18408         (SPE_ACC_REGNO): New.
18409         (SPEFSCR_REGNO): New.
18410         (SPE_SIMD_REGNO_P): New.
18411         (HARD_REGNO_NREGS): Adjust for SPE.
18412         (VECTOR_MODE_SUPPORTED_P): Same.
18413         (REGNO_REG_CLASS): Same.
18414         (FUNCTION_VALUE): Same.
18415         (LIBCALL_VALUE): Same.
18416         (LEGITIMATE_OFFSET_ADDRESS_P): Same.
18417         (SPE_VECTOR_MODE): New.
18418         (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
18419         the GPRs.  Set FIXED_SCRATCH fixed in SPE case.
18420         (rs6000_stack): Add spe_gp_size, spe_padding_size,
18421         spe_gp_save_offset.
18422         (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
18423         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
18424         (SPE_CONST_OFFSET_OK): New.
18425         (rs6000_builtins): Add SPE builtins.
18426
18427         * testsuite/gcc.dg/ppc-spe.c: New.
18428
18429         * config/rs6000/eabispe.h: New.
18430
18431         * config/rs6000/spe.h: New.
18432
18433         * config/rs600/spe.md: New.
18434
18435         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
18436         __SIMD__ for TARGET_SPE.
18437
18438         * config.gcc: Add powerpc-*-eabispe* case.
18439         Add spe.h to user headers for powerpc.
18440
18441 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
18442
18443         * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
18444         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
18445         * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
18446
18447 2002-07-24  Richard Henderson  <rth@redhat.com>
18448
18449         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
18450         form when not optimizing.
18451
18452 2002-07-24  David Mosberger  <davidm@hpl.hp.com>
18453
18454         * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
18455         thread_pointer_rtx as unchanging.
18456
18457 2002-07-24  Michael Matz  <matz@suse.de>
18458
18459         * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
18460         (free_reg): Use it.
18461
18462 2002-07-24  Richard Earnshaw  <rearnsha@arm.com>
18463
18464         * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
18465         pattern.
18466         (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
18467         (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
18468
18469 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
18470
18471         * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
18472         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
18473         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
18474
18475 Wed Jul 24 17:59:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
18476
18477         * toplev.c (rest_of_compilation): Dump loops before clobbering
18478         the structure.
18479
18480 Wed Jul 24 17:23:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
18481
18482         * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
18483
18484 2002-07-24  Frank van der Linden  <fvdl@wasabisystems.com>
18485
18486         PR optimization/7291
18487         * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
18488         problem on x86_64.
18489
18490 2002-07-24  Gabriel Dos Reis  <gdr@nerim.net>
18491
18492         * pretty-print.h: Add macros from cp/error.c
18493
18494 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
18495
18496         * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
18497         (mask64_2_operand): Declare.
18498         (build_mask64_2_operands): Declare.
18499         (and64_2_operand): Declare.
18500         (extract_MB): Declare.
18501         (extract_ME): Declare.
18502         * config/rs6000/rs6000.c (mask64_operand): Allow all ones.  Remove
18503         CONST_DOUBLE code.
18504         (mask_operand_wrap): New insn predicate.
18505         (mask64_2_operand): Likewise.
18506         (and64_2_operand): Likewise.
18507         (build_mask64_2_operands): New function.
18508         (extract_MB): New function.
18509         (extract_ME): New function.
18510         (print_operand <case m,M>): Use extract_MB and extract_ME.
18511         (print_operand <case S>): Allow all ones.  Remove CONST_DOUBLE support.
18512         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
18513         (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
18514         mask64_2_operand.  Remove CONST_DOUBLE from mask64_operand.
18515         * config/rs6000/rs6000.md (andsi3_internal3): New
18516         (andsi3_internal3+1): Enable split for powerpc64.
18517         (andsi3_internal3+2): New split.
18518         (andsi3_internal4): Renamed old andsi3_internal3.
18519         (andsi3_internal5): New.
18520         (andsi3_internal5+1): Enable split for powerpc64.
18521         (andsi3_internal5+2): New split.
18522         (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
18523         (anddi3): Handle 't' constraint.
18524         (anddi3+1): New split.
18525         (anddi3_internal2): Handle 't' constraint.
18526         (anddi3_internal2+1): New split.
18527         (anddi3_internal3): Handle 't' constraint.
18528         (anddi3_internal3+1): New split.
18529
18530 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
18531
18532         * config/rs6000/rs6000.md: Remove scratch reg on insns using
18533         addze and similar (plus (comparison r1 r2) r3) insns.  Add
18534         missing scratch reg in one case.  Formatting fixes.
18535
18536 2002-07-24  Neil Booth  <neil@daikokuya.co.uk>
18537
18538         * cppexp.c (parse_defined): Mark macro used.
18539         * cpphash.h (struct cpp_macro): New member "used".
18540         (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
18541         (struct cpp_reader): New member.
18542         * cppinit.c (cpp_finish_options): Set first_unused_line.
18543         (cpp_finish): Warn of unused macros if requested.
18544         (OPT_TABLE): New switches.
18545         (cpp_handle_option): Handle them.
18546         * cpplib.c (do_undef): Warn if macro unused.
18547         (do_ifdef, do_ifndef): Mark macro used.
18548         * cpplib.h (struct cpp_options): New member.
18549         * cppmacro.c (_cpp_warn_if_unused_macro): New.
18550         (enter_macro_context): Mark macro used.
18551         (_cpp_create_definition): Mark macro unused; warn if unused
18552         when redefined.
18553         * cpptrad.c (scan_out_logcial_line, push_replacement_text):
18554         Mark macros used.
18555         * doc/cppopts.texi: Update.
18556
18557 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
18558
18559         * dwarf2out.c (SECTION_ASM_OP,
18560         ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
18561         * system.h (SECTION_ASM_OP): Poison.
18562         * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
18563         * config/alpha/alpha-interix.h, config/mips/linux.h
18564         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
18565         * config/mmix/mmix-protos.h, config/mmix/mmix.c
18566         (mmix_asm_output_define_label_difference_symbol): Remove.
18567         * config/mmix/mmix.h
18568         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
18569         * doc/tm.texi: Remove documentation.
18570
18571 Tue Jul 23 21:49:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
18572
18573         * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
18574         (constrain_operands): Likewise.
18575         * regclass.c (record_reg_classes): Likewise.
18576         * reload.c (find_reloads): Likewise.
18577         * doc/md.texi: Likewise.
18578
18579         * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
18580         * simplify-rtx.c (simplify_subreg): When converting to a non-int
18581         mode, try to convert to an integer mode of matching size first.
18582
18583         * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
18584         from individual subregs, check that each subreg has been generated
18585         sucessfully.
18586
18587 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
18588
18589         * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
18590         * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
18591         FOR_EACH_BB_IN_SBITMAP): Remove.
18592         * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
18593         * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
18594         LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
18595         * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
18596         PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
18597         * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
18598
18599 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
18600
18601         * pretty-print.h: New file.
18602
18603 2002-07-23      Paul Koning     <pkoning@equallogic.com>
18604
18605         * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
18606         (LARGEST_EXPONENT_IS_NORMAL): Ditto.
18607         (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
18608         (TARGET_G_FLOAT): Default to 0 if not defined.
18609         (ieeetoe): New, common routine to convert target format floats
18610         to internal form.
18611         (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
18612         vs. others.
18613         (e113toe): Change to use ieeetoe.
18614
18615 2002-07-23  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
18616
18617         * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
18618         IBM.
18619         (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
18620         (e64toe): Remove special cases for DEC and IBM. Remove support for
18621         ARM_EXTENDED_IEEE_FORMAT.
18622         (e24toe): Remove special cases for DEC.
18623         (significand_size): Simplify. Indent.
18624         (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
18625         (etoieee, toieee): New.
18626         (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
18627         etoieee and toieee for IEEE arithmetic.
18628
18629 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
18630
18631         * doc/extend.texi: Say ISO C90, not ISO C89.
18632         * doc/invoke.texi: Likewise.
18633         * doc/standards.texi: Likewise.
18634
18635 2002-07-23  Steve Ellcey  <sje@cup.hp.com>
18636
18637         * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
18638         Fix permutation of conversion and plus/mult.
18639         * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
18640         ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
18641         (expand_builtin_strncpy) Ditto.
18642         (expand_builtin_memset) Ditto.
18643
18644 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
18645
18646         Fix PR/7363:
18647         * c-common.c (c_sizeof_or_alignof_type): New function.
18648         (c_alignof): Remove definition.
18649         * c-common.h (c_sizeof, c_alignof): Define as macros.
18650         (c_sizeof_or_alignof_type): Declare.
18651         (my_friendly_assert): Moved from cp/cp-tree.h
18652         * c-typeck.c (c_sizeof): Remove definition.
18653
18654 2002-07-23  Jan Hubicka  <jh@suse.cz>
18655
18656         * gcse.c (try_replace_reg): Use num_changes_pending.
18657         * recog.c (num_changes_pending): New function.
18658         (validate_replace_src): Use validate_repalce_src_group.
18659         (validate_replace_src_group): New.
18660         * recog.h (validate_repalce_src_group): New.
18661         (num_changes_pending): Likewise.
18662
18663 Tue Jul 23 12:16:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
18664
18665         * calls.c (emit_library_call_value_1): If
18666         FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
18667         libcall, const call nor pure call.
18668
18669 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
18670
18671         * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
18672
18673 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
18674
18675         * vmsdbgout.c (SECTION_ASM_OP): Remove.
18676
18677 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
18678
18679         * config/i386/i386.c (AT_BP): Remove.
18680
18681 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
18682
18683         * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
18684         Default definition.
18685         * gcse.c: Don't define obstack_chunk_free.
18686         * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
18687         flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
18688         integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
18689         reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
18690         Don't define obstack macros.
18691
18692 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
18693
18694         PR target/6744
18695         * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
18696         ASM_OPERANDS instructions.
18697
18698 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
18699
18700         PR target/7361
18701         * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
18702         constant addresses only on 68HC12.
18703
18704 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
18705
18706         * cppfiles.c (stack_include_file): Correct test of whether
18707         a dependency should be output.
18708
18709 2002-07-22  David Edelsohn  <edelsohn@gnu.org>
18710
18711         * collect2.c (is_ctor_dtor): Add other possible JOINER values.
18712
18713 2002-07-22  Richard Earnshaw  <rearnsha@arm.com>
18714
18715         * arm.md (movqi): If optimizing and we can create pseudos, use
18716         a ZERO_EXTEND to load from memory, then copy the result into the
18717         target.
18718         (movhi): Likewise, but only for ARMv4.
18719
18720 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
18721
18722         * ssa-ccp.c (PHI_PARMS): Remove.
18723
18724 2002-07-22  Richard Sandiford  <rsandifo@redhat.com>
18725
18726         * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
18727         on big-endian targets.
18728
18729 2002-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18730
18731         * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
18732         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
18733         HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
18734         New formatting macros.
18735
18736         * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
18737
18738 Mon Jul 22 15:27:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
18739
18740         * rtlanal.c (subreg_regno_offset): Return correct offset for
18741         big endian paradoxical subregs.
18742
18743         * optabs.c (expand_vector_unop): Don't expand using sub_optab
18744         if we got the wrong mode.
18745
18746         * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
18747         * genrecog.c (write_switch, write_cond): Use it.
18748         * genemit.c (gen_exp): Likewise.
18749
18750 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
18751
18752         * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
18753
18754 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
18755
18756         * c-decl.c (build_compound_literal): Defer compound literal decls
18757         until until file end to emit them only if they are actually used.
18758
18759 2002-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18760
18761         * ra-build.c (check_conflict_numbers): Hide unused function.
18762         (livethrough_conflicts_bb): Avoid automatic aggregate
18763         initialization.
18764         (parts_to_webs_1): Avoid `U' integer constant modifier.
18765         (conflicts_between_webs): Wrap a variable in the macro controlling
18766         its usage.
18767         * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
18768         (dump_igraph, dump_graph_cost): Avoid string concatenation
18769         (dump_static_insn_cost): Avoid automatic aggregate
18770         initialization.
18771         * ra-rewrite.c (insert_stores): Avoid automatic aggregate
18772         initialization.
18773         (dump_cost): Avoid string concatenation
18774
18775 2002-07-21  Richard Henderson  <rth@redhat.com>
18776
18777         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
18778         GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
18779
18780 2002-07-21  Richard Henderson  <rth@redhat.com>
18781
18782         * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
18783         that are not unrolled completely.
18784
18785 2002-07-21  Richard Henderson  <rth@redhat.com>
18786
18787         * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
18788         * loop.c (strength_reduce): Update.
18789         * toplev.c (rest_of_compilation): Do unrolling in the first
18790         loop pass, not the second.
18791
18792 2002-07-21  Richard Henderson  <rth@redhat.com>
18793
18794         * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
18795         when flag_argument_noalias == 2.
18796         * alias.c (nonoverlapping_memrefs_p): Handle that.
18797         * print-rtl.c (print_mem_expr): Likewise.
18798
18799 2002-07-21  Hartmut Schirmer  <hartmut.schirmer@arcor.de>
18800
18801         * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
18802         instead of __negdi2 directly.
18803
18804 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
18805
18806         * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
18807         * function.c (SYMBOL__MAIN): Remove definition.
18808         * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
18809         * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
18810         * profile.c (GCOV_INDEX_TO_BB): Remove.
18811         * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
18812         * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
18813
18814 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
18815
18816         * c-lex.c (GET_ENVIRONMENT): Remove.
18817         * collect2.c (GET_ENV_PATH_LIST): Remove.
18818         (prefix_from_env): Use GET_ENVIRONMENT.
18819         * cppinit.c (GET_ENV_PATH_LIST): Remove.
18820         (init_standard_includes): Use GET_ENVIRONMENT.
18821         * defaults.h (GET_ENVIRONMENT): Define here if not already.
18822         * gcc.c (GET_ENV_PATH_LIST): Remove.
18823         (make_relative_prefix, process_command): Update.
18824         * protoize.c (GET_ENV_PATH_LIST): Remove.
18825         (do_processing): Update.
18826
18827 2002-07-21  Gabriel Dos Reis  <gdr@nerim.net>
18828
18829         * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
18830         (grokdeclarator): Likewise.
18831         * c-format.c (C_STD_NAME): Likewise.
18832         * c-lex.c (interpret_integer): Likewise.
18833         * c-typeck.c (build_array_ref): Likewise.
18834         * cpplex.c (_cpp_lex_direct): Likewise.
18835         * toplev.c (documented_lang_options): Likewise.
18836
18837 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
18838
18839         * c-format.c (T99_I, T99_UI): Remove.
18840
18841 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
18842
18843         * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
18844
18845 Sun Jul 21 21:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
18846
18847         * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
18848         do_local_cprop.
18849
18850 2002-07-21  Andreas Jaeger  <aj@suse.de>
18851
18852         * reload1.c (fixup_abnormal_edges): Remove unused variable.
18853
18854 2002-07-21  Bernd Schmidt  <bernds@redhat.com>
18855
18856         Improvements for the ifcvt pass from Michael Meissner, with patches
18857         by Richard Sandiford <rsandifo@redhat.com>
18858         * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
18859         * ifcvt.c (cond_exec_changed_p): New static variable.
18860         (last_active_insn): New function, renamed from last_active_insn_p
18861         and changed to return the last active insn in a basic block. All
18862         callers updated.
18863         (block_fallthru): New function.
18864         (cond_exec_process_insns): New argument CE_INFO.  Pass it to
18865         IFCVT_MODIFY_INSN.  All callers updated.
18866         Return false if START or END are NULL.
18867         Handle case where we're processing an insn that is already
18868         conditional.
18869
18870         (noce_process_if_block): CE_INFO argument rather than
18871         multiple args containing the involved basic blocks.  All callers
18872         changed.
18873         (process_if_block, merge_if_block, find_if_block,
18874         cond_exec_process_if_block): Likewise.
18875
18876         (cond_exec_process_if_block): New arg DO_MULTIPLE_P.  All callers
18877         changed.
18878         Use new function last_active_insn to simplify some code.
18879         New code to handle multiple tests.
18880         Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
18881         cond_exec_changed_p to TRUE.
18882
18883         (process_if_block): New code to handle multiple tests.
18884         (merge_if_block): Likewise.
18885         (find_if_header): New arg PASS.  Changed to return the currently
18886         processed basic block or NULL instead of true/false. All callers
18887         changed.
18888         Call IFCVT_INIT_EXTRA_FIELDS.
18889         (block_jumps_and_fallthru_p): New function.
18890         (find_if_block): Discover opportunities to convert multiple tests.
18891         Add additional debugging output.
18892         Update the ce_info structure before returning.
18893
18894         (if_convert): Run multiple passes of if-conversion.
18895         * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
18896         IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
18897         IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
18898         these macros.
18899
18900 Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
18901
18902         * gcse.c: Include cselib.h
18903         (constptop_register): Break out from ...
18904         (cprop_insn): ... here; kill basic_block argument.
18905         (do_local_cprop, local_cprop_pass): New functions.
18906         (one_cprop_pass): Call local_cprop_pass.
18907
18908 2002-07-20  Roger Sayle  <roger@eyesopen.com>
18909
18910         * simplify-rtx.c (simplify_relational_operation): Optimize
18911         abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
18912
18913 2002-07-20  Michae Matz  <matz@suse.de>
18914
18915         * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
18916
18917 2002-07-20  Neil Booth  <neil@daikokuya.co.uk>
18918
18919         * cppexp.c (struct op): Add token pointer.
18920         (check_promotion, CHECK_PROMOTION): New.
18921         (optab): Update.
18922         (_cpp_parse_expr): Update, use token pointer of struct op.
18923         (reduce): Warn about change of sign owing to promotion.
18924         * cppinit.c (cpp_handle_option): New warning if -Wall.
18925         * cpplib.h (struct cpp_options): New member.
18926
18927 2002-07-19  David Edelsohn  <edelsohn@gnu.org>
18928
18929         * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
18930         fpu list.  Separate Power4 compare and delayed_compare.  Correct
18931         Power4 fpcompare.
18932         (fix_truncdfsi2_internal): Restore FPR preference.
18933         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
18934         mcpu?power4, mcpu?604e.  Remove mpower, mpower2, mpowerpc.
18935
18936 2002-07-19  Momchil Velikov <velco@fadata.bg>
18937
18938         * reload1.c (reload_as_needed): Duplicate oldpat.
18939
18940 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
18941
18942         PR optimization/7130
18943         * loop.h (struct loop_info): Add "preconditioned".
18944         * unroll.c (unroll_loop): Set it.
18945         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
18946
18947 2002-07-19  Zack Weinberg  <zack@codesourcery.com>
18948
18949         * rtl.def (CODE_LABEL): Remove slot 8.
18950         * rtl.h (struct rtx_def): Document new uses of jump and call fields.
18951         (LABEL_ALTERNATE_NAME): Delete.
18952         (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
18953         * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
18954
18955         * final.c (output_alternate_entry_point): New.
18956         (final_scan_insn): Use it instead of
18957         ASM_OUTPUT_ALTERNATE_LABEL_NAME.  Do not consider possibility
18958         of a case label being an alternate entry point.
18959
18960         * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
18961         * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
18962         Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
18963         (field deleted).
18964         * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
18965
18966         * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
18967         LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
18968         * doc/tm.texi: Delete documentation of
18969         ASM_OUTPUT_ALTERNATE_LABEL_NAME.
18970
18971 2002-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18972
18973         * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
18974         (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
18975         (LINK_SPEC): Define.
18976         (STARTFILE_SPEC): Define.
18977         (ENDFILE_SPEC): Define.
18978
18979         * config/mips/iris6-o32.h (LINK_SPEC): Move ...
18980         * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
18981
18982         * config/mips/iris6-o32-gas.h: New file.
18983         * config.gcc (mips-sgi-irix6*o32): Use it.
18984
18985         * config/mips/t-iris5-gas: New file.
18986         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
18987
18988 2002-07-19  Neil Booth  <neil@daikokuya.co.uk>
18989
18990         * cppexp.c (ALWAYS_EVAL): Remove.
18991         (optab, reduce): Always evaluate.
18992         (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
18993         only if not skipping evaluation.
18994
18995 2002-07-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
18996
18997         * config/avr/avr.c (debug_hard_reg_set): Remove.
18998
18999 2002-07-19  Chris Demetriou  <cgd@broadcom.com>
19000
19001         * gcc.c (cpp_options): Include "%1" (cc1_spec).
19002
19003 2002-07-19  Richard Henderson  <rth@redhat.com>
19004
19005         * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
19006
19007 2002-07-19  Alan Modra  <amodra@bigpond.net.au>
19008
19009         * prefix.c (update_path): Don't zap single `.' path components
19010         unless followed by another `.' and fix typo last patch.
19011
19012 2002-07-18  Neil Booth  <neil@daikokuya.co.uk>
19013
19014         * cppexp.c (cpp_num_mul): Remove unused parameter.
19015         (UNARY, BINARY, OTHER, binary_handler): Remove.
19016         (ALWAYS_EVAL): New.
19017         (optab): Update.
19018         (reduce): Refactor to a large switch, don't use a function
19019         pointer.
19020
19021 2002-07-18  Bo Thorsen  <bo@berlioz.suse.de>
19022
19023         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
19024
19025 Thu Jul 18 19:39:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
19026
19027         * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
19028         (sh_expand_binop_v2sf): Likewise.
19029         * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
19030         (int_gpr_dest, trunc_hi_operand): New functions.
19031         * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
19032         trunc_hi_operand.
19033         (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
19034         * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
19035         (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
19036         (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
19037         (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
19038         (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
19039         (extendhisi2_media+1, extendqisi2_media+1): Likewise.
19040         (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
19041         (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
19042         (movsf_ie+1): Likewise.
19043         (loaddi_trunc): Use int_gpr_dest predicate.
19044         (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
19045         (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
19046         (casesi_worker_0+[12], casesi_worker): Likewise.
19047         (shcompact_preserve_incoming_args): Likewise.
19048         (mov_nop): Use any_register_operand predicate.
19049         (mperm_w0): Use trunc_hi_operand predicate.
19050
19051 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19052
19053         * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
19054         * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
19055         numbering.
19056
19057 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19058
19059         * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
19060
19061 2002-07-18  Richard Henderson  <rth@redhat.com>
19062
19063         PR optimization/7147
19064         * ifcvt.c (noce_get_condition): Make certain that the condition
19065         is valid at JUMP.
19066
19067 Thu Jul 18 13:44:51 2002  J"orn Rennecke <joern.rennecke@superh.com>
19068
19069         * sh.c (barrier_align, push): Shut up compiler warnings.
19070         (initial_elimination_offset,sh_media_init_builtins): Likewise.
19071         (reg_no_subreg_operand): Delete.
19072
19073 2002-07-17  Bo Thorsen  <bo@suse.de>
19074
19075         * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
19076         (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
19077         (STARTFILE_SPEC): Remove hardcoded library paths.
19078         (ENDFILE_SPEC): Likewise.
19079
19080 Thu Jul 18 09:38:59 CEST 2002  Jan Hubicka  <jh@suse.cz>
19081
19082         * gcse.c (hoist_expr_reaches_here_p):  Stop once expr_bb is reached.
19083
19084         * gcse.c (try_replace_reg): Do not return false positives.
19085
19086 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
19087
19088         * prefix.c: (update_path): Strip ".." components when prior dir
19089         doesn't exist.  Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
19090
19091         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
19092         (ASM_OUTPUT_REG_POP): Likewise.
19093
19094 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
19095
19096         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
19097         adjustments to first_reg for profiling case.
19098         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
19099         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
19100         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
19101         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
19102         (ASM_OUTPUT_REG_POP): Define.
19103         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
19104         (ASM_OUTPUT_REG_POP): Undef.
19105
19106 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
19107
19108         * cpplib.c (do_sccs): Handle #sccs on all systems.
19109         * system.h (SCCS_DIRECTIVE): Poison.
19110         * config/darwin.h, config/freebsd.h, config/netbsd.h,
19111         config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
19112         config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
19113         config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
19114         config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
19115         config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
19116         config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
19117         config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
19118         Remove all references to SCCS_DIRECTIVE.
19119         * doc/cpp.texi, doc/tm.texi: Update.
19120
19121 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
19122
19123         * regrename.c (maybe_mode_change): New function.
19124         (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
19125
19126 2002-07-17  Rodney Brown  <rbrown64@csc.com.au>
19127
19128         * config/i386/i386.c (ix86_expand_int_movcc): In the general case
19129         suppress addition when either ct or cf are zero.
19130
19131 2002-07-17  Eric Botcazou <ebotcazou@multimania.com>
19132             Glen Nakamura <glen@imodulo.com>
19133
19134         PR optimization/6713
19135         * loop.c (loop_givs_rescan): Explicitly delete the insn that
19136         sets a non-replaceable giv after issuing the new one.
19137
19138 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
19139
19140         * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
19141         eval_token): Clarify and correct use of "bool" variables.
19142         * cpplib.h (struct cpp_options): Similarly.
19143         * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
19144         * cpptrad.c (recursive_macro): Similarly.
19145
19146 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
19147
19148         * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
19149         SHmedia code.
19150
19151         * sh.md (cmpgtudi_media): Remove spurious @.
19152
19153         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
19154         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
19155
19156         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
19157         * sh-protos.h (sh_initialize_trampoline): Declare.
19158         * sh.c (sh_initialize_trampoline): New function.
19159         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
19160         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
19161         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
19162         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
19163         * sh.md (initialize_trampoline, double_shori): New patterns.
19164         (initialize_trampoline_compact): Likewise.
19165         (shmedia32_initialize_trampoline_big): Remove.
19166         (shmedia32_initialize_trampoline_little): Likewise.
19167
19168         * sh-protos.h (binary_float_operator): Remove declaration.
19169         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
19170         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
19171         (unary_float_operator, sh_expand_unop_v2sf): New functions.
19172         (sh_expand_binop_v2sf): Likewise.
19173         (zero_vec_operand): Delete.
19174         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
19175         all non-shared ones.
19176         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
19177         Enable nsb and byterev.
19178         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
19179         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
19180         in general regs.
19181         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
19182         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
19183         immediate operands.
19184         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
19185         Add DF_HI_REGS.
19186         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
19187         lowpart fp regs - only for big endian for now.
19188         (LEGITIMATE_CONSTANT_P): Don't allow nonzero float vectors
19189         when FPU is in use.
19190         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
19191         (LOAD_EXTEND_OP): NIL for SImode.
19192         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
19193         general and fp registers is 4.
19194         PREDICATE_CODES: Amend binary_float_operator entry.
19195         Remove zero_vec_operand.  Add unary_float_operator.
19196         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
19197         subreg SET_DEST.
19198         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
19199         (truncdiqi2): Do sign extension.
19200         (movsi_media, movdi_media): Allow to use r63 to an fp register.
19201         (movdf_media, movsf_media): Likewise.
19202         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
19203         Collapse to one define_insn_and_split.  Allow immediate sources.
19204         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
19205         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
19206         (movv4sf): Allow immediate sources.
19207         (movsf_media_nofpu+1): Don't split moves to FP registers.
19208         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
19209         (movv8qi_i+3): Check against CONST0_RTX.
19210         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
19211         for input and output operands.  Fix argument 3 to gen_mextr_rl.
19212         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
19213         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
19214         (mshf0_w, fipr, ftrv): Likewise.
19215         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
19216
19217 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
19218
19219         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
19220         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
19221         * arm.c: Similarly.
19222
19223 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
19224
19225         * config/mips/mips-protos.h (mips_sign_extend): Declare.
19226         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
19227         (TARGET_SWITCHES): Remove debugh.
19228         (ISA_HAS_TRUNC_W): New macro.
19229         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
19230         (PREDICATE_CODES): Remove se_nonimmediate_operand.
19231         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
19232         any SImode move_operand.
19233         (se_nonimmediate_operand): Remove.
19234         (mips_sign_extend): New.
19235         (mips_move_2words): Use it for sign-extended source operands.
19236         (override_options): Allow integers to be put into single FPRs.
19237         (mips_secondary_reload_class): Handle integers in float registers.
19238         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
19239         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
19240         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
19241         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
19242         (fix_truncdfdi2): Provide only a single alternative, in which the
19243         integer is in a float register.  Depend on TARGET_FLOAT64 rather
19244         than TARGET_64BIT.
19245         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
19246         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
19247         (movdi_internal2): Don't allow the source operand to be sign-extended.
19248         Add alternatives for float registers.
19249         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
19250         allows sign-extension.
19251         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
19252         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
19253         float registers.  Remove TARGET_DEBUG_H_MODE test.
19254         (movhi_internal1): Rename to movhi_internal.  Don't check
19255         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
19256         (movqi_internal1): Rename to movqi_internal and remove
19257         TARGET_DEBUG_H_MODE dependency.
19258         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
19259
19260 2002-07-16  Jim Wilson  <wilson@redhat.com>
19261
19262         * toplev.c (lang_dependent_init): Create function context for
19263         init_expr_once.
19264
19265 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
19266
19267         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
19268         --gc-sections if -r.
19269         * config/cris/cris.h: Ditto.
19270
19271 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
19272
19273         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
19274         the comparison directly gives a mask suppress addition when cf is
19275         zero by complementing the mask.
19276
19277 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
19278
19279         * Makefile.in: Delete references to enquire.
19280         * enquire.c: Move to contrib.
19281
19282 2002-07-16  Stan Shebs  <shebs@apple.com>
19283
19284         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
19285         config/rs6000/darwin.h.
19286         (ASM_OUTPUT_SKIP): Ditto.
19287         (TEXT_SECTION_ASM_OP): Ditto.
19288         (DATA_SECTION_ASM_OP): Ditto.
19289         (ASM_APP_ON): Define.
19290         (ASM_APP_OFF): Define.
19291         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
19292         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
19293
19294         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
19295         (machopic_function_base_name): Declare result to be const.
19296         (machopic_non_lazy_ptr_name): Ditto.
19297         (machopic_stub_name): Ditto.
19298         * config/darwin-protos.h: Ditto for the prototypes.
19299
19300 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
19301
19302         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
19303
19304 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
19305
19306         * i386.md (prefetch): Fix for 64bit mode.
19307         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
19308
19309 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
19310
19311         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
19312         * i386.c (x86_machine_dependent_reorg): New function.
19313         * i386-protos.h (x86_machine_dependent_reorg): Declare.
19314
19315 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
19316
19317         * builtins.c (std_expand_builtin_va_start): Remove unused
19318         first argument.
19319         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
19320         std_expand_builtin_va_start with just two arguments.
19321         * expr.h: Update prototypes.
19322
19323         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
19324         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
19325         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
19326         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
19327         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
19328         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
19329         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
19330         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
19331         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
19332         argument from all implementations of EXPAND_BUILTIN_VA_START
19333         and all uses of std_expand_builtin_va_start.
19334
19335 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
19336
19337         * regrename.c (copy_value): Don't record high part copies.
19338
19339 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
19340
19341         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
19342         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
19343         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
19344
19345 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
19346
19347         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
19348
19349         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
19350         into addsi3 using register class "x" and "y".
19351
19352         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
19353         "earlyclobber" constraint modifier for some alternative.
19354
19355         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
19356         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
19357         unordered.
19358         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
19359
19360         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
19361         (TARGET_SWITCHES): Add -mieee-compare option.
19362         (OVERRIDE_OPTIONS): 32332 is a subset of
19363         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
19364         (TARGET_SWITCHES): Fix description of bitfield option.
19365         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
19366         -mieee-compare option. Remove 32332 flag.
19367
19368 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
19369
19370         * explow.c (convert_memory_address): Remove special handling
19371         when POINTERS_EXTEND_UNSIGNED < 0.
19372         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
19373         (movedi_symbolic): Fix typo.
19374         (load_fptr): Remove mode restriction so it works for SI and DI.
19375         (load_fptr_internal1): Ditto.
19376         (load_gprel): Ditto.
19377         (load_symptr_internal1): Ditto.
19378         (call_pic): Ditto.
19379         * config/ia64.c (call_operand): Modify mode check.
19380         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
19381         (ia64_expand_move): Ditto.
19382         (ia64_assemble_integer): Handle SImode function pointers.
19383         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
19384         (ia64_expand_op_and_fetch): Ditto.
19385         (ia64_expand_compare_and_swap): Ditto.
19386         (ia64_expand_lock_test_and_set): Ditto.
19387         (ia64_expand_lock_release): Ditto.
19388
19389 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
19390
19391         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
19392
19393 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
19394             Richard Earnshaw  <rearnsha@arm.com>
19395
19396         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
19397         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
19398
19399 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
19400
19401         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
19402         understands to be a memory clobber.
19403         * arm.c (arm_expand_prologue): Use it.
19404
19405 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
19406
19407         * ra-rewrite.c: #include reload.h, insn-config.h
19408         * ra-build.c: #include reload.h
19409         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
19410         depend on reload.h, insn-config.h.
19411
19412 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
19413
19414         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
19415         the same size as a word.
19416
19417         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
19418         BYTES_BIG_ENDIAN into account.
19419
19420 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
19421
19422         * i386.md (prefetch): Fix for 64bit mode.
19423         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
19424
19425         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
19426
19427 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
19428
19429         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
19430
19431 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
19432
19433         * ginclude/varargs.h: Replace with stub which issues #error.
19434         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
19435         __builtin_va_start.
19436
19437         * builtins.def (BUILT_IN_VARARGS_START): Delete.
19438         (BUILT_IN_VA_START): New.
19439         * builtins.c (expand_builtin_va_start): Eliminate first
19440         argument and code to implement pre-ISO varargs.
19441         (std_expand_builtin_va_start): Ignore first argument; it is
19442         always 1.
19443         (expand_builtin): Handle BUILT_IN_VA_START and
19444         BUILT_IN_STDARG_START identically.  Delete
19445         BUILT_IN_VARARGS_START case.
19446
19447         * function.c (assign_parms): Delete hide_last_arg and all
19448         its uses.
19449         (mark_varargs): Delete function.
19450         * function.h (struct function): Delete 'varargs' bit.
19451         (current_function_varargs): Delete macro.
19452         * tree.h: Don't declare mark_varargs.
19453
19454         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
19455         (c_expand_body): Don't call mark_varargs.
19456         * c-objc-common.c: Handle BUILT_IN_VA_START and
19457         BUILT_IN_STDARG_START identically.  Delete
19458         BUILT_IN_VARARGS_START case.
19459         * c-tree.h: Don't declare c_mark_varargs.
19460         * c-parse.in: Remove grammar rules for '&...' (which has been
19461         commented out since before 2.7.2) and for '...' in K+R
19462         argument declarations.
19463
19464         * builtins.c, function.c, integrate.c, sibcall.c,
19465         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
19466         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
19467         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
19468         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
19469         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
19470         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
19471         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
19472         config/stormy16/stormy16.c: Delete all references to
19473         current_function_varargs, and code predicated on that flag.
19474
19475         * config/alpha/alpha.c (alpha_va_start),
19476         config/arc/arc.c (arc_va_start),
19477         config/i386/i386.c (ix86_va_start),
19478         config/mips/mips.c (mips_va_start),
19479         config/mn10300/mn10300.c (mn10300_va_start),
19480         config/rs6000/rs6000.c (rs6000_va_start),
19481         config/s390/s390.c (s390_va_start),
19482         config/sh/sh.c (sh_va_start),
19483         Ignore first argument; it is always 1.
19484
19485         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
19486         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
19487         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
19488         Delete m68hc11_va_start.
19489         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
19490         No need to define EXPAND_BUILTIN_VA_START.
19491
19492         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
19493         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
19494
19495 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
19496
19497         PR optimization/7153
19498         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
19499         dies in more than one insn.
19500
19501 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
19502
19503         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
19504
19505 2002-07-15  Michael Matz  <matz@suse.de>,
19506             Daniel Berlin  <dberlin@dberlin.org>,
19507             Denis Chertykov  <denisc@overta.ru>
19508
19509         Add a new register allocator.
19510
19511         * ra.c: New file.
19512         * ra.h: New file.
19513         * ra-build.c: New file.
19514         * ra-colorize.c: New file.
19515         * ra-debug.c: New file.
19516         * ra-rewrite.c: New file.
19517
19518         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
19519         (ra-rewrite.o): New .o files for libbackend.a.
19520         (GTFILES): Add basic-block.h.
19521
19522         * toplev.c (flag_new_regalloc): New.
19523         (f_options): New option "new-ra".
19524         (rest_of_compilation): Call initialize_uninitialized_subregs()
19525         only for the old allocator.  If flag_new_regalloc is set, call
19526         new allocator, instead of local_alloc(), global_alloc() and
19527         friends.
19528
19529         * doc/invoke.texi: Document -fnew-ra.
19530         * basic-block.h (FOR_ALL_BB): New.
19531         * config/rs6000/rs6000.c (print_operand): Write small constants
19532         as @l+80.
19533
19534         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
19535         (df_reg_table_realloc): Make size at least as large as max_reg_num().
19536         (df_insn_table_realloc): Size argument now is absolute, not relative.
19537         Changed all callers.
19538
19539         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
19540         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
19541
19542         2002-06-20  Michael Matz  <matz@suse.de>
19543
19544         * df.h (struct ref.id): Make unsigned.
19545         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
19546
19547         2002-06-13  Michael Matz  <matz@suse.de>
19548
19549         * df.h (DF_REF_MODE_CHANGE): New flag.
19550         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
19551         involving subregs with invalid mode changes, when
19552         CLASS_CANNOT_CHANGE_MODE is defined.
19553
19554         2002-05-07  Michael Matz  <matz@suse.de>
19555
19556         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
19557
19558         2002-05-03  Michael Matz  <matz@suse.de>
19559
19560         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
19561
19562         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
19563
19564         * regclass.c (regclass): Work with all regs which have sets or
19565         refs.
19566         (reg_scan_mark_refs): Count regs inside (clobber ...).
19567
19568         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
19569
19570         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
19571         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
19572         add new refs.
19573         (df_bb_refs_update): Don't clear insns_modified here, ...
19574         (df_analyse): ... but here.
19575
19576         * sbitmap.c (dump_sbitmap_file): New.
19577         (debug_sbitmap): Use it.
19578
19579         * sbitmap.h (dump_sbitmap_file): Add prototype.
19580
19581         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
19582
19583         * df.c (df_insn_modify): Grow the UID table if necessary, rather
19584         than assume all emits go through df_insns_modify.
19585
19586         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
19587
19588         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
19589         increase REG_N_REFS (like flow does), so that regclass doesn't
19590         think a reg is useless, and thus, not calculate a class, when it
19591         really should have.
19592
19593         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
19594
19595         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
19596         dataflow analysis.
19597
19598 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
19599
19600         PR middle-end/7245
19601         * config/i386/i386.c (const_int_1_31_operand): New.
19602         * config/i386/i386.h (PREDICATE_CODES): Add it.
19603         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
19604         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
19605         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
19606
19607 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
19608
19609         PR target/7282
19610         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
19611         (floatunssidf2): Likewise.
19612         (floatsidf_ppc64): New insn_and_split.
19613         (floatunssidf_ppc64): Likewise.
19614
19615 2002-07-14  Andreas Jaeger  <aj@suse.de>
19616
19617         * config.gcc (sh64): Remove unused
19618         target_requires_64bit_host_wide_int.
19619
19620 2002-07-12  Roger Sayle  <roger@eyesopen.com>
19621
19622         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
19623         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
19624         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
19625         whether clear_by_pieces should be used to clear storage.
19626         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
19627
19628         * doc/tm.texi: Document these two new target macros.
19629
19630 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
19631
19632         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
19633         the scratch register.
19634         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
19635         of it, forbid reload to use it.
19636
19637 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
19638
19639         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
19640         usage on 64-bit hosts, return value was truncated to 32 bits.
19641
19642 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
19643
19644         * simplify-rtx.c (simplify_subreg): Handle floating point
19645         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
19646         the element mode is requested, compute a subreg with an
19647         integer mode of the same size as the element mode first.
19648
19649 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
19650
19651         * combine.c (try_combine): When converting a paradoxical subreg
19652         to an extension, take LOAD_EXTEND_OP into account.
19653
19654 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19655
19656         * config.gcc (mips-sgi-irix6*o32): New configuration.
19657
19658         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
19659         configurations.
19660         * configure: Regenerate.
19661
19662         * config/mips/iris6-o32-as.h: New file.
19663         * config/mips/iris6-o32.h: New file.
19664
19665         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
19666         (NM_FLAGS): Define.
19667         (HAVE_AS_SHF_MERGE): Undefine.
19668
19669         * config/mips/t-iris5-as: New file.
19670         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
19671
19672         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
19673         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
19674         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
19675         dp-bit.c, fp-bit.c): Move ...
19676         * config/mips/t-iris5-6: ... here.
19677         New file, shared by IRIX 5 and IRIX 6.
19678         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
19679         mips-sgi-irix5*): Use it.
19680
19681         * config/mips/iris6.h: Remove duplicate comment.
19682
19683         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
19684         !TARGET_IRIX6]: Define.
19685         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
19686
19687         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
19688
19689 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19690
19691         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
19692         and delete code to force constant to register.
19693         * pa-protos.h (adddi3_operand): Add prototype.
19694         * pa.c (adddi3_operand): New function.
19695
19696 2002-07-11  Roger Sayle  <roger@eyesopen.com>
19697
19698         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
19699         non-ANSI builtin functions.
19700
19701 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
19702
19703         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
19704         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
19705         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
19706         (gen_const_vector_0): Use it.
19707
19708 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19709
19710         * pa.md (adddi3): For 32-bit targets, force constants to a register
19711         if they don't fit in an 11-bit immediate.  Change insn predicate to
19712         arith11_operand.  Remove comment.
19713         * pa.c (cint_ok_for_move): Fix comment.
19714         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
19715         targets.
19716
19717 2002-07-11  Tim Josling  <tej@melbpc.org.au>
19718
19719         Remove front end hard coding from gengtype.c.
19720
19721         * Makefile.in
19722         (STAGESTUFF): add gtyp-gen.h
19723         (GTFILES): Remove front end specific files.
19724         (GTFILES_FILES_LANGS): New, from configure..
19725         (GTFILES_FILES_FILES): Likewise.
19726         (GTFILES_LANG_DIR_NAMES): Likewise.
19727         (GTFILES_SRCDIR): Likewise.
19728         (gtyp-gen.h): Build from configure information.
19729         (s-gtype): Remove command line parameters from gengtype.
19730         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
19731         (mostlyclean): Delete files generated by and for gengtype.
19732
19733         * c-config-lang.in: New file.
19734
19735         * configure.in (all_gtfiles_files_langs): New. Accumulate files
19736         for each language.
19737         (all_gtfiles_files_files): New. Accumulate language for each file
19738         accumulated.
19739         (gtfiles): Pick up value for C.
19740         (srcdir): AC-SUBST this variable.
19741         (all_gtfiles_files_langs): AC-SUBST this variable.
19742         (all_gtfiles_files_files): AC-SUBST this variable.
19743
19744         * configure: Regenerate.
19745
19746         * gengtype-lex.l (parse_file): Make parameter const.
19747
19748         * gengtype.c (toplevel): include gtyp-gen.h.
19749         (BASE_FILE_<language> unnamed enum): Delete.
19750         (lang_names): Delete (replaced by gtyp-gen.h)
19751         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
19752         all references.
19753         (NUM_GT_FILES): New.
19754         (NUM_LANG_FILES): New.
19755         (srcdir_len): New.
19756         (NUM_BASE_FILES): Change calculation.
19757         (open_base_files): Change prototype to avoid warning.
19758         (startswith): Delete.
19759         (get_file_basename): Iterate through generated language list not
19760         hard coded list.
19761         (get_base_file_bitmap): Use generated list of files and languages.
19762         (close_output_files): Add prototype to rmove warning.
19763         (main): Iterate through list of generated files from gtyp-gen.h
19764         rather than command line paramaters.  Ignore duplicated file
19765         names.
19766
19767         * gengtype.h (parse_file): Amend prototype for const parameter.
19768
19769         * doc/sourcebuild.texi: Document gtfiles variable.
19770
19771         * doc/gty.texi: Document changes to gtfiles variable for front
19772         ends.
19773
19774         * objc/config-lang.in (gtfiles): Add files needed for objc front
19775         end.
19776
19777 2002-07-10  Roger Sayle  <roger@eyesopen.com>
19778
19779         PR c/2454
19780         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
19781         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
19782
19783 2002-07-10  Roger Sayle  <roger@eyesopen.com>
19784             Zack Weinberg <zack@codesourcery.com>
19785
19786         * builtins.def: Make the argument types of abort and exit
19787         independent of the front-end.
19788
19789 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
19790
19791         * config/rs6000/linux64.h (ASM_SPEC): Define.
19792
19793 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
19794
19795         * config/rs6000/rs6000.c (emit_frame_save): New.
19796         (rs6000_frame_related): Replace reg2 before reg.
19797         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
19798         and eh_return registers.
19799
19800 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
19801
19802         Revert all patches for optimization of Complex .op. Real.
19803         * complex_part_zero_p: Remove
19804         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
19805         with x.
19806         * expand_cmplxdiv_wide: Ditto.
19807         * expand_binop: Ditto.
19808
19809 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
19810
19811         * config/avr/avr.md: Fix two 0x80000000 constants to make them
19812         negative also on 64-bit hosts.
19813
19814         Default to -fno-reorder-blocks when optimizing for size.
19815         * config/avr/avr-protos.h (avr_optimization_options): Declare.
19816         * config/avr/avr.c (avr_optimization_options): New function.
19817         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
19818
19819         Optimize returning from simple functions.
19820         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
19821         * config/avr/avr.c (avr_simple_epilogue): New function.
19822         * config/avr/avr.md (return): New insn.
19823
19824 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
19825
19826         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
19827         HAS_INIT_SECTION to protection.
19828
19829 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
19830
19831         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
19832         deprecated.
19833
19834 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
19835
19836         * combine.c (gen_lowpart_for_combine): Handle vector modes.
19837         Supply non-VOID mode to simplify_gen_subreg.
19838
19839 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
19840
19841         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
19842
19843 2002-07-10  Jeffrey A Law  <law@redhat.com>
19844
19845         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
19846         as appropriate.
19847
19848         * mn10200.c (expand_epilogue): Fix test to determine which scratch
19849         register to use.
19850
19851 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
19852
19853         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
19854         Get mode from dest.
19855         If simplify_gen_subreg fails, try next equivalent.
19856
19857 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
19858
19859         * diagnostic.h: #include location.h
19860         (location_t): Move definition to..
19861         * location.h: ... here.  New file.
19862         * tree.h: #include location.h
19863         (DECL_SOURCE_LOCATION): New macro.
19864         (DECL_SOURCE_FILE): Use.
19865         (DECL_SOURCE_LINE): Likewise.
19866         (struct tree_decl): REplace filename and linenum with locus.
19867         * Makefile.in (TREE_H): add location.h
19868         (diagnostic.o): Depends on gt-location.h
19869         (gt-location.h): Depends on s-gtype
19870
19871 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
19872
19873         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
19874         TARGET_OS_CPP_BUILTINS.
19875         * config/rs6000/aix31.h: Likewise.
19876         * config/rs6000/aix41.h: Likewise.
19877         * config/rs6000/aix43.h: Likewise.
19878         * config/rs6000/aix51.h: Likewise.
19879         * config/rs6000/beos.h: Likewise.
19880         * config/rs6000/darwin.h: Likewise.
19881         * config/rs6000/eabi.h: Likewise.
19882         * config/rs6000/eabisim.h: Likewise.
19883         * config/rs6000/linux.h: Likewise.
19884         * config/rs6000/linux64.h: Likewise.
19885         * config/rs6000/lynx.h: Likewise.
19886         * config/rs6000/mach.h: Likewise.
19887         * config/rs6000/rtems.h: Likewise.
19888         * config/rs6000/sysv4.h: Likewise.
19889         * config/rs6000/vxppc.h: Likewise.
19890
19891 2002-07-09 Devang Patel <dpatel@apple.com>
19892         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
19893         Do not allow ObjC objects as a parameter type for Objective-C methods.
19894         My previous patch restricted  'struct' also.
19895
19896 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
19897
19898         * cpperror.c (cpp_error): Default to directive_line within
19899         directives here.
19900         * cppexp.c (cpp_interpret_integer): Only use traditional
19901         number semantics in directives.
19902         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
19903         (do_include_common): Similarly.
19904         * cpptrad.c (scan_out_logical_line): Implement accurate
19905         quoting of <> in #include.
19906         * doc/cpp.texi: Update.
19907
19908 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
19909                           J"orn Rennecke <joern.rennecke@superh.com>
19910
19911         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
19912         * sh.md (attribute issues): Replace with:
19913         (attribute pipe_model).  All users changed.
19914         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
19915         All users changed.
19916         (function units sh5issue, sh5fds): New.
19917         (attribute is_mac_media): New.
19918         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
19919         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
19920         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
19921         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
19922         (call_media, call_value_media, sibcall_media): Likewise.
19923         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
19924         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
19925         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
19926         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
19927         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
19928         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
19929         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
19930         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
19931         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
19932         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
19933         (truncdfsf2_media): Likewise.
19934         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
19935         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
19936
19937 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
19938
19939         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
19940         * sh.c (general_extend_operand, inqhi_operand): New functions.
19941         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
19942         alternatives using 'N' modifier.  Add type.
19943         (adddi3z_media): Likewise.  Enable generator function generation.
19944         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
19945         exact predicates / constraints.  Add type.
19946         (subsi3): Allow 0 for SHMEDIA.
19947         (udivsi3_i4_media): Use match_operand for input values
19948         rather than hard registers.
19949         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
19950         unnecessarily through hard registers.  Keep copies of pseudo
19951         registers outside of the libcall sequence.
19952         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
19953         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
19954         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
19955         (extendhidi2, extendqidi2): Likewise.
19956         (andsi3_compact): Name.
19957         (andcdi3): Enable generator function generation.
19958         (zero_extendhisi2, zero_extendqisi2): Rename to
19959         (zero_extendhisi2_compact, zero_extendqisi2_compact).
19960         (extendhisi2, extendqisi2): Rename to
19961         (extendhisi2_compact, extendqisi2_compact).
19962         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
19963         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
19964         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
19965         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
19966         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
19967         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
19968         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
19969         (shmedia32_initialize_trampoline_big): Likewise.
19970         (shmedia32_initialize_trampoline_little): Likewise.
19971         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
19972         (negdi2): Remove spurious T clobber.
19973         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
19974         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
19975         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
19976         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
19977         (ic_invalidate_line_media): Write back data cache before invalidating
19978         instruction cache.  Add type.
19979         (movsf_media): Sign-extend when the destination is a general
19980         purpose register.  Add type.
19981         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
19982         (casesi_worker_0+1): Only increment ref count for proper label.
19983         (casesi_worker_0+2): Likewise.
19984
19985 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
19986
19987         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
19988
19989 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
19990
19991         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
19992         from Pmode to ptr_mode.
19993         (get_exception_pointer): Ditto.
19994         (connect_post_landing_pads): Ditto.
19995         (dw2_build_landing_pads): Ditto.
19996
19997 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
19998         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
19999         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
20000         (handle_pragma_redefine_extname): Change to use new function.
20001
20002 2002-07-08  Roger Sayle  <roger@eyesopen.com>
20003
20004         * combine.c (combine_simplify_rtx): Add an explicit cast
20005         to avoid signed/unsigned comparison warning.
20006         (simplify_if_then_else): Likewise.
20007         (extended_count): Likewise.
20008         (simplify_shift_const): Likewise.
20009         (simplify_comparison): Likewise.
20010
20011 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
20012
20013         * config/mips/mips.md: Add imadd type.  Update scheduler description
20014         to use imadd as well as imul.
20015         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
20016         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
20017         (*mul_sub_si): Likewise for first alternative.  Change second
20018         alternative from imul to multi.
20019
20020 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
20021
20022         * c-common.c (c_common_post_options): Update prototype;
20023         don't init backends if preprocessing only.
20024         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
20025         * langhooks.h (struct lang_hooks): Update post_options to
20026         return a boolean.
20027         * toplev.c (parse_options_and_default_flags, do_compile,
20028         lang_independent_init): Update prototypes.  Allow the
20029         front end to specify that there is no need to initialize
20030         the back end.
20031         (general_init): Move call to hex_init here...
20032         (toplev_main): ...from here.  Pass flag for back end init
20033         suppression.
20034
20035 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
20036
20037         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
20038         (PREDICATE_CODES): Add entries for equality_comparison_operator,
20039         greater_comparison_operator and less_comparison_operator.
20040         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
20041         more operators.
20042         (equality_comparison_operator): New function.
20043         (greater_comparison_operator, less_comparison_operator): Likewise.
20044         * sh.md (beq_media_i): Disable generator function generation.
20045         Use match_operator to handle a whole class of comparisons.  Add
20046         modifier in output template to provide branch prediction.  Add type.
20047         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
20048         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
20049         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
20050         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
20051
20052 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
20053
20054         Emit MMIX function prologue and epilogue as rtl.
20055         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
20056         not unprototyped get_hard_reg_initial_val.
20057         ("call_value", "nonlocal_goto_receiver"): Ditto.
20058         ("return"): Make define_expand.  Move real insn to...
20059         ("*expanded_return"): New pattern.
20060         ("prologue", "epilogue"): New define_expands.
20061         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
20062         (struct machine_function): New member in_prologue.
20063         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
20064         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
20065         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
20066         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
20067         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
20068         (LOCAL_REGNO): Define.  Adjust comment.
20069         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
20070         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
20071         leaf_function_p.
20072         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
20073         the prologue.
20074         (mmix_target_asm_function_prologue): Make static.  Just mark that
20075         the prologue is being emitted.  Move guts to...
20076         (mmix_expand_prologue): New function.  Adjust for emitting
20077         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
20078         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
20079         \n.  Move guts to...
20080         (mmix_expand_epilogue): New function.  Adjust for emitting
20081         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
20082         (mmix_target_asm_function_end_prologue): Mark that the prologue
20083         has ended.
20084         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
20085         (mmix_conditional_register_usage): Improve comments.
20086         (mmix_local_regno): New function.
20087         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
20088         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
20089         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
20090         (mmix_get_hard_reg_initial_val): Ditto.
20091
20092 2002-07-06  Andreas Jaeger  <aj@suse.de>
20093
20094         * toplev.c (set_fast_math_flags): Don't use ISO C style function
20095         definitions.
20096         * gengtype.c (open_base_files): Likewise.
20097         (close_output_files): Likewise.
20098         * tracer.c (find_best_predecessor): Likewise.
20099         (find_best_successor): Likewise.
20100         (ignore_bb_p): Likewise.
20101
20102 2002-07-05  Roger Sayle  <roger@eyesopen.com>
20103
20104         PR c++/7099
20105         * builtin-attrs.def: Define new attribute lists for use in
20106         builtins.def.
20107         * builtins.def [DEF_BUILTIN]: Modify to take an additional
20108         ATTRS argument, an enumerated value defined in builtin-attrs.def
20109         that represents the attribute list for the builtins.  Modify
20110         all builtin functions to pass an appropriate attribute list.
20111         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
20112         their required noreturn attributes.
20113         * tree.h (enum_builtin_function): Ignore the additional parameter
20114         to DEF_BUILTIN.
20115         * builtins.c (built_in_names): Likewise.
20116         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
20117         argument with a tree representing the functions attribute list.
20118         Pass this "attrs" argument to builtin_function.  No longer handle
20119         the noreturn_p processing manually.
20120         (built_in_attributes): Move the definitions from builtin-attrs.def
20121         before c_common_nodes_and_builtins.
20122         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
20123         DEF_BUILTIN, passing it to both builtin_function and the changed
20124         builtin_function_2.
20125
20126         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
20127         __builtin__exit and __builtin__Exit.
20128
20129 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
20130
20131         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
20132         QI mode registers in soft registers.
20133         ("zero_extendqihi2"): Do not take into account soft registers
20134         for register allocation (use '*' constraint).
20135
20136 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
20137
20138         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
20139         it is dead.
20140         ("*ashrsi3"): Likewise.
20141         ("*lshrsi3"): Likewise.
20142
20143 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
20144
20145         * genautomata.c (output_max_insn_queue_index_def): Take latencies
20146         into account.
20147
20148 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
20149
20150         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
20151         address computation and memory moves.
20152
20153 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
20154
20155         PR c++/6706
20156         * dwarfout.c (output_reg_number): Fix warning message.
20157         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
20158         before using it.
20159
20160 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20161
20162         * gcc/gcc.c (asm_debug): Move initialization ...
20163         (init_spec): ... here.
20164
20165 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
20166
20167         * c-parse.in (extdef): Append ';'.
20168         (old_style_parm_decls): Append ';'.
20169
20170 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
20171
20172         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
20173         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
20174         to gcc_cv_as_gstabs_flag.
20175         * configure: Rebuilt.
20176
20177 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
20178
20179         * ggc.h (ggc_add_root): Document as obsolete.
20180
20181 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
20182
20183         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
20184         (mshflo_w): Likewise.
20185
20186 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
20187
20188         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
20189         vector mode subregs of constants to finding integer mode
20190         subregs of constants.
20191         * cse.c (cse_insn): Use simplify_gen_subreg.
20192         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
20193         From a vector mode expression of different size than the
20194         target mode.
20195
20196 2002-07-03  Eric Christopher  <echristo@redhat.com>
20197
20198         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
20199         * config/mips/mips.h: Remove deprecated -m<processor> options
20200         and cc1_cpu_spec associated.
20201         (CONSTANT_ADDRESS_P): Fix last patch.
20202         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
20203         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
20204         sunge_sf): Remove.
20205
20206 2002-07-03  Stan Shebs  <shebs@apple.com>
20207
20208         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
20209         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
20210         (CPP_SPEC): Remove insertion of APPLE_CC definition.
20211
20212 2002-07-03  Roger Sayle  <roger@eyesopen.com>
20213
20214         * combine.c (struct_undo): Change types of recorded substitutions
20215         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
20216         (do_SUBST_INT): Change types of the substitution from unsigned int
20217         to int, to avoid compilation warning from SUBST_INT's only caller.
20218
20219         (make_extraction): Add cast to avoid compilation warning.
20220         (force_to_mode): Remove cast to avoid compilation warning.
20221
20222 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
20223             Jeff Law  <law@redhat.com>
20224
20225         * i386.md (length_immediate attribute): Fix typo.
20226         (length_address attribute): Likewise.
20227         (modrm attribute): Set it to 0 for immediate call instructions.
20228         (jcc_1 pattern): Set modrm attribute to 0.
20229         (jcc_2 pattern ): Likewise.
20230         (jump pattern): Likewise.
20231         (doloop_end_internal pattern): Explicitly set length.
20232         (leave pattern): Fix typo.
20233         (leave_rex64 pattern): Likewise.
20234
20235 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
20236
20237         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
20238         in FPR as preference.
20239         (fctiwz): Same.
20240         (floatdidf2, fix_truncdfdi2): Same.
20241         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
20242         (floatditf2): Same.
20243         (floatsitf2, fix_trunctfsi2): SImode in GPR.
20244         (ctrdi): Remove FPR alternative and splitter.
20245
20246 2002-07-03  Will Cohen  <wcohen@redhat.com>
20247
20248         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
20249
20250 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
20251
20252         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
20253         than UNITS_PER_WORD, unless this is little endian and the first unit
20254         in this word.  Let extract_bit_field decide how to load an element.
20255         Force arguments to matching mode.
20256         (expand_vector_unop): Likewise.
20257
20258         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
20259         consist of word_mode elements.
20260         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
20261         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
20262         (build_unary_op): Allow vector types for BIT_NOT_EPR.
20263         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
20264         CONST_VECTOR.
20265         * optabs.c (expand_vector_binop): Try to perform operation in
20266         smaller vector modes with same inner size.  Add handling of AND, IOR
20267         and XOR.  Reject expansion to inner-mode sized scalars when using
20268         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
20269         (expand_vector_unop): Try to perform operation in smaller vector
20270         modes with same inner size.  Add handling of one's complement.
20271         When there is no vector negate operation, try a vector subtract
20272         operation.  Use simplify_gen_subreg on constants.
20273         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
20274         constants into smaller vectors with same inner mode, and to
20275         integer CONST_DOUBLEs.
20276
20277 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20278
20279         * c-parse.in (parsing_iso_function_signature): New variable.
20280         (extdef_1): New, copied from...
20281         (extdef): ... here.  Reset parsing_iso_function_signature.
20282         (old_style_parm_decls):  Reset parsing_iso_function_signature.
20283         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
20284         Warn about ISO C style function definitions.
20285         (nested_function, notype_nested_function): Reset
20286         parsing_iso_function_signature.
20287         (parmlist_2): Set parsing_iso_function_signature.
20288
20289         * doc/invoke.texi (-Wtraditional): Document new behavior.
20290
20291 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
20292
20293         * config.gcc (mips*el-*-*): Use tm_defines to set
20294         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
20295         * config/mips/little.h: Remove.
20296
20297 2002-07-02 Devang Patel <dpatel@apple.com>
20298
20299         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
20300         object as parameter. Prevent something like 'NSObject' to be
20301         used as the type for a method argument.
20302
20303 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
20304
20305         * cpptrad.c: Update comment.
20306
20307 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
20308
20309         * doc/cpp.texi: Update for traditional preprocessing changes.
20310         * goc/cppopts.texi: Similarly.
20311
20312 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
20313
20314         * c-parse.in (designator): Enable designated initializers if ObjC.
20315         (objcmessageexpr): Remove references to objc_receiver_context.
20316         * objc/objc-act.h (objc_receiver_context): Remove decl.
20317         * objc/objc-act.c (objc_receiver_context): Remove.
20318         (lookup_objc_ivar): Test objc_method_context instead of
20319         objc_receiver_context.
20320
20321 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
20322
20323         * sh.c (print_operand, case 'N'): Allow zero vector.
20324         (arith_reg_or_0_operand): Likewise.
20325         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
20326         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
20327         IOR, XOR, PLUS and SET and take their respective constant
20328         ranges into account.
20329         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
20330         * sh.md (subdi3, subdi3_media): Allow zero operand.
20331         (movv8qi_i+3): Only vector that is not split is the zero vector.
20332         Fix operand 3 to simplify_subreg.
20333         (movv2si_i): Split alternative 1.
20334         (mshfhi_l_di_rev+1): New splitter.
20335
20336 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
20337
20338         PR preprocessor/7029
20339         * cppinit.c (cpp_handle_option):  Suppress warnings with an
20340         implicit "-w" for "-M" and "-MM".
20341         * doc/cppopts.texi: Update.
20342
20343 2002-07-01  Roger Sayle  <roger@eyesopen.com>
20344
20345         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
20346         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
20347         builtin_function.
20348
20349 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
20350
20351         * README.Portability: Fix typos.
20352
20353 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
20354
20355         PR target/7177
20356         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
20357         of indirections for register inside sign-extended mem part.
20358
20359 2002-07-01  Roger Sayle  <roger@eyesopen.com>
20360
20361         * tree.h:  Modify builtin_function interface to take an extra
20362         argument ATTRS, which is a tree representing an attribute list.
20363
20364         * c-decl.c (builtin_function): Accept additional parameter.
20365         * objc/objc-act.c (builtin_function): Likewise.
20366         * f/com.c (builtin_function): Likewise.
20367         * java/decl.c (builtin_function): Likewise.
20368         * ada/utils.c (builtin_function): Likewise.
20369         * cp/decl.c (builtin_function): Likewise.
20370         (builtin_function_1): Likewise.
20371
20372         * c-common.c (c_common_nodes_and_builtins): Pass an additional
20373         NULL_TREE argument to builtin_function.  (builtin_function_2):
20374         Likewise.
20375         * cp/call.c (build_java_interface_fn_ref): Likewise.
20376         * objc/objc-act.c (synth_module_prologue): Likewise.
20377         * java/decl.c (java_init_decl_processing): Likewise.
20378         * f/com.c (ffe_com_init_0): Likewise.
20379
20380         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
20381         NULL_TREE argument to builtin_function.
20382         * config/arm/arm.c (def_builtin): Likewise.
20383         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
20384         * config/i386/i386.c (def_builtin): Likewise.
20385         * config/ia64/ia64.c (def_builtin): Likewise.
20386         * config/rs6000/rs6000.c (def_builtin): Likewise.
20387
20388 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
20389
20390         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
20391         * config/mips/t-isa3264: Likewise.
20392         * config/mmix/t-mmix: Likewise.
20393
20394 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20395
20396         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
20397
20398 2002-07-01  Roger Sayle  <roger@eyesopen.com>
20399
20400         PR opt/4046
20401         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
20402         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
20403         B are truth values.
20404
20405 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
20406
20407         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
20408
20409 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
20410
20411         * README.Portability (Function prototypes): Give an example of
20412         declaring and defining a function with no arguments.
20413
20414         * README.Portability (Function prototypes): Document new
20415         variable-argument function macros.
20416
20417 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
20418
20419         * sh.c (langhooks.h): Include.
20420         (sh_init_builtins, sh_media_init_builtins): New functions.
20421         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
20422         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
20423         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
20424         (builtin_description): New struct tag.
20425         (signature_args, bdesc): New arrays.
20426         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
20427         (print_operand): Add 'N' modifier.
20428         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
20429         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
20430         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
20431         (CONST_COSTS): Add special case for SHmedia AND.
20432         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
20433         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
20434         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
20435         target_operand can also be const or unspec.
20436         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
20437         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
20438         (attribute type): Add new types.
20439         (anddi3): Add splitter.
20440         (movdi_const_16bit+1): Add code to handle vector constants and
20441         bitmasks efficiently.
20442         (shori_media): Have generator function made.
20443         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
20444         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
20445         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
20446         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
20447         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
20448         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
20449         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
20450         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
20451         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
20452         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
20453         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
20454         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
20455         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
20456         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
20457         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
20458         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
20459         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
20460         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
20461         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
20462         (ftrv): Likewise.
20463
20464         (fpu_switch+1, fpu_switch+2): Remove constraint.
20465
20466 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
20467
20468         * tree.c (build_function_type_list): Update function comment.
20469         Rename first argument to return_type.
20470
20471 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
20472
20473         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
20474         tradcif.y and related files.
20475
20476 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
20477
20478         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
20479
20480 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20481
20482         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
20483
20484 See ChangeLog.7 for earlier changes.